@acusti/styling
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

@acusti/styling

latest version maintenance status bundle size downloads per month

Exports Style, which is a React component that renders a CSS style string as a <style> element in the <head> of the document optionally specified by props.ownerDocument. Keeps a per-document global registry of styles being rendered so that the same string of CSS will only be rendered as a single <style> element, no matter how many times the <Style> element with that string appears in the React component tree.

Also exports useful CSS string literals, such as SYSTEM_UI_FONT which can be used as font-family: ${SYSTEM_UI_FONT}; to specify the appropriate UI font for the current OS and browser.

Package Sidebar

Install

npm i @acusti/styling

Weekly Downloads

231

Version

0.7.2

License

Unlicense

Unpacked Size

38.7 kB

Total Files

22

Last publish

Collaborators

  • acusti