fix(preview): theme the preview canvas via --muted token#66
Merged
Conversation
The outer canvas around the Slack chrome was hard-coded to #f4f4f4 (light) / #0e0f12 (dark), so brand presets like cyberpunk or ocean never reached it — the canvas stayed flat grey regardless of theme. Switch it to bg-muted so the active preset's muted color shows through (e.g. dark purple for cyberpunk dark, navy for ocean dark). The inner Slack frame intentionally still uses Slack's own canvas colors via isDark, since that surface is mimicking Slack itself. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
block-kitchen | 6a3123c | Commit Preview URL Branch Preview URL |
May 16 2026, 05:59 PM |
…magupta-a8bc32 # Conflicts: # src/components/surface.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The outer preview canvas — the area framing the Slack chrome — was hard-coded to
bg-[#f4f4f4]/bg-[#0e0f12], so it stayed flat grey regardless of the active brand preset. Switch it tobg-mutedso presets like Cyberpunk and Ocean actually reach the canvas.Why
Reported when running the Cyberpunk preset in dark mode: the page background went deep purple but the surrounding canvas stayed neutral grey, breaking the themed look. The
--mutedtoken already varies per preset, so routing the canvas through it is the natural fix.The inner Slack frame (Message / Modal / App Home) intentionally still uses Slack's own canvas colors (
#1a1d21/ white) viaisDark, since that surface is mimicking Slack itself and shouldn't theme.Verified
#f4f4f4#f1f5f9(≈ unchanged)#0e0f12#1e293b(dark slate)#0e0f12rgb(36,28,44)themed dark purple#0e0f12rgb(29,39,53)themed navyTest plan
pnpm typecheckpnpm lintpnpm test🤖 Generated with Claude Code