astro-start Tailwind Templates

Astro Start

A modern Astro starter template with React and Tailwind CSS

Astro Starter with React, Tailwind & Shadcn UI

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.

šŸš€ Features

  • āš”ļø Astro - The web framework for content-driven websites
  • āš›ļø React - For interactive components
  • šŸŽØ Tailwind CSS - Utility-first CSS framework
  • šŸŽÆ Shadcn UI - Re-usable components built with Radix UI and Tailwind
  • šŸ“± Responsive Design - Mobile-first approach
  • šŸŽ­ Modern UI - Beautiful gradient effects and animations

šŸ› ļø Quick Start

Clone the repository

git clone https://github.com/digitaldesaster/astro-start.git
cd astro-start

Install dependencies

npm install

Start development server

npm run dev

Your site will be available at http://localhost:4321

šŸ“¦ Project Structure

/
ā”œā”€ā”€ 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

šŸ”§ Commands

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

āš™ļø Customization

Adding Shadcn Components

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

Modifying Components

  • UI Components: Find shadcn components in src/components/ui/
  • Hero Component: The example hero is in src/components/Hero.tsx
  • Theme: Customize colors and styling in tailwind.config.mjs

Adding New Pages

Create new .astro files in the src/pages directory. They will be automatically converted to pages.

šŸ“ License

MIT License

šŸ¤ Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request
npm create astro@latest -- --template basics

šŸ§‘ā€šŸš€ Seasoned astronaut? Delete this file. Have fun!

šŸš€ Project Structure

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.

šŸ§ž Commands

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

šŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.

Top categories

Loading Svelte Themes