Replies: 1 comment 5 replies
-
We documented this in the merging styles docs. Please see here: https://panda-css.com/docs/concepts/merging-styles#merging-css-objects The solution is to switch to // preserve style object
const proseStyles = css.raw({
'& > * + *': {
marginTop: '16px',
},
});
// get the classname for previous usage
const prose = css(proseStyles)
// use the style object here
const theme = css({
'& .milkdown-aimd-theme': {
...proseStyles
},
}); Here's a working example: https://stackblitz.com/edit/vitejs-vite-r84b2t?file=src%2FApp.tsx&terminal=dev |
Beta Was this translation helpful? Give feedback.
5 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.
-
Beta Was this translation helpful? Give feedback.
All reactions