-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
175 lines (175 loc) · 6.5 KB
/
Copy pathtailwind.config.js
File metadata and controls
175 lines (175 loc) · 6.5 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
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
orbitron: ['Orbitron', 'monospace'],
inter: ['Inter', 'sans-serif'],
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
animation: {
float: 'float 3s ease-in-out infinite',
glow: 'glow 2s ease-in-out infinite',
holographic: 'holographic 3s ease-in-out infinite',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0px)' },
'50%': { transform: 'translateY(-10px)' },
},
glow: {
'0%, 100%': { filter: 'drop-shadow(0 0 5px rgb(34 211 238 / 0.5))' },
'50%': {
filter:
'drop-shadow(0 0 20px rgb(34 211 238 / 0.8)) drop-shadow(0 0 30px rgb(34 211 238 / 0.6))',
},
},
holographic: {
'0%, 100%': { backgroundPosition: '0% 50%' },
'50%': { backgroundPosition: '100% 50%' },
},
},
boxShadow: {
'glow-cyan':
'0 0 20px rgb(34 211 238 / 0.3), 0 0 40px rgb(34 211 238 / 0.2), 0 0 60px rgb(34 211 238 / 0.1)',
'glow-purple':
'0 0 20px rgb(168 85 247 / 0.3), 0 0 40px rgb(168 85 247 / 0.2), 0 0 60px rgb(168 85 247 / 0.1)',
'glow-pink':
'0 0 20px rgb(236 72 153 / 0.3), 0 0 40px rgb(236 72 153 / 0.2), 0 0 60px rgb(236 72 153 / 0.1)',
},
textShadow: {
'neon-cyan':
'0 0 5px rgb(34 211 238), 0 0 10px rgb(34 211 238), 0 0 15px rgb(34 211 238)',
'neon-purple':
'0 0 5px rgb(168 85 247), 0 0 10px rgb(168 85 247), 0 0 15px rgb(168 85 247)',
},
},
},
plugins: [
function ({ addUtilities, addComponents, theme }) {
const newUtilities = {
// Sci-fi text effects
'.text-holographic': {
background:
'linear-gradient(45deg, rgb(34 211 238), rgb(168 85 247), rgb(236 72 153), rgb(34 211 238))',
backgroundSize: '200% 200%',
'-webkit-background-clip': 'text',
'background-clip': 'text',
'-webkit-text-fill-color': 'transparent',
animation: 'holographic 3s ease-in-out infinite',
},
'.text-neon-cyan': {
color: 'rgb(34 211 238)',
textShadow:
'0 0 5px rgb(34 211 238), 0 0 10px rgb(34 211 238), 0 0 15px rgb(34 211 238)',
},
'.text-neon-purple': {
color: 'rgb(168 85 247)',
textShadow:
'0 0 5px rgb(168 85 247), 0 0 10px rgb(168 85 247), 0 0 15px rgb(168 85 247)',
},
// Sci-fi backgrounds (theme-aware)
'.bg-sci-fi-dark': {
background:
'linear-gradient(135deg, rgb(15 23 42), rgb(88 28 135), rgb(15 23 42))',
},
// Light mode sci-fi background
':root:not(.dark) .bg-sci-fi-dark': {
background:
'linear-gradient(135deg, rgb(241 245 249), rgb(233 213 255), rgb(241 245 249))',
},
'.bg-glass': {
background: 'rgba(255, 255, 255, 0.05)',
backdropFilter: 'blur(4px)',
border: '1px solid rgba(255, 255, 255, 0.1)',
},
// Light mode glass backgrounds
':root:not(.dark) .bg-glass': {
background: 'rgba(0, 0, 0, 0.03)',
border: '1px solid rgba(0, 0, 0, 0.08)',
},
'.bg-glass-strong': {
background: 'rgba(255, 255, 255, 0.1)',
backdropFilter: 'blur(8px)',
border: '1px solid rgba(255, 255, 255, 0.2)',
},
':root:not(.dark) .bg-glass-strong': {
background: 'rgba(0, 0, 0, 0.05)',
border: '1px solid rgba(0, 0, 0, 0.1)',
},
// Sci-fi borders and glows
'.border-neon': {
border: '1px solid rgba(34, 211, 238, 0.5)',
boxShadow: '0 0 10px rgba(34, 211, 238, 0.25)',
},
'.border-neon-purple': {
border: '1px solid rgba(168, 85, 247, 0.5)',
boxShadow: '0 0 10px rgba(168, 85, 247, 0.25)',
},
'.glow-cyan': {
boxShadow:
'0 0 20px rgba(34, 211, 238, 0.3), 0 0 40px rgba(34, 211, 238, 0.2), 0 0 60px rgba(34, 211, 238, 0.1)',
},
'.glow-purple': {
boxShadow:
'0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.2), 0 0 60px rgba(168, 85, 247, 0.1)',
},
'.glow-pink': {
boxShadow:
'0 0 20px rgba(236, 72, 153, 0.3), 0 0 40px rgba(236, 72, 153, 0.2), 0 0 60px rgba(236, 72, 153, 0.1)',
},
// Hover effects
'.hover-glow-cyan:hover': {
boxShadow:
'0 0 20px rgba(34, 211, 238, 0.3), 0 0 40px rgba(34, 211, 238, 0.2), 0 0 60px rgba(34, 211, 238, 0.1)',
},
'.hover-glow-purple:hover': {
boxShadow:
'0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.2), 0 0 60px rgba(168, 85, 247, 0.1)',
},
// Custom scrollbar (dark mode)
'.scrollbar-sci-fi': {
scrollbarWidth: 'thin',
scrollbarColor: 'rgb(34 211 238) rgb(30 41 59)',
},
'.scrollbar-sci-fi::-webkit-scrollbar': {
width: '8px',
},
'.scrollbar-sci-fi::-webkit-scrollbar-track': {
background: 'rgba(30, 41, 59, 0.5)',
},
'.scrollbar-sci-fi::-webkit-scrollbar-thumb': {
background:
'linear-gradient(180deg, rgb(34 211 238), rgb(168 85 247))',
borderRadius: '4px',
},
'.scrollbar-sci-fi::-webkit-scrollbar-thumb:hover': {
background:
'linear-gradient(180deg, rgb(103 232 249), rgb(196 181 253))',
},
// Light mode scrollbar
':root:not(.dark) .scrollbar-sci-fi': {
scrollbarColor: 'rgb(99 102 241) rgb(226 232 240)',
},
':root:not(.dark) .scrollbar-sci-fi::-webkit-scrollbar-track': {
background: 'rgba(226, 232, 240, 0.8)',
},
':root:not(.dark) .scrollbar-sci-fi::-webkit-scrollbar-thumb': {
background:
'linear-gradient(180deg, rgb(99 102 241), rgb(168 85 247))',
},
':root:not(.dark) .scrollbar-sci-fi::-webkit-scrollbar-thumb:hover': {
background:
'linear-gradient(180deg, rgb(129 140 248), rgb(192 132 252))',
},
}
addUtilities(newUtilities)
},
],
}