Skip to content

Improvement: Drop "brand color" — derive the whole palette from a single accent color #1960

Closed

Description

@yannickmonney

Problem

There are two color inputs (brand + accent); only one accent color should drive everything, and even a "bad" chosen color must be transformed into a legible palette for dark and light themes.

Current behavior

  • brandColor + accentColor (en.json:6707-6708) in the branding form (services/platform/app/features/settings/branding/components/branding-form.tsx).
  • Palette adaptation in services/platform/lib/utils/color.ts (adjustColorForTheme, hexToHsl, isLightColor, contrastRatio), applied via services/platform/app/components/branding/branding-provider.tsx.

Proposed change

  • Remove the brand-color field (and its data/schema usage — this needs a Convex data migration; see the convex-migrations skill).
  • Make the accent color the single source of truth, and improve the palette algorithm so any input is normalized into a coherent, WCAG-legible palette across dark/light (foreground contrast, shades).

Acceptance criteria

  • Only an accent color is configurable.
  • Picking a poor color still yields a legible palette in both themes.
  • Existing orgs migrate cleanly (no data loss / broken theme).

Ripple

Locale files; Convex migration to drop/merge brandColor; theme/color util tests.

Activity

  1. yannickmonney commented on Jul 2, 2026

    @yannickmonney
    ContributorAuthor

    Live evidence supporting this direction (2026-07-02, local dev): saved brand color #FF0055 — --primary is correctly injected (340 100% 50%), but a page-wide computed-style scan found no visible element consuming it except the branding form's own swatch/preview (primary buttons render rgb(3,7,18)). accentColor is stored but never injected as a CSS variable at all — only read inline by navigation.tsx/tab-navigation.tsx. So today neither color field has a real product effect, which strengthens the case for one accent color wired into the actual component tokens. Observed defect filed as #2394 (cross-linked).

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

    improvementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions