Replies: 1 comment
-
You could theoretically generate a set of all combinations of your const paddingMap = {
'0 0 0 0': '0px 0px 0px 0px',
'0 0 0 1': '0px 0px 0px 8px',
'0 0 0 2': '0px 0px 0px 16px',
...
}
const paddingSprinkles = defineProperties({
padding: paddingMap,
}) However, that would get very large very quickly, and would generate a bunch of classnames that will likely never be used. Sprinkles is great for quick and easy access to common atomic styles, but the tradeoff is that the classnames for those styles need to be generated ahead of time. IMO if you define your |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm wondering if there is a way to use padding as a property in Sprinkles to allow things like this:
But unfortunately, I haven't been able to make it work so far. Is there a way to allow setting properties to be different sizes spacing like the above without using paddingTop, paddingBottom...?
Beta Was this translation helpful? Give feedback.
All reactions