Panda CSS with Astro, example of importing index.css in root component #2794
Closed
Magnus2142
started this conversation in
Ideas
Replies: 1 comment
-
Good suggestion. I've added this to the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Subject
Panda CSS + Astro
Description
In the (docs for settings up Panda CSS in a Astro project)[https://panda-css.com/docs/installation/astro], it would be nice to make it more clear that you have to import the index.css in your root component in the project.
At step 4 you're told to add a

index.css
file in the src folder, and then import it in the root component of your project.It is pretty obvious now that I realised my mistake, but I suspect others may overlook this instruction as well. Adding a code block underneath the first one, showing an example of importing the
index.css
into asrc/pages/index.astro
file could be helpful. 😄Beta Was this translation helpful? Give feedback.
All reactions