Family Design System
v0.3.0-rc.6
v0.3.0-rc.6 · Live

One design system, three personalities.

Single source of truth for design tokens, components, and patterns across the Perpetuals · Barriers · UpsideOnly product family. Same structural skeleton — radius, spacing, motion, sizing — wearing three different brand colors and feels.

10+
Documented pages
104
Design tokens
76
Modal scenarios
3
Brands, one skeleton
Foundations

What doesn't change

Structural rules shared across all three brands. The skeleton.
Components

The reusable parts

25 family primitives with brand-tinted color and motion. Per-component pages land in v0.4.
Patterns

Multi-component flows

Composed scenarios using multiple primitives. Each rendered in all 3 brands.
Quick Start

Start using it

Two paths in: drop the CSS into any page, or import the npm package.

1. CDN drop-in (any HTML page)

Single CSS file, ~40 KB. CORS enabled — works cross-origin.

<link rel="stylesheet"
      href="https://perpetuals-design-system.pages.dev/tokens.css">

<div data-brand="upsideonly">
  <button class="fam-btn fam-btn--primary fam-btn--xl">
    Submit Trade
  </button>
</div>

2. As a package (Vite / webpack / Angular)

Coming in v0.5: framework wrappers (`@perpetuals/ui-react`, `ui-angular`).

npm install @perpetuals/design-tokens

# in your entry CSS:
@import "@perpetuals/design-tokens/tokens.css";

# (optional, after v0.5):
import { Button } from '@perpetuals/ui-react';
<Button variant="primary" size="xl">Submit</Button>
Resources

Direct links

Raw assets, validator, planning docs, and changelog.