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 theme #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

delta1
Copy link
Member

@delta1 delta1 commented Jan 26, 2023

Looking at the RPC docs on a light background was wrecking my eyes 😅

This PR:

  • adds dark color theme for users with prefers-color-scheme: dark
  • increases max width to 1200px
  • replaces logo png with svg - black on light, white on dark theme. Smaller filesize too.
  • removes !important qualifiers that make editing styles more difficult
  • stores colors in scss variables for ease of maintenance

Deployed example at https://elements.delta1.dev

dark theme RPC doc

- adds dark color theme for users with `prefers-color-scheme: dark`
- increase max width to 1200px
- logo png replaced with svg - black on light, white on dark theme
- remove `!important` qualifiers that make editing styles more difficult
- store colors in scss variables for ease of maintenance

Deployed example at https://elements.delta1.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant