Case study
A design system with its own gate
Tokens, components and an AI pipeline, checked on every build.
Content
White surface on cream with a hairline border and four bolts. Static: no shadow, no hover.
A design system with its own gate
<IndustrialCard>
<p className="text-heading font-bold">A design system with its own gate</p>
</IndustrialCard>Use the card for self-contained pieces of content that stand next to each other: cases, key figures, features, patterns.
White surface on cream, a hairline border, the card radius and four small bolts in the corners: the free•lenz signature. Cards are static: no shadow, no hover lift. The bolts are decorative and hidden from screen readers. With surface, the card turns ink (inverse) or terracotta (accent) and its content switches by itself.
Start with a short heading, then one or two sentences. If a card needs a scroll bar or a second link, the content belongs on its own page.
Design system and token architecture.
I have worked on design systems for more than ten years, for insurers, retailers and mobility companies, and I care about the details.
Case study
A design system with its own gate
Tokens, components and an AI pipeline, checked on every build.
Key figure
One gate for every screen
Contrast, types, lint, axe and keyboard tests on every run.
Patterns
Rules and a reference build.
Components
Documented the same way, checked on every build, with usage guidance, code and accessibility notes.
| Name | Type | Default | Description |
|---|---|---|---|
| as | "div" | "article" | "section" | "li" | "div" | Semantic element. |
| surface | "card" | "inverse" | "accent" | "card" | Surface mode: inverse (ink) or accent (terracotta, white type); the content switches by itself. |
| footer | ReactNode | – | Bottom line below a hairline, e.g. a link; aligns at the bottom in a row of cards. |
| children (required) | ReactNode | – | Card content. |
| Token | Tier | Value | Utility |
|---|---|---|---|
| card.bg | component | #FFFFFF | |
| card.bolt.color | component | rgba(10,10,11,0.20) | |
| card.bolt.inset | component | 8px | |
| card.bolt.size | component | 4px | |
| card.border | component | rgba(10,10,11,0.08) | |
| card.padding | component | 32px | |
| card.radius | component | 16px | |
| spacing.4 | semantic | 16px | |
| spacing.6 | semantic | 24px | |
| type.heading.size | semantic | clamp(24px, 2.5vw, 32px) | |
| weight.bold | semantic | 700 |
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |