Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staticCSS not generating as expected #3001

Open
1 of 3 tasks
oe-josh-martin opened this issue Nov 27, 2024 · 0 comments
Open
1 of 3 tasks

staticCSS not generating as expected #3001

oe-josh-martin opened this issue Nov 27, 2024 · 0 comments

Comments

@oe-josh-martin
Copy link

Description

When using staticCSS in combination with [slot]Recipes on the buildinfo workflow, no values are assigned into the JSON file, so no CSS is generated.

I understand that slotRecipes are calculated JIT, so if they do not appear in the files mapped by include: [] in config, they will not get pushed into the generated files, however, I thought that staticCSS solved these issues?

The stackblitz shows that this does work when generating a the raw CSS file, does this functionality not also work for the buildinfo workflow?

We're using PandaCSS for a component library, so we cannot use cva (which I understand would solve these issues natively) as we need to be able to use responsive variants, meaning we must rely on [slot]Recipes, and we cannot just ship a static CSS file as we need our consumers to be able to change theme values.

Link to Reproduction

https://stackblitz.com/edit/vitejs-vite-xkdk1y

Steps to reproduce

No response

JS Framework

TS

Panda CSS Version

0.48.0

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant