mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Update font docs to include note about wrapping fonts in quotes
This commit is contained in:
parent
d5d1785005
commit
654a9bf9ca
@ -40,5 +40,36 @@ features:
|
||||
],
|
||||
'variants' => [
|
||||
'responsive',
|
||||
],
|
||||
]
|
||||
])
|
||||
|
||||
### Note
|
||||
|
||||
Some fonts, such as fonts with an integer in their name, are required to be wrapped in quotes.
|
||||
|
||||
For example:
|
||||
```js
|
||||
// ...
|
||||
|
||||
module.exports = {
|
||||
// ...
|
||||
fonts: {
|
||||
sans: [
|
||||
'Exo 2', // Replace this...
|
||||
'"Exo 2"', // With this...
|
||||
'-apple-system',
|
||||
'BlinkMacSystemFont',
|
||||
'Segoe UI',
|
||||
'Roboto',
|
||||
'Oxygen',
|
||||
'Ubuntu',
|
||||
'Cantarell',
|
||||
'Fira Sans',
|
||||
'Droid Sans',
|
||||
'Helvetica Neue',
|
||||
'sans-serif'
|
||||
],
|
||||
// ...
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user