Files
piik/src/client/ui/palette.css
T
AAA a590a00788 feat(ui): define shared room surfaces and paired share controls
Add semantic frame, room and aside tokens plus neutral tonal and paired-button styles at their shared owners. Share and settings remain independent actions while the paired shape moves together. Existing product callers retain their layout and control geometry.

The live share component has an explicit catalogue variant. Default guide captures keep the current product shape; the split example uses share=split. Chrome 156 checked light/dark, keyboard and touch behavior and unchanged desktop/mobile geometry. This is phase one of the reviewed layout plan; shell placement follows visual acceptance.
2026-11-26 01:49:56 -05:00

90 lines
3.6 KiB
CSS

/* Shared theme for the App, website and documentation. Status and selection
have separate roles; illustrations keep their own colours. */
:root {
--person-ink: #263b43;
--wall: #f3f5f8;
--wall-2: #e5eaf2;
--paper-rgb: 255 254 251;
--paper: rgb(var(--paper-rgb));
--surface-frame: var(--wall);
--surface-room: var(--paper);
--surface-room-aside: color-mix(in srgb, var(--surface-room) 55%, var(--surface-frame));
--paper-translucent: rgb(var(--paper-rgb) / .84);
--ink: #29374a;
/* Opaque sRGB roles also work in WebViews without color-mix. */
--muted: rgb(94.5 104.75 118.25);
--line: rgb(212.2 214.2 215.6);
/* Primary actions keep their identity; selection/focus follows the theme. */
--primary: #2765ce;
--primary-ink: #fff;
--action: #3478e5;
--action-deep: var(--primary);
--action-ink: var(--primary-ink);
--action-text: #2055b2;
--idle: #8ea3b8;
--busy: #3478e5;
/* Live decoration and readable status foreground. */
--live: #2fa66a;
--live-ink: #18754a;
--warn: #d98e04;
--danger: #d64541;
--danger-ink: #a52c28;
--control-hover: #eef3ff;
--control-selected: #e5efff;
--control-selected-ink: #214c9b;
--control-edge: rgb(133.02 140.57 150.11);
--surface-rim: rgb(255 255 255 / .95);
--surface-shade-rgb: 36 53 78;
--surface-shade-alpha: .18;
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
--piik-dark-wall: #242a34;
--piik-dark-wall-2: #2c3543;
--piik-dark-paper-rgb: 53 65 83;
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
--piik-dark-ink: #f6f3eb;
--piik-dark-muted: rgb(197.75 198.5 197);
--piik-dark-line: rgb(91.6 100.6 113.4);
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
--piik-dark-surface-rim: rgb(222 234 255 / .12);
--piik-dark-surface-shade-rgb: 6 12 22;
--piik-dark-surface-shade-alpha: .38;
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
--piik-dark-action: #f6f3eb;
--piik-dark-action-ink: #29374a;
--piik-dark-action-text: var(--piik-dark-action);
--piik-dark-hover: #414f67;
--piik-dark-selected: var(--piik-dark-action);
--piik-dark-selected-ink: var(--piik-dark-action-ink);
}
:root[data-theme="dark"], :root.dark {
--wall: var(--piik-dark-wall);
--surface-frame: #1b2029;
--wall-2: var(--piik-dark-wall-2);
--paper-rgb: var(--piik-dark-paper-rgb);
--paper: var(--piik-dark-paper);
--ink: var(--piik-dark-ink);
--muted: var(--piik-dark-muted);
--line: var(--piik-dark-line);
--busy: #82b1ff;
--live: #3fb97a;
--live-ink: #73dca2;
--warn: #e8a33d;
--danger: #e25a52;
--danger-ink: #ffaaa2;
--action: var(--piik-dark-action);
--action-deep: var(--piik-dark-action);
--action-ink: var(--piik-dark-action-ink);
--action-text: var(--piik-dark-action-text);
--control-hover: var(--piik-dark-hover);
--control-selected: var(--piik-dark-selected);
--control-selected-ink: var(--piik-dark-selected-ink);
--control-edge: var(--piik-dark-control-edge);
--surface-rim: var(--piik-dark-surface-rim);
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
--surface-glaze: var(--piik-dark-surface-glaze);
}