Dark Mode Theme Switch with Persistence with light, dark, and system preference controls.
Preview dimensions are shown in CSS pixels.
Included files
Downloadable files and component requirements.
- index.html Demo 904 bytes
CSS (1)
- styles.css 7,076 bytes
Docs (2)
- LICENSE.txt License 1,613 bytes
- README.md Readme 2,103 bytes
Scripts (1)
- script.js 1,034 bytes
- Languages
- HTML CSS JS
- File type
- html
- Version
- 1.0.1
- License
- standard
- File size
- 5.7 KB
Support
Keep the included files together, check the README, and use the listed languages and dependencies. For component-specific help, send us a message below.
Fonts for your project
Get Inter and Source Sans 3, setup instructions, and licenses.
Details
A reusable Reduced Motion Preference Control for mobile websites and web applications. Includes motion preference override for a demo component. The demo should honor OS settings by default and store only explicit overrides. Responsive styling and editable source files included.
Features
- Reduced Motion Preference Control with motion preference override for a demo component
- Editable source files
- JavaScript interaction logic