Skip to content

Releases: jorenbroekema/dark-theme-utils

v0.4.0

21 Sep 10:24
f54da08
Compare
Choose a tag to compare

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

20 Sep 11:32
95a9b51
Compare
Choose a tag to compare

Patch Changes

  • ca85f37: Fix _localStorageKey so that prevent-fart / initial theme setting also takes this key into account.

v0.3.4

20 Sep 10:49
Compare
Choose a tag to compare

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

20 Sep 08:50
476c23b
Compare
Choose a tag to compare

Patch Changes

  • 44d0830: Allow changing the key for localStorage on which the theme setting is stored, for subclassers of ThemeToggler.

v0.3.2

30 Aug 12:38
7d6b316
Compare
Choose a tag to compare

Patch Changes

  • 3744c0e: Add repository field to package.json for NPM.

v0.3.1

30 Aug 11:44
e40e7a4
Compare
Choose a tag to compare

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

30 Aug 08:53
b42edfd
Compare
Choose a tag to compare

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

16 Aug 16:56
684521c
Compare
Choose a tag to compare

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.