All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- enable() function in helpers to selectively enable dark/light mode
- beforeTransition() function in helpers, fixing unwanted transitions as a side-effect of having nightwind class at html tag.
- added tailwindcss as peerDependency
Huge thanks to @jaulz, @Djiit and @josephbuchma for the contributions for this release!
- Support for CSS variables
- 'nightwind-prevent-block' class
- fixedBlockClass Nightwind configuration option
- transitionClasses Nightwind configuration option
- Nightwind by default now generates transition classes only for 'text', 'bg' and 'border' color classes.
- Nightwind configuration option 'importantSibling' into 'importantNode'
- Support for important TailwindCSS configuration
- Configuration option 'importantSibling' in nightwind config
- Support for tailwindcss-jit
- Bug where tailwindcss-typography nightwind classes were not correctly generated, when using tailwindcss-jit
- Bug where sometimes color classes with 'inherit' or 'transparent' were not rendered correctly in dark mode
- Support for tailwindcss-typography official TailwindCSS plugin
- Support for 'group-focus' variant
- New 'variants', 'colorClasses' and 'transitionDuration' configuration in tailwind.config.js (with backward compatibility)
- 'group-hover' classes not being correctly generated
- Duplicated Nightwind transition classes from gradient classes
- Priority of gradient classes generated by Nightwind, which may not appear correctly in some cases
- Variants not being correctly applied to nightwind classes
- Custom color scale configuration
- The 'nightwind-prevent' class
- Support for 'first', 'last', 'even' and 'odd' child variants
- Solved light flicker and added dark mode persistence in helper functions
- New color inversion: now all colors get switched, also -50
- Hybrid color mappings
- Color mapping now use 'nightwind' instead of 'dark' in tailwind.config.js
- Color mappings
- Tailwind 2.0 support
- Support for inversion of -50 color weights
- Support for gradients in automatic dark mode
- Support for 'ring' color classes
- Support for 'ring-offset' color classes
- Fixed opacity not being added in nightwind color classes
- Automatic dark mode support for custom classes
- Overrides now use the TailwindCSS dark: variant
- Automatic dark mode
- Support for custom colors
- Variants support
- Overrides
- Helper functions