Package Exports
- @filbert-js/stylesheet
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/stylesheet) 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/stylesheet
A StyleSheet for css-in-js libraries
Install
yarn add @filbert-js/stylesheetUsage
import React from 'react';
import { StyleSheet } from '@filbert-js/stylesheet';
import { StyleSheetProvider } from '@filbert-js/style-sheet-context';
const stylesheet = new StyleSheet({
getRoot,
createElement,
findElementByStyleId,
cssParser,
});
render(
<StyleSheetProvider stylesheet={stylesheet}>
<App />
</StyleSheetProvider>,
);More documentation is available at https://filbert-js.vercel.app.