Skip to content

Commit a868258

Browse files
authored
fix(control-ui): darken the Absolutely surface ramp (#130239)
Absolutely shipped as the lightest dark theme in the set by a wide margin: its --bg #262624 sat well above Dash #1a1210, Claw #0e1015, and Knot #80808, which left the clay accent and the Lora prose with less separation than the palette was designed for. Steps the whole ramp down one notch (--bg #262624 -> #1c1c1a, with the card, elevated, hover, chrome, and border tiers following) and keeps the warm graphite cast. Text and accent tokens are untouched, so this is purely a surface change. Every measured pairing improved rather than regressed: worst text pair 4.68 -> 5.42:1 (in-browser, --muted on --bg-muted) accent on --card 4.47 -> 5.05:1 (AA where it previously was not) accent on --bg 4.86 -> 5.47:1 danger on its own subtle tint over --bg-muted 3.76 -> 4.32:1 The first-paint background in index.html and the Appearance preview chip mirror --bg by hand, so both move with it; the pre-paint assertion in mount-fallback covers that they stay in lockstep.
1 parent 3e87491 commit a868258

4 files changed

Lines changed: 29 additions & 26 deletions

File tree

‎ui/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
}
124124

125125
html[data-theme="absolutely"] {
126-
background: #262624;
126+
background: #1c1c1a;
127127
}
128128

129129
html[data-theme="absolutely-light"] {

‎ui/src/app/mount-fallback.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe("Control UI mount fallback", () => {
100100
"Absolutely dark",
101101
{ theme: "absolutely", themeMode: "dark" },
102102
"absolutely",
103-
"rgb(38, 38, 36)",
103+
"rgb(28, 28, 26)",
104104
],
105105
[
106106
"Absolutely light",

‎ui/src/styles/base.css‎

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -931,16 +931,19 @@
931931
/*
932932
* Accent — terracotta clay on warm graphite
933933
*
934-
* WCAG 2.1 AA audit (bg = #262624, relative luminance ≈ 0.0198):
935-
* --accent #d97757 L ≈ 0.257 contrast ≈ 4.9:1 AA text ✓
936-
* --accent-hover #e68b6b L ≈ 0.338 contrast ≈ 6.0:1 ✓
934+
* WCAG 2.1 AA audit (bg = #1c1c1a, relative luminance ≈ 0.0115):
935+
* --accent #d97757 L ≈ 0.257 contrast ≈ 5.5:1 AA text ✓
936+
* --accent-hover #e68b6b L ≈ 0.338 contrast ≈ 6.7:1 ✓
937937
* --primary-foreground #241f1b on #d97757 button: 5.2:1 AA ✓
938938
* --primary-foreground #241f1b on #e68b6b hover: 6.4:1 AA ✓
939939
* --destructive-foreground #fafafa on #d32f2f button: 4.77:1 AA ✓
940-
* focus-ring at 75% opacity: ≈ 3.3:1 against bg ✓ (non-text 3:1 required)
940+
* focus-ring at 75% opacity: ≈ 3.6:1 against bg ✓ (non-text 3:1 required)
941941
*
942-
* The accent dims below AA on the lightest surfaces (3.7:1 on --bg-muted),
943-
* so it stays a fill/indicator color there; body copy uses --text.
942+
* The surface ramp sits a step below the original #262624 launch palette,
943+
* which was the lightest dark theme in the set by a wide margin. Every
944+
* pairing improved: worst text 4.68 -> 5.42:1, accent on --card 4.47 ->
945+
* 5.05:1 (AA where it previously was not). The accent still dims below AA on
946+
* --bg-muted (4.3:1), so it stays a fill/indicator color there, not body copy.
944947
*/
945948
--ring: #d97757;
946949
--accent: #d97757;
@@ -961,23 +964,23 @@
961964
--focus-ring: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ring) 75%, transparent);
962965

963966
/* Surfaces — warm graphite, a shade off true neutral */
964-
--bg: #262624;
965-
--bg-accent: #2d2c29;
966-
--bg-elevated: #33322e;
967-
--bg-hover: #3a3934;
968-
--bg-muted: #3a3934;
967+
--bg: #1c1c1a;
968+
--bg-accent: #232320;
969+
--bg-elevated: #292825;
970+
--bg-hover: #302f2b;
971+
--bg-muted: #302f2b;
969972

970-
--card: #2d2c29;
973+
--card: #232320;
971974
--card-foreground: #ede8dd;
972975
--card-highlight: rgba(255, 246, 232, 0.04);
973-
--popover: #33322e;
976+
--popover: #292825;
974977
--popover-foreground: #ede8dd;
975978

976-
--panel: #262624;
977-
--panel-strong: #33322e;
978-
--panel-hover: #3a3934;
979-
--chrome: rgba(38, 38, 36, 0.96);
980-
--chrome-strong: rgba(38, 38, 36, 0.98);
979+
--panel: #1c1c1a;
980+
--panel-strong: #292825;
981+
--panel-hover: #302f2b;
982+
--chrome: rgba(28, 28, 26, 0.96);
983+
--chrome-strong: rgba(28, 28, 26, 0.98);
981984

982985
--text: #e4dfd4;
983986
--text-strong: #f5f1e8;
@@ -986,12 +989,12 @@
986989
--muted-strong: #b8b1a4;
987990
--muted-foreground: #aba498;
988991

989-
--border: #383630;
990-
--border-strong: #48453d;
991-
--border-hover: #5c584e;
992-
--input: #383630;
992+
--border: #2e2c27;
993+
--border-strong: #3d3a33;
994+
--border-hover: #514d44;
995+
--input: #2e2c27;
993996

994-
--secondary: #2d2c29;
997+
--secondary: #232320;
995998
--secondary-foreground: #ede8dd;
996999
--accent-2: #b8926a;
9971000
--accent-2-muted: rgba(184, 146, 106, 0.7);

‎ui/src/styles/config.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362

363363
.settings-theme-card--absolutely,
364364
.settings-accent-theme--absolutely {
365-
--theme-chip-bg: #262624;
365+
--theme-chip-bg: #1c1c1a;
366366
--theme-chip-accent: #d97757;
367367
--theme-chip-accent-2: #b8926a;
368368
}

0 commit comments

Comments
 (0)