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

Default to prefers-color-scheme without JS #7

Open
tfardet opened this issue Apr 3, 2023 · 1 comment
Open

Default to prefers-color-scheme without JS #7

tfardet opened this issue Apr 3, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tfardet
Copy link

tfardet commented Apr 3, 2023

At the moment, ar5iv theme defaults to light when javascript is disabled.

It would be nice to default to prefers-color-scheme instead so that:

  1. it works without JS
  2. it does not blink from white to dark on slow connections or devices

This could be done by following the example of the CSS of the furo theme, for instance.

@dginev dginev added the enhancement New feature or request label Apr 3, 2023
@dginev
Copy link
Owner

dginev commented Apr 3, 2023

Nice tip! I agree that is a good upgrade to make.

@dginev dginev added the good first issue Good for newcomers label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants