-
minimum reproducible codesandbox here: https://codesandbox.io/p/devbox/5ffnxl I'm sure I'm missing something in the doc, but how can I get values imported from other files to be used in style? import { css } from "../styled-system/css";
import { myValue, myProcessedValue } from "./theme";
export const style = css({
color: myValue, // ❌ doesn't work
backgroundColor: myProcessedValue.value, // ❌ this doesn't work
borderBottom: "3px solid green", // ✅ this works
}); theme.ts is simply export const myValue = "blue";
const processSomething = (v) => v;
export const myProcessedValue = processSomething({ value: "red" }); |
Beta Was this translation helpful? Give feedback.
Answered by
anubra266
Oct 13, 2024
Replies: 1 comment 3 replies
Answer selected by
Liooo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://panda-css.com/docs/guides/dynamic-styling