Skip to content

Primary colour is blue-600, primary-* as CSS variables, Tailwind preset (2.7.0) - #133

Merged
DerekAgility merged 1 commit into
mainfrom
dlo/prod-2966-colour-tokens
Oct 28, 2026
Merged

DerekAgility merged 1 commit into
mainfrom
dlo/prod-2966-colour-tokens

Conversation

@DerekAgility

@DerekAgility DerekAgility commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

PROD-2966, PROD-2967

What changes

  • The primary colour is blue-600 (#1A56DB). Components use the primary-* scale instead of raw purple-* / violet-* classes, and primary-* is now the blue scale.
    • Primary buttons (Button, Capsule, ButtonDropdown):
      • fill primary-600
      • hover primary-700
      • pressed primary-800
      • disabled primary-300
    • Secondary buttons:
      • fill primary-50
      • border primary-400
      • text primary-700
      • hover primary-100
    • Checked and selected states (Checkbox, Radio, ToggleSwitch, ComboBox options) and the loader are primary-600.
    • Focus is primary-600 everywhere: rings, input borders and the default outline. TextArea now focuses with a single border like the other inputs.
    • Badge color="secondary" stays violet; it's a category colour.
  • primary-* as CSS variables (--primary-50 to --primary-950), so the next colour change is an edit to one file. primary-50 was a grey and primary-950 didn't exist.
  • Tailwind preset. The theme moves to tailwind.preset.js, exported as @agility/plenum-ui/tailwind.preset.
  • Fix: blue-300 was #8FB2, which renders as a nearly transparent green. It is now #8FB2FB.
  • Version: 2.7.0, with a CHANGELOG entry and a README section.

This is a visible change

Every consumer that upgrades gets blue. The Manager App pins Plenum exactly, so it stays on 2.6.x until its colour update is ready.

Tested

  • vitest: 112/112 pass.
  • yarn build succeeds, and dist/tailwind.css defines --primary-* on :root.
  • git grep -E '(purple|violet)-[0-9]' -- stories app returns only Badge's secondary colours.
  • Not done yet: checking each story by eye in Storybook.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
plenum-ui Ready Ready Preview Oct 28, 2026 1:44pm UTC

Request Review

…et (2.7.0)

Components use the primary-* scale instead of raw purple-* and violet-*
classes, and primary-* is now the blue scale (primary-600 = #1A56DB),
defined as CSS variables. Focus is primary-600 everywhere; TextArea focuses
with a single border like the other inputs. Badge color="secondary" stays
violet.

- tailwind.preset.js holds the theme and is exported for consumers.
- blue-300 was "#8FB2" (a near-transparent green); it is now #8FB2FB.

PROD-2966, PROD-2967

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DerekAgility
DerekAgility force-pushed the dlo/prod-2966-colour-tokens branch from b307a61 to 69b6d42 Compare October 28, 2026 13:43
@DerekAgility DerekAgility changed the title Colour tokens, a 2026 theme and a Tailwind preset (2.7.0) Primary colour is blue-600, primary-* as CSS variables, Tailwind preset (2.7.0) Oct 28, 2026
@DerekAgility
DerekAgility merged commit 173e00e into main Oct 28, 2026
4 checks passed
@DerekAgility
DerekAgility deleted the dlo/prod-2966-colour-tokens branch October 28, 2026 14:19

This branch was successfully deployed

1 active deployment
Preview — 69b6d420 Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants