use-prefers-color-scheme
🪝 React hook for subscribing to user's color scheme preference. (by anatoliygatt)
tab-a11y
By micaavigliano
Our great sponsors
use-prefers-color-scheme | tab-a11y | |
---|---|---|
2 | 1 | |
31 | 0 | |
- | - | |
3.9 | 5.9 | |
9 months ago | 5 months ago | |
TypeScript | TypeScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-prefers-color-scheme
Posts with mentions or reviews of use-prefers-color-scheme.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-20.
-
I’ve built a fully themeable and accessible dark mode toggle component for React. [Details in the comments]
Thank you! I'm not linking to any articles here. dark-mode-toggle is a controlled React component, so you can query the preferred color scheme with a hook like https://github.com/anatoliygatt/use-prefers-color-scheme and set the mode prop to whatever value you like, as long as it is either dark or light 😉.
-
I’ve built two React hooks that will help you in making your apps more accessible
🗄 Repository: GitHub 💻 Live Demo: CodeSandbox
tab-a11y
Posts with mentions or reviews of tab-a11y.
We have used some of these posts to build our list of alternatives
and similar projects.
What are some alternatives?
When comparing use-prefers-color-scheme and tab-a11y you can also consider the following projects:
use-color - 🛼🛼🛼 The powerful color hook that all designers deserve. ✨ Parse and stringify that just works & 🦾 Strict type checking at compile time
accessibility-insights-web - Accessibility Insights for Web
react-hook - ↩ Strongly typed, concurrent mode-safe React hooks
react-micro-modal - Accessible, lightweight and configurable modal component with a11y-enabled.
use-prefers-reduced-motion - 🪝 React hook for subscribing to user's motion preference.
react-as-prop - Type-safe `as` prop utility for flexible and semantic UI components of React