-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
100 lines (98 loc) · 2.44 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
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: "var(--color-primary)",
hover: "var(--color-primary-hover)",
},
secondary: {
DEFAULT: "var(--color-secondary)",
hover: "var(--color-secondary-hover)",
},
accent: {
DEFAULT: "var(--color-accent)",
hover: "var(--color-accent-hover)",
},
background: {
DEFAULT: "var(--color-background)",
lighter: "var(--color-background-lighter)",
},
text: {
DEFAULT: "var(--color-text)",
dimmed: "var(--color-text-dimmed)",
},
},
typography: {
DEFAULT: {
css: {
maxWidth: "100ch",
color: "white",
a: {
color: "#3182ce",
"&:hover": {
color: "#2c5282",
},
},
strong: {
color: "white",
},
"ol > li::marker": {
color: "white",
},
"ul > li::marker": {
color: "white",
},
hr: {
borderColor: "white",
},
blockquote: {
color: "white",
borderLeftColor: "#3182ce",
},
h1: {
color: "white",
},
h2: {
color: "white",
},
h3: {
color: "white",
},
h4: {
color: "white",
},
code: {
color: "white",
backgroundColor: "rgba(255, 255, 255, 0.1)",
borderRadius: "0.25rem",
padding: "0.2rem 0.4rem",
},
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
pre: {
backgroundColor: "rgba(255, 255, 255, 0.1)",
code: {
backgroundColor: "transparent",
padding: "0",
},
},
},
},
},
},
},
plugins: [typography],
};
export default config;