Repository navigation
style(themes): use theme tokens in Year in Code story (#3791) - #3844
Open
PranshuPujara wants to merge 1 commit into
Open
PranshuPujara wants to merge 1 commit into
PranshuPujara wants to merge 1 commit into
Conversation
Priyanshu-byte-coder
requested changes
Nov 26, 2026
Priyanshu-byte-coder
left a comment
Owner
There was a problem hiding this comment.
Thanks, and this is partly my fault: the issue was wrong about this file. The Year in Code story is deliberately an always-dark "cabinet" (see .wrapped-screen in globals.css: a fixed dark gradient in every theme). Switching its text to var(--foreground) / var(--muted-foreground) makes it dark text on that dark screen in Daylight.
So please keep the light text colours (text-slate-*) as they are and add a short comment that the story is always dark. Only the error and warning boxes can move to destructive / warning, and only if they still read well on the dark background in Daylight. Please add screenshots of the story in Arcade and Daylight.
…kens for error/warning boxes (Priyanshu-byte-coder#3791)
PranshuPujara
force-pushed
the
issue#3791
branch
from
November 26, 2026 20:02
89bbcf0 to
cbb846f
Compare
Contributor
Author
This branch has not been deployed
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.


Hey @Priyanshu-byte-coder
What and why
Replaces 18 hardcoded Tailwind palette classes (
text-slate-50,text-slate-400,text-slate-200,text-slate-100,text-slate-300,text-slate-950,border-rose-400/50,bg-rose-500/10,text-rose-300,text-rose-100,border-rose-200,bg-rose-100,text-rose-950,border-amber-300/40,bg-amber-300/10,text-amber-100) insrc/components/WrappedExperience.tsxwith semantic theme tokens (text-[var(--foreground)],text-[var(--muted-foreground)],border-destructive/50,bg-destructive/10,text-destructive,border-warning/40,bg-warning/10,text-warning,text-[#05070f]). This allows the Year in Code story to render legibly across all themes (Arcade, Daylight, Terminal, Synthwave).Closes #3791
How to test
pnpm devand visithttp://localhost:3000/wrapped?year=2024.grep -nE '(bg|text|border|from|to|via|ring)-(slate|gray|zinc|neutral|red|orange|amber|yellow|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-[0-9]{2,3}' src/components/WrappedExperience.tsxreturns 0 matches.Checklist
pnpm run lint,pnpm run type-checkandpnpm testpass locallyWinter of Code Social
Pranshu Pujara