A light theme

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
77/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
css, javascript, nodejs
Domain
design, frontend

Research direction

Start in web/template.html at the :root color tokens and follow the storm drawing code that uses SKY and the colors in draw(). Read how the page, map, tables, and canvas colors are currently set, then run npm run data and npm run build and open site/leaderboard.html. Done when the light theme follows prefers-color-scheme, a toggle overrides and remembers the choice in localStorage, and both themes keep the tornado, map, tables, and red and blue markers readable.

Written by the indexing model from the issue text.

Description

enhancement good first issue

The page is dark only.

What to build

  • A light theme that follows prefers-color-scheme: light, plus a toggle that overrides it (remembered in localStorage).
  • The CSS colours are already tokens on :root (--sky, --panel, --line, --ink, --muted, --gold). The canvas tornado has its own colours in the script (SKY and the colours in draw()), which will need to read the theme too.
  • Keep the red (public commits) and blue (everything else) readable on a light background.

Where

Done when

  • Both themes look intentional, text has good contrast, and the tornado, map, and tables all switch.

Getting started: npm run data, then npm run build, then open site/leaderboard.html. No dependencies; see CONTRIBUTING.md.

Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wbp318/github-leaderboard

All issues in wbp318/github-leaderboard

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.