JSPM

system-ui

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 39
    • Score
      100M100P100Q53109F
    • License MIT

    Fallbacks for the W3C CSS generic system-ui font-family.

    Package Exports

    • system-ui

    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 (system-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    system-ui

    Fallbacks for the W3C CSS generic system-ui font-family.

    Install

    $ yarn add system-ui
    # npm v5+
    $ npm install system-ui
    # before npm v5
    $ npm install --save system-ui

    Usage

    import system_ui from "system-ui";
    import { injectGlobal } from "styled-components";
    
    // system_ui == "system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue"
    
    injectGlobal`
      body {
        font-family: ${system_ui}, sans-serif;
        font-size: 16px;
    
        color: #000;
      }
    `;

    Chores

    • Build: yarn build

    • Pretty: yarn pretty

    License

    MIT.