-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
103 lines (103 loc) · 3.18 KB
/
tailwind.config.js
File metadata and controls
103 lines (103 loc) · 3.18 KB
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
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class"],
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
background: "var(--background)",
foreground: "var(--foreground)",
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
},
destructive: {
DEFAULT: "var(--destructive)",
foreground: "var(--destructive-foreground)",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
},
popover: {
DEFAULT: "var(--popover)",
foreground: "var(--popover-foreground)",
},
card: {
DEFAULT: "var(--card)",
foreground: "var(--card-foreground)",
},
// 霓虹色
neon: {
cyan: "#00ffcc",
green: "#00ff88",
purple: "#a855f7",
pink: "#ff00ff",
blue: "#00d4ff",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
fontFamily: {
sans: ['JetBrains Mono', 'Fira Code', 'SF Mono', 'monospace'],
mono: ['JetBrains Mono', 'Fira Code', 'monospace'],
},
boxShadow: {
'neon-cyan': '0 0 20px rgba(0, 255, 204, 0.5), 0 0 40px rgba(0, 255, 204, 0.3)',
'neon-green': '0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3)',
'neon-purple': '0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3)',
'glow': '0 0 20px rgba(0, 255, 204, 0.1), 0 4px 20px rgba(0, 0, 0, 0.5)',
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
"pulse-glow": {
"0%, 100%": {
boxShadow: "0 0 5px #00ffcc, 0 0 10px #00ffcc",
},
"50%": {
boxShadow: "0 0 20px #00ffcc, 0 0 40px #00ffcc",
},
},
"glitch": {
"0%": { transform: "translate(0)" },
"20%": { transform: "translate(-2px, 2px)" },
"40%": { transform: "translate(-2px, -2px)" },
"60%": { transform: "translate(2px, 2px)" },
"80%": { transform: "translate(2px, -2px)" },
"100%": { transform: "translate(0)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"pulse-glow": "pulse-glow 2s ease-in-out infinite",
"glitch": "glitch 0.3s ease",
},
},
},
plugins: [require("tailwindcss-animate")],
}