-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
112 lines (109 loc) · 2.63 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
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
defaultLineHeights: true,
standardFontWeights: true,
},
purge: ["./src/pages/**/*.js", "./src/components/**/*.jsx"],
theme: {
screens: {
sm: "640px",
md: "520px",
mdl: "760px",
lg: "1024px",
xl: "1280px",
xxl: "1380px",
// => @media (min-width: 1280px) { ... }
},
extend: {
colors: {
transparent: "transparent",
current: "currentColor",
black: "#000",
white: "#fff",
primary: {
700: "#15202B",
},
secondary: {
200: "#1F253B",
700: "#865DCA",
},
},
fontFamily: {
sans: ["poppins", ...defaultTheme.fontFamily.sans],
},
spacing: {
21: "5.25rem",
84: "21rem",
91: "22.75rem",
},
maxHeight: (theme, { breakpoints }) => ({
none: "none",
xs: "20rem",
sm: "24rem",
md: "28rem",
lg: "32rem",
xl: "36rem",
"2xl": "42rem",
"3xl": "48rem",
"4xl": "56rem",
"5xl": "64rem",
"6xl": "72rem",
full: "100%",
...breakpoints(theme("screens")),
}),
},
typography: (theme) => ({
default: {
css: {
image: {
width: "100%",
},
color: theme("colors.gray.800"),
a: {
color: theme("colors.secondary.700"),
"&:hover": {
color: theme("colors.secondary.200"),
},
},
},
},
}),
},
variants: {
display: ["responsive", "hover", "focus", "group-hover"],
backgroundColor: [
"responsive",
"hover",
"focus",
"group-hover",
"focus-within",
"odd",
],
backgroundOpacity: [
"responsive",
"hover",
"focus",
"active",
"group-hover",
],
visibility: ["responsive", "hover", "focus", "group-hover"],
borderWidth: ["responsive", "odd", "hover", "focus", "odd"],
borderRadius: ["responsive", "hover", "focus"],
fontFamily: ["responsive", "hover", "focus"],
padding: ["responsive", "hover", "focus", "group-hover"],
scale: ["responsive", "hover", "focus", "active", "group-hover"],
textColor: [
"responsive",
"hover",
"focus",
"group-hover",
"focus-within",
"odd",
],
translate: ["responsive", "hover", "focus", "active", "group-hover"],
},
plugins: [require("@tailwindcss/ui"), require("@tailwindcss/typography")],
};