Skip to content

Theme tokens instead of fixed colours in the Year in Code story #3791

Todo

Description

@Priyanshu-byte-coder

Summary

These files use fixed Tailwind palette classes (text-gray-400, bg-blue-500/10, …), so the Year in Code story looks the same in every theme (Arcade, Daylight, Terminal, Synthwave).

Where

src/components/WrappedExperience.tsx (18 fixed colours)

Find them with:

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}' <file>

Expected outcome

Use theme tokens instead of fixed Tailwind palette colours: bg-[var(--card)], text-[var(--muted-foreground)], border-[var(--border)], or the named Tailwind colours from tailwind.config.ts when you need opacity (bg-accent/10, text-destructive, border-accent/30). Note bg-[var(--x)]/10 does NOT work on our Tailwind 3 setup: it generates no CSS. Success, warning and error colours have their own tokens (success, warning, destructive).

Acceptance criteria

  • No fixed palette classes left in these files (truly fixed colours like GitHub language colours can stay with a comment)
  • Screenshots in Arcade and Daylight

Activity

  1. added
    good first issue
    level:beginner
    type:design
    level 1
    on Nov 25, 2026
  2. priyanshiy1312-ui commented on Nov 25, 2026

    @priyanshiy1312-ui

    /claim

  3. KartikeyG-world commented on Nov 26, 2026

    @KartikeyG-world
    Contributor

    /assign

  4. github-actions commented on Nov 26, 2026

    @github-actions

    @KartikeyG-world You already have 5 open issues assigned (#3806, #3805, #3804, #3803, #3802). The limit is 5 at a time so everyone gets a chance. Finish or unassign one (comment /unassign on it) and then ask again.

  5. PranshuPujara commented on Nov 26, 2026

    @PranshuPujara
    Contributor
  6. github-actions commented on Nov 26, 2026

    @github-actions

    Assigned to @PranshuPujara! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

  7. Priyanshu-byte-coder commented on Nov 26, 2026

    @Priyanshu-byte-coder
    OwnerAuthor

    Note for whoever picks this up: the Year in Code story is intentionally always dark, so its text colours should stay fixed. Only the error and warning boxes are in scope here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issuelevel 1level:beginnerstatus:assignedtype:design

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions