[Enhancement]: Support dark mode
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, python, tailwindcss
- Ambito
- accessibility, design, frontend
Direzione di ricerca
Start with frontend/src/index.css and frontend/tailwind.config.js, then inspect NavBar, MobileMenu, and the listed state components to see how themes and colors are handled. Read docs/design-system.md and prerequisite issue #452 for the semantic token conventions. Done means the light, dark, and system choices persist and update without reload, system changes are followed, and both themes meet the stated contrast and surface criteria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem?
SimBoard only has a light theme. Users who work in dark environments or prefer a dark OS theme get a bright UI. The unused .dark token scaffolding was removed in #452 because there was no toggle and no dark: usage, and raw slate-*, gray-*, and bg-white classes would not have adapted to a dark theme.
Describe the solution you'd like
- Define dark values for every semantic token in
frontend/src/index.cssand re-enable class-based dark mode infrontend/tailwind.config.js. - Add a theme control (light, dark, system) to
NavBarandMobileMenuthat persists the user's choice and defaults to the OS preference. - Make state colors (
Alertvariants,ExecutionStatusBadge, compare diff highlights, links) readable in both themes. - Document the theming rules in
docs/design-system.md.
Prerequisite: neutral colors use semantic tokens instead of raw slate-*, gray-*, and bg-white (#452, "Neutral colors").
Acceptance criteria
- Given a user selects dark, light, or system, then the whole app switches theme without a reload and keeps the choice on the next visit.
- Given system is selected, when the OS theme changes, then the app follows it.
- In both themes, text meets WCAG 2.2 AA contrast (4.5:1) and focus indicators and control icons meet 3:1.
- No page shows light-only surfaces (for example, white panels) in dark mode.
Describe alternatives you've considered
- Follow the OS preference only, with no toggle. Simpler, but users can't override it per app.
- Stay light-only. This is the current documented convention.
Additional context
Follow-up to #452.
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 2
- Merge medio
- 12h 49m
- PR unite (30g)
- 30
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di E3SM-Project/simboard
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
E3SM-Project/simboard#504 ·
I maintainer di solito rispondono entro 1 giorno
-
doc
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
E3SM-Project/simboard#356 ·
I maintainer di solito rispondono entro 1 giorno
-
devops
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
E3SM-Project/simboard#292 ·
I maintainer di solito rispondono entro 1 giorno
-
devops
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
E3SM-Project/simboard#170 ·
I maintainer di solito rispondono entro 1 giorno
-
refactor
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
E3SM-Project/simboard#509 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di E3SM-Project/simboard
Issue simili
-
backend: claude chore dependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
briandconnelly/amicus#606 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
semantica-agi/semantica#2320 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
vllm-project/vllm-omni#11465 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jxxghp/MoviePilot#7699 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vllm-project/vllm-ascend#24010 ·
I maintainer di solito rispondono entro 1 giorno