-
If a Another question related to the repo's open-props, can we use those variables? I tried to use However, when I use import { shadows } from '@stylexjs/open-props/lib/shadows.stylex';
const container = stylex.create({
base: {
// ... other styles
boxShadow: shadows.shadow2,
},
}); I currently have a react project setup with vite and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
We will do this eventually, but it's not a high priorirty because https://github.com/tomasklaen/postcss-prune-var Regarding the use the shadow variables, I just tried it in a NextJS app dir project and everything seems to work correctly for me. If the issue is during development, try updating to the just released v0.4.1 If the issue is during production, try clearing the Vite cache. |
Beta Was this translation helpful? Give feedback.
We will do this eventually, but it's not a high priorirty because
this problem can be solved with a PostCSS or LighteningCSS plugin.
https://github.com/tomasklaen/postcss-prune-var
Regarding the use the shadow variables, I just tried it in a NextJS app dir project and everything seems to work correctly for me.
If the issue is during development, try updating to the just released v0.4.1
If the issue is during production, try clearing the Vite cache.