Open source

Samla is a front-end framework built for rapid prototyping

Built with an AI coding assistant in mind. One small, documented vocabulary of tokens and data-* variation axes means a tool like Claude Code generates new pages that already match the rest of the site, instead of improvising fresh conventions every prompt.

Build with Astro. Bring your favourite AI.

Astro logo
Claude logo
OpenAI logo
Samla VS Code preview

45

elements, components and sections, and counting

0kb

client JavaScript, unless a component genuinely needs it

13

documented data-* axes shared across the whole library

Why Samla

Small pieces, one set of rules

Every part of the library follows the same three habits, so a new component reads the same way once you already know one, for you and for an AI assistant reaching for the next piece.

Consistent, even when AI writes it

AGENTS.md ships in the repo with the conventions written down, so a coding assistant follows the existing patterns automatically instead of inventing new ones each prompt.

Astro-first

Every piece is authored once as a scoped .astro file. No build step beyond Astro's own, no client framework required to render a single page.

Accessible by default

Visible focus, labelled controls and reduced-motion support are built into every interactive piece, not bolted on afterward.

See it in action

The Astro on the left, the rendered result on the right.

button.astro
<Button icon="download">Download</Button>
tag.astro
<Tag tone="success">Stable</Tag>
Stable
notice.astro
<Notice tone="warning" heading="Heads up">
    Check your settings before continuing.
</Notice>

Heads up

Check your settings before continuing.

Read the docs, browse the catalogue

Every element, component and section has its own page: a description, a code sample, and a live rendered preview.