Repository navigation
feat: type scale, ProgressRing, DateField, Callout, side-panel walk (tokens 0.3.0, ui 0.9.0) - #11
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.csssets the body totext-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 anaria-label.DateField: the date written out with its weekday (« mar. 10 novembre 2026 »).3/12/26in French,12/3/26in English.YYYY-MM-DDthrough a hidden input and honoursmin/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 takesrole="alert"when asked to.SidePanelwalk: 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:typecheckandpnpm -r buildall pass.table role="grid", each day a button), with one justified suppression of Biome's a11y rule for the grid role.