oceanwind
oceanwind copied to clipboard
tailwind v2
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
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:
- [ ] Check color palette (they revamped it)
- [ ]
targethas been dropped - [ ]
shadow-outline,shadow-solid, andshadow-xshave been removed and replaced withring - [ ]
whitespace-no-wrap->whitespace-nowrap - [ ]
flex-no-wrap->flex-nowrap - [ ] No more
clearfix-flow-rootis the new way - [ ]
hoverandfocusare disabled forfontWeightby default - [ ]
truncatewas moved totextOverflowcore plugin. This may not be relevant for Oceanwind - [ ]
scrolling-touchandscrolling-autohave been removed - [ ]
text-6xluses3.75reminstead of4rem
Note that there are a bunch of additions as well:
- [ ] Dark mode
- [ ]
overflow-ellipsis - [ ]
overflow-clip - [ ]
transform-gpu - [ ] Default spacing scale has been extended
- [ ]
insethas a spacing scale now - [ ]
translate,inset, andheightsupport percentages - [ ] Default font size scale has been extended
- [ ] Syntax like
lg:hover:bg-blue-500is supported now - [ ]
2xlbreakpoint (1536px) has been added - [ ] font-size utilities contain default line-height values
- [ ]
group-hoveris supported by color utilities withboxShadowandtextDecorationdefaults - [ ]
focusis enabled for z-index utilities by default - [ ]
max-w-proseis enabled by default - [ ]
focus-withinis enabled for all plugins that havefocusby default - [ ]
ringutilities have been added - [ ]
5and95have been added to the opacity scale
I 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. 😄