@acusti/styling
v1.0.0-rc.1
Published
React component that renders a CSS style string as a <style> element in the <head> of the document (with global style de-duplication)
Downloads
682
Maintainers
Readme
@acusti/styling
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.