Lumen 1.0 was tagged on Tuesday. Its release notes describe stable public component, token, styling, framework, registry, and MCP contracts, and “stable” is a promise about what will not shift underneath your application. This post explains what Lumen counts as a primitive, how its packages are layered, and why the public surface is deliberately smaller than it could be.
These words get used interchangeably, but they make different promises.
A template is a finished composition: an analytics dashboard, an onboarding flow, a commerce admin. You are expected to edit it. Lumen ships templates, but as source rather than as an API. lumen add analytics-dashboard writes editable files into your project and, by default, skips any file that already exists. From then on the code is yours, and upgrading the package does not touch it.
A component kit packages product decisions behind props: a profile card with avatar, name, and onFollow. That works until your profile card needs a second action or a different heading level, and the kit grows another prop.
A primitive is the smallest unit that carries a contract you should not have to re-implement: semantic markup, a keyboard path, focus handling, state names, and the token roles it paints with. Button, Field, Dialog, and Card are primitives. They decide how something behaves and what it is called. They do not decide what it means in your product.
The test I apply before adding anything is simple. If two reasonable products would disagree about a decision, it does not belong in the primitive.
Lumen is split so that each decision has one home. @santi020k/lumen-core renders nothing. It holds the component names, token constants, class helpers, styling contracts, and behavior metadata that the adapters share. For 1.0, its lumenComponentNames list has 150 entries.
lumenComponentBehavior, in the same package, records how each adapter delivers a component’s behavior. In Astro, a component either needs nothing on the client or relies on the shared UIPrimitives runtime. In Web Components, it is a registered custom element. In React, it is a component or a hook. When a contract changes, it changes once, and every adapter is held to it.
Astro is the reference surface. It has the most complete catalog, the standalone CSS, and the progressive enhancement runtime. The React and Web Components packages adapt that contract to their own authoring models rather than imitating Astro. React’s native-backed controls forward refs to the DOM control they submit, so they work directly with React Hook Form’s register(). Lumen’s scalar Web Components are form-associated custom elements that use ElementInternals where the browser supports it, so they take part in FormData, constraint validation, disabled state, and reset the way native inputs do.
Components paint with named roles rather than raw color values. The core vocabulary has fifteen semantic roles: canvas, surface, surface-muted, surface-strong, line, ink, ink-soft, ink-muted, brand, brand-solid, brand-soft, accent, success, warning, and danger.
A filled button does not know it is blue. It knows it is brand-solid. Dark mode and product themes replace the values behind those names, and no component CSS changes. The roles are stored as bare HSL channels, such as --brand: 221 83% 53%, so a component can derive a translucent state like hsl(var(--brand) / 0.18) without a second token.
Application CSS can use the same vocabulary:
.release-note {
background: hsl(var(--surface-muted));
border: 1px solid hsl(var(--line));
color: hsl(var(--ink));
}Generic names like --surface and --ink are common, which makes incremental adoption a real risk. Run lumen audit-tokens against an existing codebase first. It reports declarations that hold complete CSS colors instead of channels and exits non-zero on conflicts, so collisions surface before Lumen’s stylesheet lands next to yours.
Of the 150 components in 1.0, the behavior metadata marks 109 as needing no runtime in Astro. The other 41, including dialogs, menus, tabs, comboboxes, and data tables, share one UIPrimitives runtime mounted once in the root layout. It finds Lumen markup on the page and enhances it, so interactive components do not each bring their own script.
Enhancement starts from native HTML wherever HTML already does the job. Dialog renders a native <dialog>. Collapsible renders <details>. Charts ship their data as a semantic table inside a <details> disclosure, so the numbers stay available with or without the plot. Form keeps native method, action, enctype, autocomplete, reset, and no-JavaScript submission. Button defaults to type="button", so a button inside a form submits only when you ask it to.
This is progressive enhancement in its plain sense: the baseline works, and the runtime improves it.
Styling follows the same rule. The stylesheet is standalone CSS and needs no Tailwind configuration. Projects that do use Tailwind import Lumen’s layers.css prelude first, then Tailwind, then the Lumen stylesheet. That order places Tailwind’s base styles below Lumen components and Tailwind utilities above Lumen’s defaults, so a utility class overrides a component default predictably.
Every public prop is a promise kept in three adapters, the registry, and the MCP catalog. Adding one is cheap on the day it ships and costs something in every release after. So 1.0 removed things as well as adding them. The deprecated surface="glass" overlay alias and the ui:datatable-selection-change event are gone, leaving the glass prop and ui:data-table-selection-change as the single way to express each.
Customization follows a documented order:
- component props and semantic tokens;
- documented component custom properties;
- stable
[data-slot]roots and compound parts; - the
classorclassNameescape hatch; - undocumented
.ui-*selectors, which are implementation details.
The lumenStylingContracts record in core is the authority for the second and third steps. Every hook it lists is marked stable and shared by Astro, React, and Elements, and lumen doctor reads the same record when it audits consumer CSS for fragile selector dependencies.
[data-slot="card"] {
--ui-card-padding: 1.5rem;
}That override survives an internal refactor. A rule that targets .ui-card directly might not.
Card has no title, footer, or actions props. It has parts: CardHeader, CardTitle, CardDescription, CardContent, and CardFooter. Each accepts a narrow as prop that only offers semantic choices, such as h2, h3, or h4 for the title.
---
import {
Button,
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle
} from '@santi020k/lumen-astro'
---
<Card as="article">
<CardHeader>
<CardTitle as="h2">Weekly digest</CardTitle>
<CardDescription>Sent every Monday at 09:00.</CardDescription>
</CardHeader>
<CardContent>
<p>Three projects changed status this week.</p>
</CardContent>
<CardFooter>
<Button variant="secondary">Pause</Button>
<Button>Edit schedule</Button>
</CardFooter>
</Card>A second action, a different heading level, or a footer that holds a link instead of a button needs no new API. The same thinking shows up elsewhere. In React, Button asChild applies the button contract to an existing element, such as a router link, without adding a DOM node. The form primitives (Form, Field, Label, FieldError, and ErrorSummary) supply presentation and the accessibility contract, but leave form state to whatever owns it: the browser, Astro Actions, or React Hook Form through the optional adapter package.
If you are trying 1.0, start with the component catalog and the Astro guide, then read the forms overview to see composition and native behavior working together. When a prop you expect is missing, try composing the parts first. If composition genuinely cannot express the case, that is a gap worth reporting, and it is how the surface should grow.







