-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
64 lines (62 loc) · 1.88 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
import { Config } from 'tailwindcss';
import type { PluginAPI } from 'tailwindcss/types/config';
import Typography from '@tailwindcss/typography';
export default {
content: ['index.html'],
theme: {
extend: {
typography: (theme: PluginAPI['theme']) => ({
DEFAULT: {
css: {
color: theme('colors.zinc.900'),
h1: {
fontSize: theme('fontSize.2xl'),
fontWeight: theme('fontWeight.bold'),
},
h2: {
fontSize: theme('fontSize.xl'),
fontWeight: theme('fontWeight.bold'),
marginTop: theme('spacing.4'),
},
a: {
color: theme('colors.teal[800]'),
backgroundColor: 'rgba(17, 94, 89, 0.05)',
paddingLeft: theme('spacing.1'),
paddingRight: theme('spacing.1'),
marginLeft: '-0.25rem',
marginRight: '-0.25rem',
borderRadius: theme('borderRadius.md'),
'&:hover': {
color: theme('colors.zinc.100'),
backgroundColor: theme('colors.teal.800'),
},
},
'li::marker': {
color: theme('colors.teal.900'),
},
},
},
invert: {
css: {
color: theme('colors.zinc.100'),
a: {
color: theme('colors.teal.400'),
backgroundColor: 'rgba(45, 212, 191, 0.05)',
'&:hover': {
color: theme('colors.zinc.900'),
backgroundColor: theme('colors.teal.400'),
},
},
'li::marker': {
color: theme('colors.teal.400'),
},
},
},
}),
boxShadow: {
outer: '0 0 0 0.5rem var(--tw-shadow-color)',
},
},
},
plugins: [Typography],
} satisfies Config;