Built-in concentric corner utilities #18117
andylovescode
started this conversation in
Ideas
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.
-
Right now concentric corners are a bit of a pain to do nicely in tailwind, and so I propose the following changes:
1.
rounded-*
classes set--tw-corner-radius
Make rounded classes set corner radius, so they can be used by the following classes
2.
rounding-gap-*
classes (please give better names)The
rounding-gap-*
classes would apply the following css:3. Introduce the
concentric
classThe
concentric
class simply applies the following:Examples
Let's say somebody had a card, and they wanted a rounded button at the end. They could do something like the following:
Beta Was this translation helpful? Give feedback.
All reactions