Restyle UI with a channel-strip console look and brand icon
Adds a pink/purple/blue SVG brand mark (favicon + header) and reworks the visual language around the app's actual interaction - fader-driven device control - via LED-style indicators, mono instrument readouts, hairline-framed cards, console-tab nav, and an oscilloscope-style session timeline. Leaves components/ui/* untouched, restyling only via design tokens and the app's own composed components. Also fixes a proxy.ts matcher gap that was gating /icon.svg behind auth. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
This commit is contained in:
+108
-92
@@ -7,6 +7,7 @@
|
||||
@theme inline {
|
||||
--font-heading: var(--font-display);
|
||||
--font-sans: var(--font-sans);
|
||||
--font-mono: var(--font-mono);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
@@ -48,79 +49,77 @@
|
||||
}
|
||||
|
||||
/*
|
||||
* Palette: dark-mode-first (fits the product's low-lit, intimate register).
|
||||
* Every hue anchors to the pink -> purple -> blue brand sweep; --primary/
|
||||
* --accent/--chart-* are the only places it should read as loud. Card
|
||||
* surfaces stay a near-neutral indigo-black so the sweep doesn't flood
|
||||
* every panel.
|
||||
* Modern pink -> purple -> blue palette (the app's signature sweep, also
|
||||
* used in app/icon.svg / BrandMark). Dark cool near-black base with a vivid
|
||||
* pink primary; violet/blue fill out charts and the wordmark/icon gradient.
|
||||
*/
|
||||
:root {
|
||||
--background: oklch(0.99 0.005 300);
|
||||
--foreground: oklch(0.22 0.03 290);
|
||||
--card: oklch(0.98 0.008 300);
|
||||
--card-foreground: oklch(0.22 0.03 290);
|
||||
--popover: oklch(0.99 0.005 300);
|
||||
--popover-foreground: oklch(0.22 0.03 290);
|
||||
--primary: oklch(0.58 0.23 322);
|
||||
--primary-foreground: oklch(0.99 0.01 322);
|
||||
--secondary: oklch(0.94 0.02 300);
|
||||
--secondary-foreground: oklch(0.3 0.05 300);
|
||||
--muted: oklch(0.95 0.015 300);
|
||||
--muted-foreground: oklch(0.5 0.03 290);
|
||||
--accent: oklch(0.9 0.06 330);
|
||||
--accent-foreground: oklch(0.3 0.1 330);
|
||||
--destructive: oklch(0.577 0.245 27.325);
|
||||
--border: oklch(0.9 0.02 300);
|
||||
--input: oklch(0.9 0.02 300);
|
||||
--ring: oklch(0.58 0.23 322);
|
||||
--chart-1: oklch(0.72 0.2 350);
|
||||
--chart-2: oklch(0.62 0.24 320);
|
||||
--chart-3: oklch(0.58 0.22 280);
|
||||
--chart-4: oklch(0.6 0.2 250);
|
||||
--chart-5: oklch(0.68 0.15 220);
|
||||
--radius: 0.9rem;
|
||||
--sidebar: oklch(0.97 0.01 300);
|
||||
--sidebar-foreground: oklch(0.22 0.03 290);
|
||||
--sidebar-primary: oklch(0.58 0.23 322);
|
||||
--sidebar-primary-foreground: oklch(0.99 0.01 322);
|
||||
--sidebar-accent: oklch(0.9 0.06 330);
|
||||
--sidebar-accent-foreground: oklch(0.3 0.1 330);
|
||||
--sidebar-border: oklch(0.9 0.02 300);
|
||||
--sidebar-ring: oklch(0.58 0.23 322);
|
||||
--background: #f5f3fb;
|
||||
--foreground: #1f1b2e;
|
||||
--card: #ffffff;
|
||||
--card-foreground: #1f1b2e;
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #1f1b2e;
|
||||
--primary: #db2777;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #ede9fe;
|
||||
--secondary-foreground: #3a2d54;
|
||||
--muted: #efeafd;
|
||||
--muted-foreground: #6b6280;
|
||||
--accent: #ede4fb;
|
||||
--accent-foreground: #4c1d95;
|
||||
--destructive: #dc2626;
|
||||
--border: #e4defa;
|
||||
--input: #e4defa;
|
||||
--ring: #db2777;
|
||||
--chart-1: #db2777;
|
||||
--chart-2: #9333ea;
|
||||
--chart-3: #7c3aed;
|
||||
--chart-4: #2563eb;
|
||||
--chart-5: #0284c7;
|
||||
--radius: 0.75rem;
|
||||
--sidebar: #ede9fe;
|
||||
--sidebar-foreground: #1f1b2e;
|
||||
--sidebar-primary: #db2777;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #ede4fb;
|
||||
--sidebar-accent-foreground: #4c1d95;
|
||||
--sidebar-border: #e4defa;
|
||||
--sidebar-ring: #db2777;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.16 0.025 285);
|
||||
--foreground: oklch(0.95 0.015 290);
|
||||
--card: oklch(0.21 0.03 285);
|
||||
--card-foreground: oklch(0.95 0.015 290);
|
||||
--popover: oklch(0.19 0.03 285);
|
||||
--popover-foreground: oklch(0.95 0.015 290);
|
||||
--primary: oklch(0.7 0.2 322);
|
||||
--primary-foreground: oklch(0.15 0.03 322);
|
||||
--secondary: oklch(0.28 0.04 285);
|
||||
--secondary-foreground: oklch(0.92 0.02 290);
|
||||
--muted: oklch(0.26 0.03 285);
|
||||
--muted-foreground: oklch(0.68 0.03 290);
|
||||
--accent: oklch(0.35 0.09 330);
|
||||
--accent-foreground: oklch(0.95 0.03 330);
|
||||
--destructive: oklch(0.704 0.191 22.216);
|
||||
--border: oklch(1 0 0 / 10%);
|
||||
--input: oklch(1 0 0 / 14%);
|
||||
--ring: oklch(0.7 0.2 322);
|
||||
--chart-1: oklch(0.75 0.19 350);
|
||||
--chart-2: oklch(0.7 0.22 320);
|
||||
--chart-3: oklch(0.68 0.2 280);
|
||||
--chart-4: oklch(0.68 0.19 250);
|
||||
--chart-5: oklch(0.72 0.15 220);
|
||||
--sidebar: oklch(0.19 0.03 285);
|
||||
--sidebar-foreground: oklch(0.95 0.015 290);
|
||||
--sidebar-primary: oklch(0.7 0.2 322);
|
||||
--sidebar-primary-foreground: oklch(0.15 0.03 322);
|
||||
--sidebar-accent: oklch(0.35 0.09 330);
|
||||
--sidebar-accent-foreground: oklch(0.95 0.03 330);
|
||||
--sidebar-border: oklch(1 0 0 / 10%);
|
||||
--sidebar-ring: oklch(0.7 0.2 322);
|
||||
--background: #15131f;
|
||||
--foreground: #f2f0f7;
|
||||
--card: #1f1b2c;
|
||||
--card-foreground: #f2f0f7;
|
||||
--popover: #1c1829;
|
||||
--popover-foreground: #f2f0f7;
|
||||
--primary: #ec4899;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #2a2440;
|
||||
--secondary-foreground: #e5e1f0;
|
||||
--muted: #272138;
|
||||
--muted-foreground: #a79fc0;
|
||||
--accent: #3a2d54;
|
||||
--accent-foreground: #efeaff;
|
||||
--destructive: #ef4444;
|
||||
--border: color-mix(in srgb, #a78bfa 25%, transparent);
|
||||
--input: color-mix(in srgb, #a78bfa 18%, transparent);
|
||||
--ring: #ec4899;
|
||||
--chart-1: #f472b6;
|
||||
--chart-2: #c084fc;
|
||||
--chart-3: #a78bfa;
|
||||
--chart-4: #60a5fa;
|
||||
--chart-5: #38bdf8;
|
||||
--sidebar: #1c1829;
|
||||
--sidebar-foreground: #f2f0f7;
|
||||
--sidebar-primary: #ec4899;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #3a2d54;
|
||||
--sidebar-accent-foreground: #efeaff;
|
||||
--sidebar-border: color-mix(in srgb, #a78bfa 25%, transparent);
|
||||
--sidebar-ring: #ec4899;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
@@ -135,52 +134,69 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Signature pink -> purple -> blue sweep, used sparingly (primary CTAs,
|
||||
active rings, headline accents) rather than flooding every surface. */
|
||||
/* Signature pink -> purple -> blue sweep (matches app/icon.svg), used for
|
||||
the wordmark and one hero moment - not smeared across every surface. */
|
||||
.bp-gradient-text {
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
oklch(0.75 0.19 350),
|
||||
oklch(0.65 0.23 322),
|
||||
oklch(0.62 0.2 260)
|
||||
);
|
||||
background: linear-gradient(100deg, #ff6fb0, #b34bde 50%, #4f7fe0);
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.bp-gradient-ring {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
oklch(0.75 0.19 350),
|
||||
oklch(0.65 0.23 322),
|
||||
oklch(0.62 0.2 260)
|
||||
);
|
||||
background: linear-gradient(135deg, #ff6fb0, #b34bde 50%, #4f7fe0);
|
||||
}
|
||||
|
||||
/* Glassy translucent card surface, subtle glow on hover. */
|
||||
/* Console-module surface: hairline border + a soft inset top highlight,
|
||||
standing in for backdrop-blur glassmorphism. */
|
||||
.bp-glass {
|
||||
background: color-mix(in oklch, var(--card) 72%, transparent);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--foreground) 8%, transparent);
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
border-color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
.bp-glass:hover {
|
||||
border-color: color-mix(in oklch, var(--primary) 45%, var(--border));
|
||||
box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 25%, transparent), 0 10px 30px -12px rgba(0, 0, 0, 0.45);
|
||||
border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
|
||||
box-shadow:
|
||||
inset 0 1px 0 color-mix(in srgb, var(--foreground) 10%, transparent),
|
||||
0 10px 30px -14px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
/* Illuminated indicator dot - reused on connection status and per-actuator
|
||||
transmit indicators. */
|
||||
.bp-led {
|
||||
display: inline-block;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
border-radius: 999px;
|
||||
background: var(--muted-foreground);
|
||||
}
|
||||
.bp-led[data-on="true"] {
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
/* Thin panel seam - a hardware "trim line," not a plain UI divider. */
|
||||
.bp-hairline {
|
||||
height: 1px;
|
||||
background: color-mix(in srgb, #a78bfa 35%, transparent);
|
||||
}
|
||||
|
||||
/* Instrument-readout numerals: tabular mono for actuator %, timers, stats. */
|
||||
.bp-readout {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
@keyframes bp-pulse-glow {
|
||||
0%,
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 55%, transparent);
|
||||
box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 0 6px color-mix(in oklch, var(--primary) 0%, transparent);
|
||||
box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 0%, transparent);
|
||||
}
|
||||
}
|
||||
.bp-pulse {
|
||||
|
||||
Reference in New Issue
Block a user