Add size-[*]
as a utility class that includes equal values of height and width
#6789
Replies: 3 comments 6 replies
-
Not exactly what you're after, but I use the new eg. |
Beta Was this translation helpful? Give feedback.
-
This has come up before and I think would be a neat thing to add, the tough thing is just deciding on the API. There's already a https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size And |
Beta Was this translation helpful? Give feedback.
-
This is finally implemented! Thank you @adamwathan and team! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Oftentimes, when I want to make a circle or a square, I have to add the utilities
h-* w-*
, and when I need to change anything, I have to go back and change both to the same value.It would be nice to have a single utility class that would add the same values for height and width.
Therefore:
size-5
is analogous to:
h-5 w-5
Beta Was this translation helpful? Give feedback.
All reactions