From ee18a0b06054439d8c43dc86a8feea2d3976bb7e Mon Sep 17 00:00:00 2001 From: zohuyhieuzo03 Date: Fri, 11 Sep 2026 13:20:23 +0700 Subject: [PATCH] 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 --- website/src/components/UserStoriesCollage/styles.module.css | 5 ++++- website/src/pages/skills/styles.module.css | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/src/components/UserStoriesCollage/styles.module.css b/website/src/components/UserStoriesCollage/styles.module.css index 42b9e6c7f9..a183e5c1e9 100644 --- a/website/src/components/UserStoriesCollage/styles.module.css +++ b/website/src/components/UserStoriesCollage/styles.module.css @@ -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 { diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.css index 5f51920851..f9a23dc4bb 100644 --- a/website/src/pages/skills/styles.module.css +++ b/website/src/pages/skills/styles.module.css @@ -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); }