Skip to content

Bug: Brand color is saved and injected as --primary, but no visible UI consumes it — setting it has no effect #2394

Closed

Description

@yannickmonney

Problem

Setting an organization brand color appears to do nothing.

Verified live 2026-07-02: saved brand color #FF0055 in Settings → Branding. --primary correctly became 340 100% 50% (the injection works) — yet a page-wide computed-style scan found the color rendered only by the branding form's own picker swatch and preview. Primary buttons (e.g. Save) render rgb(3, 7, 18): the Button primary variant does not consume --primary, and neither does any other visible element. Accent color is worse: it is stored but never injected as a CSS variable at all (only read inline by navigation.tsx / tab-navigation.tsx for the active nav item background).

Current behavior

  • Injection: services/platform/app/components/branding/branding-provider.tsx:164-182 sets --primary/--primary-foreground from brandColor (theme-adjusted). No effect exists for accentColor.
  • Consumption: @tale/ui components (Button etc.) style with tokens that don't reference --primary, so the injected variable is orphaned.

Proposed change

Decide the palette contract first — #1960 proposes dropping brand color entirely and deriving the whole palette from a single accent color. Either:

  • land Improvement: Drop "brand color" — derive the whole palette from a single accent color #1960 (one accent → derived palette actually wired into the component tokens), or
  • if brand color stays, map it into the token(s) the design system actually uses for primary actions/highlights, in both themes, with contrast handling.
    Either way, "set a color in Branding → see it in the product" must hold, and the dead accentColor path should not silently persist a value that does nothing.

Acceptance criteria

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions