This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
v2.0.0-beta.3
Pre-release
Pre-release
·
12 commits
to main
since this release
Breaking Changes
alias
no longer accepts the color step as a separate argument, instead use the format<color>.<step>
, e.g.alias("red", 12)
now becomesalias("red.12")
Features
The main focus of this release has been aliasing, with the big new addition being support for mutable aliases.
Previously, in order to create a mutable alias, you'd need to create your own CSS variable that points to a Radix Color variable, and then extend your color config to point at that variable. Whilst this wasn't bad, it meant that you had to be aware of, and directly reference CSS variables generated by this plugin. That could be an issue if we ever decide to change how these are named.
With this release, it is now possible to create mutable aliases directly in Tailwind config, and without having to know about any internals!