Skip to content
Toolkit

0158 — A sign-in button wears the system's outline, not the provider's brand

  • Status: accepted, 2026-09-02
  • Deciders: Renaissance workstream 002, LEDGER drain (row 37, its last half)
  • Applies: ADR-0033 (the Button conversion and its variant vocabulary), ADR-0021 (the CSS goes with its last emitter), DESIGN.md's colour rule ("never hard-code palette steps or hex in components")

Context

LEDGER row 37 counted seven hand-rolled .btn buttons beside converted ones. Six converted on earlier decisions — the as arms, the editor chrome — and the seventh was held back as the brand-variant design question: LoginPage's OAuth row drew one button per provider with the provider's brand colour as an inline background-color, a second hex for hover swapped by onMouseEnter/onMouseLeave, and a grey pair for a provider the page had no entry for. Twelve hex literals, the hex ratchet's largest single holding; .btn, .btn-neutral and .btn-block kept alive in components.css for that one emitter, and .btn-outline beside them with no app emitter at all.

The question the row recorded was whether Button should gain a variant that carries a third party's colour.

Decision

No. A sign-in button is the system's outline button, full width beside the lime submit, with the provider named in its label and nowhere else.

The design system's colour rule already decides it: components consume semantic tokens and never a hex, and a provider's brand hue is not a token this system has or should mint. Lime is the single brand hue (DESIGN.md); five more, each with a hover step, would be five foreign palettes drawn on the one page every user sees first. The provider guidelines that are often cited for the coloured button all permit a neutral, outlined one, and the outline variant is precisely the quiet secondary action the system draws beside a primary — which is what "or continue with" is.

So the row's remaining half is a plain conversion, not an authoring: the <button className="btn btn-neutral btn-block"> with its inline style and two mouse handlers becomes <Button variant="outline" className="full-width"> (the submit above it already spends full-width), PROVIDER_LABELS keeps the name and loses the colours, and an unnamed provider is labelled by its id. .btn, .btn-neutral, .btn-block and .btn-outline leave components.css on the same commit with 0 emitters each; the preview harness, which had borrowed .btn.btn-outline for its theme toggle and one tooltip card's hover target, draws its own .pv-btn — a page previewing the product cannot borrow a rule the product no longer has. .btn-link survives alone: Topbar's inbox "mark all read" emits it and it never took .btn's base rule.

Consequences

  • The hex ratchet falls 75 → 63, committed with its cause. Nothing was tokenised; twelve literals that could never be tokens are gone.
  • The .btn family is closed. A new hand-rolled button in apps/web has no base rule to wear; LoginModeTabs.test.tsx pins that components.css declares no .btn* head but .btn-link, and pins the provider button's element, type, classes and absence of inline style.
  • The rule generalises past sign-in: a control never carries a third party's colour. A future "Pay with X" or "Share to Y" button is the system's variant with the party named in its label; if a product decision ever wants brand marks, that is an icon slot (ADR-0024, drawn inline), not a background.
  • Reversal is an owner decision with a cost stated here: it means minting brand tokens in the token layer and a Button variant per party, against DESIGN.md's single-hue rule, and the hex ratchet would have to be raised — which it cannot be.

Source: docs/decisions/0158-a-sign-in-button-wears-the-systems-outline-not-the-providers-brand.md

Library