|
131 | 131 | };
|
132 | 132 | </script>
|
133 | 133 | </head>
|
134 |
| - <body class="flex min-h-full flex-col overflow-x-hidden bg-gray-50"> |
135 |
| - <div class="fixed inset-y-0 left-0 w-72 overflow-y-auto border-r border-gray-100 bg-white px-2 py-4 max-lg:hidden"> |
| 134 | + <body class="flex min-h-full flex-col overflow-x-hidden bg-gray-50 lg:has-[*[data-sidebar]:not(.hidden)]:px-72"> |
| 135 | + <div |
| 136 | + data-sidebar |
| 137 | + class="fixed inset-y-0 left-0 w-72 overflow-y-auto border-r border-gray-100 bg-white px-2 py-4 max-lg:hidden" |
| 138 | + > |
136 | 139 | <header class="mb-2 flex items-center justify-center gap-x-2 border-b border-gray-100 pb-4">
|
137 | 140 | <svg
|
138 | 141 | viewBox="0 0 62 18"
|
|
277 | 280 | </nav>
|
278 | 281 | </div>
|
279 | 282 |
|
280 |
| - <main |
281 |
| - class="bg-gray-25 flex h-full min-w-px flex-1 items-center justify-center overflow-y-auto overflow-x-hidden py-12 lg:pl-72" |
| 283 | + <div |
| 284 | + data-sidebar |
| 285 | + class="fixed inset-y-0 right-0 w-72 overflow-y-auto border-l border-gray-100 bg-white px-2 py-4 max-lg:hidden" |
282 | 286 | >
|
| 287 | + <fieldset> |
| 288 | + <div class="mb-2 flex items-center justify-between"> |
| 289 | + <legend class="block text-sm">Variables</legend> |
| 290 | + <button |
| 291 | + id="resetVariablesBtn" |
| 292 | + class="text-sm" |
| 293 | + > |
| 294 | + Reset |
| 295 | + </button> |
| 296 | + </div> |
| 297 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 298 | + <span class="font-mono text-xs">colorPrimary</span> |
| 299 | + <input |
| 300 | + type="color" |
| 301 | + id="colorPrimary" |
| 302 | + value="#2F3037" |
| 303 | + /> |
| 304 | + </label> |
| 305 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 306 | + <span class="font-mono text-xs">colorNeutral</span> |
| 307 | + <input |
| 308 | + type="color" |
| 309 | + id="colorNeutral" |
| 310 | + value="#000000" |
| 311 | + /> |
| 312 | + </label> |
| 313 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 314 | + <span class="font-mono text-xs">colorBackground</span> |
| 315 | + <input |
| 316 | + type="color" |
| 317 | + id="colorBackground" |
| 318 | + value="#ffffff" |
| 319 | + /> |
| 320 | + </label> |
| 321 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 322 | + <span class="font-mono text-xs">colorTextOnPrimaryBackground</span> |
| 323 | + <input |
| 324 | + type="color" |
| 325 | + id="colorTextOnPrimaryBackground" |
| 326 | + value="#ffffff" |
| 327 | + /> |
| 328 | + </label> |
| 329 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 330 | + <span class="font-mono text-xs">colorDanger</span> |
| 331 | + <input |
| 332 | + type="color" |
| 333 | + id="colorDanger" |
| 334 | + value="#EF4444" |
| 335 | + /> |
| 336 | + </label> |
| 337 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 338 | + <span class="font-mono text-xs">colorSuccess</span> |
| 339 | + <input |
| 340 | + type="color" |
| 341 | + id="colorSuccess" |
| 342 | + value="#22C543" |
| 343 | + /> |
| 344 | + </label> |
| 345 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 346 | + <span class="font-mono text-xs">colorWarning</span> |
| 347 | + <input |
| 348 | + type="color" |
| 349 | + id="colorWarning" |
| 350 | + value="#F36B16" |
| 351 | + /> |
| 352 | + </label> |
| 353 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 354 | + <span class="font-mono text-xs">colorText</span> |
| 355 | + <input |
| 356 | + type="color" |
| 357 | + id="colorText" |
| 358 | + value="#212126" |
| 359 | + /> |
| 360 | + </label> |
| 361 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 362 | + <span class="font-mono text-xs">colorTextSecondary</span> |
| 363 | + <input |
| 364 | + type="color" |
| 365 | + id="colorTextSecondary" |
| 366 | + value="#747686" |
| 367 | + /> |
| 368 | + </label> |
| 369 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 370 | + <span class="font-mono text-xs">colorInputText</span> |
| 371 | + <input |
| 372 | + type="color" |
| 373 | + id="colorInputText" |
| 374 | + value="#000000" |
| 375 | + /> |
| 376 | + </label> |
| 377 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 378 | + <span class="font-mono text-xs">colorInputBackground</span> |
| 379 | + <input |
| 380 | + type="color" |
| 381 | + id="colorInputBackground" |
| 382 | + value="#ffffff" |
| 383 | + /> |
| 384 | + </label> |
| 385 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 386 | + <span class="font-mono text-xs">colorShimmer</span> |
| 387 | + <input |
| 388 | + type="color" |
| 389 | + id="colorShimmer" |
| 390 | + value="#ffffff" |
| 391 | + /> |
| 392 | + </label> |
| 393 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 394 | + <span class="font-mono text-xs">spacingUnit</span> |
| 395 | + <input |
| 396 | + type="text" |
| 397 | + id="spacingUnit" |
| 398 | + value="1rem" |
| 399 | + class="text-sm outline-none [field-sizing:content]" |
| 400 | + /> |
| 401 | + </label> |
| 402 | + <label class="flex items-center justify-between border-t border-gray-100 py-2"> |
| 403 | + <span class="font-mono text-xs">borderRadius</span> |
| 404 | + <input |
| 405 | + type="text" |
| 406 | + id="borderRadius" |
| 407 | + value="0.375rem" |
| 408 | + class="text-sm outline-none [field-sizing:content]" |
| 409 | + /> |
| 410 | + </label> |
| 411 | + </fieldset> |
| 412 | + </div> |
| 413 | + |
| 414 | + <main class="flex h-full min-w-px flex-1 items-center justify-center overflow-y-auto overflow-x-hidden py-12"> |
283 | 415 | <div
|
284 | 416 | id="app"
|
285 | 417 | class="container w-full p-12"
|
|
0 commit comments