Releases: jorenbroekema/dark-theme-utils
Releases · jorenbroekema/dark-theme-utils
v0.4.0
Minor Changes
- 66df75b: BREAKING: split up --theme-transition prop which used to cover background, color and fill, into separate CSS properties --theme-background-transition, --theme-color-transition, --theme-fill-transition. Also added a protected property _cssPropNames which you can override as a subclasser if you just want to change the names of these CSS custom properties to match your library/design system.
v0.3.5
Patch Changes
- ca85f37: Fix _localStorageKey so that prevent-fart / initial theme setting also takes this key into account.
v0.3.4
Patch Changes
- b9df4dc: Remove postinstall script husky as it is not intended to run when end-users install dark-theme-utils. Make it a prepare script instead with npx.
v0.3.3
Patch Changes
- 44d0830: Allow changing the key for localStorage on which the theme setting is stored, for subclassers of ThemeToggler.
v0.3.2
Patch Changes
- 3744c0e: Add repository field to package.json for NPM.
v0.3.1
Patch Changes
- b581bfb: Move initial theme setting to connectedCallback, as you should not set attributes in constructor of custom elements. This will produce a fatal error when doing document.createElement().
v0.3.0
Minor Changes
- f56c9b9: Adds a default transition after animation frame, so that users can easily animate theme switches. Use the --theme-transition CSS prop or override the method setupThemeTransition to setup your own.
v0.2.0
Minor Changes
- 60f6ad7: Adds tests with 100% coverage, some minor theme state inconsistencies fixed. preventFart returns the theme, this could be useful if people use it as initialization and want to know the initial theme, in order to initialize other things in their app that rely on theme and have to be done before any renders.