A design system for client products: designed in Figma, published as a tested React package, and rebranded from a single colour.
Bland is the design system I use to build client products. It began as a Figma
UI kit and is now a tested React package, bland-ui, published on npm: 61
components on about 600 design tokens, light and dark themes designed as
separate palettes, and a brand layer that rebrands every component from a
single colour.
It is in use on client work today, and I maintain it as a product: versioned releases, a changelog, documentation, and tests that run on every change.
These components are imported from the published package, not reproduced. Change the brand colour, the theme or the typeface, and every component responds the way a project's brand file would make it respond. Each one works with the keyboard and with a screen reader.
The source is on GitHub and the package is on npm, both under the MIT License.
Every product built from a design file was being built twice.
I carried the same Figma kit across client projects, and on each one, developers rebuilt its buttons, fields and menus by eye. Values drifted between design and code, dark mode arrived late, and brand colours were hard-coded throughout the codebase, so a rebrand became a search and replace.
Bland removes the second build. Figma and code read the same values, generated from one source, and a new project starts from working, accessible components. What changes per client is only what belongs to the client: the brand colour and the typefaces.
The name states the intent: a system neutral enough to disappear behind the product it serves.
Figma first, then tokens, then components, in that order.
CLAUDE.md.Figma defines every value. The tooling exists to carry those values into code without manual transcription, and to prove they arrived intact.
The implementation was written by Claude Code under my direction. Three logs at the root of the repository keep every session consistent with the last:
INTERFACE.md: every design and API decision.LEARNINGS.md: every defect, recorded as symptom, cause and rule.EXECUTIONS.md: what was done, including the approaches that failed.The problems worth recording, and how each was resolved.
Figma's 100% corner smoothing spreads each curve over twice the radius. CSS now
has corner-shape: superellipse(), but only Chromium draws it. Bland doubles
the radius and draws it at superellipse(2), matched against Figma by eye.
Safari and Firefox fall back to plain rounding, which is an accepted
trade-off.
The steps have to hold up in light and dark, and the neutrals should lean toward the brand. The generator places the chosen colour on its own step without altering it, builds the remaining steps around it, and checks every brand pairing for contrast. Where a pairing fails, the correction moves the other steps, never the client's colour.
Dark is not an inversion. Neutrals mirror, tints become deep tones, solid colours move two steps lighter, and some surfaces deliberately do not mirror: a grey page with white cards stays darker than its cards in dark mode. These rules were settled in Figma, and the pipeline carries them into code.
Safari does not focus a button on click, skips links on Tab, and hides a closing popover before its exit animation runs. The tests account for each, and exit animations are driven by Bland's own closing state rather than the browser's.
One SVG exported from Figma had its strokes flattened into traced paths, and that single icon was two thirds of the landing page's download. Every exported SVG is now checked for size, and malformed ones are rebuilt as clean strokes.
npm install bland-ui
import 'bland-ui/tokens.css';
import 'bland-ui/fonts.css';
import 'bland-ui/base.css';
import 'bland-ui/styles.css';
import './brand.css'; // the project's brand, loaded last
import { Button, TextInput } from 'bland-ui';
<TextInput label="Name" placeholder="Ada Lovelace" />
<Button emotion="brand" type="primary">Save</Button>
A project's brand is one command, or the colour can be chosen on the Brand theme page and its CSS copied:
npx bland-ui brand "#ff5a1f" --fix --out src/brand.css
data-theme="dark" on any element
takes precedence.brand.css: --font-body,
--font-heading and --font-code.node_modules/bland-ui/dist/skill.The full reference is in the documentation.