-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
37 lines (36 loc) · 1.16 KB
/
tailwind.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import typography from '@tailwindcss/typography'
import type { Config } from 'tailwindcss'
import { fontFamily } from 'tailwindcss/defaultTheme'
export default {
content: ['./src/components/**/*.{ts,tsx}', './src/app/**/*.{ts,tsx}'],
darkMode: 'class',
theme: {
extend: {
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
},
fontFamily: {
sans: ['var(--font-geist-sans)', ...fontFamily.sans],
mono: ['var(--font-geist-mono)', ...fontFamily.mono],
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
typography: ({ theme }: { theme: any }) => ({
DEFAULT: {
maxWidth: 'none',
css: {
h1: { fontSize: theme('fontSize.sm') },
h2: { fontSize: theme('fontSize.sm') },
h3: { fontSize: theme('fontSize.sm') },
h4: { fontSize: theme('fontSize.sm') },
h5: { fontSize: theme('fontSize.sm') },
h6: { fontSize: theme('fontSize.sm') },
pre: false,
code: false,
},
},
}),
},
},
plugins: [typography],
} satisfies Config