postcss-color-scheme
Advanced tools
Changelog
2.1.0
6368291
Thanks @vnphanquang! - allow customize at-rule name and behavior upon invalid parameterb743e0a
Thanks @vnphanquang! - flatten project workspace to bring back lib source code to project root. Fix missing README in npmChangelog
2.0.0
f879aff
Thanks @vnphanquang! - [BREAKING] drop :global
variant to avoid ambiguity. User may use :global
manually. In Svelte 5, for example, you can now declare a :global
style block, e.g. :global { .class { @color-scheme dark { /* ... */ } } }
;
f879aff
Thanks @vnphanquang! - [BREAKING] drop @light
and @dark
at-rules in favor for a single coherent @color-scheme
at-rule, i.e @color-scheme dark { /* ... */ }
or @color-scheme light { /* ... */ }
f879aff
Thanks @vnphanquang! - [BREAKING] drop tailwind plugin. In Tailwind V4, simply add @import 'postcss-color-scheme/tailwind.css'
to tailwind-aware context to make light:
and dark:
variants available for use in markup. See README.md for more information
f879aff
Thanks @vnphanquang! - [BREAKING] no longer handle nesting now that the standardized CSS Nesting has landed (leave up to other transformer to support older browser or not)
Changelog
1.0.1
c43b80b
Thanks @vnphanquang! - export default postcss plugin
513e561
Thanks @vnphanquang! - include generated types in published package
912c72c
Thanks @vnphanquang! - add "require" and "svelte" fields to exports in package.json
Changelog
1.0.0
47ca0d3
Thanks @vnphanquang! - [BREAKING] more predictable public exports with typescript supportChangelog
0.3.2
65916b0
Thanks @vnphanquang! - added test case where used in deeply nested selectors
7acd332
Thanks @vnphanquang! - fix broken links in README, add missing reference to test case
5b946c3
Thanks @vnphanquang! - add test case for where there are child rules in @dark
and @light
d3d86b6
Thanks @vnphanquang! - add to docs clarification that tailwind & postcss plugins can be used together, not one or the other
f4f9c80
Thanks @vnphanquang! - add support for :root
selector; i.e :root { @dark { /* ... */ } }
Changelog
0.3.0
e0c5423
Thanks @vnphanquang! - adjustments to adhere to postcss plugin guidelinesda6fac2
Thanks @vnphanquang! - test case for invalid parametersChangelog
0.2.2
82396af
Thanks @vnphanquang! - add missing postcss
import, remove "exports" field in package.jsonChangelog
0.2.0
d5a6ae9
Thanks @vnphanquang! - provide tailwind plugin as first party support, import at postcss-color-scheme/tailwind
22b2839
Thanks @vnphanquang! - reorganize src -> lib folder
22b2839
Thanks @vnphanquang! - include tailwind.js in npm publish