You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys! First of all, thank you for all your hard work for Park UI.
So I'm trying to create a shared component library based on Park UI and PandaCSS (obviously 😅) and replacing a previous design-system we had. I'm using tsup to build my package and I managed to get it working. Basically, my file structure looks something like this:
import{defineConfig}from"@pandacss/dev";import{designSystemPreset}from"./preset";exportdefaultdefineConfig({presets: [designSystemPreset],// Other configurations specific to your design systempreflight: true,jsxFramework: "react",include: ["./src/**/*.{js,jsx,ts,tsx}"],exclude: [],outdir: "styled-system",// Output directory for generated filesimportMap: "@tailor-inc/design-system",// Map imports to your package name});
console/panda.config.ts
import{defineConfig}from"@pandacss/dev";import{designSystemPreset}from"@tailor-inc/design-system/preset";exportdefaultdefineConfig({presets: [designSystemPreset],preflight: true,jsxFramework: "react",include: ["./node_modules/@tailor-platform/design-systems/dist/panda.buildinfo.json","./src/**/*.{ts,tsx}",// Your app source files],importMap: "@tailor-inc/styled-system",// Match your styled-system packageoutdir: "@tailor-inc/styled-system/design-system",// Output directory});
For some reason, everything that I put on theme: { extend : {} } does not get reflected on my Next.js app even with everything working.
Am I missing something? I tried moving the extend to console/panda.config.ts and I managed to get it working there, but I would really like it to work from the design-system package level cause then I'd have to add the recipes and semantic token overrides to every application that will be using this design-system which kind of defeats the purpose of having a shared component library.
The text was updated successfully, but these errors were encountered:
Update again:
I managed to get the recipes working from preset and I have tried to isolate the colors issue by directly adding the value to the values to definePreset({}) but it's still not overriding the accent color.
Hello guys! First of all, thank you for all your hard work for Park UI.
So I'm trying to create a shared component library based on Park UI and PandaCSS (obviously 😅) and replacing a previous design-system we had. I'm using tsup to build my package and I managed to get it working. Basically, my file structure looks something like this:
Here are my configurations:
colors.ts
design-system/preset.ts
Note: slotRecipe is coming from the slot-recipe folder with an index.ts that looks something like this:
Here are the panda configs.
design-system/panda.config.ts
console/panda.config.ts
For some reason, everything that I put on
theme: { extend : {} }
does not get reflected on my Next.js app even with everything working.Am I missing something? I tried moving the extend to
console/panda.config.ts
and I managed to get it working there, but I would really like it to work from thedesign-system
package level cause then I'd have to add the recipes and semantic token overrides to every application that will be using this design-system which kind of defeats the purpose of having a shared component library.The text was updated successfully, but these errors were encountered: