Skip to content

Atomic Slot Recipes not working in Next.js #2622

Answered by astahmer
kopestik asked this question in Q&A
Discussion options

You must be logged in to vote

in layout.tsx you import "./globals.css"; but that file only contains the @layers order
since you didnt use the postcss plugin, the CSS is never injected
you can do so like this https://panda-css.com/docs/installation/postcss#add-panda-to-your-postcss-config

or you can use the CLI only (run panda command) and replace the import "./globals.css"; to import "../../styled-system/styles.css";

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kopestik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants