fyoset / fyoset/latt-docs

Add dark mode for the docs

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

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Dark mode should be added, both to be set explicitly (toggle/switch button), and depending on system preferences (using [prefers-color-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme))

[This approach](https://github.com/googlechromelabs/dark-mode-toggle) looks easy and promising. Some ideas can also be found [here](https://github.com/vuejs/vuepress/issues/1865). The looks and behaviour can be just as simple as implemented [here](https://fyodor.io) ([source](https://github.com/fyodorio/fyodorio-is-gridsome)).

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the linked dark-mode-toggle approach, the VuePress discussion, and the example site's source, then locate the documentation site's theme entry point. Done means the docs support an explicit toggle and follow prefers-color-scheme system preferences with the simple behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.