Open swyxio opened 3 years ago
Oh perfect 😅 thanks for the heads up. I'll take a look through the change log and see what needs to change here!
it's hopefully not too bad. just a bunch of tiny changes in default values and behaviors iirc
Yeh, looking at the change log it shouldn't be too bad!
v2 is out now. Here's the full change log: https://github.com/tailwindlabs/tailwindcss/releases/tag/v2.0.0 .
I see some removals and renames. To make the work a bit easier, I tried to compile a list of changes for you to check:
target
has been droppedshadow-outline
, shadow-solid
, and shadow-xs
have been removed and replaced with ring
whitespace-no-wrap
-> whitespace-nowrap
flex-no-wrap
-> flex-nowrap
clearfix
- flow-root
is the new wayhover
and focus
are disabled for fontWeight
by defaulttruncate
was moved to textOverflow
core plugin. This may not be relevant for Oceanwindscrolling-touch
and scrolling-auto
have been removedtext-6xl
uses 3.75rem
instead of 4rem
Note that there are a bunch of additions as well:
overflow-ellipsis
overflow-clip
transform-gpu
inset
has a spacing scale nowtranslate
, inset
, and height
support percentageslg:hover:bg-blue-500
is supported now2xl
breakpoint (1536px) has been addedgroup-hover
is supported by color utilities with boxShadow
and textDecoration
defaultsfocus
is enabled for z-index utilities by defaultmax-w-prose
is enabled by defaultfocus-within
is enabled for all plugins that have focus
by defaultring
utilities have been added5
and 95
have been added to the opacity scaleI think that should be most of it. It's quite a few changes but I imagine most are fast to do.
Man, this is incredibly useful, thank you so much! I have been waiting for an official release so that I didn't end up changing stuff that wasn't going to make the cut.
Like you say, most of these should be pretty easy to implement. I will try get around to it over the weekend.
Sure, the official release notes contain more info about the specifics. Feel free to ping me if you need any help. 😄
just a heads up that tailwind is about to release v2 with a bunch of breaking changes https://github.com/tailwindlabs/tailwindcss/releases/tag/v2.0.0-alpha.1