mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 21:08:17 +00:00
* test: Verify the Provider Badge Keeps Its Translucent Page Tone * feat: Paint the Provider Badge Over Media With a Surface Media Chip Role
624 lines
24 KiB
CSS
624 lines
24 KiB
CSS
/**
|
|
* The stock value of every theme-owned property, and the single source for them.
|
|
*
|
|
* `tokens.css` maps the Tailwind utilities onto these properties and imports this file, so a
|
|
* consumer of `@librechat/client/theme.css` renders the stock palette, shape, type and elevation
|
|
* without restating any of it, and the LibreChat app reads the same declarations through the same
|
|
* import. `ThemeProvider` paints a resolved theme inline on the root, which outranks every rule
|
|
* here; these cover the page before and without a theme definition.
|
|
*
|
|
* The roles are written against the primitive scales under `:root`, so a host that redefines a
|
|
* step after this import retints every role that reads it. `default.ts`, `dark.ts` and
|
|
* `registry.ts` under `packages/data-provider/src/themes` carry the same values for the runtime,
|
|
* and `defaults.spec.ts` holds them equal.
|
|
*/
|
|
:root {
|
|
--white: 255 255 255;
|
|
--black: 0 0 0;
|
|
--gray-20: 236 236 241;
|
|
--gray-50: 247 247 248;
|
|
--gray-100: 236 236 236;
|
|
--gray-200: 227 227 227;
|
|
--gray-300: 205 205 205;
|
|
--gray-400: 153 150 150;
|
|
--gray-500: 89 89 89;
|
|
--gray-600: 66 66 66;
|
|
--gray-650: 57 57 57;
|
|
--gray-700: 47 47 47;
|
|
--gray-800: 33 33 33;
|
|
--gray-850: 23 23 23;
|
|
--gray-875: 18 18 18;
|
|
--gray-900: 13 13 13;
|
|
--green-50: 236 253 245;
|
|
--green-100: 209 250 229;
|
|
--green-200: 167 243 208;
|
|
--green-300: 110 231 183;
|
|
--green-400: 52 211 153;
|
|
--green-500: 16 185 129;
|
|
--green-600: 5 150 105;
|
|
--green-700: 4 120 87;
|
|
--green-800: 6 95 70;
|
|
--green-900: 6 78 59;
|
|
--green-950: 2 44 34;
|
|
--red-50: 254 242 242;
|
|
--red-100: 254 226 226;
|
|
--red-200: 254 202 202;
|
|
--red-300: 252 165 165;
|
|
--red-400: 248 113 113;
|
|
--red-500: 239 68 68;
|
|
--red-600: 220 38 38;
|
|
--red-700: 185 28 28;
|
|
--red-800: 153 27 27;
|
|
--red-900: 127 29 29;
|
|
--red-950: 69 10 10;
|
|
--amber-50: 255 251 235;
|
|
--amber-100: 254 243 199;
|
|
--amber-200: 253 230 138;
|
|
--amber-300: 252 211 77;
|
|
--amber-400: 251 191 36;
|
|
--amber-500: 245 158 11;
|
|
--amber-600: 217 119 6;
|
|
--amber-700: 180 83 9;
|
|
--amber-800: 146 64 14;
|
|
--amber-900: 120 53 15;
|
|
--amber-950: 69 26 3;
|
|
--blue-50: 239 246 255;
|
|
--blue-100: 219 234 254;
|
|
--blue-200: 191 219 254;
|
|
--blue-300: 147 197 253;
|
|
--blue-400: 96 165 250;
|
|
--blue-500: 59 130 246;
|
|
--blue-600: 37 99 235;
|
|
--blue-700: 29 78 216;
|
|
--blue-800: 30 64 175;
|
|
--blue-900: 30 58 138;
|
|
--blue-950: 23 37 84;
|
|
}
|
|
|
|
html {
|
|
--brand-purple: 126 34 206;
|
|
--avatar-fill: 121 137 255;
|
|
--avatar-text: var(--text-primary);
|
|
--avatar-placeholder: var(--surface-secondary);
|
|
--avatar-edge: 240 246 252;
|
|
--illustration-subtle: 175 193 255;
|
|
--illustration: 121 137 255;
|
|
--illustration-strong: 60 70 255;
|
|
--file-document: 255 85 136;
|
|
--file-sheet: 16 163 127;
|
|
--file-code: 255 110 60;
|
|
--file-artifact: 45 48 92;
|
|
--file-audio: 255 107 53;
|
|
--file-video: 139 92 246;
|
|
--file-generic: 0 0 255;
|
|
--file-ink: 255 255 255;
|
|
--presentation: var(--white);
|
|
--text-primary: var(--gray-800);
|
|
--text-secondary: var(--gray-600);
|
|
--text-secondary-alt: var(--gray-500);
|
|
--text-tertiary: var(--gray-500);
|
|
--text-muted: 105 110 121; /* Click UI global.color.text.muted #696e79 */
|
|
--badge-label: var(--text-primary);
|
|
--shimmer-dip: 129 130 134;
|
|
--shimmer-dip-alpha: 0.18;
|
|
--text-warning: var(--amber-700);
|
|
--text-destructive: var(--red-600);
|
|
--link: var(--blue-600);
|
|
--link-hover: var(--blue-700);
|
|
--scrollbar-thumb: var(--black);
|
|
--scrollbar-thumb-alpha: 0.1;
|
|
--page-canvas: var(--surface-primary-alt);
|
|
--select-fill: var(--white);
|
|
--select-edge: 142 142 160;
|
|
--button-neutral-border: var(--black);
|
|
--button-neutral-text: 64 65 79;
|
|
--button-neutral-hover: var(--gray-20);
|
|
--link-inline: 0 102 204;
|
|
--toast-edge: 67 90 111;
|
|
--stroke-ink: var(--black);
|
|
--stroke-ink-alpha: 0.1;
|
|
--link-visited: 147 51 234;
|
|
--link-prose: var(--link);
|
|
--accent-primary: 18 110 107;
|
|
--accent-primary-hover: 10 79 83;
|
|
--ring-primary: var(--gray-500);
|
|
--focus-outline: 0 0 0;
|
|
--header-primary: var(--white);
|
|
--header-hover: var(--gray-50);
|
|
--header-button-hover: var(--gray-50);
|
|
--surface-active: var(--gray-100);
|
|
--surface-active-alt: var(--gray-200);
|
|
--surface-hover: var(--gray-200);
|
|
--surface-hover-alt: var(--gray-300);
|
|
--surface-pressed: var(--gray-200);
|
|
--surface-composer-hover: var(--gray-200);
|
|
--surface-primary: var(--white);
|
|
/* Light widgets sit on the page surface and its light rule; dark mode lifts them (below). */
|
|
--chart-widget-surface: var(--surface-primary);
|
|
--chart-widget-stroke: var(--border-light);
|
|
--surface-primary-alt: var(--gray-50);
|
|
--surface-primary-contrast: var(--gray-100);
|
|
--surface-secondary: var(--gray-50);
|
|
--surface-secondary-alt: var(--gray-200);
|
|
--surface-tertiary: var(--gray-100);
|
|
--surface-tertiary-alt: var(--white);
|
|
--surface-dialog: var(--white);
|
|
--dialog-title: var(--text-primary);
|
|
--surface-overlay: var(--gray-500);
|
|
--surface-media-overlay: 0 0 0;
|
|
--text-on-media: var(--white);
|
|
--surface-media-chip: var(--white);
|
|
--surface-media-chip-alpha: 0.75;
|
|
--surface-submit: var(--green-700);
|
|
--surface-submit-hover: var(--green-800);
|
|
--surface-destructive: var(--red-700);
|
|
--surface-destructive-hover: var(--red-800);
|
|
--surface-chat: var(--white);
|
|
--surface-code: var(--surface-primary-alt);
|
|
--surface-code-body: var(--surface-chat);
|
|
--surface-code-inline: var(--surface-active-alt);
|
|
--prose-bullet: var(--border-medium);
|
|
--prose-quote-bar: var(--border-medium);
|
|
--surface-qr: var(--white);
|
|
--border-light: var(--gray-200);
|
|
--border-light-alpha: 1;
|
|
--border-medium-alt: var(--gray-300);
|
|
--border-medium: var(--gray-300);
|
|
--border-medium-alpha: 1;
|
|
--border-heavy: var(--gray-400);
|
|
--border-heavy-alpha: 1;
|
|
--border-xheavy: var(--gray-500);
|
|
--border-xheavy-alpha: 1;
|
|
/* The drawer's own fill: the scrim separates it in light. */
|
|
--drawer-edge: var(--surface-sidebar);
|
|
--border-destructive: var(--red-600);
|
|
--border-control: var(--gray-200);
|
|
--border-field-focus: var(--focus-control);
|
|
--focus-subtle: var(--border-heavy);
|
|
--field-fill: var(--surface-primary);
|
|
--field-text: var(--text-primary);
|
|
--checkbox-fill: var(--surface-primary);
|
|
--surface-tooltip: var(--surface-primary);
|
|
--text-tooltip: var(--text-primary);
|
|
--alert-error-fill: var(--status-error-subtle);
|
|
--alert-error-border: var(--status-error-border);
|
|
--surface-canvas: var(--surface-primary-alt);
|
|
--surface-user-message: var(--surface-tertiary);
|
|
--surface-card: var(--surface-secondary);
|
|
--surface-card-hover: var(--surface-tertiary);
|
|
--surface-nav-hover: var(--surface-active-alt);
|
|
--surface-nav-selected: var(--surface-active-alt);
|
|
--surface-tab-selected: var(--surface-tertiary);
|
|
--surface-menu: var(--presentation);
|
|
--surface-popover: var(--surface-primary);
|
|
--border-menu: var(--border-light);
|
|
--surface-composer: var(--surface-chat);
|
|
--surface-search: var(--surface-secondary);
|
|
--surface-sidebar: var(--surface-primary-alt);
|
|
--focus-control: var(--gray-800);
|
|
--border-disabled: var(--gray-200);
|
|
--status-success: var(--green-700);
|
|
--status-success-subtle: var(--green-50);
|
|
--status-success-border: var(--green-300);
|
|
--status-success-strong: 2 133 94;
|
|
--status-info: var(--blue-600);
|
|
--status-info-subtle: var(--blue-50);
|
|
--status-info-border: var(--blue-300);
|
|
--status-info-strong: var(--gray-500);
|
|
--status-warning: var(--amber-700);
|
|
--status-warning-subtle: var(--amber-50);
|
|
--status-warning-border: var(--amber-300);
|
|
--status-warning-strong: 199 82 9;
|
|
--status-error: var(--red-700);
|
|
--status-error-subtle: var(--red-50);
|
|
--status-error-border: var(--red-300);
|
|
--status-error-strong: 224 47 31;
|
|
--status-neutral: var(--gray-600);
|
|
--status-neutral-subtle: var(--gray-100);
|
|
--status-neutral-border: var(--gray-300);
|
|
--status-verified: 37 99 235;
|
|
--text-on-status: var(--white);
|
|
--text-disabled: var(--gray-400);
|
|
|
|
/* Categorical series scale: slot order is the CVD-safety mechanism */
|
|
--series-1: 5 110 189;
|
|
--series-2: 233 86 13;
|
|
--series-3: 0 148 142;
|
|
--series-4: 182 123 5;
|
|
--series-5: 216 90 142;
|
|
--series-6: 126 35 205;
|
|
--series-7: 1 131 1;
|
|
--series-8: 63 81 181;
|
|
--category-icon-1: var(--series-1);
|
|
--category-icon-2: var(--series-2);
|
|
--category-icon-4: var(--series-4);
|
|
--category-icon-5: var(--series-5);
|
|
--category-icon-6: var(--series-6);
|
|
--category-icon-7: var(--series-7);
|
|
|
|
/* Code syntax highlighting */
|
|
--syntax-text: var(--gray-800);
|
|
--syntax-comment: var(--gray-500);
|
|
--syntax-meta: var(--gray-600);
|
|
--syntax-builtin: 154 103 0;
|
|
--syntax-keyword: 5 80 174;
|
|
--syntax-string: 10 123 98;
|
|
--syntax-attr: 154 47 106;
|
|
--syntax-title: 180 35 24;
|
|
|
|
--surface-inverted: var(--gray-850);
|
|
--surface-inverted-hover: var(--gray-700);
|
|
--surface-inverted-pressed: var(--gray-700);
|
|
--button-primary: var(--surface-inverted);
|
|
--button-primary-hover: var(--surface-inverted-hover);
|
|
--surface-disabled: var(--gray-100);
|
|
--text-inverted: var(--white);
|
|
--surface-fixed: var(--white);
|
|
--surface-fixed-hover: var(--gray-100);
|
|
--text-fixed: var(--gray-800);
|
|
--theme-control-radius: 0.75rem;
|
|
--theme-round-control-radius: 9999px;
|
|
--theme-surface-radius: 1rem;
|
|
--theme-large-surface-radius: 1.5rem;
|
|
--theme-menu-radius: 0.7rem;
|
|
--theme-popover-radius: var(--theme-radius-2xl, 1rem);
|
|
--theme-menu-panel-radius: var(--theme-radius-xl, 0.75rem);
|
|
--theme-compact-panel-radius: var(--theme-radius-lg, 0.5rem);
|
|
--theme-composer-action-radius: var(--theme-round-control-radius, 9999px);
|
|
--theme-inline-code-weight: 600;
|
|
--theme-tooltip-radius: 0.275rem;
|
|
--theme-tooltip-padding-x: 0.5rem;
|
|
--theme-tooltip-padding-y: 0.25rem;
|
|
--theme-tooltip-text-size: 1rem;
|
|
--theme-tab-radius: 0.185rem;
|
|
--theme-tab-min-width: 100px;
|
|
--theme-list-min-width: 8rem;
|
|
--theme-list-max-height: 24rem;
|
|
--theme-radius-sm: calc(0.5rem - 4px);
|
|
--theme-radius-md: calc(0.5rem - 2px);
|
|
--theme-radius-lg: 0.5rem;
|
|
--theme-radius-xl: 0.75rem;
|
|
--theme-radius-2xl: 1rem;
|
|
--theme-radius-3xl: 1.5rem;
|
|
--theme-control-height: 2.25rem;
|
|
--theme-control-padding-x: var(--theme-space-normal, 0.75rem);
|
|
--theme-control-gap: var(--theme-space-compact, 0.375rem);
|
|
--theme-icon-size: 1rem;
|
|
--theme-icon-size-md: 1.25rem;
|
|
--theme-icon-size-lg: 1.5rem;
|
|
--theme-control-font-weight: 500;
|
|
--theme-button-padding-x: 1rem;
|
|
--theme-button-height: 2.5rem;
|
|
--theme-button-height-sm: 2.25rem;
|
|
--theme-button-height-xs: 1.75rem;
|
|
--theme-button-height-lg: 2.75rem;
|
|
--theme-button-height-compact: 2rem;
|
|
--theme-icon-button-size-sm: 2rem;
|
|
--theme-field-height: 2.5rem;
|
|
--theme-field-height-lg: 3rem;
|
|
--theme-auth-field-height: 2.75rem;
|
|
--theme-auth-button-height: 3rem;
|
|
--theme-auth-control-radius: var(--theme-radius-2xl, 1rem);
|
|
--theme-auth-action-height: var(--theme-button-height, 2.5rem);
|
|
--theme-auth-action-radius: var(--theme-radius-lg, 0.5rem);
|
|
--theme-field-padding-y: 0.5rem;
|
|
--theme-field-focus-style: ring;
|
|
--theme-field-fill-style: transparent;
|
|
--theme-focus-ring-width: 2px;
|
|
--theme-focus-ring-offset: 2px;
|
|
--theme-label-size: var(--theme-text-sm, 0.875rem);
|
|
--theme-label-leading: 1;
|
|
--theme-label-font-weight: inherit;
|
|
--theme-switch-width: 2.75rem;
|
|
--theme-switch-height: 1.5rem;
|
|
--theme-checkbox-size: 1rem;
|
|
--theme-checkbox-radius: var(--theme-radius-sm, calc(0.5rem - 4px));
|
|
--theme-checkbox-fill-style: transparent;
|
|
--theme-table-cell-space-y: 1rem;
|
|
--theme-table-row-stroke: 0px;
|
|
--theme-space-compact: 0.375rem;
|
|
--theme-space-normal: 0.75rem;
|
|
--theme-disabled-style: dim;
|
|
--theme-dialog-stroke: 0px;
|
|
--theme-dialog-padding-x: 1.5rem;
|
|
--theme-dialog-header-gap: 0.375rem;
|
|
--theme-dialog-title-size: var(--theme-text-lg, 1.125rem);
|
|
--theme-dialog-title-leading: 1;
|
|
--theme-dialog-title-font-weight: 600;
|
|
--theme-dialog-title-font-family: var(--theme-display-font-family, Inter, sans-serif);
|
|
--theme-scrim-opacity: 0.8;
|
|
--theme-alert-scrim-opacity: 0.9;
|
|
--theme-modal-scrim-opacity: 0.65;
|
|
--theme-button-neutral-border-opacity: 0.1;
|
|
--theme-font-family: Inter, sans-serif;
|
|
--theme-display-font-family: Inter, sans-serif;
|
|
--theme-text-xs: 0.75rem;
|
|
--theme-text-xs-leading: calc(1 / 0.75);
|
|
--theme-text-sm: 0.875rem;
|
|
--theme-text-sm-leading: calc(1.25 / 0.875);
|
|
--theme-text-base: 1rem;
|
|
--theme-text-base-leading: calc(1.5 / 1);
|
|
--theme-text-lg: 1.125rem;
|
|
--theme-text-lg-leading: calc(1.75 / 1.125);
|
|
--theme-text-xl: 1.25rem;
|
|
--theme-text-xl-leading: calc(1.75 / 1.25);
|
|
--theme-text-2xl: 1.5rem;
|
|
--theme-text-3xs: 0.625rem;
|
|
--theme-text-2xs: 0.6875rem;
|
|
--theme-text-1xs: 0.8125rem;
|
|
--theme-text-1sm: 0.9375rem;
|
|
--theme-text-2xl-leading: calc(2 / 1.5);
|
|
--theme-text-3xl: 1.875rem;
|
|
--theme-text-3xl-leading: calc(2.25 / 1.875);
|
|
/* Roboto Mono is self-hosted (the `@font-face` block below), so code renders the same on every
|
|
* platform with real bold and italic faces. The tail is reached while the font loads, if it
|
|
* fails, and per glyph for what the bundled latin subset omits (box drawing in terminal output
|
|
* most visibly), ordered so those glyphs keep Roboto Mono's advance width: `ui-monospace` is SF
|
|
* Mono on macOS, Cascadia Mono ships with Windows Terminal, and Consolas is last because it is
|
|
* narrower than the rest. */
|
|
--theme-mono-font-family:
|
|
'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, 'Cascadia Mono', 'Liberation Mono',
|
|
Consolas, monospace;
|
|
--theme-elevation-surface: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
--theme-elevation-drag: 0 10px 25px rgb(0 0 0 / 0.1);
|
|
--theme-shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
|
|
--theme-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--theme-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
--theme-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
--theme-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
--theme-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
--theme-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
--theme-menu-shadow: var(
|
|
--theme-shadow-lg,
|
|
0 10px 15px -3px rgb(0 0 0 / 0.1),
|
|
0 4px 6px -4px rgb(0 0 0 / 0.1)
|
|
);
|
|
--theme-tooltip-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.25);
|
|
--theme-motion-fast: 150ms;
|
|
--theme-motion-normal: 200ms;
|
|
--theme-border-chrome-alpha: 1;
|
|
--theme-border-inset-alpha: 1;
|
|
--theme-destructive-style: fill;
|
|
--switch-unchecked: 148 148 148;
|
|
--switch-thumb: 255 255 255;
|
|
/* Follows the secondary text it was before it had a role, in every mode. */
|
|
--table-header-text: var(--text-secondary);
|
|
--table-header-fill: var(--surface-dialog);
|
|
--provider-openai: #19c37d;
|
|
--provider-openai-gpt4: #ab68ff;
|
|
--provider-openai-reasoning: #000000;
|
|
--provider-anthropic: #d09a74;
|
|
--provider-azure: linear-gradient(0.375turn, #61bde2, #4389d0);
|
|
--provider-bedrock: #268672;
|
|
--provider-foreground: #ffffff;
|
|
}
|
|
.dark {
|
|
--brand-purple: 171 104 255;
|
|
--avatar-fill: 121 137 255;
|
|
--avatar-text: 255 255 255;
|
|
--avatar-placeholder: var(--surface-tertiary);
|
|
--avatar-edge: 240 246 252;
|
|
--illustration-subtle: 175 193 255;
|
|
--illustration: 121 137 255;
|
|
--illustration-strong: 60 70 255;
|
|
--file-document: 255 85 136;
|
|
--file-sheet: 16 163 127;
|
|
--file-code: 255 110 60;
|
|
--file-artifact: 45 48 92;
|
|
--file-audio: 255 107 53;
|
|
--file-video: 139 92 246;
|
|
--file-generic: 0 0 255;
|
|
--file-ink: 255 255 255;
|
|
--presentation: var(--gray-800);
|
|
--text-primary: var(--gray-100);
|
|
--focus-outline: 255 255 255;
|
|
--text-secondary: var(--gray-300);
|
|
--text-secondary-alt: var(--gray-400);
|
|
--text-tertiary: var(--gray-400);
|
|
--text-muted: 179 182 189; /* Click UI global.color.text.muted #b3b6bd */
|
|
--badge-label: var(--text-primary);
|
|
--shimmer-base: 255 255 255;
|
|
--shimmer-base-alpha: 0.8;
|
|
--shimmer-dip: 179 179 179;
|
|
--shimmer-dip-alpha: 0.25;
|
|
--text-warning: var(--amber-500);
|
|
--text-destructive: var(--red-400);
|
|
--link: var(--blue-400);
|
|
--scrollbar-thumb: var(--white);
|
|
--page-canvas: var(--gray-850);
|
|
--button-neutral-border: var(--gray-600);
|
|
--button-neutral-text: 255 255 240;
|
|
--button-neutral-hover: var(--gray-600);
|
|
--link-inline: 82 160 255;
|
|
--stroke-ink: var(--white);
|
|
--stroke-ink-alpha: 0.3;
|
|
--link-hover: var(--blue-300);
|
|
--link-visited: 192 132 252;
|
|
--link-prose: var(--text-primary);
|
|
--accent-primary: 65 167 157;
|
|
--accent-primary-hover: 109 200 185;
|
|
--header-primary: var(--gray-700);
|
|
--header-hover: var(--gray-600);
|
|
--header-button-hover: var(--gray-700);
|
|
--surface-active: var(--gray-500);
|
|
--surface-active-alt: var(--gray-700);
|
|
--surface-hover: var(--gray-650);
|
|
--surface-hover-alt: var(--gray-600);
|
|
--surface-pressed: var(--gray-650);
|
|
--surface-composer-hover: var(--gray-600);
|
|
--surface-primary: var(--gray-900);
|
|
--chart-widget-surface: 40 40 40; /* Click UI dashboards.chartWidget.color.background.default #282828 */
|
|
--chart-widget-stroke: 50 50 50; /* Click UI dashboards.chartWidget.color.stroke.default #323232 */
|
|
--surface-primary-alt: var(--gray-850);
|
|
--surface-primary-contrast: var(--gray-850);
|
|
--surface-secondary: var(--gray-800);
|
|
--surface-secondary-alt: var(--gray-800);
|
|
--surface-tertiary: var(--gray-700);
|
|
--surface-tertiary-alt: var(--gray-700);
|
|
--surface-dialog: var(--gray-875);
|
|
--dialog-title: var(--text-primary);
|
|
--surface-overlay: 0 0 0;
|
|
--surface-media-overlay: 0 0 0;
|
|
--text-on-media: var(--white);
|
|
--surface-media-chip: 0 0 0;
|
|
--surface-media-chip-alpha: 0.65;
|
|
--surface-submit: var(--green-700);
|
|
--surface-submit-hover: var(--green-800);
|
|
--surface-destructive: var(--red-800);
|
|
--surface-destructive-hover: var(--red-900);
|
|
--surface-chat: var(--gray-700);
|
|
--surface-code: var(--presentation);
|
|
--surface-code-body: var(--surface-primary-alt);
|
|
--surface-code-inline: var(--surface-hover-alt);
|
|
--prose-bullet: var(--border-medium);
|
|
--prose-quote-bar: var(--border-medium);
|
|
--surface-qr: var(--white);
|
|
/* One step off the page instead of two: in dark the edge only has to separate
|
|
a surface from the one behind it, and a brighter line reads as a seam. */
|
|
--border-light: var(--gray-800);
|
|
--border-medium-alt: var(--gray-650);
|
|
--border-medium: var(--gray-650);
|
|
--border-heavy: var(--gray-500);
|
|
--border-xheavy: var(--gray-400);
|
|
/* Dark draws a visible edge: the scrim and the drawer are both near-black. */
|
|
--drawer-edge: var(--border-xheavy);
|
|
--border-destructive: var(--red-500);
|
|
--border-control: var(--gray-800);
|
|
--border-field-focus: var(--focus-control);
|
|
--field-fill: var(--surface-primary);
|
|
--field-text: var(--text-primary);
|
|
--checkbox-fill: var(--surface-primary);
|
|
--surface-tooltip: var(--surface-primary);
|
|
--text-tooltip: var(--text-primary);
|
|
--alert-error-fill: var(--status-error-subtle);
|
|
--alert-error-border: var(--status-error-border);
|
|
--surface-canvas: var(--surface-primary-alt);
|
|
--surface-user-message: var(--surface-tertiary);
|
|
--surface-card: var(--surface-secondary);
|
|
--surface-card-hover: var(--surface-tertiary);
|
|
--surface-nav-hover: var(--surface-active-alt);
|
|
--surface-nav-selected: var(--surface-active-alt);
|
|
--surface-tab-selected: var(--surface-tertiary);
|
|
--surface-menu: var(--presentation);
|
|
--surface-popover: var(--surface-secondary);
|
|
--border-menu: var(--border-light);
|
|
--surface-composer: var(--surface-chat);
|
|
--surface-search: var(--surface-secondary);
|
|
--surface-sidebar: var(--surface-primary-alt);
|
|
--focus-control: var(--gray-100);
|
|
--border-disabled: var(--gray-650);
|
|
--status-success: var(--green-300);
|
|
--status-success-subtle: var(--green-950);
|
|
--status-success-border: var(--green-800);
|
|
--status-success-strong: 8 135 89;
|
|
--status-info: var(--blue-300);
|
|
--status-info-subtle: var(--blue-950);
|
|
--status-info-border: var(--blue-800);
|
|
--status-info-strong: var(--gray-600);
|
|
--status-warning: var(--amber-300);
|
|
--status-warning-subtle: var(--amber-950);
|
|
--status-warning-border: var(--amber-800);
|
|
--status-warning-strong: var(--amber-800);
|
|
--status-error: var(--red-300);
|
|
--status-error-subtle: var(--red-950);
|
|
--status-error-border: var(--red-800);
|
|
--status-error-strong: var(--red-800);
|
|
--status-neutral: var(--gray-300);
|
|
--status-neutral-subtle: var(--gray-800);
|
|
--status-neutral-border: var(--gray-700);
|
|
--status-verified: 26 127 216;
|
|
--text-on-status: var(--white);
|
|
|
|
/* Categorical series scale: same hues, stepped for the dark surface */
|
|
--series-1: 9 140 238;
|
|
--series-2: 217 87 35;
|
|
--series-3: 6 158 152;
|
|
--series-4: 200 133 12;
|
|
--series-5: 213 82 130;
|
|
--series-6: 171 104 254;
|
|
--series-7: 80 167 49;
|
|
--series-8: 120 130 190;
|
|
--category-icon-1: var(--series-1);
|
|
--category-icon-2: var(--series-2);
|
|
--category-icon-4: var(--series-4);
|
|
--category-icon-5: var(--series-5);
|
|
--category-icon-6: var(--series-6);
|
|
--category-icon-7: var(--series-7);
|
|
|
|
/* Code syntax highlighting. Comment and meta are the flattened equivalents of
|
|
the 50% and 60% alpha whites this palette used before it was tokenized. */
|
|
--syntax-text: var(--white);
|
|
--syntax-comment: 144 144 144;
|
|
--syntax-meta: 166 166 166;
|
|
--syntax-builtin: 233 149 12;
|
|
--syntax-keyword: 46 149 211;
|
|
--syntax-string: 0 166 125;
|
|
--syntax-attr: 223 48 121;
|
|
--syntax-title: 242 44 61;
|
|
|
|
--surface-inverted: var(--white);
|
|
--surface-inverted-hover: var(--gray-100);
|
|
--surface-inverted-pressed: var(--gray-100);
|
|
--button-primary: var(--surface-inverted);
|
|
--button-primary-hover: var(--surface-inverted-hover);
|
|
--surface-disabled: var(--gray-700);
|
|
--text-inverted: var(--gray-850);
|
|
--surface-fixed: var(--white);
|
|
--surface-fixed-hover: var(--gray-100);
|
|
--text-fixed: var(--gray-800);
|
|
--switch-unchecked: 102 102 102;
|
|
--switch-thumb: 13 13 13;
|
|
--provider-openai: #19c37d;
|
|
--provider-openai-gpt4: #ab68ff;
|
|
--provider-openai-reasoning: #000000;
|
|
--provider-anthropic: #d09a74;
|
|
--provider-azure: linear-gradient(0.375turn, #61bde2, #4389d0);
|
|
--provider-bedrock: #268672;
|
|
--provider-foreground: #ffffff;
|
|
/* The appearance defaults that differ in dark mode (`darkAppearanceDefaults`). */
|
|
--theme-menu-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
--theme-tooltip-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.35);
|
|
--theme-button-neutral-border-opacity: 1;
|
|
}
|
|
|
|
/* A root other than the document one that a legacy palette themes (`THEME_SCOPE_ATTRIBUTE` in
|
|
utils/applyTheme.ts) keeps its avatar backdrop, code chip, list marker and quote bar on its own surfaces,
|
|
following the mode, as the document root's aliases above do. The layering roles alias their source the same way, so a
|
|
scoped palette that repaints the source moves them. An explicit role set inline still wins. */
|
|
[data-theme-scope] {
|
|
--avatar-placeholder: var(--surface-secondary);
|
|
--surface-code-inline: var(--surface-active-alt);
|
|
--prose-bullet: var(--border-medium);
|
|
--prose-quote-bar: var(--border-medium);
|
|
--surface-canvas: var(--surface-primary-alt);
|
|
--surface-user-message: var(--surface-tertiary);
|
|
--surface-card: var(--surface-secondary);
|
|
--surface-card-hover: var(--surface-tertiary);
|
|
--surface-nav-hover: var(--surface-active-alt);
|
|
--surface-nav-selected: var(--surface-active-alt);
|
|
--surface-tab-selected: var(--surface-tertiary);
|
|
--surface-menu: var(--presentation);
|
|
--surface-popover: var(--surface-primary);
|
|
--border-menu: var(--border-light);
|
|
--surface-composer: var(--surface-chat);
|
|
--surface-search: var(--surface-secondary);
|
|
--surface-sidebar: var(--surface-primary-alt);
|
|
}
|
|
.dark [data-theme-scope],
|
|
[data-theme-scope].dark {
|
|
--avatar-placeholder: var(--surface-tertiary);
|
|
--surface-canvas: var(--surface-primary-alt);
|
|
--surface-user-message: var(--surface-tertiary);
|
|
--surface-card: var(--surface-secondary);
|
|
--surface-card-hover: var(--surface-tertiary);
|
|
--surface-nav-hover: var(--surface-active-alt);
|
|
--surface-nav-selected: var(--surface-active-alt);
|
|
--surface-tab-selected: var(--surface-tertiary);
|
|
--surface-menu: var(--presentation);
|
|
--surface-popover: var(--surface-secondary);
|
|
--border-menu: var(--border-light);
|
|
--surface-composer: var(--surface-chat);
|
|
--surface-search: var(--surface-secondary);
|
|
--surface-sidebar: var(--surface-primary-alt);
|
|
--surface-code-inline: var(--surface-hover-alt);
|
|
}
|