A Dark Theme / Light Theme Switcher SVG
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
style
.gitignore
README.md
example.html
preview.gif
switch.svg

README.md

SVG Dark Theme Switcher

This is an animated dark theme / light theme switcher made in SVG.
It sets a cookie (themeStyle) with the value light or dark that can then be used client- or server side.

Usage:

<embed src="switch.svg" width="100" type="image/svg+xml" />

View Demo

Switcher-Peview

Animation-Preview

Inspired (and designed to look similar) by https://codepen.io/bnthor/pen/WQBNxO