mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(webui): perfect-design app shell, command palette and theme boot
This commit is contained in:
+34
-66
@@ -3,8 +3,16 @@
|
||||
@import "@fortawesome/fontawesome-svg-core/styles.css" layer(base);
|
||||
@import "tw-animate-css";
|
||||
@import "shadcn-vue/tailwind.css";
|
||||
@import "@perfect-design/ui/theme.css";
|
||||
@import "@perfect-design/ui/packs.css";
|
||||
@source "../../node_modules/@perfect-design/ui/dist";
|
||||
|
||||
/*
|
||||
* The base palette (background, primary, border, radius, ...) now comes from
|
||||
* @perfect-design/ui/theme.css; only the chart and status tokens below stay local.
|
||||
* Dark mode follows the `.dark` class that perfect-design's theme store (and its
|
||||
* boot script) maintains on <html>, including the "system" mode.
|
||||
*
|
||||
* Theme tokens (design note, not slop-by-default): shadcn-vue's `init`
|
||||
* scaffolds an achromatic "stone" palette (chroma 0 everywhere), a Google
|
||||
* Fonts Inter import, and a Geist Variable heading font. All three are
|
||||
@@ -73,25 +81,6 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
--background: oklch(0.99 0.004 75);
|
||||
--foreground: oklch(0.19 0.012 75);
|
||||
--card: oklch(0.995 0.003 75);
|
||||
--card-foreground: oklch(0.19 0.012 75);
|
||||
--popover: oklch(0.995 0.003 75);
|
||||
--popover-foreground: oklch(0.19 0.012 75);
|
||||
--primary: oklch(0.46 0.09 200);
|
||||
--primary-foreground: oklch(0.98 0.006 200);
|
||||
--secondary: oklch(0.95 0.006 75);
|
||||
--secondary-foreground: oklch(0.22 0.01 75);
|
||||
--muted: oklch(0.95 0.006 75);
|
||||
--muted-foreground: oklch(0.48 0.012 75);
|
||||
--accent: oklch(0.93 0.02 200);
|
||||
--accent-foreground: oklch(0.28 0.05 200);
|
||||
--destructive: oklch(0.55 0.2 25);
|
||||
--border: oklch(0.9 0.007 75);
|
||||
--input: oklch(0.9 0.007 75);
|
||||
--ring: oklch(0.55 0.09 200);
|
||||
--radius: 0.375rem;
|
||||
|
||||
/* Chart series — Okabe & Ito (2008) colorblind-safe qualitative set. */
|
||||
--chart-requests: #009e73;
|
||||
@@ -158,56 +147,35 @@
|
||||
--bar-amber: #a35c00;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: oklch(0.17 0.007 75);
|
||||
--foreground: oklch(0.95 0.005 75);
|
||||
--card: oklch(0.21 0.009 75);
|
||||
--card-foreground: oklch(0.95 0.005 75);
|
||||
--popover: oklch(0.21 0.009 75);
|
||||
--popover-foreground: oklch(0.95 0.005 75);
|
||||
--primary: oklch(0.74 0.11 200);
|
||||
--primary-foreground: oklch(0.16 0.012 200);
|
||||
--secondary: oklch(0.27 0.011 75);
|
||||
--secondary-foreground: oklch(0.93 0.005 75);
|
||||
--muted: oklch(0.27 0.011 75);
|
||||
--muted-foreground: oklch(0.68 0.012 75);
|
||||
--accent: oklch(0.32 0.035 200);
|
||||
--accent-foreground: oklch(0.91 0.03 200);
|
||||
--destructive: oklch(0.68 0.19 25);
|
||||
--border: oklch(1 0 0 / 12%);
|
||||
--input: oklch(1 0 0 / 16%);
|
||||
--ring: oklch(0.62 0.1 200);
|
||||
.dark {
|
||||
/* Same hues, most already legible on a dark ground at this
|
||||
saturation — Okabe-Ito was designed for slide/print use on light
|
||||
and dark backgrounds alike. */
|
||||
--chart-requests: #16b891;
|
||||
--chart-tokens-in: #4098d7;
|
||||
--chart-tokens-out: #f0ac1f;
|
||||
--chart-cost: #e8763a;
|
||||
|
||||
/* Same hues, most already legible on a dark ground at this
|
||||
saturation — Okabe-Ito was designed for slide/print use on light
|
||||
and dark backgrounds alike. */
|
||||
--chart-requests: #16b891;
|
||||
--chart-tokens-in: #4098d7;
|
||||
--chart-tokens-out: #f0ac1f;
|
||||
--chart-cost: #e8763a;
|
||||
/* Same Okabe-Ito hues as the light-mode block's own doc comment
|
||||
above — already legible on a dark ground at this saturation
|
||||
(Okabe-Ito was designed for slide/print use on light and dark
|
||||
backgrounds alike), so only --chart-series-b's LIGHT value
|
||||
needed darkening; here it keeps the original #f0e442. */
|
||||
--chart-series-a: #56b4e9;
|
||||
--chart-series-b: #f0e442;
|
||||
--chart-series-c: #cc79a7;
|
||||
--chart-series-d: #b8b8b8;
|
||||
|
||||
/* Same Okabe-Ito hues as the light-mode block's own doc comment
|
||||
above — already legible on a dark ground at this saturation
|
||||
(Okabe-Ito was designed for slide/print use on light and dark
|
||||
backgrounds alike), so only --chart-series-b's LIGHT value
|
||||
needed darkening; here it keeps the original #f0e442. */
|
||||
--chart-series-a: #56b4e9;
|
||||
--chart-series-b: #f0e442;
|
||||
--chart-series-c: #cc79a7;
|
||||
--chart-series-d: #b8b8b8;
|
||||
/* #f0ac1f on the dark --card measures ~8.97:1 — no separate dark
|
||||
value was needed to clear WCAG 1.4.3 here, unlike light mode
|
||||
(see --status-warn's own doc comment above), but the token is
|
||||
still redefined per-mode rather than left to fall through, so a
|
||||
reader auditing this block sees every semantic-color token's
|
||||
dark value in one place. */
|
||||
--status-warn: #f0ac1f;
|
||||
|
||||
/* #f0ac1f on the dark --card measures ~8.97:1 — no separate dark
|
||||
value was needed to clear WCAG 1.4.3 here, unlike light mode
|
||||
(see --status-warn's own doc comment above), but the token is
|
||||
still redefined per-mode rather than left to fall through, so a
|
||||
reader auditing this block sees every semantic-color token's
|
||||
dark value in one place. */
|
||||
--status-warn: #f0ac1f;
|
||||
|
||||
/* Same reasoning as --chart-tokens-out's own dark-mode comment above — legible as-is, redefined here anyway so every semantic-color token's dark value lives in one place. */
|
||||
--bar-amber: #f0ac1f;
|
||||
}
|
||||
/* Same reasoning as --chart-tokens-out's own dark-mode comment above — legible as-is, redefined here anyway so every semantic-color token's dark value lives in one place. */
|
||||
--bar-amber: #f0ac1f;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
|
||||
Reference in New Issue
Block a user