{"id":22358255,"url":"https://github.com/one-ie/astro-shadcn","last_synced_at":"2025-08-06T15:31:28.259Z","repository":{"id":263235698,"uuid":"887265058","full_name":"one-ie/astro-shadcn","owner":"one-ie","description":"Build beautiful websites with Astro 5, shadcn/ui and React","archived":false,"fork":false,"pushed_at":"2024-12-03T12:21:23.000Z","size":11178,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-03T12:26:20.313Z","etag":null,"topics":["astro","astro-5","astrojs","astrojs-template","react","reactjs","shadcn-ui"],"latest_commit_sha":null,"homepage":"https://astro-shadcn.one.ie","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/one-ie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-12T12:59:19.000Z","updated_at":"2024-12-03T12:24:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"a01d8f4f-530b-46ba-939c-0945b4f73066","html_url":"https://github.com/one-ie/astro-shadcn","commit_stats":null,"previous_names":["agentc-app/astro-shadcn"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-ie%2Fastro-shadcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-ie%2Fastro-shadcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-ie%2Fastro-shadcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-ie%2Fastro-shadcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-ie","download_url":"https://codeload.github.com/one-ie/astro-shadcn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228920239,"owners_count":17992003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","astro-5","astrojs","astrojs-template","react","reactjs","shadcn-ui"],"created_at":"2024-12-04T15:13:24.516Z","updated_at":"2024-12-09T15:49:01.618Z","avatar_url":"https://github.com/one-ie.png","language":"TypeScript","funding_links":[],"categories":["Boilerplates \u0026 Starters"],"sub_categories":[],"readme":"# 🚀 Astro 5 + Shadcn/UI Starter Kit\n\nA lightning-fast starter template combining Astro's performance with Shadcn's beautiful components.\n\n### 🎨  Screenshots\n![Dark Mode](https://astro-shadcn.one.ie/screenshots/screenshot-dark.png)\n![Light Mode](https://astro-shadcn.one.ie/screenshots/screenshot-light.png)\n\n\n## ⚡ Quick Start\n\n```bash\n# Clone the repository\ngit clone https://github.com/one-ie/astro-shadcn.git\n\n# Navigate to project\ncd astro-shadcn\n\n# Install dependencies\nnpm install\n\n# Start development server\nnpm run dev\n```\n\nVisit `http://localhost:4321` - You're ready to go! 🎉\n\n## 🎨 Pre-installed Components\n\nAll Shadcn/UI components are pre-configured for Astro:\n\n```astro\n---\n// Example usage in .astro file\nimport { Button } from \"@/components/ui/button\"\nimport { Card } from \"@/components/ui/card\"\n---\n\n\u003cButton\u003eClick me!\u003c/Button\u003e\n```\n\n### Available Components\n- ✅ Accordion\n- ✅ Alert Dialog\n- ✅ Avatar\n- ✅ Badge\n- ✅ Button\n- ✅ Card\n- ✅ Dialog\n- ... and more!\n\n## 🛠️ Project Structure\n\n```text\nyour-project/\n├── src/\n│   ├── components/\n│   │   └── ui/          # All Shadcn components\n│   ├── layouts/\n│   │   └── Layout.astro # Base layout\n│   └── pages/\n│       └── index.astro  # Homepage\n├── astro.config.mjs     # Astro configuration\n└── tailwind.config.cjs  # Tailwind configuration\n```\n\n\n\n### Using Components\n\n```astro\n---\n// src/pages/index.astro\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardHeader, CardTitle } from \"@/components/ui/card\";\n---\n\n\u003cCard\u003e\n  \u003cCardHeader\u003e\n    \u003cCardTitle\u003eWelcome to Astro + Shadcn!\u003c/CardTitle\u003e\n  \u003c/CardHeader\u003e\n  \u003cButton client:load\u003eInteractive Button\u003c/Button\u003e\n\u003c/Card\u003e\n```\n\n## 🚀 Development Workflow\n\n1. **Start Development**\n   ```bash\n   npm run dev\n   ```\n\n2. **Using React Components in Astro**\n   ```astro\n   ---\n   // Always add client:load for interactive components\n   import { Dialog } from \"@/components/ui/dialog\"\n   ---\n   \n   \u003cDialog client:load\u003e\n     \u003c!-- Dialog content --\u003e\n   \u003c/Dialog\u003e\n   ```\n\n3. **Build for Production**\n   ```bash\n   npm run build\n   npm run preview # Test the production build\n   ```\n\n## 🔍 Troubleshooting\n\n### Common Issues Solved\n\n✅ **Component Hydration**: All interactive components use `client:load`\n✅ **Build Warnings**: Suppressed in configuration\n✅ **Path Aliases**: Pre-configured for easy imports\n✅ **React Integration**: Properly set up for Shadcn\n\n\n## 💡 Pro Tips\n\n1. **Component Usage in Astro**\n   ```astro\n   ---\n   // Always import in the frontmatter\n   import { Button } from \"@/components/ui/button\"\n   ---\n   \n   \u003c!-- Use in template --\u003e\n   \u003cButton client:load\u003eClick me!\u003c/Button\u003e\n   ```\n\n2. **Styling with Tailwind**\n   ```astro\n   \u003cdiv class=\"dark:bg-slate-800\"\u003e\n     \u003cButton class=\"m-4\"\u003eStyled Button\u003c/Button\u003e\n   \u003c/div\u003e\n   ```\n\n3. **Layout Usage**\n   ```astro\n   ---\n   import Layout from '../layouts/Layout.astro';\n   ---\n   \n   \u003cLayout title=\"Home\"\u003e\n     \u003c!-- Your content --\u003e\n   \u003c/Layout\u003e\n   ```\n\n## 📊 Performance \u0026 Screenshots\n\n### ⚡ Lighthouse Scores\n![Desktop Performance](https://astro-shadcn.one.ie/screenshots/lighthouse-desktop.png)\n![Mobile Performance](https://astro-shadcn.one.ie/screenshots/lighthouse-mobile.png)\n\nPerfect scores across all metrics:\n- 🚀 Performance: 100\n- ♿ Accessibility: 100\n- 🔧 Best Practices: 100\n- 🔍 SEO: 100\n\n\n\n## 📚 Quick Links\n\n- [Astro Documentation](https://docs.astro.build)\n- [Shadcn/UI Components](https://ui.shadcn.com/docs/components/accordion)\n- [Tailwind CSS Docs](https://tailwindcss.com/docs)\n\n## 🤝 Need Help?\n\n- Join [Astro Discord](https://astro.build/chat)\n- Check [Astro Documentation](https://docs.astro.build)\n- File an [Issue on GitHub](https://github.com/one-ie/astro-shadcn/issues)\n\n---\n\nBuilt with 🚀 Astro and 🎨 Shadcn/UI by [ONE](https://one.ie)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-ie%2Fastro-shadcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-ie%2Fastro-shadcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-ie%2Fastro-shadcn/lists"}