Platform Core

Design system

Shared design tokens and accessible base components (packages/ui-core), so every service's screens look like one product while each service still ships on its own.

Live@01scale/ui-core 0.1.2

What a service gets without building it

  • Brand colours, type, spacing and light and dark themes
  • Base components: button, input, select, checkbox, card, badge, dialog, tabs, toast, form errors, plus alert, progress bar, skeleton and spinner
  • Keyboard access, visible focus and WCAG AA contrast built in
  • No business logic and no service calls; each service pins the version it uses
  • Used by the site and by the DocFlow V1 clickable prototype at /products/docflow/try
  • Shown live on this page in both themes, with a card for each service's component package (01SCALE-V1-E0-52)

Base components

Every base component of @01scale/ui-core, rendered from the package itself in its states. Pick a theme to see them light or dark.

Live from @01scale/ui-core 0.1.2

Button

Input

As printed on the invoice
YYYY-MM-DD

Use the format YYYY-MM-DD.

Select

Checkbox

Accept the terms to continue.

Card

invoice-nw-0187.pdf

Uploaded today

Ready

A card groups related content under a title row.

Badge

neutralbrandinfosuccesswarningdanger

Alert

InfoExtraction usually takes under a minute.
SuccessPayment received. Your results are ready.

ProgressBar

Fields resolved2 of 3 resolved
Upload100%

Skeleton

Spinner

Decorative; the control that shows it carries the label.

Tabs

Arrow keys move between tabs.

Dialog

Delete this file?

A demonstration: nothing is deleted. Escape, the × or a click outside closes it, and focus returns to the button.

Toast

Service components

Each service ships its own components, built on @01scale/ui-core, in its own package. Each component is shown live once, on its module's UI Components section.

How to use it

Use it in any React app

import "@01scale/ui-core/tokens.css";
import "@01scale/ui-core/styles.css";
import { Button, Input, Badge } from "@01scale/ui-core";

<Input label="Invoice date" hint="YYYY-MM-DD" error={error} />
<Badge tone="warning" icon="⚑">Check 0.66</Badge>
<Button loading={saving}>Save</Button>

Stories

Read the design documents

← All Platform Core components