Skip to content

v2.0.0 — the design-quality release

Choose a tag to compare

@vicmaster vicmaster released this 10 Aug 17:56
· 245 commits to master since this release
10d09cb

framesmith v2.0.0 — the design-quality release

One call now produces a complete design language, and everything an agent stamps on top of it reads like a product team built it. This release rolls up five phases of work (24 through 28) whose shared goal was a single sentence: an agent asked for a screen should hand back top-tier UI with top usability, deterministically, without an API key.

The headline: generate_design_system

A seed color plus a personality — technical, editorial, soft, or data-dense — writes the full token stack in one call: an OKLCH color system with AA-by-construction semantics and a real dark theme, a curated font pairing loaded from Google Fonts, typography roles ($display / $heading / $body / $label / $caption, plus $figures on data-dense), radius and density stances, $elevation.* shadow tokens with a dark treatment, $motion defaults, a categorical chart palette ($chart-1…$chart-6), and a tint layer ($accent-tint, $success-tint, …) whose one-sentence pairing rule — tint as the fill, base color as the ink — is AA in both themes by construction. Same seed, different personality: a visibly different product.

An archetype library at reference quality

Every scaffold reads its density, radii, and depth from the design system, so a personality re-shapes every stamp. The dashboard is a real product shell (grouped navigation, account row, search topbar, KPI cards with sparklines and delta pills, a labeled chart, an activity feed); settings has sections, a danger zone, and a save bar; the data table has status dots, tabular numerics, and pagination. New micro-patterns: kpi-card, status-chip, segmented-control, breadcrumb, initials-avatar — plus skeleton-stat-card so loading states cover every data surface.

Data visualization

The chart node speaks dashboard: a data-bound donut kind with center value slots, bar emphasis (highlight renders the selected bar solid over muted siblings, barGradient fades inside the SVG), and a sparkline kind for KPI cards. Segment and series colors take $chart-* refs.

Every state, every string, every screen

  • State variants: canvas_add_variant clones a screen into linked empty/loading/error states; the coverage category warns until data-bearing screens have them, and flags half-designed loading states.
  • Content stress: canvas_stress re-renders under hostile content (long text, i18n, big numbers, empty, many) and reports what broke by node id; scaffolds survive it out of the box with designed truncation.
  • Grid authoring: real CSS grid (layout: "grid", column templates, spans, responsive collapse) — bento compositions without nested-flex approximations.
  • Project roll-up: project_evaluate checks a screen set for radius/accent/token drift, hand-copied shells, and state coverage; an optional multi-screen flow critique runs when an LLM key is present.

An evaluator that gates usability and knows dashboards

  • New usability category: a control below the 24px hit-target floor is an error (WCAG 2.5.8, same standing as contrast); unlabeled controls warn; vague action copy gets a nudge. Controls render keyboard-focusable with accent-derived focus rings in the live viewer.
  • Dual-theme color checks, APCA advisories (info-only; WCAG 2.2 gates), typography scale and tracking discipline, motion tokens.
  • The cliché tells now recognize dashboard vocabulary: categorical violets and tints referenced through their tokens never flag, sparkline bars aren't "fake window chrome," KPI labels beside big tabular figures aren't eyebrows, and two stacked rows aren't a table. Literal slop still flags — every exemption ships with a negative fixture.
  • An empty canvas scores 0 with a blocking error instead of a misleading 100.

Also

  • canvas_set_genre persists a canvas's genre for evaluation.
  • Scale and color engines are callable on their own (generate_scale, generate_color_system).
  • The operating contract teaches the full loop, ending with the vision critique + canvas_revise as the standard final polish when a key is configured.

Breaking changes

  • Evaluator semantics: empty canvases score 0 (was 100); usability and coverage joined the default category set, so scores on existing canvases can change; hit-target violations are errors.
  • Archetype contents changed under stable names (stamps are copies, so existing canvases are untouched; new stamps get the new anatomy).
  • stat-card is now an alias of the kpi-card anatomy.

Docs: the README's screenshots are regenerated from this release; the guidelines gained "Designing with character" and the tint-pair rule. The discoverability guard grew from 62 to 114 checks across this arc.