-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
v3.0.0-alpha.2 #6012
-
To upgrade, install tailwindcss@next
:
npm install -D tailwindcss@next
If you're using @tailwindcss/typography, you'll want to update that package as well:
npm install -D @tailwindcss/typography@next
Remember this is an alpha release, so some things might be broken. I don't know about them otherwise I would have fixed them, but you are gonna find them! So try it, break it, and tell me about it when you do so we can get this thing really battle-tested for a proper v3.0 release in a few weeks.
Changed
- Don't use pointer cursor on disabled buttons by default (#5772)
- Set default content value in preflight instead of within each before/after utility (#5820)
- Remove
prefix
as a function (#5829)
Added
- Add
flex-basis
utilities (#5671) - Make negative values a first-class feature (#5709)
- Add
fit-content
values formin/max-width/height
utilities (#5638) - Add
min/max-content
values formin/max-height
utilities (#5729) - Add all standard
cursor-*
values by default (#5734) - Add
grow-*
andshrink-*
utilities, deprecateflex-grow-*
andflex-shrink-*
(#5733) - Add
text-decoration-color
utilities (#5760) - Add new declarative
addVariant
API (#5809) - Add first-class
print
variant for targeting printed media (#5885) - Add full color palette for
fill-*
andstroke-*
utilities (Add full color palette for fill/stroke #5933 ) - Add composable API for colored box shadows (#5979)
Fixed
- Configure chokidar's
awaitWriteFinish
setting to avoid occasional stale builds on Windows (#5774) - Fix CLI
--content
option (#5775) - Fix before/after utilities overriding custom content values at larger breakpoints (#5820)
- Cleanup duplicate properties (#5830)
- Allow
_
insideurl()
when using arbitrary values (#5853) - Prevent crashes when using comments in
@layer
AtRules (#5854) - Handle color transformations properly with
theme(...)
for all relevant plugins (#4533, #5871) - Ensure
@apply
-ing a utility with multiple definitions works (#5870)
Thanks to everyone who contributed to this release: @adamwathan, @bradlc, @dance2die, @dcastil, @DoctorDerek, @hardfist, @lukewarlow, @MatteoGauthier, @MichaelAllenWarner, @nifte, @reinink, @RobinMalfait, @sachinraja, @xzfd1010 ❤️
This discussion was created from the release v3.0.0-alpha.2.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 5 -
❤️ 6
Replies: 5 comments 3 replies
-
How about adding border-3
when border-2
is not enough and border-4
is too much.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey! Thank you for your suggestion!
Much appreciated! 🙏
You can extend your config if you want this behaviour: https://tailwindcss.com/docs/border-width#border-widths
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Is there docs for v3? Even if uncompleted and possibly old information, so people who want to just mess around can at least somewhat navigate in the dark on new features?
Beta Was this translation helpful? Give feedback.
All reactions
-
Снимок экрана 2021年12月02日 в 16 28 46
@adamwathan I have error with typography
Beta Was this translation helpful? Give feedback.
All reactions
-
Could there be more than text-decoration-color
for text-decoration
? Like sizing & placement? It'd be nice to be able to do tricks along the lines of this in native Tailwind. I thought maybe I saw some energy in that direction: #2050 (comment)
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
Was the release of V3 intentional or some sort of error? By the sounds of this announcement it was not intended to drop for a couple more weeks but it's now available via @latest tag as of ~2 hours ago.
Just wanting to be sure before locking in V3 related changes in a project right now.
Beta Was this translation helpful? Give feedback.
All reactions
-
I think this was intentional. See this Tweet from Adam a couple days ago. https://twitter.com/adamwathan/status/1467915766343348228
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1