Contribution heatmap: theme colours instead of fixed Tailwind palette

Aperta
#4,004 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@kartik70 ci sta già lavorando.

Dal 2/12/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

level 2 level:intermediate status:assigned type:design
Summary

Split from #3676. src/components/ContributionHeatmap.tsx has about 30 fixed palette classes, so the heatmap and its controls look the same in every theme and clash with Terminal and Synthwave.

Expected outcome

Every surface, text and border colour comes from the theme tokens in src/app/globals.css (var(--card), var(--muted-foreground), var(--accent), var(--border), var(--chart-N)...), with the named Tailwind colours from tailwind.config.ts (bg-accent/20, text-success...) where you need opacity. Note bg-[var(--x)]/NN produces no CSS in our Tailwind version, so use the named colours for opacity. The intensity scale should come from the theme's chart/accent tokens so each theme gets its own readable ramp. Find them with grep -nE '(bg|text|border|from|to|ring)-(slate|gray|zinc|neutral|blue|indigo|purple|violet|green|emerald|red|amber|yellow)-[0-9]{2,3}' <file>.

Acceptance criteria
  • No fixed palette classes left in the file
  • The intensity levels stay distinguishable in all four themes (and in the existing colour-blind palettes, if any)
  • Before/after screenshots at 1280px and 390px, in Arcade and Terminal (the theme where fixed colours clash most)
Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.