shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
69.07k stars 4.09k forks source link

[bug]: Astro Getting Started instructions fail to create src/styles/global.css #4531

Open Simon-Bertram opened 1 month ago

Simon-Bertram commented 1 month ago

Describe the bug

Following the Astro getting started guide fails to create the src/styles/global.css file. I can create it manually, but what consequences flow from that? It will probably contain:

@tailwind base; @tailwind components; @tailwind utilities;

but who am I to say that when the instructions say it will be created already?

Affected component/components

Astro project setup

How to reproduce

Follow the instructions at https://ui.shadcn.com/docs/installation/astro. I'm using Mac terminal and npm.

Codesandbox/StackBlitz link

No response

Logs

Error
An error occurred.
Cannot find module '@/styles/globals.css' imported from '/Users/.../Documents/Web Dev/Tutorials/astro-shadcn/src/pages/index.astro'

System Info

Sonoma 14.5

Before submitting

usr-9b commented 1 month ago

image Where is your global CSS file? › › ./src/styles/globals.css