-
I just stumbled upon panda/ark while researching front-end infrastructure improvements and it looks great! We're switching to We want to leverage nx and organize our code for modularity i.e. I've tried setting up pandas to run from the root of the project with config like;
So that the overall styled system is available through Anyway - this approach doesn't work and I can only get it to work when placing everything inside the next.js folder (
For context, we're coming from chakra because this seems like the way forward and we want to support server rendered components in react. It's pretty trivial to do the above with chakra, but maybe they serve different purposes. There, we're re-exporting the Hope that makes sense! Feel free to ask any clarifying questions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, we got the nx monorepo setup to work as follows:
The only trouble we have in this setup is jest - it doesn't seem to want to swallow the panda styled engine, as it's ES6 and jest needs transpilation for that, which apppears to error out for recipe functions. |
Beta Was this translation helpful? Give feedback.
Hello, we got the nx monorepo setup to work as follows:
panda.config.ts
)panda codegen --cwd=path/to/target/project --config=path/from/target/project/to/panda/config
into all the other nx projects (requires panda0.6.0
or higher, as the CLI had a bug with --config before thatpostcss.config.cjs
to specify the config file from the config libpanda
CLI to extract the CSS from the target project and import it where neededThe only trouble we have in this setup is jest - it doesn't seem to want to swallow the panda styled engine, as it's ES6 and jes…