Replies: 2 comments 4 replies
-
|
You can create a low-level component for this. On my personal blog, I created a Implementation: https://github.com/peduarte/ped.ro/blob/main/styles/box.tsx |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
#632 also makes the case for this (or something like it) |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I frequently create a
styledcomponent with 1 or 2 styles. For exampleconst Container = styled('div', { margin: '10px 0' });It would be nice if there was a way to write inline css in 1 step (like inline styles, but for css with theme tokens).Currently it is a 2-step process:
Possible solution, an
inlineCssfunction:This would only accept css styles (no variants), but can use theme tokens in the styles. This would make it a 1-step process.
Beta Was this translation helpful? Give feedback.
All reactions