A modern starter template for Astro that includes React, Tailwind CSS, and Shadcn UI integration. Features a beautiful hero component with gradient effects and responsive design.
git clone https://github.com/digitaldesaster/astro-start.git
cd astro-start
npm install
npm run dev
Your site will be available at http://localhost:4321
/
āāā public/
ā āāā favicon.svg
āāā src/
ā āāā components/
ā ā āāā ui/ # Shadcn UI components
ā ā ā āāā button.tsx
ā ā āāā Hero.tsx # Example hero component
ā āāā layouts/
ā ā āāā Layout.astro # Main layout with shadcn theme
ā āāā pages/
ā ā āāā index.astro # Home page
ā āāā styles/
ā āāā global.css # Global styles & Tailwind imports
āāā package.json
Command | Action |
---|---|
npm install |
Install dependencies |
npm run dev |
Start dev server at localhost:4321 |
npm run build |
Build for production to ./dist/ |
npm run preview |
Preview production build |
To add more shadcn components, use the following command:
npx shadcn@latest add [component-name]
For example:
npx shadcn@latest add card
npx shadcn@latest add dropdown-menu
src/components/ui/
src/components/Hero.tsx
tailwind.config.mjs
Create new .astro
files in the src/pages
directory. They will be automatically converted to pages.
MIT License
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)npm create astro@latest -- --template basics
š§āš Seasoned astronaut? Delete this file. Have fun!
Inside of your Astro project, you'll see the following folders and files:
/
āāā public/
ā āāā favicon.svg
āāā src/
ā āāā layouts/
ā ā āāā Layout.astro
ā āāā pages/
ā āāā index.astro
āāā package.json
To learn more about the folder structure of an Astro project, refer to our guide on project structure.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Feel free to check our documentation or jump into our Discord server.