-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.cjs
98 lines (96 loc) · 2.34 KB
/
tailwind.config.cjs
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
const colors = require("tailwindcss/colors")
const config = {
mode: "jit",
purge: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
fontSize: {
xs: "0.75rem",
sm: "0.875rem",
base: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem",
"4xl": "2.25rem",
"5xl": "3rem",
"6xl": "4rem",
"7xl": "5rem",
"8xl": "6rem",
},
extend: {
colors: {
primary: "#FF295D",
secondary: "#FFBA02",
background: "#030E29",
"background--faded": "#101254",
faded: "#c6c7c950",
teal: colors.teal,
cyan: colors.cyan,
brown: {
DEFAULT: "#795548",
50: "#efebe9",
},
},
screens: {
"3xl": "1720px",
},
lineHeight: {
hero: "4.5rem",
},
flex: {
layout: "1 0 auto",
1: "1",
},
backgroundImage: (theme) => ({
spots: `
radial-gradient(circle at 10% 30%, ${theme("colors.primary")}25, transparent 35%),
radial-gradient(circle at 95% 40%, ${theme("colors.secondary")}25, transparent 35%),
radial-gradient(circle at 35% 90%, ${theme("colors.primary")}25, transparent 35%),
radial-gradient(circle at 60% 20%, ${theme("colors.secondary")}20, transparent 20%)
`,
}),
typography: (theme) => ({
DEFAULT: {
css: {
p: {
color: "#efebe9",
},
strong: {
color: "#efebe9",
},
h1: {
color: "#ffffff",
},
h2: {
color: "#ffffff",
},
h3: {
color: "#ffffff",
},
h4: {
color: "#ffffff",
},
li: {
color: "#efebe9",
},
a: {
color: theme("colors.primary"),
textDecoration: "none",
"&:hover": {
textDecoration: "initial",
},
},
pre: {
color: "none",
},
code: {
color: "#FFBA02",
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography"), require("@tailwindcss/aspect-ratio")],
}
module.exports = config