fix(theme): theme-aware brand chrome so user theme selection works (C-lite) #11

Merged
mohlec merged 1 commit from theme/gradient-c-lite into slash/main 2026-07-09 17:50:09 +00:00
Owner

Removes the global !important content-surface overrides in slash-theme.css that blocked theme switching on web (default rendered overtop the chosen theme; mobile unaffected). Brand gradients now derive from the active theme CSS vars via color-mix, so they track the chosen theme instead of freezing NCW purple. Content colors come from the built-in slash theme. Webapp-only.

Removes the global !important content-surface overrides in slash-theme.css that blocked theme switching on web (default rendered overtop the chosen theme; mobile unaffected). Brand gradients now derive from the active theme CSS vars via color-mix, so they track the chosen theme instead of freezing NCW purple. Content colors come from the built-in slash theme. Webapp-only.
fix(theme): make brand chrome theme-aware so user theme selection works (C-lite)
All checks were successful
Build Slash Webapp / branding-audit (pull_request) Successful in 48s
Build Slash Webapp / build-webapp (pull_request) Has been skipped
87976fab57
slash-theme.css was a global !important stylesheet hardcoding NCW colors on
content surfaces (post list, messages, channel header, modals, links, etc.),
overriding Mattermost's theme variables. On web, picking any non-default theme
appeared to do nothing — the default rendered overtop. Mobile was unaffected
(native RN theming never loads this CSS).

Fix: remove ALL content-surface color overrides (the built-in 'slash' theme in
preferences.ts already provides the default NCW look via theme variables, and
now yields to a user's chosen theme). Rewrite the sidebar / global-header /
app-bar / primary-button gradients to DERIVE from the active theme's CSS vars
(var(--sidebar-bg), var(--button-bg), ...) via color-mix — so the brand
gradient tracks whatever theme the user picks instead of freezing NCW purple.
Login/signup branding + AI icon stay fixed NCW purple (pre-auth, no user theme).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mohlec merged commit ab6e072f83 into slash/main 2026-07-09 17:50:09 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slash/slash-server!11
No description provided.