Add a light theme with a toggle

Aperta
#41 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, html, javascript

Direzione di ricerca

Start in static/css/style.css and collect every hard-coded colour into variables on :root, then add a prefers-color-scheme: light block that redefines them. Next find the navbar template (likely under templates/) to place the toggle button, and add a small script that sets a data-theme attribute on the root element and stores the choice in localStorage, reading it back on load. Done means both themes render correctly, the toggle survives a reload, and contrast holds in each; check the rendered pages in a browser since there is no test suite named.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

frontend help wanted

The site only has a dark theme.

  • Move the colours in static/css/style.css into CSS variables if they aren't already
  • Add a light set of colours, used automatically when the system prefers light (prefers-color-scheme)
  • Add a toggle in the navbar that overrides the system choice and remembers it in localStorage
  • Check text contrast in both themes
Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

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 NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Accessibility

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.