-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
104 lines (103 loc) · 2.79 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
const customCss = {
"code::before": false,
"code::after": false,
pre: false,
code: false,
"pre code": false,
"blockquote p:first-of-type::before": false,
"blockquote p:last-of-type::after": false,
"> ul > li > *:first-child": {
marginTop: 0,
},
"> ul > li > *:last-child": {
marginBottom: 0,
},
"> ol > li > *:first-child": {
marginTop: 0,
},
"> ol > li > *:last-child": {
marginBottom: 0,
},
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./lib/**/*.{js,ts}",
"./content/**/*.{md,mdx}",
],
darkMode: ["class"],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
animation: {
// Custom spinner animation (for loading-spinner)
spinner: "spinner 1.2s linear infinite",
},
keyframes: {
// Custom spinner animation (for loading-spinner)
spinner: {
"0%": {
opacity: "1",
},
"100%": {
opacity: "0",
},
},
},
lineHeight: {
7: "30px",
},
colors: {
text: "hsl(var(--color-text))",
muted: "hsl(var(--color-muted))",
info: "hsl(var(--color-info))",
foreground: "hsl(var(--color-foreground))",
primary: "hsl(var(--color-primary))",
secondary: "hsl(var(--color-secondary))",
tertiary: "hsl(var(--color-tertiary))",
background: "hsl(var(--color-background))",
"background-muted": "hsl(var(--color-muted-background))",
"background-subtle": "hsl(var(--color-subtle-background))",
"pre-bg": "#151f28",
"code-bg": "#737d8c2b",
"code-text": "hsl(var(--color-syntax-txt))",
gray: {
DEFAULT: "hsl(var(--color-gray-400))",
100: "hsl(var(--color-gray-100))",
200: "hsl(var(--color-gray-200))",
300: "hsl(var(--color-gray-300))",
400: "hsl(var(--color-gray-400))",
500: "hsl(var(--color-gray-500))",
600: "hsl(var(--color-gray-600))",
700: "hsl(var(--color-gray-700))",
900: "hsl(var(--color-gray-900))",
1000: "hsl(var(--color-gray-1000))",
},
},
fontFamily: {
mono: ["var(--font-mono)"],
body: ["var(--font-body)"],
heading: ["var(--font-body)"],
},
typography: ({ theme }) => ({
DEFAULT: { css: customCss },
sm: { css: customCss },
lg: { css: customCss },
xl: { css: customCss },
"2xl": { css: customCss },
}),
},
},
plugins: [require("@tailwindcss/typography")],
}