ipsased
Version:
UI toolkit monorepo containing a React component library, UI utilities, a drag-and-drop library, and more
18 lines (14 loc) • 1.21 kB
Markdown
# @acusti/styling
[](https://www.npmjs.com/package/@acusti/styling)
[](https://npms.io/search?q=%40acusti%2Fstyling)
[](https://bundlephobia.com/package/@acusti/styling)
[](https://www.npmjs.com/package/@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.