-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
73 lines (72 loc) · 1.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
export const content = ["./app/**/*.{js,ts,jsx,tsx,mdx}", "./components/**/*.{js,ts,jsx,tsx,mdx}"];
export const theme = {
extend: {
animation: {
"spin-slow": "spin 15s linear infinite",
shimmer: "shimmer 1.5s linear infinite",
grow: "grow 3s linear",
"fade-in": "fade-in 200ms ease-in-out",
"dot-flashing": "dot-flashing 1s infinite linear alternate",
"infinite-scroll": "infinite-scroll 20s linear infinite",
},
colors: {
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
btn: {
background: "hsl(var(--btn-background))",
"background-hover": "hsl(var(--btn-background-hover))",
},
},
boxShadow: {
modal: "0 4px 20px 4px rgba(0, 0, 0, 0.1)",
"centered-sm": "rgba(99, 99, 99, 0.15) 0 0 4px",
"centered-md": "rgba(99, 99, 99, 0.15) 0 0 8px",
"centered-lg": "rgba(99, 99, 99, 0.15) 0 0 16px",
"dark-sm": "rgba(0,0,0,.15) 0 2px 3px 0",
"centered-white": "0 0 0 4px white",
},
width: {
100: "400px",
},
keyframes: {
shimmer: {
"100%": { "-webkit-mask-position": "left" },
},
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
"dot-flashing": {
"0%": {
opacity: "1",
},
"30%, 100%": {
opacity: "0.2",
},
},
grow: {
"0%": {
transform: "scale(0.2)",
},
"100%": {
transform: "scale(1)",
},
},
"infinite-scroll": {
from: {
transform: "translateX(0)",
},
to: {
transform: "translateX(-50%)",
},
},
},
},
};
export const plugins = [
plugin(function ({ addVariant }) {
addVariant("link-active", '&[data-link-active="true"]');
}),
];