JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 91
  • Score
    100M100P100Q98229F
  • License MIT

A light weight(~1KB) css-in-js solution(framework)🎨

Package Exports

  • @filbert-js/core

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@filbert-js/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@filbert-js/core

A light weight(~1KB) css-in-js solution(framework)🎨.

Install

yarn add @filbert-js/core

Usage

// @editor

import React from 'react';
import { styled, Global } from '@filbert-js/core';

const Button = styled('button')`
  background: pink;
  border: solid 1px grey;
`;

render(
  <>
    <Button>This is a Button component.</Button>
    <Global
      styles={`
          .text {
            background: hotpink;
            padding: 1rem;
          }
        `}
    />
    <div className="text">I'm pink</div>
  </>,
);

More documentation is available at https://filbert-js.vercel.app.