@aidenlive/studio-system
Studio's specification, generated tokens for CSS, JavaScript, JSON and Swift, base and component CSS, self-hosted fonts and the studio command. No framework and no runtime. Private workspace package.
@import "@aidenlive/studio-system/studio.css"; /* fonts, tokens, type roles, component tokens, base, components */
import { tokens } from '@aidenlive/studio-system'; // thresholds, timings, z-index, shells, colours
import { tokenize, highlightHtml } from '@aidenlive/studio-system/highlight'; // [{ text, role }], '<span class="code-keyword">…'
| Path | What |
|---|---|
DESIGN.md | The specification (Studio 2.0.0). Normative; the source of every value |
CONFORMANCE.yaml | Studio against Design Standard 2.0.0 |
dist/tokens.css · type.css · components.tokens.css · fonts.css · tokens.json · tokens.js · tokens.d.ts | Generated from DESIGN.md and fonts/fonts.json |
css/ | Base and component CSS, reading tokens only; code.css is the code block, the code editor and the code-<role> classes |
src/code/ | The highlighter: a fork of Prism 1.30.0 (MIT, Lea Verou; the originals are kept in vendor/prismjs-1.30.0/) as ES modules with no globals and no DOM, highlight.mjs (tokenize, highlightHtml, splitLines, languages, aliases, resolveLanguage) and code-roles.json (Prism token types → code roles). Languages: markup/html, css, js, ts, jsx, tsx, json, bash/sh, swift, yaml, markdown, go; anything else is plain |
dist/highlight.js · highlight.d.ts · highlight.iife.js | The highlighter bundled (src/code/build.mjs, run by npm run build, drift-checked by npm run check): ES module, types, and a minified classic script (window.StudioHighlight) for a page that opens from disk |
fonts/ | Bounded, Inter Tight, Instrument Serif, JetBrains Mono: woff2 for the web, TrueType for Swift, each family's OFL text, and fonts.json (PostScript names, sources, SHA-256) |
standard/ | The pinned Design Standard 2.0.0 and its checker (synced from vendor/) |
bin/studio.mjs, src/ | The studio command and the generators (tokens.mjs, swift.mjs, color.mjs) |
The studio command
| Command | Does |
|---|---|
studio tokens --out <dir> | The system's token files |
studio tokens --overrides overrides.json --out <dir> | A product's tokens: the system plus its named roles; a literal is refused unless listed under deviations with a reason |
studio swift --out StudioTokens.swift | The Swift tokens for StudioKit (colours converted to sRGB or Display P3, spacing, radii, type, motion, z-order, thresholds, elevation, materials, density, components) |
studio design-md --out <file> | The pinned spec for a product's design kit, marked as generated (--out - for standard output) |
studio check | DESIGN.md, the Design Standard and the conformance statement, verified together (needs @google/design.md) |
studio check-css <file.css> … | Stylesheets held to the rules: no raw colour or length, no side stripes, no sideways shadows |
Every write has a --check twin that exits 1 when the file on disk is stale. The token reference is docs/guides/tokens.md.
All rights reserved, aidenlive. Fonts: SIL OFL 1.1. The generator is ported from @stationmodules/neue-system (MIT, FiftyTwo Software, Inc.; NOTICE (../../NOTICE)).