Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Use theme tokens for chip selection colors

Bitti79f02ce6515c
diff --git a/src/styles/prompt-field.css b/src/styles/prompt-field.css
index bb6753d..a5883aa 100644
--- a/src/styles/prompt-field.css
+++ b/src/styles/prompt-field.css
@@ -76,9 +76,9 @@
/* Match the platform's selection colors, including in high-contrast mode. */
.prompt-chip.prompt-chip--selected {
- color: HighlightText;
- background: Highlight;
- border-color: Highlight;
+ color: var(--selection-text);
+ background: var(--selection-bg);
+ border-color: var(--selection-bg);
opacity: 1;
}
diff --git a/src/styles/tokens.css b/src/styles/tokens.css
index 8ca39dc..c86552a 100644
--- a/src/styles/tokens.css
+++ b/src/styles/tokens.css
@@ -72,6 +72,10 @@
:root {
color-scheme: dark;
+ /* Match native text selection, including the OS high-contrast palette. */
+ --selection-text: HighlightText;
+ --selection-bg: Highlight;
+
/* --- Font families ------------------------------------------------------
The Windows system faces. Nothing is self-hosted any more: Segoe UI
Variable and Cascadia Mono ship with Windows 11, which is the only