Skip to content
surfinePublic

About

CSS library for Classic Mac OS and NeXTSTEP interfaces: System 6, System 7, Mac OS 8.5 Drawing Board, Mac OS 9 Platinum and NeXTSTEP 3.3, every value measured from real pixels. React and Preact components.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

191 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clio.css

Zero-dependency CSS library for Classic Mac OS (System 6, System 7, Mac OS 8.5 Drawing Board, Mac OS 9 Platinum) and NeXTSTEP 3.3, drawn on native HTML elements with every value traced to measured pixels.

For AI Coding Agents / LLMs: Feed llms-full.txt (or llms.txt / components.json) for one-shot accurate markup, --clio-* tokens, and anti-patterns.

<!-- Zero-dependency Classic Mac OS (39.5 kB gzip for all 4 eras) -->
<link rel="stylesheet" href="https://unpkg.com/clio.css@2.1.1/dist/clio.css">
<!-- NeXTSTEP 3.3 is its own file: https://unpkg.com/clio.css@2.1.1/dist/clio.nextstep.css -->
npm install clio.css   # 0 runtime dependencies; optional clio.js, clio.css-preact, clio.css-react

Minimal Copy-Paste Example (Mac OS 9 Platinum)

<!doctype html>
<html lang="en" data-era="platinum">
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="https://unpkg.com/clio.css@2.1.1/dist/clio.css">
</head>
<body>
  <div class="window" style="width: 320px">
    <div class="title-bar">
      <button class="close" aria-label="Close"></button>
      <h1 class="title">Macintosh HD</h1>
      <button class="resize" aria-label="Zoom"></button>
      <button class="shade" aria-label="Collapse"></button>
    </div>
    <div class="details-bar"><span>12 items</span><span>167K available</span></div>
    <div class="window-pane">
      <label><input type="checkbox" checked> Show warnings</label>
      <div class="field-row"><button>Cancel</button><button class="default">OK</button></div>
    </div>
  </div>
</body>
</html>

English | 简体中文 | Docs: https://clio-css.aaronlau.me/


Use with AI Agents

Paste this block into CLAUDE.md, .cursor/rules, or Antigravity Rules so agents reuse clio.css instead of hand-writing brittle retro bevels, 1-bit dithers, or fake hover states:

- Use `clio.css` (`dist/clio.css` for Classic Mac OS, `dist/clio.nextstep.css` for NeXTSTEP 3.3) instead of hand-writing retro bevels, dithers, title-bar stripes, or scroll bars.
- Read `https://clio-css.aaronlau.me/llms-full.txt` (or local `llms.txt` / `dist/components.json`) before writing markup.
- Switch Classic eras with `data-era="system6|system7|drawingboard|platinum"` on `<html>` or any container. For `data-era="nextstep"`, load `dist/clio.nextstep.css`.
- Keep `.close`, `.title`, `.resize`, `.shade` as direct children of `.title-bar`, and wrap menu items in `ul.menu-bar > li > button + ul.menu`.
- Never add `:hover` states, `border-radius`, or custom `box-shadow` to push buttons or windows; override `--clio-*` tokens instead.
  • llms.txt: compact index with When to use and direct links (llmstxt.org)
  • llms-full.txt: era rules, --clio-* tokens, DOM skeletons, anti-patterns, and full CSS
  • AGENT-RULES.md: full copy-paste rule template for AI coding tools
  • components.json: machine-readable selectors, tokens, HTML, and evidence per component

Why clio.css

Library Era Coverage Multi-Era Switching Preact / React Native llms.txt / Agent Spec Measured Evidence
clio.css System 6, System 7, Mac OS 8.5 Drawing Board, Mac OS 9 Platinum, NeXTSTEP 3.3 Yes (data-era on any element) Yes (clio.css-preact, clio.css-react) Yes (llms.txt, llms-full.txt, components.json) 271 of 384 rows measured in EVIDENCE.md; pixel check in FIDELITY.md
system.css System 6 No (single era) No No Not stated
98.css Windows 98 No (single era) No No Not stated
7.css Windows 7 No (single era) No No Not stated
Classicy Mac OS 8 (and System 7 appearance) Yes (React desktop) React only No Not stated
platinum.css Mac OS 9 (README: not ready for use) No No No Not stated

No other NeXTSTEP CSS library was found (searched 2026-11-27). "Not stated" means no per-value evidence table was found in the project's README or repository root.

  • Every value has a row in EVIDENCE.md with a source and a status: 271 of 384 rows are measured from real pixels of the era, 53 inferred, 56 adapted for the web and 4 third-party.
  • Controls are styled on button, input, select, textarea, fieldset and progress, so keyboard, forms and screen readers keep the browser's behaviour. Focus rings, forced-colours mode and a 45px touch hit area on title-bar boxes are labelled adaptations.
  • Every rule uses :where() or a single class, and every value is a --clio-* custom property, so your CSS wins without !important (Theming).
  • You can re-run the pixel check yourself with npm run fidelity:public (Fidelity).

Install & Bundles

Four ways in, from least to most code:

<!-- 1. CDN: the four Classic eras, System 6 by default -->
<link rel="stylesheet" href="https://unpkg.com/clio.css@2.1.1/dist/clio.css">
<!-- NeXTSTEP is its own file: https://unpkg.com/clio.css@2.1.1/dist/clio.nextstep.css -->
<!-- optional behaviour (menus, scroll bars, window dragging): -->
<script src="https://unpkg.com/clio.css@2.1.1/dist/clio.js" defer></script>
// 2. ES modules with a bundler (Vite, esbuild, …), after npm install clio.css
import "clio.css";                         // or "clio.css/nextstep", "clio.css/platinum", …
import { install } from "clio.css/js.esm";
install();                                 // importing alone installs nothing
// 3. Preact: npm install clio.css clio.css-preact preact
// 4. React:  npm install clio.css clio.css-react react
import { Window, Button, FieldRow } from "clio.css-react";   // or "clio.css-preact"

export const App = () => (
  <Window title="Macintosh HD" style={{ width: "300px" }}>
    <FieldRow><Button>Cancel</Button><Button default>OK</Button></FieldRow>
  </Window>
);

jsDelivr works identically (https://cdn.jsdelivr.net/npm/clio.css@2.1.1/dist/clio.css).

File Draws Minified gzip
dist/clio.css The four Classic eras; System 6 by default, data-era switches any subtree 235 kB 39.5 kB
dist/clio.system6.css System 6 only 107 kB 19.4 kB
dist/clio.system7.css System 7 (colour) as the page default 122 kB 22.0 kB
dist/clio.drawingboard.css Drawing Board as the page default 202 kB 35.7 kB
dist/clio.platinum.css Platinum as the page default 162 kB 29.4 kB
dist/clio.nextstep.css NeXTSTEP 3.3 (its own file, never in clio.css) 164 kB 28.2 kB

Sizes are the *.min.css builds of this version (gzip level 9); fonts and art load separately, by relative URL from dist/fonts/ and dist/art/, so serve the dist folder whole (the CDNs do). dist/components.json is the machine-readable index: selectors, tokens, markup and evidence for each component.

Single-File Examples

Zero-build, open-in-browser demos in examples/:

Eras

data-era Measured from What you see
system6 (default) System 6.0.8 in Infinite Mac 1-bit black and white, striped title bars, dithered desktop
system7 System 7.5.3 in Infinite Mac Colour frame and title bar on the System 6 layout
drawingboard Mac OS 8.5 with the 8.5b6 Drawing Board theme, in Infinite Mac; control parts from the theme's own pixmaps Paper, pencil lines and hatched corners (the Appearance theme Apple shipped in betas and withdrew)
platinum Mac OS 9.0 in Infinite Mac, and GUIdebook Mac OS 9.0 captures Grey bevelled controls, ridged title bars, the WindowShade box
nextstep (dist/clio.nextstep.css) NeXTStep 3.0 in Infinite Mac (the nearest real 3.x system it runs), for NeXTSTEP 3.3's look Four greys, black key title bars, the vertical main menu, scrollers on the left with their arrows together

data-era works on <html> or on any element, so one page can show several Classic eras. The Mac's arrow and I-beam cursors are on by default; class="clio-system-cursors" on <html> brings back the system's.

Drawing Board draws its pencil lines with 128px patterns. Mac OS sometimes starts such a pattern half a tile along, depending on where the window sits; clio.css starts it at the element, and --clio-db-phase: 64px on a window or control matches the other case.

NeXTSTEP 3.3

dist/clio.nextstep.css draws NeXTSTEP 3.3 on the same markup: the menu bar becomes the vertical main menu (titled by its aria-label, submenus hanging level with its top), the collapse box becomes the miniaturize button, the close box moves to the right, and a window with a zoom box gets the resize bar instead (NeXT had no zoom). With clio.js the main menu is a column for the keyboard as well (Up and Down between titles, Right into a submenu), and NeXT's own arrow and I-beam cursors replace the Mac's. data-clio-depth="2bit" gives a black-and-white NeXT's workspace. .window.main is a main window that is not key. Seven components exist only there: .browser (the column browser), .pull-down, .dock, .miniwindow, .color-well, .form and .shelf (the File Viewer's shelf). With clio.js the scrollers sit on the left with both arrows together, as measured; without it the browser keeps its own bar on the right. Helvetica is named locally; elsewhere Clio Sans NX (Liberation Sans 2, OFL, renamed) is fitted to NeXT's screen font: whole-pixel advances and no kerning, within 0.6px of NeXT's label widths. NeXTSTEP never enters clio.css.

Components

39 entries, the same as dist/components.json. Each name links to its docs page with markup, tokens and evidence; the selectors are the first ones listed in the JSON.

Component Selectors
Window .window, .window.inactive, .title-bar, .title-bar > .title
Menu bar and menus .menu-bar, [role=menubar], .menu, [role=menu]
Push button button, .btn, .default, .btn-default
Check box input[type=checkbox], label > input[type=checkbox], .field-row
Radio button input[type=radio]
Text field input[type=text], input[type=search], input[type=email], input[type=password]
Pop-up menu select, select[multiple], select[size]
List box .listbox, [role=listbox], [role=option], [aria-selected=true]
Scroll bar .window-pane, .clio-scroll, html.clio-scrollbars, ::-webkit-scrollbar
Dialogs and alerts .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog
Group box fieldset, legend
Progress bar progress
Tabs [role=tablist], [role=tab], [aria-selected=true], [role=tabpanel]
Control Strip .control-strip, .control-strip.is-collapsed, .control-strip-scroll, .control-strip-scroll-back
Desktop and icons .desktop, .icon, .icon > img, .icon > figcaption
Disclosure triangle .disclosure, .disclosure[aria-expanded=true], details > summary, details[open] > summary
List view .list-view, .list-view th[aria-sort], .list-view th.sort-direction, .list-view td.sorted
Slider input[type=range], input[type=range].ticks
Little arrows .little-arrows, .little-arrows > .up, .little-arrows > .down, .little-arrows[aria-disabled=true]
Bevel button .bevel, .bevel.menu, .bevel[aria-pressed=true], .bevel:active
Chasing arrows .chasing-arrows
Help button .help-button
Image well .image-well
Help balloon .balloon
Rounded-corner window .rounded-window, .rounded-window.inactive, .rounded-title, .rounded-title > .close
Side-title utility window .window.utility.side, .window.utility.side.inactive
Placard .placard, .placard[aria-disabled=true]
Split bar .split-view, .split-bar, .split-line
Browser (NeXTSTEP) .browser, .browser > .listbox, .browser .branch
Pull-down list (NeXTSTEP) .pull-down
Workspace dock (NeXTSTEP) .dock, .dock > li, .dock > .not-running
Miniwindow (NeXTSTEP) .miniwindow, .miniwindow > .miniwindow-title
Color well (NeXTSTEP) .color-well, .color-well[aria-pressed=true]
Form (NeXTSTEP) .form, .form > label
File Viewer shelf (NeXTSTEP) .shelf
Combo box .combo-box, .combo-box > input, .combo-box > button
Open and Save dialog .nav-dialog, .nav-location, .nav-shortcuts, .nav-files
Standard File dialog .standard-file, .sf-browse, .sf-side, .sf-disk
Type and tokens .clio, .text, .heading, .display

Where an era never had a control (tabs or sliders in System 6, for example), it borrows a later era's so a page keeps working when it switches era; dev/COVERAGE.md checks every control and window in Apple's 1987, 1992 and Mac OS 8 guidelines, era by era.

Coming from system.css? Its markup works unchanged: .title-bar button.close, button.resize, .inactive-title-bar, .window-pane, .details-bar, .separator, .btn, .btn-default, .standard-dialog, .modal-dialog, .alert-box, .outer-border, .inner-border, .field-row and role="menu-bar" / role="menu-item" menus.

clio.js (optional)

<script src="https://unpkg.com/clio.css@2.1.1/dist/clio.js" defer></script>

No dependencies; 71.9 kB, or 47.6 kB as dist/clio.min.js. clio.css works without it. As a module: import { install } from "clio.css/js.esm"; install(); (importing alone installs nothing; api is the same object as window.clio). With it:

  • Buttons, check boxes, radio buttons and title-bar boxes track the pointer as the Mac's controls did; Return clicks a dialog's .default button, Esc or Cmd-. its cancel button.
  • Menus track a press-and-drag, open submenus, and work from the keyboard as an application menu bar.
  • <select> opens as the era's pop-up menu (touch screens keep the system picker).
  • Scroll areas get the era's scroll bars as elements.
  • Windows positioned absolute or fixed drag by the title bar, with a keyboard alternative; the collapse box folds a window to its title bar.
  • Text fields in a .window get TextEdit's blinking insertion point.
  • Optional interface sounds, from packs you build yourself.

Types for window.clio ship as dist/clio.d.ts. data-clio-js="off" on any element leaves it alone.

Details: controls, menus, pop-ups, windows, caret, centring, scroll bars
  • A pressed control lets go while the pointer is off it, presses again on return, and does nothing if released outside. A dialog's default or cancel button shows pressed for 8 ticks before it fires; the cancel button is data-clio-cancel or value="cancel".
  • Menus: release on an item to choose it (it blinks three times first, as Mac OS 9 does), drag across titles to switch menus; submenus open after 9 ticks and stay while you head for them. Mac OS 8 and 9 keep a clicked menu open. From the keyboard the bar is one Tab stop, a title's menu previews on focus, arrow keys, Home/End and Esc work one level at a time, and Tab out closes all. Command-key equivalents written as <kbd>⌘N</kbd> run their item on menu bars marked data-clio-shortcuts.
  • <select> is drawn by the browser where appearance: base-select is supported (Chrome 135, Safari 27) and the pointer is a mouse or trackpad, by clio.js elsewhere. Drawing Board's pop-ups carry a pencil shade the browser's picker cannot, so clio.js draws those in every browser.
  • Window dragging shows the era's grey outline and moves the window on release (mark any other window data-clio-drag). Each movable window gets a move button, hidden until it has keyboard focus: arrow keys move it 16px (Shift: 1px), Return opens a menu of moves (a right click on the title bar opens it too), and a polite live region says where it went. data-clio-shade="dblclick" adds collapse on double click. clio.zoomRects(from, to) draws the Finder's zoom rectangles.
  • The insertion point is a 1px line that inverts what is under it, blinking at the era's rate (32 ticks in System 6 and 7, 48 in Mac OS 8 and 9; lit and still under reduced motion). The browser's caret returns while text is selected or an input method is composing; data-clio-caret="off" keeps it everywhere.
  • Centred labels whose text would start on a half pixel get one more pixel at their end, so every engine lands on the Mac's floor(spare / 2); measured when fonts load and on resize, never per frame (data-clio-centre="off").
  • Scroll bars keep the era's fixed scroll-box length, repeat while an arrow is held and page on a click in the lane; System 6 and 7 drag an outline of the box, Mac OS 8 and 9 scroll live. data-clio-scrolling="smart" turns on Smart Scrolling. The scroller becomes box-sizing: border-box and gets a first child, .clio-sb-anchor; flex and grid scrollers, textarea and select keep the browser's bar.
Sounds

None ship: the sounds belong to Apple and to the sets' authors. Build a pack from your own copies of the Mac OS 8.5–9 Appearance sound sets and System alert sounds with npm run soundset (tooling/soundset.py, into the git-ignored packs/), serve it, then:

await clio.sounds.use("packs/sets/platinum-sounds/manifest.json");
await clio.sounds.use("packs/alerts/platinum/manifest.json");

A sound set plays for Drawing Board and Platinum ({ era } to choose; System 6 and 7 had no interface sounds), an alert list for its own eras. clio.play("alert") plays the era's alert sound. data-clio-sounds="menus windows controls finder" keeps those classes ("none": silent), clio.sounds.muted = true silences the page, a hidden page is silent, and each sound fires a clio:sound event. dist/clio-sounds-panel.js draws Appearance > Sound's controls for a site: clioSoundsPanel(element, { base: "https://…/packs/" }). What was measured and what is inferred: the sound rows in EVIDENCE.md; the pack format is described at the top of tooling/soundset.py.

Contract and tokens

clio.css/contract is what a host checks itself against: the eras, each component's selectors, aliases and tokens, and each era's page-default token values, typed to the token names. clio.css/tokens/<era>.json has the values alone.

import contract from "clio.css/contract";
contract.tokens.nextstep["--clio-titlebar-height"];   // "22px"

Preact and React

npm install clio.css clio.css-preact   # or clio.css-react

The 39 components are written once in JSX (packages/components) and published as clio.css-preact and clio.css-react, same version as clio.css. Each renders exactly the markup documented here, checked in both frameworks by npm test and, from the packed tarballs, by npm run verify. They are controlled components with no behaviour of their own: load clio.css beside them, and clio.js for behaviour.

Old browsers: clio.html32

npx clio-html32 --src ./site --out ./dist-html32 --era system7 --check-links

clio.html32 converts a static site into HTML 3.2 and GIFs for Netscape 3/4 and Internet Explorer 3–5 on a real Classic Mac: no script, no CSS. Windows, title bars and menus are cut from clio.css in any of the five eras. It needs only Node and Chromium (through Playwright), and has its own version number. This site's own retro edition is made with it.

Theming

Tokens are declared on :root (System 6) and re-declared under [data-era="system7"], [data-era="platinum"] and [data-era="drawingboard"] (Drawing Board shares Platinum's block, then overrides it). Override any of them on any element:

.my-app {
  --clio-selection-bg: #333399;
  --clio-button-radius: 4px;
}

The full list is in the docs under Type and tokens and in each component's tokens in dist/components.json.

Chinese, Japanese and Korean

Set lang (zh-Hant/zh-TW, zh-Hans/zh, ja, ko) on <html> or any element and the chrome and text take that language's fonts: the period bitmap font if installed (Taipei, Beijing, Osaka, Seoul), then Fusion Pixel 12px cut to that font's character set (Big5 93.7%, GB 2312 99.1%, JIS X 0208 99.5%, KS X 1001 97.4% covered), then the period outline family. Each language's file (176–322 kB) loads only for text in that language. Rows, line heights and baselines do not change: KanjiTalk 7.5.3 and Mac OS 9.0 with the Chinese Language Kits draw CJK at the Roman geometry. Override the stack with --clio-font-cjk.

Visual Preview & Badges

npm licence clio.min.css gzip dependencies

The same window and alert drawn by clio.css in System 6, System 7, Drawing Board, Platinum and NeXTSTEP

The same markup in five eras, rendered by clio.css in Chromium (tooling/readme-eras.ts; 1x: assets/eras.png).

Fonts

clio.css ships no Apple font files. The Clio fonts are pixel reconstructions, read glyph by glyph from the running systems and built as new font files; the letterforms are Apple's, which is why the fonts have other names. Licences and the legal note: THIRD-PARTY.md.

Font What it is Used for Licence
Clio Sans '84 Chicago 12, from System 6.0.8 System 6 and 7 chrome MIT (clio.css)
Clio Text '84 (12 and 9) Geneva 12 and 9, from System 6.0.8 System 6 and 7 text MIT (clio.css)
Clio Sans '97 (+ Title, Exact, Display) Charcoal 12 from Mac OS 9.0; Display traced from Charcoal at 72 points Drawing Board and Platinum chrome MIT (clio.css)
Virtue 3.2.1 Marty P. Pfeiffer's reworking of Charcoal, © Scooter Graphics data-clio-font="virtue" Shipped unchanged by the author's permission, for clio.css only
Fusion Pixel Font 12px TakWolf's pixel font, cut per language CJK stand-in SIL OFL 1.1
ChicagoFLF Robin Casady's outline revival of Chicago System 6 and 7 .display text Public domain
Asap Omnibus-Type's outline sans Platinum and Drawing Board fallback SIL OFL 1.1
Clio Sans NX Liberation Sans 2 (Red Hat), subset and renamed NeXTSTEP fallback for Helvetica SIL OFL 1.1

If Charcoal is installed, the Drawing Board and Platinum stacks use it first. data-clio-font="truth" uses Truth FB, which you install or load yourself. Window titles and button labels use the Exact variants, whose antialiasing levels take the colours the real screen shows; if you recolour them, set --clio-font-window-title or --clio-font-button to a stack without "Exact".

Fidelity

npm run fidelity renders specimens in Chromium at 1x and compares them pixel by pixel with captures of each era. From FIDELITY.md (run of 2026-12-03):

Era Reference Specimens at 100.0% same
System 6 System 6.0.8 in Infinite Mac (1-bit) 25 of 25
System 7 System 7.5.3 in Infinite Mac 28 of 28
Drawing Board Mac OS 8.5 + 8.5b6 theme in Infinite Mac 54 of 56
Platinum Mac OS 9.0 in Infinite Mac 59 of 59
Platinum GUIdebook Mac OS 9.0 captures 7 of 7
NeXTSTEP NeXTStep 3.0 in Infinite Mac 40 of 40

The two Drawing Board specimens below 100% are the open pop-up menu (97.3%), whose text is antialiased over the paper. NeXTSTEP is measured on 3.0 because Infinite Mac runs no 3.3. The same file has the WebKit, Firefox, 2x and 3x results (220 specimens compared). Its five nx-ais6-* rows compare with AI System 6's own drawn tiles, a check of agreement rather than fidelity, and are left out above. The three CJK specimens were not compared in that run: their frames were not on the machine that ran it.

What you can check yourself

The captures are Apple's pixels, so they are not in this repository. What is committed instead is test/fidelity-digests.json: for each specimen, the SHA-256 of its reference crop (thresholded to 1-bit where the comparison is, masked pixels left out). 214 of 223 specimens are publicly checkable:

git clone https://github.com/surfine/clio.css && cd clio.css
npm ci && npx playwright install chromium
npm run fidelity:public    # renders each specimen and compares it with its digest

A digest proves "identical" or "not identical", nothing in between, so it covers only the specimens the full run found 100% identical. The 9 it cannot cover, each with its reason in the digest file: the two Drawing Board pop-up menus (97.3%), three CJK specimens whose frames were not on the machine that wrote the digests, and the four nx-ais6-* specimens, which compare with AI System 6's own drawn tiles (agreement, not fidelity). The percentages, the diff images, the 2x/3x runs and the reference captures themselves need npm run fidelity and the author's private AI System 6 checkout.

At whole-number pixel ratios (2x, 3x) the art is magnified by nearest neighbour, so every Mac pixel becomes a solid block; at fractional ratios the browser's smoothing stays.

What the era did not have

What the era never had is adapted, not imitated, and labelled adapted in EVIDENCE.md: keyboard focus rings, larger controls on pointer: coarse (title-bar boxes get a 45px hit area while their art stays 11px), solid grey instead of a dithered disabled state, and system controls in forced-colours mode. The chasing arrows, menu blinks, zoom rectangles and caret blink honour prefers-reduced-motion.

Versions and support

Only 2.x is maintained (since 2026-11-27). 2.0 has 1.1.1's CSS rules unchanged (checked by npm run verify against the 1.1.1 tarball), so moving from 1.x renders the same; 1.x, declared the Classic long-term line on 2026-11-18, gets no further releases. 2.x is supported for at least 12 months from 2.0.1.

Within 2.x these stay compatible: the selectors and aliases in components.json; every --clio-* name and its meaning (its value may change when a measurement corrects it, recorded in the CHANGELOG with its evidence row); each component's markup; the dist/ file paths and exports keys, whose rules change only as recorded fixes; the shape of clio.css/contract and clio.css/tokens/<era>.json; and the keys and types of window.clio. Not promised: values a better measurement corrects, clio.js's internals, the docs site and tooling. The component packages promise the DOM they render (it is components.json's markup) and otherwise follow semver only: their component names and props may change in a minor version, with a CHANGELOG note. Every value that is not a plain measurement is labelled inferred or adapted in EVIDENCE.md, with its reason.

Browser support

Current Chrome, Edge, Safari and Firefox. Uses :where(), :has() and custom properties. Scroll-bar parts drawn by the stylesheet need ::-webkit-scrollbar (Chromium and Safari); Firefox gets the era's colours only, or full scroll bars with clio.js.

Contributing

npm install
npm run build      # dist/, docs/, llms.txt, EVIDENCE.md from packages/core/src
npm test           # build + static checks
npm run fidelity:public   # pixel check against the committed digests
npm run verify     # the release gate: fresh clone, packs, baselines, docs, links
npm run fidelity   # full pixel check (needs the author's AI System 6 checkout)

Commits made with AI tools say so in an Assisted-by: trailer, the form Fedora's AI policy uses. Every new or changed value needs an evidence row with an honest status; see AGENTS.md. Scope is fixed: Classic Mac OS and NeXTSTEP, no new eras (Mac OS X is a separate project, clio.wasm). How the eras were measured: dev/LESSONS.md. node tooling/readme-eras.ts re-renders the README image.

Licence

MIT, see LICENSE. Bundled fonts and art, and their licences, are listed in THIRD-PARTY.md.

clio.css is not affiliated with or endorsed by Apple Inc. Macintosh, Mac OS, Chicago, Geneva and Charcoal are trademarks of Apple Inc., named only to describe the eras recreated.

About

CSS library for Classic Mac OS and NeXTSTEP interfaces: System 6, System 7, Mac OS 8.5 Drawing Board, Mac OS 9 Platinum and NeXTSTEP 3.3, every value measured from real pixels. React and Preact components.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages