Make menus opaque and redesign the core palettes
Phase 5a-3. The owner chose candidate B of each palette. - Menus are opaque (UI-043, replaces UI-013). With a background image, menus are at least 92% opaque and blur the image. Submenus show as manual popovers in the top layer, so the blur cannot clip them. - In a light palette, the page is the lightest surface, and the side panes have a slight tint (UI-044). - RuneStone uses neutral surfaces and the rune cyan of the app icon. Claude Dark uses the layout of the Claude app. Claude Light uses a white page with brand Light panes and a darker orange for text. Sakura uses Petal Veil for active rows. - All five core palettes pass every readability rule. A text role keeps the hue of its source and changes only its lightness. - The accent-text rule also checks accent-2, because inline code in Read uses it as text. - The root token defaults match RuneStone Dark. pnpm check passes. pnpm test: 447 pass, 5 todo, 0 fail. Full smoke suite: 92 passed, 2 known. editor/markdownPaste and tables/formulas failed one time and passed on retry. workspace/manageTemplates fails about half of its runs, also on the previous commit: the tree menu rebuilds when the template list reloads, and the open submenu closes.
This commit is contained in:
+24
-19
@@ -35,29 +35,34 @@
|
||||
--rs-menu-icon-gap: 8px;
|
||||
--rs-menu-font-size: 13px;
|
||||
--rs-menu-border: transparent;
|
||||
--rs-menu-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
||||
--rs-menu-active-bg: color-mix(in srgb, var(--rs-bg-active) var(--rs-surface-opacity), transparent);
|
||||
/* Menus are opaque. With a background image, they stay at least 92% opaque and blur the image (UI-043). */
|
||||
--rs-menu-bg: var(--rs-bg-elevated);
|
||||
--rs-menu-active-bg: var(--rs-bg-active);
|
||||
--rs-menu-backdrop: none;
|
||||
--rs-image-menu-bg: color-mix(in srgb, var(--rs-bg-elevated) max(92%, var(--rs-surface-opacity)), transparent);
|
||||
--rs-image-menu-active-bg: color-mix(in srgb, var(--rs-bg-active) max(92%, var(--rs-surface-opacity)), transparent);
|
||||
--rs-image-menu-backdrop: blur(18px) saturate(1.2);
|
||||
--rs-menu-shadow: 0 8px 30px #0006;
|
||||
--rs-item-selection-radius: var(--rs-control-radius);
|
||||
--rs-item-selection-bg: color-mix(in srgb, var(--rs-accent) 20%, transparent);
|
||||
--rs-item-selection-border: var(--rs-accent);
|
||||
--rs-item-selection-width: 2px;
|
||||
--rs-bg: #141414;
|
||||
--rs-bg-elevated: #1c1c1c;
|
||||
--rs-bg-active: #2a2a2a;
|
||||
--rs-border: #2e2e2e;
|
||||
--rs-text-dim: #9a9a9a;
|
||||
--rs-text: #e6e6e6;
|
||||
--rs-text-strong: #f3f3f3;
|
||||
--rs-accent-2: #89ddff;
|
||||
--rs-accent: #82aaff;
|
||||
--rs-accent-dim: #6b8cce;
|
||||
--rs-accent-deep: #4d6aa8;
|
||||
--rs-error: #f44747;
|
||||
--rs-warn-hot: #d68a00;
|
||||
--rs-warn: #cca700;
|
||||
--rs-ok: #89d185;
|
||||
--rs-special: #c792ea;
|
||||
--rs-bg: #151617;
|
||||
--rs-bg-elevated: #1b1c1d;
|
||||
--rs-bg-active: #2b2d2e;
|
||||
--rs-border: #343637;
|
||||
--rs-text-dim: #ababab;
|
||||
--rs-text: #e4e4e4;
|
||||
--rs-text-strong: #f5f5f5;
|
||||
--rs-accent-2: #92c1fd;
|
||||
--rs-accent: #55dcf5;
|
||||
--rs-accent-dim: #48b4c9;
|
||||
--rs-accent-deep: #3b8d9c;
|
||||
--rs-error: #ff525b;
|
||||
--rs-warn-hot: #fe8c2c;
|
||||
--rs-warn: #f6c919;
|
||||
--rs-ok: #5cdc78;
|
||||
--rs-special: #cb89fa;
|
||||
--rs-link: var(--rs-accent);
|
||||
--rs-focus: var(--rs-accent);
|
||||
--rs-on-accent: #000000;
|
||||
@@ -84,7 +89,7 @@
|
||||
--rs-h4-size: 1.15em;
|
||||
--rs-h5-size: 1.08em;
|
||||
--rs-h6-size: 1em;
|
||||
--rs-selection: #264f78;
|
||||
--rs-selection: #01596d;
|
||||
--rs-line-highlight: #ffffff0d;
|
||||
--rs-h1: var(--rs-text-strong);
|
||||
--rs-h2: var(--rs-text-strong);
|
||||
|
||||
Reference in New Issue
Block a user