Astronomic UI is a set of Astro components and page sections that every Astronomic theme is built from.
Astronomic UI is a set of components and page sections for Astro sites. Components are the small pieces, like a button, a card or a form field. Sections are whole page bands, like a hero, a pricing table or a footer. Every Astronomic theme is built from them.
This directory shows each part with live examples, its code, its props and notes on accessibility.
What you get
Piece
What it is
Components
Small parts you place inside a page: buttons, cards, media, form fields, menus, search.
CSS variables named --ui-* for color, type, shape and spacing. Every part reads them.
Presets
Ready sets of token values, each a different look. One line of CSS switches a site's look.
How it is built
Astro components. Parts are .astro files you import by path. They take plain props: strings, lists of plain objects and slots.
Tailwind CSS v4. Parts use token-based classes, so a preset or your own token values restyle them together. A few details stay fixed by design, such as the round avatar.
Little JavaScript. Most parts ship none. Interactive free parts, like the mobile menu and the light and dark switch, use native HTML with a small script. One Pro part, Tabs, is a React island.
Dark mode from tokens. The dark look swaps the token values. Parts never use Tailwind's dark: variant.
Any content source. No part imports a CMS. Parts work in a plain Astro site and in an EmDash site. See Using with EmDash.
Families and recipes
Many parts come in families, such as the navbar, the hero, the card and the footer. Each family has one shell and a few recipes:
The shell holds the structure: the landmark, the heading levels, the order of the content and any behavior.
A recipe is a ready layout built on the shell, such as FooterSimple or FooterColumns.
Use the recipes on a page. To change a small thing inside the same layout (a size, an alignment, a tone), pass a prop. For a different layout, pick another recipe.
Free and Pro
Each part is Free or Pro, and each part's page shows a tag. Free parts are enough to build a whole site. Pro parts are the ones a site uses to win business: lead capture, case studies and proof, quoting, and pricing layouts. See Free and Pro.
Who it is for
Theme buyers who want to change a page or add a new one. The parts in your theme are the same ones shown here.
Developers who build Astro sites and want parts that are accessible and restyle from one set of tokens.
Anyone working with a coding agent. Each part page can be copied as Markdown for the agent. See Using with AI agents.
Next steps
Read Installation to install the free kit, or to see where it lives in your theme.
# Introduction
Astronomic UI is a set of Astro components and page sections that every Astronomic theme is built from.
Astronomic UI is a set of components and page sections for Astro sites. Components are the small pieces, like a button, a card or a form field. Sections are whole page bands, like a hero, a pricing table or a footer. Every Astronomic theme is built from them.
This directory shows each part with live examples, its code, its props and notes on accessibility.
## What you get
| Piece | What it is |
| --- | --- |
| Components | Small parts you place inside a page: buttons, cards, media, form fields, menus, search. |
| Sections | Whole page bands: navbars, heroes, features, testimonials, calls to action, footers. |
| Tokens | CSS variables named `--ui-*` for color, type, shape and spacing. Every part reads them. |
| Presets | Ready sets of token values, each a different look. One line of CSS switches a site's look. |
## How it is built
- **Astro components.** Parts are `.astro` files you import by path. They take plain props: strings, lists of plain objects and slots.
- **Tailwind CSS v4.** Parts use token-based classes, so a preset or your own token values restyle them together. A few details stay fixed by design, such as the round avatar.
- **Little JavaScript.** Most parts ship none. Interactive free parts, like the mobile menu and the light and dark switch, use native HTML with a small script. One Pro part, Tabs, is a React island.
- **Dark mode from tokens.** The dark look swaps the token values. Parts never use Tailwind's `dark:` variant.
- **Any content source.** No part imports a CMS. Parts work in a plain Astro site and in an EmDash site. See [Using with EmDash](./emdash.md).
## Families and recipes
Many parts come in families, such as the navbar, the hero, the card and the footer. Each family has one shell and a few recipes:
- The **shell** holds the structure: the landmark, the heading levels, the order of the content and any behavior.
- A **recipe** is a ready layout built on the shell, such as `FooterSimple` or `FooterColumns`.
Use the recipes on a page. To change a small thing inside the same layout (a size, an alignment, a tone), pass a prop. For a different layout, pick another recipe.
## Free and Pro
Each part is Free or Pro, and each part's page shows a tag. Free parts are enough to build a whole site. Pro parts are the ones a site uses to win business: lead capture, case studies and proof, quoting, and pricing layouts. See [Free and Pro](./free-and-pro.md).
## Who it is for
- **Theme buyers** who want to change a page or add a new one. The parts in your theme are the same ones shown here.
- **Developers** who build Astro sites and want parts that are accessible and restyle from one set of tokens.
- **Anyone working with a coding agent.** Each part page can be copied as Markdown for the agent. See [Using with AI agents](./ai-agents.md).
## Next steps
1. Read [Installation](./installation.md) to install the free kit, or to see where it lives in your theme.
2. Restyle the parts live in [Create](/ui/create), or read [Presets](./presets.md).
3. Browse [Components](/ui/components) and [Sections](/ui/sections).