theme-toggle

A web component that simplifies controlling light/dark theming for a site.

MIT License

Downloads
314
Stars
16
Committers
1

Bot releases are hidden (Show)

theme-toggle - v1.3.1: code cleanup Latest Release

Published by cdransf 5 months ago

theme-toggle - v1.3.0: code cleanup

Published by cdransf 5 months ago

theme-toggle - v1.2.4

Published by cdransf 5 months ago

theme-toggle - fix: theming bug

Published by cdransf 8 months ago

Fixes a theming bug moving the selector up to :root (html)

Full Changelog: https://github.com/cdransf/theme-toggle/compare/v1.2.2...v1.2.3

theme-toggle - chore: clean up metadata

Published by cdransf 8 months ago

Cleans up package metadata.

theme-toggle - fix: minor revision

Published by cdransf 8 months ago

Minor revision.

theme-toggle - chore: refactor to prevent shift

Published by cdransf 8 months ago

  • refactor component to use shadow root, making templating clearer and prevent layout shift
theme-toggle - fix: additional bad references

Published by cdransf 8 months ago

Fixes additional bad reference values.

theme-toggle - fix: bad reference in load script

Published by cdransf 8 months ago

Addresses bad reference + condition in load script

theme-toggle - fix: adds aria label to theme button

Published by cdransf 8 months ago

Add aria label to theme button + update README

theme-toggle - chore: minor update to the readme

Published by cdransf 8 months ago

  • clarifies implementation
theme-toggle - fix: unthemed flash

Published by cdransf 8 months ago

  • fix the unthemed flash on load
  • update README to clarify fix
theme-toggle - Debug theme flash on load

Published by cdransf 8 months ago

Updates some of the theme logic to try and address flash on load.

theme-toggle - Clean up theme logic

Published by cdransf 8 months ago

Cleans up theming logic and leveraged session, rather than local storage.

theme-toggle - Refactor theme logic

Published by cdransf 8 months ago

Refactors and cleans up theme logic. Also aligns with the npm version number.

theme-toggle - Initial release

Published by cdransf 8 months ago

Initial component release.