-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
69 lines (68 loc) · 1.62 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
darkMode: "class",
theme: {
spacing: {
0: "0",
auto: "auto",
full: "100%",
1: "5px",
2: "10px",
3: "15px",
4: "20px",
5: "25px",
6: "30px",
8: "40px",
10: "50px",
12: "60px",
15: "75px",
16: "80px",
20: "100px",
24: "120px",
32: "160px",
40: "200px",
48: "240px",
56: "280px",
64: "320px",
// You can add more values as needed
},
// This ensures your spacing system is consistent across all utilities
margin: ({ theme }) => ({
...theme("spacing"),
}),
padding: ({ theme }) => ({
...theme("spacing"),
}),
width: ({ theme }) => ({
...theme("spacing"),
}),
height: ({ theme }) => ({
...theme("spacing"),
}),
gap: ({ theme }) => ({
...theme("spacing"),
}),
extend: {
animation: {
marquee: "marquee var(--duration) linear infinite",
"marquee-vertical": "marquee-vertical var(--duration) linear infinite",
},
keyframes: {
marquee: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
"marquee-vertical": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-100% - var(--gap)))" },
},
},
colors: {
foreground: "var(--foreground)",
background: "var(--background)",
},
},
},
plugins: [],
};