-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
122 lines (118 loc) · 2.97 KB
/
tailwind.config.cjs
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 colors = require('tailwindcss/colors');
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
],
options: {
safelist: [/data-theme$/],
},
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
black: colors.black,
white: colors.white,
red: colors.red,
dark: "var(--cl-dark)",
},
extend: {
fontSize: {
xxs: "10px",
xxsm: "9px",
xxxs: "8px",
},
gridTemplateColumns: {
auth: "1fr 540px",
main: "270px 1fr",
"card-selector": "1fr 150px",
},
gridTemplateRows: {
main: "72px 1fr",
},
boxShadow: {
block: "0px 4px 40px 0px rgba(0, 0, 0, 0.05)",
blockHover: "0px 4px 40px 0px rgba(41, 146, 250, 0.15)",
top: "0px 1px 40px 0px rgba(0, 0, 0, 0.1)",
},
animation: {
blob: "blob 6s infinite",
spinLogo: "spinLogo 1.2s linear infinite"
},
zIndex: {
55: 55,
65: 65,
75: 75,
},
keyframes: {
blob: {
"0%": {
transform: "translate(0px, 0px) scale(1)",
},
"33%": {
transform: "translate(30px, -50px) scale(1.1)",
},
"66%": {
transform: "translate(-20px, 20px) scale(0.9)",
},
"100%": {
transform: "translate(0px, 0px) scale(1)",
},
},
spinLogo: {
"0%": {
transform: "rotate(0deg) scale(1)"
},
"25%": {
transform: "rotate(90deg) scale(1.2)"
},
"50%": {
transform: "rotate(180deg) scale(1.4)"
},
"75%": {
transform: "rotate(270deg) scale(1.2)"
},
"100%": {
transform: "rotate(360deg) scale(1)"
}
}
},
},
},
plugins: [
plugin(function ({ addUtilities, e, theme }) {
const colors = theme("colors");
const strokeColors = Object.keys(colors).reduce((acc, key) => {
if (typeof colors[key] === "string") {
return {
...acc,
[`.stroke-${e(key)}`]: {
stroke: colors[key],
},
};
}
const variants = Object.keys(colors[key]);
const getVariant = (variant) => {
return variant === "DEFAULT" ? "" : `-${variant}`;
};
return {
...acc,
...variants.reduce(
(a, variant) => ({
...a,
[`.stroke-${e(key)}${getVariant(variant)}`]: {
stroke: colors[key][variant],
},
}),
{}
),
};
}, {});
addUtilities(strokeColors);
}),
require("tailwindcss-labeled-groups")(["sub", "btn"]),
require("daisyui"),
],
}