包详细信息

@filbert-js/core

kuldeepkeshwar2.1kMIT0.0.14

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

javascript, react, preact, css

自述文件

@filbert-js/core

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

Install

yarn add @filbert-js/core

Usage

```jsx editor=static 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; } `} />

I'm pink
</>, ); ```

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

更新日志

@filbert-js/core

0.0.14

Patch Changes

  • 5ba6c20: fix stylesheet ordering
  • Updated dependencies [5ba6c20]
    • @filbert-js/browser-stylesheet@0.0.10
    • @filbert-js/css-ast@0.0.8
    • @filbert-js/stylesheet@0.0.8
    • @filbert-js/theming@0.0.7
    • @filbert-js/style-sheet-context@0.0.10
    • @filbert-js/css-parser@0.0.9

0.0.13

Patch Changes

  • fcf4d50: Add @filbert-js/stylesheet to @filbert-js/core dependency list.

0.0.12

Patch Changes

  • b3e80f1: Remove react from dependencies list in core
  • Updated dependencies [b3e80f1]
    • @filbert-js/browser-stylesheet@0.0.9
    • @filbert-js/css-parser@0.0.8
    • @filbert-js/style-sheet-context@0.0.9
    • @filbert-js/theming@0.0.6

0.0.11

Patch Changes

  • 67bbe4a: add @filbert-js/types to deps
  • 985f0e3: reuse filbert-types/merge type+label
  • Updated dependencies [985f0e3]
    • @filbert-js/types@0.0.6
    • @filbert-js/style-sheet-context@0.0.8

0.0.10

Patch Changes

  • @filbert-js/browser-stylesheet@0.0.7
  • @filbert-js/style-sheet-context@0.0.7

0.0.9

Patch Changes

  • dc6e795: - (Website): add examples using filbert-js with preact/cra/nextjs/gatsby
    • (CSS-AST): handle url as css value
    • @filbert-js/browser-stylesheet@0.0.6
    • @filbert-js/style-sheet-context@0.0.6

0.0.8

Patch Changes

  • 002e3f5: - Prepend #PURE comment to help minifiers with dead code elimination (=DCE)
    • Remove StyleSheetContext from styled api
    • Refactored website(sidebar)

0.0.7

Patch Changes

  • 28ecee8: - Add babel-plugin-filbert/ gatsby-browser.js to gatsby-plugin-filbert
    • remove babel-plugin-filbert/ gatsby-browser.js from website
    • Fix jsx API: handle null props case & children

0.0.6

Patch Changes

  • fa304df: Add cache for hashing

0.0.5

Patch Changes

  • 0ef9584: - Add as Prop
    • Add forward ref
  • Updated dependencies [0ef9584]
    • @filbert-js/browser-stylesheet@0.0.5
    • @filbert-js/style-sheet-context@0.0.5
    • @filbert-js/theming@0.0.5
    • @filbert-js/types@0.0.5