-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
83 lines (82 loc) · 2.55 KB
/
tailwind.config.js
File metadata and controls
83 lines (82 loc) · 2.55 KB
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
import typography from '@tailwindcss/typography';
export default {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
darkMode: ['class', '[data-theme="dark"]'],
plugins: [
typography,
],
theme: {
extend: {
colors: {
accent: "hsl(var(--theme-accent) / <alpha-value>)",
"accent-2": "hsl(var(--theme-accent-2) / <alpha-value>)",
bgColor: "hsl(var(--theme-bg) / <alpha-value>)",
link: "hsl(var(--theme-link) / <alpha-value>)",
quote: "hsl(var(--theme-quote) / <alpha-value>)",
textColor: "hsl(var(--theme-text) / <alpha-value>)",
},
fontFamily: {
mono: ['ui-monospace', 'SFMono-Regular', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace'],
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
textDecoration: 'underline',
textUnderlineOffset: '2px',
'&:hover': {
textDecorationThickness: '2px',
},
},
blockquote: {
borderLeftWidth: '4px',
borderLeftColor: theme('colors.quote'),
fontStyle: 'italic',
},
code: {
border: '1px dotted #666',
borderRadius: '2px',
padding: '0.2em 0.4em',
fontSize: '0.875em',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
hr: {
borderTopStyle: 'dashed',
},
strong: {
fontWeight: '700',
},
'tbody tr': {
borderBottomWidth: 'none',
},
thead: {
borderBottomWidth: 'none',
},
'thead th': {
borderBottom: '1px dashed #666',
fontWeight: '700',
},
},
},
cactus: {
css: {
'--tw-prose-body': theme('colors.textColor / 1'),
'--tw-prose-bold': theme('colors.textColor / 1'),
'--tw-prose-bullets': theme('colors.textColor / 1'),
'--tw-prose-code': theme('colors.textColor / 1'),
'--tw-prose-headings': theme('colors.accent-2 / 1'),
'--tw-prose-hr': '0.5px dashed #666',
'--tw-prose-links': theme('colors.textColor / 1'),
'--tw-prose-quotes': theme('colors.quote / 1'),
'--tw-prose-th-borders': '#666',
},
},
}),
},
},
};