Tailwind css feature #18840
petersam6636-web
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.
-
Tailwind currently supports clip-path via arbitrary values ([clip-path:...]), but it would be very useful to have built-in utilities for common shapes. Example:
clip-circle → clip-path: circle(50% at 50% 50%)
clip-triangle → clip-path: polygon(50% 0, 0 100%, 100% 100%)
clip-hexagon → clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%)
This would make it easier for developers to add irregular shapes without remembering polygon syntax.
Beta Was this translation helpful? Give feedback.
All reactions