generated from HugoRCD/nuxtjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
62 lines (61 loc) · 1.7 KB
/
tailwind.config.js
File metadata and controls
62 lines (61 loc) · 1.7 KB
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
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
module.exports = {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
"./app.vue",
],
theme: {
extend: {
textColor: {
primary: "var(--font-primary)",
muted: "var(--font-muted)",
placeholder: "var(--font-placeholder)",
inverted: "var(--font-inverted)",
accent: withOpacity("--accent-color"),
"accent-hover": withOpacity("--accent-color-hover"),
},
backgroundColor: {
primary: "var(--bg-primary)",
"primary-opacity": withOpacity("--bg-primary-opacity"),
secondary: "var(--bg-secondary)",
accent: withOpacity("--accent-color"),
"accent-hover": withOpacity("--accent-color-hover"),
"accent-faded": "var(--accent-color-faded)",
transparent: "transparent",
},
ringColor: {
accent: withOpacity("--accent-color"),
transparent: "transparent",
},
borderColor: {
primary: "var(--border-primary)",
"primary-hover": "var(--border-primary-hover)",
muted: "var(--border-muted)",
accent: withOpacity("--accent-color"),
"accent-faded": "var(--accent-color-faded)",
transparent: "transparent",
},
borderWidth: {
sm: "1px",
md: "2px",
},
screens: {
mobile: "320px",
tablet: "960px",
desktop: "1280px",
},
},
},
plugins: [],
};