Tangible Design System · @tangible/ui 0.2.56 · Interactive version · Markdown

About Tangible UI

@tangible/ui is the React design system for Tangible's products: standalone React apps, and WordPress plugin admin screens and frontends. It ships accessible React components, CSS custom property tokens, cascade-layered styles, CSS-only form elements, and a framework-free Modal for markup with no React behind it.

Where it runs

Context Styles
Standalone React app that owns the page @tangible/ui/styles + @tangible/ui/styles/app
WordPress plugin admin or frontend @tangible/ui/styles/unlayered
Plain markup (blocks, templates, PHP) CSS-only elements, plus vanilla/modal.min.js for modals

Everything renders inside a .tui-interface root. Getting Started covers the wiring.

Patterns

Building a whole page? Tangible UI Patterns has app shells, dashboards, settings pages, tables and sign-in flows built from these components, with the code ready to copy. See Patterns.

What it is, and isn't

Four layers of tokens

Every color, space and radius is a token, and tokens come in four layers. A consumer touches only the top two, which is why a site built on TUI can look nothing like Tangible's own plugins and apps without targeting a single class.

Layer Set by What it is Example
1. Primitives You The theme contract, on .tui-interface. Remap the primary ladder or the neutrals here. --tui-theme-primary-base: var(--brand-500);
2. Component API You Hooks each component reads but never defines. --tui-chip-bg: var(--tag-color);
3. Component-private TUI only Each component's own wiring, with a fallback to the layers above. Not for consumers to set. --_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
4. Sass TUI only Build-time constants. They compile away and never reach the browser. $spacing-multiplier-default: 4;

See Architecture and Component Tokens.

Color by contrast

Theme colors form a ladder ordered by contrast with the background, not by lightness: subtlest, subtle, soft, base, strong, stronger, strongest. "Stronger" always means further from the page, so one token reads correctly in both modes: -strong is a deep shade on a light page and a pale one on a dark page.

The rungs are measured against WCAG: AA asks 4.5:1 for body text and 3:1 for large text and interface parts, such as a form control's border; AAA asks 7:1. Dividers and decorative borders are meant to be quiet, which is why a control's boundary is its own color role (border-control), not the decorative border. See Colors.

For coding agents

The consumer guide ships in the package at node_modules/@tangible/ui/skills/building-with-tui/SKILL.md. It covers the wiring that fails silently rather than erroring. This site also serves llms.txt and a Markdown page for every component.