This project adheres to Semantic Versioning.
- Added
removeMedia
option (by @aletorrado).
- Fixed
light-dark()
support in complex values (by @VladBrok). - Fixed source map for
light-dark()
(by @romainmenke).
- Fixed
!important
forlight-dark()
(by @yuheiy).
- Fixed function support inside
light-dark()
(by @VladBrok).
- Added
light-dark()
support (by @VladBrok).
- Added TypeScript types.
- Added
preferred-color-scheme: light
support (by Natalia Nagaeva).
- Moved to
:where()
to keep specificity. - Removed Node.js 12, 14, and 16 support.
- Fixed docs (by Qi Luo).
- Reduced package size.
- Improved docs.
- Fixed compatibility with other PostCSS plugins.
- Added already transformed rules ignoring.
- Added
rootSelector
option.
- Fixed parsing comments in at-rule (by @nobuhikosawai).
- Added funding links.
- Moved to PostCSS 8.
- Moved
postcss
topeerDependencies
.
- Replace
lightClass
withlightSelector
(by Mattia Astorino). - Replace
darkClass
withdarkSelector
(by Mattia Astorino).
- Add support for queries like
(min-width: 600px) and (prefers-color-scheme: dark)
.
- Show error on
.
in the beggining ofopts.darkClass
oropts.lightClass
.
- Improve docs (by Martijn Cuppens).
- Add
lightClass
.
- Initial release.