Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add lightmode for accessibility #31

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

Merged
technoph1le merged 2 commits into quicksnip-dev:main from GreenMan36:theme-toggle
Dec 30, 2024

Conversation

Copy link
Contributor

@GreenMan36 GreenMan36 commented Dec 30, 2024

Personally, I'm not a fan of lightmode. I am however, a fan of accessibility, and I know a few people with contrast loss or partial blindness.

Lightmode is an accessibility option for those so I've implemented that. This paves the way for other improvements in the future.

Some notes:

  • The background isn't pure white to reduce eye strain.
  • We perceive brightness exponentially, not linearly, thus the colors account for that.

image

Yugveer06 reacted with thumbs up emoji
Respects browser preference, uses local storage for settings saving. Some elements aren't colored correctly or look ugly.
Copy link

netlify bot commented Dec 30, 2024
edited
Loading

Deploy Preview for quicksnip ready!

Name Link
🔨 Latest commit 5f7d833
🔍 Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/6772a44df8bdaf0008b4a6e7
😎 Deploy Preview https://deploy-preview-31--quicksnip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor Author

Additional note: I was also looking into theming the code preview, but I think that would work best with a second setting. As some might still prefer to have their code in dark or lightmode regardless of the site theme. Maybe we could add another toggle similar to the clipboard button?

Copy link
Collaborator

@GreenMan36 Adding light mode is a great idea. Later on, we can play around with the colors for the better contrast and accessibility. I am thinking to refactor the custom properties for the specific elements instead of general --neutral colors.

Side Note: Initial design of this project was in light mode. Since developers hate light mode, I had switched to dark mode. 😅

Figma preview

GreenMan36 and psychlone77 reacted with laugh emoji

@technoph1le technoph1le merged commit 600723c into quicksnip-dev:main Dec 30, 2024
4 checks passed
Copy link
Contributor Author

I actually just got the theming for the code preview, I just can't figure out how the hover color is done.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /