Astro theme generator
Create a brand preset for Astro components. Choose your colors, font, radius, and component styles, then export the design for shadcn installation.
Choose your style
Open Design in the header to change the palette. Use the light/dark button to check both modes.
Make room for good work.
Share your workspace
Preview the dialog, input, and button styles together.
Try each style with the same palette, then use the site toggle to check light and dark modes.
---
import { Button } from "@/components/ui/button"
import { Badge } from "@/components/ui/badge"
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
CardFooter,
} from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import {
Select,
SelectTrigger,
SelectValue,
SelectContent,
SelectItem,
} from "@/components/ui/select"
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"
import {
Accordion,
AccordionItem,
AccordionTrigger,
AccordionContent,
} from "@/components/ui/accordion"
import {
Dialog,
DialogTrigger,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription,
DialogClose,
} from "@/components/ui/dialog"
---
<div class="@container/workbench mx-auto w-full max-w-4xl p-6 sm:p-10">
<header class="mb-8 flex flex-wrap items-center justify-between gap-4">
<div>
<Badge variant="secondary">Workspace</Badge>
<h2 class="mt-3 text-3xl font-semibold tracking-tight">
Make room for good work.
</h2>
</div>
<Dialog>
<DialogTrigger variant="outline">Invite someone</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Share your workspace</DialogTitle>
<DialogDescription>
Preview the dialog, input, and button styles together.
</DialogDescription>
</DialogHeader>
<Label for="invite-email">Email address</Label>
<Input id="invite-email" type="email" placeholder="you@example.com" />
<Label for="invite-role">Role</Label>
<Select defaultValue="member">
<SelectTrigger id="invite-role" class="w-full">
<SelectValue>Choose a role</SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value="member">Member</SelectItem>
<SelectItem value="viewer">Viewer</SelectItem>
</SelectContent>
</Select>
<DialogClose>Done</DialogClose>
</DialogContent>
</Dialog>
</header>
<Tabs defaultValue="overview" class="w-full">
<TabsList>
<TabsTrigger value="overview">Overview</TabsTrigger>
<TabsTrigger value="details">Details</TabsTrigger>
</TabsList>
<TabsContent value="overview">
<div class="mt-6 grid gap-6 @min-xl/workbench:grid-cols-2">
<Card>
<CardHeader>
<CardTitle>A new project</CardTitle>
<CardDescription>
Give your next idea a place to start.
</CardDescription>
</CardHeader>
<CardContent class="grid gap-3">
<Label for="project-name">Project name</Label>
<Input id="project-name" placeholder="Your next idea" />
</CardContent>
<CardFooter class="flex flex-wrap gap-3">
<Button>Create project</Button>
<Button variant="outline">View projects</Button>
</CardFooter>
</Card>
<Card>
<CardHeader>
<CardTitle>Built for your team</CardTitle>
<CardDescription>One style across all the details.</CardDescription>
</CardHeader>
<CardContent>
<Accordion>
<AccordionItem value="colors">
<AccordionTrigger>Can I change the colors?</AccordionTrigger>
<AccordionContent>
Choose a palette above. The selected style stays the same.
</AccordionContent>
</AccordionItem>
<AccordionItem value="source">
<AccordionTrigger>Do I own the source?</AccordionTrigger>
<AccordionContent>
Yes. The registry installs editable Astro and CSS files.
</AccordionContent>
</AccordionItem>
</Accordion>
</CardContent>
<CardFooter>
<Button size="sm" variant="secondary">
Explore the components
</Button>
</CardFooter>
</Card>
</div>
</TabsContent>
<TabsContent value="details">
<p class="py-6 text-muted-foreground">
Try each style with the same palette, then use the site toggle to check
light and dark modes.
</p>
</TabsContent>
</Tabs>
</div>
Keep your theme
Save the complete preset. Use its URL with shadcn in an Astro project, or pass it to the Gnostic site generator.
In an existing Astro project:
Create a site from this workspace:
Token CSS changes colors, fonts, and radius on installed components. It does not replace their classes. Import it after tailwind.css. Read the setup guide or choose a site template.