-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
122 lines (121 loc) · 3.65 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
117
118
119
120
121
122
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
fontFamily: {
display: ["Camingo", "Source Sans Pro", "Arial", "sans-serif"],
},
fontSize: {
base: "1.125rem",
lg: "1.25rem",
xl: "1.5rem",
"2xl": "1.75rem",
"6xl": "4.25rem",
...defaultTheme.fontSize,
},
maxWidth: {
"1/4": "25%",
"1/2": "50%",
"3/4": "75%",
},
extend: {
colors: {
"neo-black": "#695F5F",
"neo-blue": "#3D9ACC",
"neo-grey": "#969191",
"neo-red": "#E60023",
},
screens: {
print: { raw: "print" },
// => @media print { ... }
},
},
},
plugins: [
function ({ addBase, config }) {
addBase({
body: {
backgroundColor: "#EFEEEE",
color: config("theme.colors.neo-black"),
fontSize: config("theme.fontSize.base"),
lineHeight: config("theme.lineHeight.none"),
},
h1: {
color: config("theme.colors.neo-red"),
fontSize: config("theme.fontSize.6xl"),
lineHeight: config("theme.lineHeight.tight"),
},
h2: {
color: config("theme.colors.neo-red"),
fontSize: config("theme.fontSize.xl"),
},
h3: {
color: config("theme.colors.neo-red"),
fontSize: config("theme.fontSize.xl"),
},
h4: {
color: config("theme.colors.neo-red"),
fontSize: config("theme.fontSize.xl"),
},
h5: {
color: config("theme.colors.neo-red"),
fontSize: config("theme.fontSize.2xl"),
},
a: {
color: config("theme.colors.neo-blue"),
},
"a:hover": {
color: config("theme.colors.neo-red"),
},
button: {
fontSize: config("theme.fontSize.xl"),
},
select: {
fontSize: config("theme.fontSize.xl"),
},
});
},
function ({ addComponents, config }) {
addComponents({
".neo-btn": {
padding: `${config("theme.spacing.1")} ${config("theme.spacing.3")}`,
borderRadius: config("theme.borderRadius.default"),
height: config("theme.spacing.10"),
},
".neo-btn--blue": {
backgroundColor: config("theme.colors.neo-blue"),
color: config("theme.colors.white"),
"&:hover": {
backgroundColor: config("theme.colors.blue.700"),
},
},
".neo-btn--red": {
backgroundColor: config("theme.colors.neo-red"),
color: config("theme.colors.white"),
"&:hover": {
backgroundColor: config("theme.colors.red.700"),
},
},
".neo-input": {
backgroundColor: config("theme.colors.gray.200"),
borderColor: config("theme.colors.neo-grey"),
borderRadius: config("theme.borderRadius.default"),
borderWidth: config("theme.borderWidth.default"),
padding: `${config("theme.spacing.1")} ${config("theme.spacing.2")}`,
height: config("theme.spacing.10"),
},
".neo-select": {
backgroundColor: config("theme.colors.gray.200"),
borderColor: config("theme.colors.neo-grey"),
borderRadius: config("theme.borderRadius.default"),
borderWidth: config("theme.borderWidth.default"),
padding: `${config("theme.spacing.1")} ${config("theme.spacing.2")}`,
height: config("theme.spacing.10"),
},
".neo-checkbox": {
height: config("theme.spacing.10"),
},
});
},
],
};