Skip to content

feat: type scale, ProgressRing, DateField, Callout, side-panel walk (tokens 0.3.0, ui 0.9.0) - #11

Merged
mindsers merged 3 commits into
mainfrom
feat/foundation-pieces
Nov 12, 2026
Merged

mindsers merged 3 commits into
mainfrom
feat/foundation-pieces

Conversation

@mindsers

Copy link
Copy Markdown
Contributor

The pieces the next round of app work builds on: a type scale for the titles and body, and components that replace hand-made versions across the app.

Tokens 0.3.0

  • Type scale beside Tailwind's own sizes, which keep theirs, so existing markup does not move:

    • text-body: 14 px, the round-1 density.
    • text-h1: 24 px, the page title.
    • text-h2: 15 px, a section or panel title.
    • text-metric: 26 px, a headline number.

    Each step sets its line height, and the titles also set their weight and tracking. The values come from the canvas tokens of direction D. base.css sets the body to text-body.

  • Map: a test that a free entrance's dashed ring reaches 3:1 on the map ground, in both modes.

UI 0.9.0

  • ProgressRing: a share in a list column (« 5/7 », « 20 sur 24 »). It draws a thin arc over a solid track, so it can't be mistaken for a status shape (those are filled, dashed or halved). The arc turns the success colour once complete. It is decorative unless it gets an aria-label.
  • DateField: the date written out with its weekday (« mar. 10 novembre 2026 »).
    • While focused, it can be typed in the reader's order: 3/12/26 in French, 12/3/26 in English.
    • It can also be picked in a month calendar. The arrows move by day and week, Page Up / Page Down by month, Home / End to the ends of the week, and Escape closes.
    • On a touch screen, the device's own picker opens instead.
    • It submits YYYY-MM-DD through a hidden input and honours min / max. The week starts on the locale's first day.
  • Callout: a notice in the page, such as a refused save, an offline warning or a trial ending. It has a soft tint, a status shape, a title, a body and one action. It takes role="alert" when asked to.
  • SidePanel walk: where the item sits (« 3 sur 12 ») and previous / next buttons, in the header beside close. A step with nowhere to go is disabled.
  • MapCluster: its touch target grows to 44 px on a coarse pointer.
  • MapDot « free »: it keeps a visible fill and ring on the dark map ground.

Testing

  • pnpm test:lint, pnpm test (tokens 115, UI 61, with 14 new for the components above), test:typecheck and pnpm -r build all pass.
  • The calendar uses the date picker grid pattern (table role="grid", each day a button), with one justified suppression of Biome's a11y rule for the grid role.

The glyphs are IBM Plex Sans turned into map SDF glyphs. The font's
licence (OFL 1.1, Reserved Font Name "Plex") keeps that name for
unmodified versions, and glyphs are a modified version, so MAP_FONTS now
asks for Unitae Map Regular, Medium and Italic. Same letterforms; the
host ships the OFL and IBM's copyright with the glyphs. 0.2.0 is not
published yet, so the version stays.
…tokens 0.3.0, ui 0.9.0)

Tokens
- A type scale beside Tailwind's own sizes, which keep theirs: `text-body`
  14 px, `text-h1` 24 px, `text-h2` 15 px, `text-metric` 26 px, each with
  its line height (and weight and tracking for the titles). `base.css` sets
  the body to `text-body`.
- A test that a free entrance's dashed ring reads on the map ground (3:1).

UI
- `ProgressRing`: a share in a list column (« 5/7 »), a thin arc over a
  solid track so it never reads as a status shape; success once complete.
- `DateField`: the date written out with its weekday, typed in the
  reader's order while focused, or picked in a month calendar walked by
  keyboard; the device's own picker on a touch screen. Submits YYYY-MM-DD.
- `Callout`: a notice in the page with a soft tint, a status shape, a title,
  a body and one action.
- `SidePanel` `walk`: where the item sits (« 3 sur 12 ») and buttons to the
  previous and next items, in the header.
- `MapCluster` grows its touch target to 44 px; `MapDot` « free » keeps a
  visible fill and ring on the dark ground.
@mindsers
mindsers merged commit d557b36 into main Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant