fix(website): readable filter pill labels in light mode

Active filter pills on /docs/user-stories used color: var(--ifm-background-color)
on a near-black background, but Infima's light theme resolves that variable to
transparent because custom.css only overrides it under [data-theme='dark'].
Default-active "All" pills therefore rendered as empty black blobs (#91491).

Switch to --ifm-color-emphasis-0 for theme-aware contrast. Apply the same fix to
skills page pick-button hover labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zohuyhieuzo03
2026-09-11 13:20:23 +07:00
committed by Teknium
parent ff97415c91
commit ee18a0b060
2 changed files with 6 additions and 2 deletions
@@ -68,7 +68,10 @@
}
.filterActive {
background: var(--ifm-color-emphasis-900);
color: var(--ifm-background-color);
/* emphasis-0 keeps labels readable on the near-black pill; --ifm-background-color
is only set under [data-theme='dark'] in custom.css, so Infima's light theme
resolves it to transparent and the default-active pills look like empty blobs (#91491). */
color: var(--ifm-color-emphasis-0);
border-color: var(--ifm-color-emphasis-900);
}
[data-theme='dark'] .filterActive {
+2 -1
View File
@@ -1036,5 +1036,6 @@
.pickBtn:hover {
background: var(--ifm-color-primary);
color: var(--ifm-background-color, #0b0b0e);
/* Same transparent --ifm-background-color failure mode as #91491. */
color: var(--ifm-color-emphasis-0, #f7f8fa);
}