Description
Update:
Now that we're through these Tailwind changes, I'm now making some tweaks to twin before it also receives a version 2.
If all goes smoothly, you can expect a twin.macro v2 this weekend (around 2nd Dec) π
Tailwind has released a bunch of new or updated features that Twin needs to catch up with.
I'll be making some other changes at the same time and we'll have a Twin v2 release by the end of it π₯³
I've bagged some of the more difficult updates but if you want to help out with a PR, just sing out and I'll reserve the update for you.
Easy
-
Add transform-gpu to force hardware acceleration on transforms when desired
Thanks soilSpoon (Add transform-gpu and transform-noneΒ #200) -
Add
overflow-ellipsis
andoverflow-clip
utilities (Docs)
Thanks alessbell (Add overflow-ellipsis and overflow-clip text overflow utilitiesΒ #202) -
Namespace all internal custom properties under tw- to avoid collisions with end-user custom properties
Ben did this (Add css variable prefixesΒ #201) -
Rename
whitespace-no-wrap
towhitespace-nowrap
Renameflex-no-wrap
toflex-nowrap
Thanks Crisis2010 (Rename whitespace-no-wrap to whitespace-nowrap and flex-no-wrap to flex-nowrapΒ #195) -
Remove
clearfix
utility
Thanks Crisis2010 (Remove clearfix utilityΒ #193) -
Remove
scrolling-touch
andscrolling-auto
utilities
Thanks Crisis2010 (Remove scrolling-touch and scrolling-auto utilitiesΒ #194) -
Use
[hidden]
elements withinspace-
anddivide-
utilities instead oftemplate
elements
Thanks Crisis2010 (Use [hidden] instead of template in space/divide utilitiesΒ #196) -
Change special use of 'default' in config to 'DEFAULT'
Ben did this (8abbd36) -
Rename
dark
todarkMode
in tailwind.config
Ben did this (d3113de) -
Extend default spacing scale
Tests need to be added for the new/updated config items likespacing
,inset
,height
,grid
,fontSize
,screen
,maxWidth
,opacity
etc
Ben did this (caf91fe)
Over easy π³
-
Remove shadow-outline, shadow-solid, and shadow-xs by default in favor of new ring API
Ben did this (caf91fe) -
Added new ring utilities for creating outline/focus rings using box shadows (+879f088)
Ben did this (Add new ring classesΒ #204) -
Make theme retrieve the expected resolved value when theme value is complex
Support defining theme values using arrays for CSS properties that support comma separated values
Ben's did this (Add theme import smart returnsΒ #205) -
Add support for default duration and timing function values whenever enabling transitions
Ben did this (Add default transitionΒ #199)
If you need to reference the new output, you can check the tailwindcss v2 output here (large file warning).