-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
116 lines (115 loc) · 3.04 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
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
105
106
107
108
109
110
111
112
113
114
115
116
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { boxShadow, fontSize } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss/tailwind-config').TailwindConfig} */
module.exports = {
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
colors: {
gray: {
"custom-1": "#282c35",
},
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme("colors.pink.700"),
boxShadow: "0 1px 0 0 currentColor",
textDecoration: "none",
"&:hover": {
boxShadow: "none",
},
},
ol: {
li: {
"&:before": { color: theme("colors.gray.900") },
},
},
ul: {
li: {
"&:before": { backgroundColor: theme("colors.gray.900") },
},
},
},
},
dark: {
css: {
color: theme("colors.gray.200"),
"h1,h2,h3,h4": {
color: theme("colors.gray.200"),
},
blockquote: {
color: theme("colors.gray.200"),
},
a: {
color: theme("colors.pink.300"),
},
ol: {
li: {
"&:before": { color: theme("colors.gray.200") },
},
},
ul: {
li: {
"&:before": { backgroundColor: theme("colors.gray.200") },
},
},
strong: { color: theme("colors.gray.200") },
},
},
}),
fontFamily: {
sans: ["montserrat", "-apple-system"],
serif: ["charter", "-apple-system"],
default: ["system-ui"],
mono: ["monospace"],
system: ["system-ui"],
},
boxShadow: {
"3xl": "0 0px 60px -15px rgba(0, 0, 0, 0.3)",
},
keyframes: {
gradient: {
"0%": {
"background-position": "0% 0%",
"background-size": "100% 100%",
},
"50%": {
"background-position": "100% 50%",
"background-size": "300% 300%",
},
"100%": {
"background-position": "0% 0%",
"background-size": "100% 100%",
},
},
},
animation: {
gradient: "gradient 15s ease infinite",
},
},
// fontFamily: {
// sans: ["montserrat", ...fontFamily.sans],
// serif: ["charter", ...fontFamily.serif],
// default: ["system-ui"],
// mono: ["mono"],
// },
fontSize: {
...fontSize,
xxl: "1.675rem",
},
boxShadow: {
...boxShadow,
link: "0 1px 0 0 currentColor",
cm: "0 2px 15px 0 rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
},
},
variants: {
extend: {},
typography: ["dark"],
},
important: true,
plugins: [require("@tailwindcss/typography")],
};