@filbert-js/stylesheet

A StyleSheet for css-in-js libraries

Install

yarn add @filbert-js/stylesheet

Usage

1import React from 'react';
2import { StyleSheet } from '@filbert-js/stylesheet';
3import { StyleSheetProvider } from '@filbert-js/style-sheet-context';
4
5const stylesheet = new StyleSheet({
6 getRoot,
7 createElement,
8 findElementByStyleId,
9 cssParser,
10});
11render(
12 <StyleSheetProvider stylesheet={stylesheet}>
13 <App />
14 </StyleSheetProvider>,
15);

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