Skip to content

Commit

Permalink
fix: use system font by default
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Apr 14, 2023
1 parent 723528c commit 2281b3d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This package contains the Tailwind CSS preset, components, and shared utils like
## Installation

```bash
pnpm install @shuriken-ui/tailwind
pnpm install -D @shuriken-ui/tailwind
```

## Usage
Expand Down
35 changes: 31 additions & 4 deletions src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,43 @@ import typography from '@tailwindcss/typography'
import aspectRatio from '@tailwindcss/aspect-ratio'
import shurikenUIComponents from './plugins/components'

const sansSystemFont = [
'ui-sans-serif',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
]
const monoSystemFont = [
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'"Liberation Mono"',
'"Courier New"',
'monospace',
]

export default {
darkMode: 'class',
content: [],
plugins: [typography, aspectRatio, shurikenUIComponents],
theme: {
fontFamily: {
sans: ['Roboto Flex', 'sans-serif'],
heading: ['Inter', 'sans-serif'],
alt: ['Karla', 'sans-serif'],
mono: ['ui-monospace', 'monospace'],
sans: sansSystemFont,
heading: sansSystemFont,
alt: sansSystemFont,
mono: monoSystemFont,
},

extend: {
Expand Down

0 comments on commit 2281b3d

Please sign in to comment.