-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
78 lines (76 loc) · 1.88 KB
/
tailwind.config.js
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
import typography from '@tailwindcss/typography'
/** @type {import('tailwindcss').Config} */
const config ={
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.slate.700'),
a: {
color: theme('colors.sky.500'),
'&:hover': {
color: theme('colors.sky.700'),
},
},
pre: {
color: theme('colors.slate.600'),
backgroundColor: theme('colors.slate.100'),
'&::-webkit-scrollbar': {
display: 'none',
},
},
code: {
color: theme('colors.teal.400'),
padding: theme('spacing.1'),
paddingLeft: theme('spacing.2'),
paddingRight: theme('spacing.2'),
borderRadius: theme('spacing.1'),
fontWeight: 600,
color: theme('colors.cyan.700'),
backgroundColor: theme('colors.slate.100'),
},
'code::before': false,
'code::after': false,
'h1,h2,h3,h4': {
width: '100%',
color: theme('colors.slate.800'),
'scroll-margin-top': theme('spacing.16'),
},
},
},
dark: {
class: 'dark',
css: {
color: theme('colors.slate.300'),
a: {
color: theme('colors.sky.400'),
transition: 'color 0.15s',
'&:hover': {
color: theme('colors.sky.500'),
},
},
pre: {
color: theme('colors.slate.200'),
backgroundColor: theme('colors.slate.800'),
},
code: {
color: theme('colors.cyan.400'),
backgroundColor: theme('colors.slate.800'),
},
'h1,h2,h3,h4': {
color: theme('colors.slate.200'),
},
},
},
}),
},
},
variants: {
typography: ['dark'],
},
plugins: [typography],
}
export default config