Skip to content

Commit dc5819c

Browse files
committed
fix(themes): use --sf-color-action-source-dark in dark selection-bg
The [data-theme="dark"] override for --sf-color-selection-bg was still referencing --sf-color-action-source-light. This override takes precedence over the light-dark() fix in tokens.css, so dark-mode selection highlights were drawing from the light source (oklch 0.5 0.22 235) instead of the darker auto-derived source (oklch 0.7 0.198 235). Update to -source-dark for semantic correctness and to match the P8 baseline.
1 parent 9aeeeff commit dc5819c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/themes.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
--sf-color-link--visited: oklch(from var(--sf-color-action) clamp(0.68, l, 1) c calc(h + 60));
224224

225225
/* Selection */
226-
--sf-color-selection-bg: oklch(from var(--sf-color-action-source-light) clamp(0.62, calc(0.93 - l * 0.4), 0.78) c h / 0.55);
226+
--sf-color-selection-bg: oklch(from var(--sf-color-action-source-dark) clamp(0.62, calc(0.93 - l * 0.4), 0.78) c h / 0.55);
227227

228228
/* Status — strong variants (dark: push lightness up) */
229229
--sf-color-success-strong: oklch(from var(--sf-color-success) clamp(0.70, calc(l + 0.15), 1) c h);

0 commit comments

Comments
 (0)