UNPKG

@cicciosgamino/color-scheme-button

Version:

Simple button to handle the color-scheme auto / light / dark / dim

50 lines (37 loc) 1.23 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [2.0.0] - 27-10-2021 ### Changed - Remove the auto mode because we detect the light/dark mode as starting point - Less animations ### Add - Completely new click and prefers-color-scheme handling - Sync between click and media query changes ## [1.1.0] - 06-10-2021 ## Changed - Only one animation for each svg icon (no continuous animations) ## [1.0.2] - 04-09-2021 ## Add - shape-rendering="geometricPrecision" to SVG icons ## [1.0.1] - 04-09-2021 ## Changed - Fixed image link into README.md file ## [1.0.0] - 04-09-2021 ## Added - comment with the code to dispatch the 'schema-event' event ## Changed - README.md - CHANGELOG.md - Minor fix to support v1.0.0 ## [0.2.0] - 01-09-2021 ## Added - document.firstElementChild.setAttribute('color-scheme', theme) ## [0.1.0] - 30-09-2021 ### Change - Fix width, height as attribute ## [0.0.1] - 30-09-2021 ### Added - Init by [@cicciosgamino](https://github.com/CICCIOSGAMINO).