包详细信息

@filbert-js/theming

kuldeepkeshwar2kMIT0.0.7

theming for filbert-js

javascript, react, preact, css

自述文件

@filbert-js/theming

theming for filbert-js

Install

yarn add @filbert-js/theming

Usage

jsx editor=static import React from 'react'; import { styled } from '@filbert-js/core'; import { ThemeProvider } from '@filbert-js/theming'; const Button = styled('button')` background: ${({ theme }) => theme.colors.brand}; border: solid 1px gray; `; const theme = { colors: { brand: 'hotpink', }, }; render( <ThemeProvider theme={theme}> <Button>This is a Button component.</Button> </ThemeProvider>, );

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

更新日志

@filbert-js/theming

0.0.7

Patch Changes

  • 5ba6c20: fix stylesheet ordering

0.0.6

Patch Changes

  • b3e80f1: Remove react from dependencies list in core

0.0.5

Patch Changes

  • 0ef9584: - Add as Prop
    • Add forward ref