Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Dark Mode #123

Open
techygrrrl opened this issue Feb 5, 2023 · 1 comment
Open

[FEAT] Dark Mode #123

techygrrrl opened this issue Feb 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@techygrrrl
Copy link

Is your feature request related to a problem? Please describe.

Some users prefer dark mode to light mode.

Describe the solution you'd like

It would be great to have the following configuration:

  • Detect system appearance mode preference. Default to light mode if system preference not supported.
  • Allow a theme picker that allows the user to change between the following options:
    • System
    • Light
    • Dark

We can store the preference e.g. light | dark in localStorage. On load, we can use that. If it's not present, we can choose system preference, if supported, or fallback to light mode.

Describe alternatives you've considered

I may write a user script to achieve the same thing, or I could use a Chrome extension like dark reader but I prefer to not install many extensions.

Additional context

Current light mode:

image

With dark mode modifications:

Use a colour picker to sample the colours.

Some borders were removed for simplicity in the theming, but you can change the border colours.

Add the following CSS for dark scrollbars:

html {
  color-scheme: dark;
}

image

The colours chosen above were sampled from elsewhere on TAU then had HSL value L adjusted to be darker. Feel free to change the colours.

@techygrrrl techygrrrl added the enhancement New feature or request label Feb 5, 2023
@techygrrrl
Copy link
Author

If anyone sees this and wants to use dark mode for TAU, I made a user script that hacks on some dark mode. It has screenshots below the gist. Click "Raw" to install with your user script runner (e.g. ViolentMonkey, GreaseMonkey, TamperMonkey, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant