|
6 | 6 | /* Theme --- */ |
7 | 7 |
|
8 | 8 | @layer base { |
9 | | - :root { |
10 | | - /* Colors */ |
11 | | - --color-surface-50: 255 255 255; |
12 | | - --color-surface-100: 243 243 247; |
13 | | - --color-surface-200: 220 223 236; |
14 | | - --color-surface-300: 176 178 195; |
15 | | - --color-surface-400: 191 195 217; |
16 | | - --color-surface-500: 87 89 105; |
17 | | - --color-surface-600: 45 46 58; |
18 | | - --color-surface-700: 39 41 53; |
19 | | - --color-surface-800: 31 32 40; |
20 | | - --color-surface-900: 24 25 31; |
21 | | - --color-surface-950: 18 18 21; |
22 | | - } |
23 | | - /* Gradients */ |
24 | | - /* .light-xxx-gradient { |
| 9 | + :root { |
| 10 | + /* Colors */ |
| 11 | + --color-surface-50: 255 255 255; |
| 12 | + --color-surface-100: 243 243 247; |
| 13 | + --color-surface-200: 220 223 236; |
| 14 | + --color-surface-300: 176 178 195; |
| 15 | + --color-surface-400: 191 195 217; |
| 16 | + --color-surface-500: 87 89 105; |
| 17 | + --color-surface-600: 45 46 58; |
| 18 | + --color-surface-700: 39 41 53; |
| 19 | + --color-surface-800: 31 32 40; |
| 20 | + --color-surface-900: 24 25 31; |
| 21 | + --color-surface-950: 18 18 21; |
| 22 | + } |
| 23 | + /* Gradients */ |
| 24 | + /* .light-xxx-gradient { |
25 | 25 | background-image: linear-gradient(45deg, #eff6ff, #ecfeff, #cffafe, #f0fdfa, #faf5ff); |
26 | 26 | } |
27 | 27 | .dark-xxx-gradient { |
|
32 | 32 | rgba(50, 200, 255, 0.25) |
33 | 33 | ); |
34 | 34 | } */ |
35 | | - .dark-nav-gradient { |
36 | | - background-image: linear-gradient( |
37 | | - 195deg, |
38 | | - hsl(348deg 10% 90%) 0%, |
39 | | - hsl(351deg 31% 80%) 2%, |
40 | | - hsl(325deg 45% 69%) 6%, |
41 | | - hsl(330deg 32% 57%) 12%, |
42 | | - hsl(320deg 22% 48%) 19%, |
43 | | - hsl(285deg 22% 33%) 27%, |
44 | | - hsl(240deg 20% 22%) 38%, |
45 | | - hsl(232deg 18% 17%) 50%, |
46 | | - hsl(232deg 13% 14%) 68%, |
47 | | - hsl(233deg 15% 14%) 100% |
48 | | - ); |
49 | | - } |
50 | | - .light-nav-gradient { |
51 | | - background-image: linear-gradient( |
52 | | - 195deg, |
53 | | - rgb(245, 245, 255) 0%, |
54 | | - rgb(245, 200, 255) 2%, |
55 | | - rgb(255 210 225) 6%, |
56 | | - rgb(255 227 225) 12%, |
57 | | - rgb(249, 246, 248) 19%, |
58 | | - rgb(240, 240, 255) 27%, |
59 | | - rgb(245, 245, 255) 38%, |
60 | | - rgb(240, 252, 253) 50%, |
61 | | - rgb(252, 252, 253) 68%, |
62 | | - rgb(255, 255, 255) 100% |
63 | | - ); |
64 | | - } |
| 35 | + .dark-nav-gradient { |
| 36 | + background-image: linear-gradient( |
| 37 | + 195deg, |
| 38 | + hsl(348deg 10% 90%) 0%, |
| 39 | + hsl(351deg 31% 80%) 2%, |
| 40 | + hsl(325deg 45% 69%) 6%, |
| 41 | + hsl(330deg 32% 57%) 12%, |
| 42 | + hsl(320deg 22% 48%) 19%, |
| 43 | + hsl(285deg 22% 33%) 27%, |
| 44 | + hsl(240deg 20% 22%) 38%, |
| 45 | + hsl(232deg 18% 17%) 50%, |
| 46 | + hsl(232deg 13% 14%) 68%, |
| 47 | + hsl(233deg 15% 14%) 100% |
| 48 | + ); |
| 49 | + } |
| 50 | + .light-nav-gradient { |
| 51 | + background-image: linear-gradient( |
| 52 | + 195deg, |
| 53 | + rgb(245, 245, 255) 0%, |
| 54 | + rgb(245, 200, 255) 2%, |
| 55 | + rgb(255 210 225) 6%, |
| 56 | + rgb(255 227 225) 12%, |
| 57 | + rgb(249, 246, 248) 19%, |
| 58 | + rgb(240, 240, 255) 27%, |
| 59 | + rgb(245, 245, 255) 38%, |
| 60 | + rgb(240, 252, 253) 50%, |
| 61 | + rgb(252, 252, 253) 68%, |
| 62 | + rgb(255, 255, 255) 100% |
| 63 | + ); |
| 64 | + } |
65 | 65 | } |
66 | 66 |
|
67 | 67 | /* Globals --- */ |
68 | 68 |
|
69 | 69 | body { |
70 | | - @apply text-surface-700 dark:text-surface-300; |
71 | | - @apply bg-surface-200 dark:bg-surface-800; |
| 70 | + @apply text-surface-700 dark:text-surface-300; |
| 71 | + @apply bg-surface-200 dark:bg-surface-800; |
72 | 72 | } |
73 | 73 |
|
74 | 74 | /* Typography --- */ |
75 | 75 |
|
76 | 76 | /* Headings */ |
77 | 77 | .h1 { |
78 | | - @apply text-rose-500 font-bold text-5xl; |
| 78 | + @apply text-rose-500 font-bold text-5xl; |
79 | 79 | } |
80 | 80 | .h1 span { |
81 | | - @apply bg-gradient-to-br from-rose-400 to-purple-400/90 bg-clip-text text-transparent box-decoration-clone; |
| 81 | + @apply bg-gradient-to-br from-rose-400 to-purple-400/90 bg-clip-text text-transparent box-decoration-clone; |
82 | 82 | } |
83 | 83 | .h2 { |
84 | | - @apply text-black dark:text-white font-bold text-3xl; |
| 84 | + @apply text-black dark:text-white font-bold text-3xl; |
85 | 85 | } |
86 | 86 | .h3 { |
87 | | - @apply text-black dark:text-white font-bold text-xl; |
| 87 | + @apply text-black dark:text-white font-bold text-xl; |
88 | 88 | } |
89 | 89 |
|
90 | 90 | /* Anchors */ |
91 | 91 | #page-container .anchor { |
92 | | - @apply underline; |
93 | | - @apply text-rose-700 hover:text-black; |
94 | | - @apply dark:text-rose-300 hover:dark:text-white; |
| 92 | + @apply underline; |
| 93 | + @apply text-rose-700 hover:text-black; |
| 94 | + @apply dark:text-rose-300 hover:dark:text-white; |
95 | 95 | } |
96 | 96 | footer .anchor { |
97 | | - @apply text-blue-600 dark:text-blue-400 underline; |
| 97 | + @apply text-blue-600 dark:text-blue-400 underline; |
98 | 98 | } |
99 | 99 |
|
100 | 100 | /* Highlight */ |
101 | 101 | .highlight { |
102 | | - @apply text-black dark:text-white; |
| 102 | + @apply text-black dark:text-white; |
103 | 103 | } |
104 | 104 |
|
105 | 105 | /* Pre & Code */ |
106 | 106 | .pre { |
107 | | - @apply bg-black text-white p-4 rounded; |
| 107 | + @apply bg-black text-white p-4 rounded; |
108 | 108 | } |
109 | 109 | .code { |
110 | | - @apply bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
111 | | - @apply text-sm text-emerald-500 dark:text-emerald-300; |
| 110 | + @apply bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
| 111 | + @apply text-sm text-emerald-500 dark:text-emerald-300; |
112 | 112 | } |
113 | 113 |
|
114 | 114 | /* Keyboard */ |
115 | 115 | .kbd { |
116 | | - @apply text-sm bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
| 116 | + @apply text-sm bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
117 | 117 | } |
118 | 118 |
|
119 | 119 | /* Unordered List */ |
120 | 120 | .ul { |
121 | | - @apply list-disc list-outside ml-7 space-y-4; |
| 121 | + @apply list-disc list-outside ml-7 space-y-4; |
122 | 122 | } |
123 | 123 |
|
124 | 124 | /* Utility Classes */ |
125 | 125 |
|
126 | 126 | /* Preview Examples */ |
127 | 127 | .preview { |
128 | | - @apply bg-surface-100 dark:bg-surface-900 ring-inset p-10 flex justify-center items-center rounded-lg; |
| 128 | + @apply bg-surface-100 dark:bg-surface-900 ring-inset p-10 flex justify-center items-center rounded-lg; |
129 | 129 | } |
130 | 130 |
|
131 | 131 | /* Floating (required) */ |
132 | 132 | .floating { |
133 | | - @apply w-max absolute top-0 left-0 z-10; |
| 133 | + @apply w-max absolute top-0 left-0 z-10; |
134 | 134 | } |
135 | 135 |
|
136 | 136 | .popover-neutral { |
137 | | - @apply bg-surface-500 text-white p-8 max-w-sm rounded shadow-xl; |
| 137 | + @apply bg-surface-500 text-white p-8 max-w-sm rounded shadow-xl; |
138 | 138 | } |
139 | 139 |
|
140 | 140 | /* Buttons */ |
141 | 141 | .btn-gradient { |
142 | | - @apply flex items-center gap-2; |
143 | | - @apply py-3 px-6 rounded shadow-lg; |
144 | | - @apply bg-gradient-to-br from-red-300 via-violet-300 to-cyan-400; |
145 | | - @apply text-black font-bold; |
| 142 | + @apply flex items-center gap-2; |
| 143 | + @apply py-3 px-6 rounded shadow-lg; |
| 144 | + @apply bg-gradient-to-br from-red-300 via-violet-300 to-cyan-400; |
| 145 | + @apply text-black font-bold; |
146 | 146 | } |
147 | 147 | .btn-neutral { |
148 | | - @apply flex items-center gap-2; |
149 | | - @apply py-3 px-6 rounded shadow-lg; |
150 | | - @apply bg-neutral-950 hover:bg-neutral-900 dark:bg-surface-50 hover:dark:bg-surface-100; |
151 | | - @apply text-white dark:text-black font-bold; |
| 148 | + @apply flex items-center gap-2; |
| 149 | + @apply py-3 px-6 rounded shadow-lg; |
| 150 | + @apply bg-neutral-950 hover:bg-neutral-900 dark:bg-surface-50 hover:dark:bg-surface-100; |
| 151 | + @apply text-white dark:text-black font-bold; |
152 | 152 | } |
153 | 153 | .btn-rose-sm { |
154 | | - @apply flex items-center gap-2; |
155 | | - @apply bg-rose-500 hover:bg-rose-600 text-white text-sm font-medium py-1 px-4 rounded shadow-lg; |
| 154 | + @apply flex items-center gap-2; |
| 155 | + @apply bg-rose-500 hover:bg-rose-600 text-white text-sm font-medium py-1 px-4 rounded shadow-lg; |
156 | 156 | } |
157 | 157 |
|
158 | 158 | /* Cards */ |
159 | 159 | .card { |
160 | | - @apply p-8 lg:p-12 rounded-3xl; |
| 160 | + @apply p-8 lg:p-12 rounded-3xl; |
161 | 161 | } |
162 | 162 | .card-gradient { |
163 | | - @apply bg-white dark:bg-surface-700 bg-gradient-to-br; |
164 | | - @apply from-blue-50 to-surface-50; |
165 | | - @apply dark:from-purple-700/10 dark:to-cyan-700/10; |
| 163 | + @apply bg-white dark:bg-surface-700 bg-gradient-to-br; |
| 164 | + @apply from-blue-50 to-surface-50; |
| 165 | + @apply dark:from-purple-700/10 dark:to-cyan-700/10; |
166 | 166 | } |
167 | 167 |
|
168 | 168 | /* Alerts */ |
169 | 169 | .alert { |
170 | | - @apply bg-blue-500 text-white p-8 rounded-lg space-y-4; |
| 170 | + @apply bg-blue-500 text-white p-8 rounded-lg space-y-4; |
171 | 171 | } |
172 | 172 |
|
173 | 173 | /* Tables */ |
174 | 174 | .table-wrap { |
175 | | - @apply w-full overflow-auto; |
| 175 | + @apply w-full overflow-auto; |
176 | 176 | } |
177 | 177 | .table { |
178 | | - @apply relative w-full; |
| 178 | + @apply relative w-full; |
179 | 179 | } |
180 | 180 | .table thead { |
181 | | - @apply border-b border-surface-500/50; |
| 181 | + @apply border-b border-surface-500/50; |
182 | 182 | } |
183 | 183 | .table th { |
184 | | - @apply text-left font-bold; |
| 184 | + @apply text-left font-bold; |
185 | 185 | } |
186 | 186 | .table tbody { |
187 | | - @apply divide-y divide-surface-500/50; |
| 187 | + @apply divide-y divide-surface-500/50; |
188 | 188 | } |
189 | 189 | .table th, |
190 | 190 | .table td { |
191 | | - @apply p-2 py-4 align-top; |
| 191 | + @apply p-2 py-4 align-top; |
192 | 192 | } |
193 | 193 | .table .meta-type { |
194 | | - @apply inline-block bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
195 | | - @apply text-xs text-purple-500 dark:text-purple-300; |
| 194 | + @apply inline-block bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
| 195 | + @apply text-xs text-purple-500 dark:text-purple-300; |
196 | 196 | } |
197 | 197 | .table .meta-default { |
198 | | - @apply inline-block bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
199 | | - @apply text-xs italic text-blue-500 dark:text-blue-300; |
| 198 | + @apply inline-block bg-surface-50/50 dark:bg-surface-600 px-2 py-1 rounded; |
| 199 | + @apply text-xs italic text-blue-500 dark:text-blue-300; |
200 | 200 | } |
201 | 201 |
|
202 | 202 | /* Scrollbars --- */ |
203 | 203 |
|
204 | 204 | :root { |
205 | | - scrollbar-color: rgba(128, 128, 128, 0.5) rgba(0, 0, 0, 0.1); /* thumb / track */ |
206 | | - scrollbar-width: thin; |
| 205 | + scrollbar-color: rgba(128, 128, 128, 0.5) rgba(0, 0, 0, 0.1); /* thumb / track */ |
| 206 | + scrollbar-width: thin; |
207 | 207 | } |
208 | 208 |
|
209 | 209 | /* Chrome, Safari and Opera */ |
210 | 210 | .no-scrollbar::-webkit-scrollbar { |
211 | | - display: none; |
| 211 | + display: none; |
212 | 212 | } |
213 | 213 | /* IE, Edge and Firefox */ |
214 | 214 | .no-scrollbar { |
215 | | - -ms-overflow-style: none; |
216 | | - scrollbar-width: none; |
| 215 | + -ms-overflow-style: none; |
| 216 | + scrollbar-width: none; |
217 | 217 | } |
218 | 218 |
|
219 | 219 | /* Animations --- */ |
220 | 220 |
|
221 | 221 | .anim-float { |
222 | | - animation-name: animFloat; |
223 | | - animation-duration: 5s; |
224 | | - animation-iteration-count: infinite; |
225 | | - animation-timing-function: ease-in-out; |
| 222 | + animation-name: animFloat; |
| 223 | + animation-duration: 5s; |
| 224 | + animation-iteration-count: infinite; |
| 225 | + animation-timing-function: ease-in-out; |
226 | 226 | } |
227 | 227 |
|
228 | 228 | @keyframes animFloat { |
229 | | - 0% { |
230 | | - transform: translateY(0px); |
231 | | - } |
232 | | - 50% { |
233 | | - transform: translateY(15px); |
234 | | - } |
235 | | - 100% { |
236 | | - transform: translateY(0px); |
237 | | - } |
| 229 | + 0% { |
| 230 | + transform: translateY(0px); |
| 231 | + } |
| 232 | + 50% { |
| 233 | + transform: translateY(15px); |
| 234 | + } |
| 235 | + 100% { |
| 236 | + transform: translateY(0px); |
| 237 | + } |
238 | 238 | } |
239 | 239 |
|
240 | 240 | /* Shiki Highlighting --- */ |
241 | 241 |
|
242 | 242 | html.dark .shiki, |
243 | 243 | html.dark .shiki span { |
244 | | - color: var(--shiki-dark) !important; |
245 | | - background-color: var(--shiki-dark-bg) !important; |
| 244 | + color: var(--shiki-dark) !important; |
| 245 | + background-color: var(--shiki-dark-bg) !important; |
246 | 246 | } |
0 commit comments