Multi-theme Astro template with 6 design systems, 10 palettes, 7 locales,
and a CLI to scaffold exactly what you need.
[Screenshot placeholder] — Hero image: composite showing the Liquid (fluid/organic), Glass (glassmorphism), and Luxury (editorial) themes at 1440px, demonstrating the visual range across design systems.
Most Astro templates give you one design. AstroGlass gives you six independent design systems that share a common architecture — same components, same i18n, same routing — just different visual language.
- 6 themes — Liquid, Glass, Neo, Minimal, Luxury, Aurora. Each has a full section set (hero → footer).
- 10 color palettes — Hot-swap between light, dark, and colorful palettes at runtime. CSS-only, no JS.
- 7 languages — English, Russian, French, Spanish, Japanese, Chinese, Kazakh. Add more in minutes.
- CLI scaffolding — Ship only the themes, palettes, and features you need. No manual pruning.
| Theme | Style | Sections |
|---|---|---|
| 💧 Liquid | Fluid motion, organic shapes | Hero, About, Features, Portfolio, Pricing, Testimonials, FAQ, CTA, Contact, Footer |
| 🔮 Glass | Glassmorphism, frosted layers, depth | ↑ same 10 sections |
| ⚡ Neo | Bold brutalist, high energy | ↑ |
| ○ Minimal | Clean typography, whitespace | ↑ |
| ✨ Luxury | Editorial, sophisticated animations | ↑ |
| 🌌 Aurora | Cosmic gradients, geometric | ↑ |
Every theme includes a dedicated header, all 10 landing sections, and a footer. Themes are fully independent — include one or all six.
[Screenshot placeholder] — 2×3 grid: each theme's hero section at 1280px width, showing Liquid (top-left) through Aurora (bottom-right).
npm create astroglass@latest ./my-site
cd my-site
pnpm install
pnpm devThe CLI walks you through theme, palette, locale, and feature selection interactively.
npm create astroglass@latest ./my-site -- \
--theme liquid \
--palettes azure,abyss \
--deploy cloudflare \
--yesClone without the CLI
npx degit kamsqe/astroglass-preview my-site
cd my-site
pnpm install
pnpm devThis gives you the full template with all themes, palettes, and locales. Remove what you don't need manually.
Open http://localhost:4321 to see your site.
| Feature | Description |
|---|---|
| 🎨 Multi-theme | 6 design systems sharing a common component architecture |
| 🎭 10 Palettes | CSS-only color switching — Azure, Solaris, Evergreen, Rosé, Monochrome, Nordic, Aquatica, Abyss, NeoNoir, Synthwave |
| 🌍 i18n | 7 languages with URL-based routing (/en/docs, /ru/docs) and locale auto-detection |
| 📝 Blog | MDX-powered blog with RSS feed support |
| 📚 Docs | Documentation pages with Fuse.js full-text search, Cmd+K command palette |
| 📊 Dashboard | Analytics demo with Recharts (React island) |
| 🔍 Search | Client-side fuzzy search built on Fuse.js — build-time indexing, match highlighting, "Did you mean?" |
| 🚀 Deploy | One-file provider switch — Cloudflare Pages, Vercel, Netlify, or static |
After scaffolding, you can manage your project with astroglass subcommands:
# Check what's installed
npx astroglass status --validate
# Add components
npx astroglass add --theme luxury
npx astroglass add --palette synthwave
npx astroglass add --lang fr
npx astroglass add --feature docs
# Remove components (with safety checks)
npx astroglass remove --theme neo
npx astroglass remove --palette rose
# Fix config/filesystem mismatches
npx astroglass repairAll add/remove commands update astroglass.config.json and auto-commit if you're in a git repo.
src/
├── components/
│ ├── sections/themes/ # Barrel files per theme (liquid.ts, glass.ts, ...)
│ ├── sections/hero/ # HeroLiquid.astro, HeroGlass.astro, ...
│ ├── sections/[section]/ # about, features, portfolio, pricing, ...
│ ├── ui/ # Shared primitives (button, card, tabs)
│ └── layout/header/ # Per-theme headers
├── config/
│ ├── themes.ts # Theme definitions
│ ├── palettes.ts # Palette registry
│ ├── locales.ts # Locale config
│ ├── navigation.ts # Nav builder
│ └── providers/ # Deploy target configs
├── content/ # MDX collections (docs, blog)
├── locales/ # Translation JSON per locale
├── pages/
│ └── [...lang]/[theme].astro # Dynamic theme/locale routing
├── styles/
│ ├── palettes/ # Per-palette CSS (azure.css, abyss.css, ...)
│ ├── tokens/ # Per-theme design tokens
│ └── components/ # Per-section CSS
└── utils/ # i18n, animations, form validation
Each theme is a self-contained set of section components. To add a new theme:
- Create section components in
src/components/sections/[section]/[Theme].astro - Create a barrel file at
src/components/sections/themes/[theme].ts - Register it in
src/config/themes.tsandsrc/config/themePresets.ts
Or use the CLI: npx astroglass add --theme [id]
Palettes are pure CSS — a single file in src/styles/palettes/ defining color variables under a [data-palette="name"] selector. Add a new .css file and import it in _themes.css.
Edit src/config/themePresets.ts — the landingSections[] array controls section order for each theme.
npx astroglass add --deploy vercelOr manually change the import in src/config/providers/active-provider.ts.
| Command | Action |
|---|---|
pnpm dev |
Dev server at localhost:4321 |
pnpm build |
Production build to ./dist/ |
pnpm preview |
Preview production build |
pnpm check |
Astro type checking |
pnpm lint |
ESLint |
pnpm format |
Prettier |
| Category | Technology |
|---|---|
| Framework | Astro 5 |
| Styling | Tailwind CSS 4 |
| Islands | React 19 |
| Search | Fuse.js |
| Code Blocks | Expressive Code |
| Validation | Valibot |
| Animations | Framer Motion |
| CLI | citty + @clack/prompts |
Contributions are welcome — whether it's bug fixes, new themes, palette ideas, or documentation improvements. See CONTRIBUTING.md for setup instructions and the PR process.
Note on translations: Most non-English localizations (Russian, French, Spanish, Japanese, Chinese, Kazakh) were generated with AI and may contain inaccuracies. Native speaker corrections are especially appreciated — even fixing a single string helps.
MIT © AstroGlass