Replies: 1 comment 2 replies
-
@IHIutch |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I've started using Panda on a project and it's great! However, I'm migrating from Tailwind and in a few places, I've noticed that Tailwind has a few clever classes that handle a few related CSS properties. The obvious ones are
.truncate
, their shadow classes.shadow-*
, and their transition classes.transition-*
. These are helpful because they handle related (like truncate) more complex (like transition) CSS properties. Their font sizing utilities also handle logical line heights, for example.My idea is that Panda offer similar props to handle things like these. So instead of having to write
transition: all ease translateX(token(sizes.6))
I could simply writetransition: translate-x-6
.Perhaps you can handle some of these things manually using
layerStyles
. Panda already does have some built-in logical complex styles like theshadow
prop. But I think there are some additional properties that could be simplified in a similar way.Anyway, that's my biggest "complaint" working with Panda so far. If anyone has suggestions of how you're handling things like this in a graceful way, let me know!
Beta Was this translation helpful? Give feedback.
All reactions