-
Notifications
You must be signed in to change notification settings - Fork 16
/
tailwind.config.js
77 lines (73 loc) · 1.61 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
purge: {
preserveHtmlElements: true,
enabled: true,
content: ["./src/**/*.{ts,tsx}"],
},
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
black: "#000",
white: "#fff",
gray: colors.coolGray,
red: colors.red,
blue: colors.blue,
yellow: colors.amber,
indigo: colors.indigo,
oragne: colors.orange,
purple: colors.purple,
pink: colors.pink,
green: colors.green,
white: colors.white,
black: colors.black,
},
extend: {
scale: {
102: "1.02",
},
truncate: {
lines: {
1: "1",
2: "2",
3: "3",
5: "5",
8: "8",
},
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("tailwindcss-truncate-multiline")(),
],
corePlugins: {
alignContent: true,
gradientColorStops: true,
},
variants: {
gradientColorStops: [
"responsive",
"hover",
"focus",
"active",
"group-hover",
],
boxShadow: ["responsive", "hover", "focus"],
outline: ["responsive", "focus"],
backgroundColor: ["responsive", "hover", "focus"],
borderColor: [
"responsive",
"hover",
"focus",
"focus-within",
"active",
"group-hover",
],
borderWidth: ["responsive", "last", "hover", "focus", "focus-within"],
margin: ["responsive", "last"],
alignContent: ["responsive", "hover", "focus"],
},
};