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
Uh oh!
There was an error while loading. Please reload this page.
-
tailwindest V2 🎉
Now let's see what's changed for the better :)
1. Create own styling tools with
createToolsAfter 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
stylestringobject3. Conditional styling -
toggleIf you want to change the style based on a single
booleancondition, usetoggle.3. Conditional styling -
rotaryIf you need to change styles based on three or more conditions within a single category, use
rotary.3. Conditional styling -
variantsUse
variantsfor combinations ofrotary, where each condition is defined within several categories.4. Change variants type extractor name to
GetVariantsPerformance improvements
wind➡️style: 5 to 13x speedup ⚡️wind$➡️rotaryandtoggle: 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