Skip to content

feat(ui): the shared components take on the prototype's conventions — quiet cards, hairline separation, outlined actions, folder tabs #850

Closed

Description

@thinkclay

Part of the redesign roadmap (#622). Release 1, and the single biggest win in it: 139 files in packages/scf-core/features render <Card>, every screen renders Button, Tabs, Input, Chip — restyle those once and every screen moves at the same time, before any per-screen pass.

The prototype's conventions (redesign/_ds/.../readme.md, styles.css)

  • Surfaces stay quiet. Cards are bordered, not filled or shadowed; separation is hairline rules (--color-divider, ink at 16 %) and whitespace. "Do not use heavy drop shadows — elevation here is a whisper." Three shadow steps exist and are reserved for things that float: dialogs, sheets, popovers.
  • Actions are outlined. The primary is a 1 px accent outline on transparent, not a fill; hover/pressed states come from the accent ramp; the disabled state drops to 45 % opacity; :focus-visible is a 2 px accent ring. (We keep teal as the accent, per feat(redesign): prototype parity — reference shots, tokens, and screen primitives #621.)
  • Tags tint from the ramps — light step fill, dark step text — and never a solid accent fill.
  • Folder tabs on one line that scroll rather than wrap, the active tab attached to its panel.
  • Fields are native-feeling: 1 px border, 4 px radius, label above, no floating labels.
  • Tables have a themed header and row rules from the divider token, status cells reuse the tags.
  • Spacing is airy (density 1.15×: 4.6 / 9.2 / 13.8 / 18.4 / 27.6 / 36.8) and radius is nearly square (2 / 4 / 7).

Today (packages/ui/src/components/)

  • Card/Card.styles.ts:84-88 — elevation variants map to shadows.xs/s/m/soft/glass; the default card carries a shadow. Zero scf-core files use the shadow or glass tokens directly, so the cards are where the shadows come from.
  • Button/Button.styles.ts:209-214 — filled is the default primary; outline exists.
  • Tabs/Tabs.styles.ts:197-226 — the selected tab gets a bg.emphasis fill plus a 2 px underline; no horizontal-scroll strip.
  • Chip, Input, Table, Sheet, Modal, Dropdown, Popover, ListItem, Skeleton — the pre-redesign look: filled pills, heavier borders, larger radii where the component sets its own.

Change (Scaffald/ui, one PR per component group, pointer bumps here)

  1. Card: default variant becomes bordered-unfilled with no shadow; elevation only applies when asked for. Audit the 139 callers for ones that were using the card as a shadowed hero and need elevation="sm" back.
  2. Button: primary = accent outline; filled stays available for the two or three places a solid CTA is right (auth submit, hire confirm); hover/pressed/disabled/focus per the readme.
  3. Tabs: a folder variant — one line, horizontal scroll, attached panel, count badges; ListToolbar and ScreenHeader consumers adopt it.
  4. Chip / NotificationTag / StatusIndicator: ramp-tinted tags, one shape.
  5. Input / SearchSelect / DatePicker / PhoneNumberInput: one field treatment, label above.
  6. Table: header rule + row rules, no zebra fill, status cells use the tag.
  7. Sheet / Modal / Popover / Dropdown / ContextMenu: the one place shadows live; consistent radius (lg = 7, native sheets keep the iOS radii).
  8. Divider / Separator: hairline from the divider token; sections use it instead of card boundaries.

Verify each group in Storybook at 1440 and 375 and on the smoke captures of /, /dashboard, /office/applications, /jobs before merging the pointer bump.

Acceptance

  • A default <Card> renders with a 1 px border and no shadow; grep -rn 'elevation=' packages/scf-core lists only deliberate uses
  • Primary buttons are outlined app-wide; filled ones are enumerated in the PR
  • Tabs never wrap at any width on /office/applications and the discover screens
  • Before/after smoke captures of the four screens above, attached; no screen got worse
  • .radium/scaffald-ui.md gains a "conventions" section: when a card, when a rule; when filled, when outlined

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendUXagent-readypriority: highredesign

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions