Skip to content
Studio

Start

Requirements

  • Node 22 or newer, npm 10
  • For the browser checks: Chromium through @playwright/test 1.56.1 (npx playwright install chromium on a fresh machine; this repository's environment has it preinstalled)
  • For the Apple app: macOS with Xcode 27 (Apple)

Run it

make setup     # npm ci: dev dependencies from the lockfile; Portico comes from vendor/portico-3.0.0.tgz
make build     # every generated file, then the site
make dev       # http://localhost:4800/public/index.html

public/ also opens straight from disk: open public/index.html in a browser.

Use Studio in a page

<link rel="stylesheet" href="node_modules/@aidenlive/studio-system/studio.css">
<html data-theme="light">            <!-- or "dark"; without it, the OS preference -->

studio.css loads the fonts, tokens, type roles, component tokens, base and components. Navigation is Portico with Studio's binding (architecture).

Use Studio in a React app

Install @aidenlive/studio-system and @aidenlive/studio-react (workspaces here; private packages), import the CSS once, and compose the components (packages/react/README.md).

Use Studio in SwiftUI

Add packages/swift as a local Swift package and read the generated tokens: StudioColor.primary, StudioSpace.s4, StudioType.headlineMd (Tokens, Apple).

A product's own roles

A product names its roles in its own overrides.json, each referencing a system role, and runs studio tokens --overrides overrides.json --out <dir> (Tokens).

Contents