generated from tannd-ds/nuxt-ui-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
55 lines (53 loc) · 1.39 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
/** @type {import('tailwindcss').Config} */
function withOpacity(variable_name) {
return ({ opacityValue }) => {
if (opacityValue) return `rgba(var(${variable_name}), ${opacityValue})`;
return `rgba(var(${variable_name}))`;
};
}
module.exports = {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
theme: {
extend: {
colors: {
toxic: {
50: '#f8ffe6',
100: '#f0ffc8',
200: '#dffe98',
300: '#c7f95d',
400: '#aeef2c',
500: '#95de0d',
600: '#6eab05',
700: '#548209',
800: '#44660e',
900: '#395611',
950: '#1c3003',
},
},
textColor: {
skin: {
base: withOpacity("--color-text-base"),
muted: withOpacity("--color-text-muted"),
inverted: withOpacity("--color-text-inverted"),
highlight: withOpacity("--color-text-highlight"),
},
},
backgroundColor: {
skin: {
fill: withOpacity("--color-fill"),
"button-accent": withOpacity("--color-button-accent"),
"button-hover": withOpacity("--color-button-hover"),
"button-muted": withOpacity("--color-button-muted"),
},
},
},
},
plugins: [],
};