Skip to content

Commit

Permalink
fix(preset): use fonts from default tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Apr 17, 2023
1 parent 6295465 commit 4df972d
Showing 1 changed file with 5 additions and 31 deletions.
36 changes: 5 additions & 31 deletions src/preset.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,20 @@
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'
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: sansSystemFont,
heading: sansSystemFont,
alt: sansSystemFont,
mono: monoSystemFont,
sans: defaultTheme.fontFamily.sans,
heading: defaultTheme.fontFamily.sans,
alt: defaultTheme.fontFamily.sans,
mono: defaultTheme.fontFamily.mono,
},

extend: {
Expand Down

0 comments on commit 4df972d

Please sign in to comment.