-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
104 lines (94 loc) · 3.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import type { Config } from 'tailwindcss'
import form from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import animation from 'tailwindcss-animate'
const config: Config = {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx,json}'],
darkMode: ['selector'],
theme: {
fontFamily: {
sans: ['var(--font-inter)'],
},
screens: {
tablet: '640px',
laptop: '1024px',
desktop: '1280px',
},
extend: {
fontSize: {
sm: '.84375rem',
base: '.9375rem',
lg: '1.03125rem',
xl: '1.125rem',
},
colors: {
background: 'hsl(var(--color-background))',
foreground: 'hsl(var(--color-foreground))',
surface: 'hsl(var(--color-surface))',
border: 'hsl(var(--color-border))',
input: 'hsl(var(--color-input))',
link: 'hsl(var(--color-link))',
accent: 'hsl(var(--color-accent))',
primary: {
DEFAULT: 'hsl(var(--color-primary))',
foreground: 'hsl(var(--color-primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--color-secondary))',
foreground: 'hsl(var(--color-secondary-foreground))',
},
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
'--tw-prose-headings': theme('colors.foreground'),
'--tw-prose-body': theme('colors.foreground'),
'--tw-prose-links': theme('colors.link'),
'--tw-prose-bold': theme('colors.foreground'),
'--tw-prose-counters': theme('colors.foreground'),
'--tw-prose-bullets': theme('colors.foreground'),
'--tw-prose-hr': theme('colors.border'),
'--tw-prose-quotes': theme('colors.secondary'),
'--tw-prose-quote-borders': theme('colors.foreground'),
'--tw-prose-captions': theme('colors.secondary'),
'--tw-prose-code': theme('colors.foreground'),
'--tw-prose-pre-code': theme('colors.foreground'),
'--tw-prose-pre-bg': theme('colors.surface'),
'--tw-prose-th-borders': theme('colors.border'),
'--tw-prose-td-borders': theme('colors.border'),
fontSize: theme('fontSize.base'),
fontWeight: '400',
a: {
textDecoration: 'none',
fontWeight: '400 !important',
'&:hover': {
textDecoration: 'underline',
},
},
em: {
fontStyle: 'italic',
color: theme('colors.accent'),
},
strong: {
fontWeight: '500',
},
h1: {
fontSize: theme('fontSize.xl'),
fontWeight: '500',
},
h2: {
fontSize: theme('fontSize.lg'),
fontWeight: '500',
},
h3: {
fontSize: theme('fontSize.base'),
fontWeight: '500',
},
},
},
}),
},
},
plugins: [typography, form, animation],
}
export default config