Skip to content

Review the core UI: fonts, design, implementation #424

Description

@aitianshi

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Today

The same thing looks different from page to page (f23c69f, 20 pages, six builder steps, dark, 1280 px):

The same thing as several pages draw it: section titles, buttons, close buttons, filters, tabs, card titles and table headings, each with its size

Fonts

  • 57 sizes, 20 of them between 11 and 14 px, in 638 declarations.
  • h2 has 8 sizes, h3 6, table headings 5, .mono 10.
  • fonts/README.md says system font, brand/README.md DM Sans. The app uses the system's: each machine shows another.
  • 10 rules use weight 600; both READMEs say 400 and 500.

Design

  • .btn has 8 looks, nb-button 2. 12 classes draw a ×, 20 to 42 px. 5 dialog frames, 2 toasts, 3 tab bars, 5 segmented controls.
  • --warn: used 12 times, never defined. Builder and job warnings look like plain text; six others are 3:1 on light.
  • At 1920 px, 4 left edges and 5 page widths.
  • 30 corners, 83 gaps, 14 breakpoints, 67 colors outside the tokens.
  • axe-core 4.14: 5 rules fail.

Implementation

  • The builder's copies: 273 selectors under #nullius-builder. One gives 16 shared controls another font.
  • catalogue.css holds dialogs and delete buttons: 7 pages outside the catalogue load it.
  • 1,287 lines of script in templates. HTML escaping written 4 times, a spinner 3.
  • No test or linter checks sizes, buttons or dialogs.
Where

Paths are under app/static/ unless said.

What Where
h2 sizes style.css:290, onboarding.css:8 :29, builder/command-builder.css:54 :83, catalogue/catalogue.css:8 :166 :252 :287 :393, runs/board.css:250, runs/launches.css:20, runs/start.css:12, settings/modal.css:6, settings/settings.css:25
Weight 600 style.css:293 :1073 :1083 :1096 :1370 :1470 :1717, runs/board.css:306 :405, compare/comparison.css:149. catalogue/catalogue.css:405: an h4 left at 700
Builder's font rule builder/command-builder.css:2 (#nullius-builder button{font:inherit}). :93: font: 12px/1.5 inherit is invalid
× .icon-btn style.css:1508 (40 px in Settings, settings/modal.css:7), .st-search-clear style.css:403, .row-x style.css:1196, .toast-close style.css:1754, .onb-x onboarding.css:62, .std-how-x catalogue/catalogue.css:345, .facet .x runs/board.css:263, .lb-x runs/live-board.css:130, .st-clear settings/settings.css:164, .nb-dialogclose .nb-toast-close .nb-remove builder/command-builder.css:16 :23 :248
Dialogs .std-how catalogue/catalogue.css:284, .nb-dialog builder/command-builder.css:77, .settings-modal settings/modal.css:2, .onb-dialog onboarding.css:3, .picture-view traces/conversation.css:55
Toasts notifications.js:6 with style.css:1751; builder/command-builder.js:144 with builder/command-builder.css:19
Tab bars .view-tabs runs/live-board.css:5 (40 px), .bench-tabs catalogue/catalogue.css:97 (44), .trial-tabs traces/conversation.css:2 (48)
Segmented controls .seg-toggle style.css:392, .runs-views runs/launches.css:13, .st-tabs .dialog-tabs settings/settings.css:138 :170, .nb-seg builder/command-builder.css:121
--warn No fallback: builder/command-builder.css:1, runs/board.css:93 :112. #b8860b: style.css:348 :350 :353, settings/settings.css:107 :142 :276. Grey: traces/failure.css:10, compare/comparison.css:159. Amber: runs/live-board.css:30
Page widths at 1920 px 1600 most; 1320 Benchmarks, Agents, Capabilities, Kits; 1120 Settings and an entry's page; 860 Add a Harbor benchmark; 820 Import
axe-core color-contrast 2.9:1 (an agent's rows that do not fit), link-in-text-block, aria-allowed-attr (Runs), target-size (.onb-x, 22 px), label-content-name-mismatch (workspace button)
Scripts in app/templates/ runs/index.html 212 lines, runs/setup.html 203, base.html 219, traces/trial.html 156, settings/settings.html 153
Escaping onboarding.js:12, runs/live-board.js:27, builder/recipes.js:27, builder/command-builder.js:119
catalogue.css, outside the catalogue app/templates/: builder/new_run.html, builder/recipes.html, runs/index.html, runs/launches.html, runs/setup.html, settings/settings.html, workspaces/workspaces.html
Spinner catalogue/catalogue.css:223, settings/settings.css:319, builder/command-builder.css:143
One class, two things .nb-step: a step of the builder; a section of app/templates/catalogue/new.html

Wanted

The assignees review all three, decide each look in .claude/rules/ui.md, then fix it in small pull requests (Refs).

Acceptance

  • Decided: the interface's font, the system's or DM Sans. Both READMEs say it
  • Decided: the sizes and weights kept, as tokens in style.css
  • Decided: the corners, gaps, breakpoints and page widths kept
  • Decided: the one look of each button, ×, dialog, toast, tab bar, segmented control, table, field and card title
  • Decided: whether a test refuses a new size, weight, color or button
  • Fonts: no other size, weight or family in app/static
  • Fonts: h2, h3, table headings, labels and .mono each look the same on every page
  • Fonts: #nullius-builder no longer changes a shared control's font
  • Design: --warn is defined in both themes, 4.5:1 on each surface, no fallback left
  • Design: no color outside the tokens
  • Design: axe-core passes on every page, light and dark
  • Design: every page seen at 390, 820, 1280 and 1920 px, light and dark
  • Implementation: the builder has no button, dialog, toast or segmented control of its own
  • Implementation: shared components sit in one shared sheet; a page's sheet holds that page alone
  • Implementation: one escape helper, one spinner, one toast
  • Implementation: scripts leave the templates, except the theme's, which runs before first paint
  • Implementation: a class means one thing

Related

#395, #406, #407, #409. Open pull requests on these pages: #325, #328, #344, #352, #354, #403.

Activity

  1. added
    enhancement
    P3
    on Nov 25, 2026
  2. added
    P2
    and removed
    P3
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions