Add a light theme with a toggle

オープン
#41 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
css, html, javascript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
CSS
スター
1
フォーク
1
平均マージ
39分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NotADIM2/GameVault のほかの issue

NotADIM2/GameVault の issue をすべて見る

似ている issue

Accessibility の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。