v2.0.0 🔮 #41
danpacho
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
tailwindest V2 🎉
Now let's see what's changed for the better :)
1. Create own styling tools with
createTools
After version 2, it is highly recommended that you name the function whatever you want and export it.
It's easier to remember and more usable.
There are five tools in total.
style
: defining basic stylestoggle
: conditional stylingrotary
: conditional stylingvariants
: conditional stylingmergeProps
: merging style sheets2. Define style sheet with
style
string
object
3. Conditional styling -
toggle
If you want to change the style based on a single
boolean
condition, usetoggle
.3. Conditional styling -
rotary
If you need to change styles based on three or more conditions within a single category, use
rotary
.3. Conditional styling -
variants
Use
variants
for combinations ofrotary
, where each condition is defined within several categories.4. Change variants type extractor name to
GetVariants
Performance improvements
wind
➡️style
: 5 to 13x speedup ⚡️wind$
➡️rotary
andtoggle
: 1.1 to 4.5x speedup ⚡️createVariants
➡️variants
: about 1.25x speedup ⚡️Run benchmark script in your machine
Full Changelog: v1.2.1...v2.0.0
This discussion was created from the release v2.0.0 🔮.
Beta Was this translation helpful? Give feedback.
All reactions