Skip to content

refactor(office): map 240 literal font sizes and the radii in features/office onto the tokens #820

Closed

Description

@thinkclay

Part of the redesign roadmap (#622). Sprint 1. First directory through the ratchet, because it is the largest and the one the redesign already reshaped.

Today

packages/scf-core/features/office carries 240 literal fontSize: sites (a third of the whole tree), plus its share of the 360 borderRadius: literals and 19 hex colours. The pipeline, candidate detail and metrics screens got the primitives in #621–#631, but the code around them still sets fontSize: 13 and borderRadius: 8 by hand — values that are no longer on the scale (fontScale is 11 / 12.5 / 14 / 17 / 22 / 30; radius is 2 / 4 / 7).

Change

Mechanical, per sub-directory (applications/, compliance/, payments/, projects/, scheduling/, settings/, teams/, the top-level lists), one commit each so the diff is reviewable:

  • fontSize: N → nearest fontSize.* token (11→xxs, 12/13→sm, 14/15/16→md, 17/18→lg, 20/22/24→xl, 28/30→h2)
  • borderRadius: N → radius.sm (≤3), radius.md (4–6), radius.lg (7–16), radius.full (≥100 or 999)
  • hex → the semantic colors.*[theme].* token, or a named ramp step when it is decorative

Then set the office ceilings to zero in the ratchet baseline.

Acceptance

Activity

  1. added
    agent-ready
    redesign
    on Sep 17, 2026
  2. removed this from the v1.19.0 — One hand milestone on Sep 17, 2026
  3. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    Moved to the long tail, no milestone (2026-09-17): hygiene — nothing a user sees. Still valid as written; pick it up when a release has room.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Frontendagent-readyredesign

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions