Skip to content

v1.20.0

Latest

Choose a tag to compare

@phuryn phuryn released this 21 Nov 18:33

app-stack: Clerk fades the border colour it is given

  • clerk-production (gotchas, and a line in the skill's gotcha list): Clerk paints its resting borders and input rings at 7 to 11 % of colorBorder (colorNeutral when unset), read in clerk-js 5.128.3. A kit's edge or hairline token passed there is faded twice and nearly vanishes: three live products measured 1.02 to 1.11:1 on their sign-in edges. Pass the kit's text colour instead, as Clerk's own themes do.
    • No variable brings a resting edge to 3:1 (about 1.3:1 on white, 1.4:1 on Clerk's dark card, computed). Reaching it means overriding Clerk's own styles, and any override is confirmed by the computed edge on the rendered page, at rest and in focus.
    • Clerk serves the GitHub and X logos as dark images. Some of its themes invert GitHub, Apple, Vercel and OKX Wallet, none of them X. Invert each logo that still renders dark, in dark mode only.
  • ui-design (method, § Vendor surfaces): a vendor that fades a colour itself is given the full-strength colour, and its control edges are held to the kit's 3:1 floor on the rendered page.

What to do: if your app passes a border or hairline token to Clerk's colorBorder or colorNeutral, pass its text colour, then measure the sign-in page's edges and provider logos in each mode.

agent-harness: flight-deck

  • Each fact a decision rests on says how it is known: observed, read in a named source, or assumed. A named source shows when the source read doesn't apply (docs for a CLI taken as true of a server).

Reviewed in rounds 188 to 190.