Polished website sections for Astro, distributed as source you own. Every block is a native .astro component with scoped CSS, typed props, and semantic design tokens; all 32 static blocks ship zero client JavaScript. Three optional interactive blocks (detail-dialog, filter-collection, compare-tray) load exact-pinned @ui-sdk/web scripts.
Astro Blocks is a shadcn-compatible registry. Installing a block copies ordinary, editable files into your project. Nothing stays linked: no runtime package, no hidden updates. Change anything.
npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.20That writes src/components/blocks/HeroSplit.astro and its one dependency, src/components/ui/Button.astro. It works in any Astro project, without Tailwind, React or a components.json. Then:
---
import HeroSplit from "../components/blocks/HeroSplit.astro";
---
<HeroSplit
title="Recover from injury with a plan you can follow"
lede="One clinician for the whole course of care."
actions={[{ label: "Book an assessment", href: "/book" }]}
image={{ src: "/clinic.jpg", alt: "The treatment room" }}
/>| Category | Items |
|---|---|
| Headers | header-floating, header-editorial, header-transparent, header-minimal |
| Heroes | hero-split, hero-immersive, hero-typographic, hero-editorial, hero-front-desk, hero-program |
| Walkthroughs | steps-numbered, timeline, alternating-rows |
| Features | features-bento, features-editorial |
| Content | collection, gallery, article, facts, schedule, compare, menu-list, locations-visit, detail-dialog, filter-collection, compare-tray |
| Footers | footer-minimal, footer-columns, footer-wordmark, footer-cta |
| Forms | field, choice-group, form-status |
| Foundation | button, breadcrumbs, pager, tokens |
List, search or inspect them from the CLI:
npx shadcn@latest list lambda-curry/astro-blocks#v0.1.20
npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.20Each item in registry.json says when to use it and, as importantly, when not to. A numbered list is for a real sequence, a bento grid is for related items of different weight, and a giant footer wordmark is for a short name on an otherwise quiet site.
- Tokens, not themes. Blocks read semantic custom properties:
--color-bg,--color-surface,--color-text,--color-muted,--color-accent,--color-on-accent,--font-display,--font-body, the--step-*type scale,--leading-displayand--leading-tight,--space-gutter,--section-gap,--radius-smand--radius-lg. Set them once, in your own theme, and every block follows. Each block also falls back to the neutral defaults intokens.css(npx shadcn@latest add lambda-curry/astro-blocks/tokens#v0.1.20), so nothing breaks without them. One more is optional and absent fromtokens.css:--color-rulerecolors every structural hairline (row and table rules, dividers, header and footer rules, and the outlines of bars, panels and tiles). Unset, each keeps its own translucent mix of the text color. Write it withcurrentColor, such as--color-rule: color-mix(in oklab, currentColor 20%, transparent), so rules stay right on inverse footers. Forms read one more optional token,--color-error, for error text, borders and the error summary. Unset, it is a red mixed with the text color, which measured at least 4.7:1 on the background and surface of the four gallery themes (default, paper, ink and grove). Check it against a theme with a strongly colored surface, and set the token there if needed. - Optional type. Sixteen curated self-hosted typefaces, each its own
font-*item installing a small stylesheet that loads pinned WOFF2 by sha256, plus three pairings built from them (pairing-editorial,pairing-product,pairing-warm) that set only type tokens. Installs stay on the system font until a site adds one. See docs/type-pairings.md and the live specimens at/typography. - Optional techniques. Thirteen visual devices in the
techniquecategory, each with one job. Ten are one small CSS file each: install it,@import "./techniques/<name>.css";in your theme, and tune it with custom properties: surfaces (grain,color-field,line-work), photo treatments (duotone,image-mount,diptych), type (type-lockup,marginalia), an object (cut-edges) and one scroll accent (scroll-reveal).screen-tone,sealandannotated-figureare components. All use no JavaScript, keep text full-contrast, and drop their decoration under forced colors (and, where it touches text, more contrast)./techniquesrenders each in contrasting brands, plus compositions from none to three techniques;/compositionsopens one site's content five ways with the hero blocks. - Container queries. Blocks lay out from the width they are given, so they work full-width or inside a narrow column.
- Native layouts and controls. Narrow-screen menus use the HTML
popoverattribute, the transparent header uses CSS scroll-driven animation, and the wordmark footer sizes with container units. Schedule’s day links wrap and stick in wide containers using CSS. Onlydetail-dialog,filter-collection, andcompare-trayimport exact-pinned@ui-sdk/core@0.1.0-beta.23and@ui-sdk/web@0.1.0-beta.23in<script>tags. - Accessible by default. One
h1per page (heroes takeheadingLevel), visible focus, 44px targets, landmarks, alt text through props, and motion that respectsprefers-reduced-motion. - Props for content, slots for media. Props are typed and documented, so people and AI agents fill them reliably. Slots accept a
<picture>, video or SVG where a plain image isn't enough. Every section, header and footer passes other attributes, such asid,class,style,data-*andaria-*, to its root element, so<FeaturesEditorial id="services" style="--color-bg: #f6efe4">needs no wrapper.
The registry is optional material, not a design system to comply with. Design for the site first, add a block only when it is the fastest route to the structure you already want, then restyle, cut, combine or replace it. AGENTS.md says the same for coding agents. Site Boulder bundles a reviewed, pinned release of this registry for the AI that builds its customers' sites.
npm ci
npm run dev # the gallery and workbench at http://localhost:4321
npm run registry # validate, build public/r with shadcn, and derive src/data/catalog.json
npm run check # generated files current, plus astro check
npm run shots -- --themes default,paper,ink --sheet --interact --stress # contact sheets and QA checks into qa/AGENTS.md lists the conventions the build enforces and the release steps. Quality is judged with docs/quality-playbook.md, and the latest per-block verdicts are in docs/blocks-audit.md.
MIT © Lambda Curry. Each installed file starts with a one-line attribution that points back to this license.