-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathtailwind.config.cjs
212 lines (211 loc) · 6.79 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
safelist: ["dark"],
content: [
"./src/**/*.{html,js,svelte,ts}",
"./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1536px",
},
},
extend: {
screens: {
"3xl": "1900px",
},
colors: {
border: "hsl(var(--border) / <alpha-value>)",
input: "hsl(var(--input) / <alpha-value>)",
ring: "hsl(var(--ring) / <alpha-value>)",
background: "hsl(var(--background) / <alpha-value>)",
foreground: "hsl(var(--foreground) / <alpha-value>)",
primary: "#1E222D",
secondary: "#2A2E39",
odd: "#121217",
table: "#18181D",
default: "#09090B",
positive: "#00FC50",
negative: "#FF2F1F",
neutral: "#FFA838",
destructive: {
DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
foreground: "hsl(var(--destructive-foreground) / <alpha-value>)",
},
muted: {
DEFAULT: "hsl(var(--muted) / <alpha-value>)",
foreground: "hsl(var(--muted-foreground) / <alpha-value>)",
},
accent: {
DEFAULT: "hsl(var(--accent) / <alpha-value>)",
foreground: "hsl(var(--accent-foreground) / <alpha-value>)",
},
popover: {
DEFAULT: "hsl(var(--popover) / <alpha-value>)",
foreground: "hsl(var(--popover-foreground) / <alpha-value>)",
},
card: {
DEFAULT: "hsl(var(--card) / <alpha-value>)",
foreground: "hsl(var(--card-foreground) / <alpha-value>)",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
fraction: {
32: "1/32",
},
animation: {
marquee: "marquee var(--duration) linear infinite",
"fade-in-once": "fadeIn 0.5s ease-in-out forwards",
flip: "flip 6s infinite steps(2, end)",
kitrotate: "kitrotate 3s linear infinite both",
shine: "shine 4s linear infinite",
slide: "slide 40s linear infinite",
spotlight: "spotlight 2s ease .75s 1 forwards",
"border-width": "border-width 3s infinite alternate",
"text-gradient": "text-gradient 2s linear infinite",
"text-shake": "text-shake 1s ease 1",
"text-glitch-to": "text-glitch-to 0.6s ease-in-out infinite",
"text-glitch-from": "text-glitch-from 0.6s ease-in-out infinite",
"text-scale": "text-scale 1s linear infinite forwards",
spin: "spin 2s linear infinite",
// From UI-Snippets : https://ui.ibelick.com
// 'text-gradient': 'text-gradient 1.5s linear infinite',
"background-shine": "background-shine 2s linear infinite",
"pulse-slow": "pulse 6s infinite cubic-bezier(0.4, 0, 0.6, 1)",
},
keyframes: {
marquee: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
fadeIn: {
"0%": {
opacity: "0",
transform: "translateY(25px) scale(0.98)",
},
"100%": {
opacity: "1",
transform: "translateY(0) scale(1)",
},
},
spin: {
"0%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(360deg)" },
},
flip: {
to: {
transform: "rotate(360deg)",
},
},
kitrotate: {
to: {
transform: "rotate(90deg)",
},
},
shine: {
from: {
backgroundPosition: "0 0",
},
to: {
backgroundPosition: "-200% 0",
},
},
"border-width": {
from: {
width: "10px",
opacity: "0",
},
to: {
width: "100px",
opacity: "1",
},
},
"text-gradient": {
to: {
backgroundPosition: "200% center",
},
},
"text-shake": {
"15%": { transform: "translateX(5px)" },
"30%": { transform: "translateX(-5px)" },
"50%": { transform: "translateX(3px)" },
"80%": { transform: "translateX(2px)" },
"100%": { transform: "translateX(0)" },
},
"text-glitch-to": {
from: {
transform: "translateY(0)",
},
to: {
transform: "translateY(-100%)",
},
},
"text-glitch-from": {
from: {
transform: "translateY(100%)",
},
to: {
transform: "translateY(0)",
},
},
"text-scale": {
"0%": {
transform: "scaleX(0)",
transformOrigin: "bottom left",
},
"25%": {
transform: "scaleX(1)",
transformOrigin: "bottom left",
},
"75%": {
transform: "scaleX(1)",
transformOrigin: "bottom right",
},
"100%": {
transform: "scaleX(0)",
transformOrigin: "bottom right",
},
},
slide: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
spotlight: {
"0%": {
opacity: "0",
transform: "translate(-72%, -62%) scale(0.5)",
},
"100%": {
opacity: "1",
transform: "translate(-50%,-40%) scale(1)",
},
},
// For Gradient Input, UI-Snippets : https://ui.ibelick.com
"background-shine": {
from: { backgroundPosition: "0 0" },
to: { backgroundPosition: "-200% 0" },
},
},
},
},
plugins: [require("flowbite/plugin"), require("daisyui")],
darkMode: "class",
daisyui: {
themes: false, // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: "dark", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag and install `tailwindcss-flip` plugin for Tailwind CSS.
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: true, // Shows info about daisyUI version and used config in the console when building your CSS
},
};