Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stipsan/system-font-stack

Give your web app a native look by using the font family of the users OS
https://github.com/stipsan/system-font-stack

css font-family font-stacks system-fonts web-application

Last synced: 29 days ago
JSON representation

Give your web app a native look by using the font family of the users OS

Awesome Lists containing this project

README

        

# system-font-stack

[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)

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](https://github.com/styled-components):

```js
import { injectGlobal } from 'styled-components'
import systemFontStack from 'system-font-stack'

injectGlobal`
body {
font-family: ${systemFontStack};
}
`
```