system-font-stack
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    system-font-stack

    Use the system font family so your web app look more native

    Inspired by https://css-tricks.com/snippets/css/system-font-stack/

    It works really well with CSS-in-JS style solutions, like styled-components:

    import { injectGlobal } from 'styled-components'
    import systemFontStack from 'system-font-stack'
     
    injectGlobal`
      body {
        font-family: ${systemFontStack};
      }
    `

    Install

    npm i system-font-stack

    DownloadsWeekly Downloads

    280

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    3.67 kB

    Total Files

    8

    Last publish

    Collaborators

    • stipsan