0.0.14 • Published 3 years ago

@filbert-js/core v0.0.14

Weekly downloads
997
License
MIT
Repository
github
Last release
3 years ago

@filbert-js/core

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

Install

yarn add @filbert-js/core

Usage

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

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

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.