Skip to content

Light mode: split accent (brand-pink wordmark + AA labels) + fix green checks#9

Merged
btravers merged 2 commits into
mainfrom
fix/accent-split-checks
Jun 28, 2026
Merged

Light mode: split accent (brand-pink wordmark + AA labels) + fix green checks#9
btravers merged 2 commits into
mainfrom
fix/accent-split-checks

Conversation

@btravers

Copy link
Copy Markdown
Contributor

From the live review. Supersedes #8.

Accent split

  • Large wordmark keeps the full brand pink #E0589A (new --display-accent, both schemes) — large display text only needs 3:1, so it stays vibrant.
  • Small labels & links (eyebrows, tags, package names, docs links) use light --text-accent#D6246F — a vivid raspberry that still passes WCAG-AA (~4.6:1) on white, so the tiny mono text stays readable.

Green checks

The feature-list check marks were hardcoded to the bright --green #46B86C, which washed out on white (~2.3:1). They now stroke var(--text-green), so they darken to #15683A on light (AA) and stay bright on dark.

Verified (light)

wordmark rgb(224,88,154) · eyebrow/tags rgb(214,36,111) · checks rgb(21,104,58); build green; no overflow/errors.

Note: --text-accent is in @btravstack/theme, so the docs links also get the readable raspberry in light once the theme publishes.

- Add --display-accent (brand pink #E0589A, both schemes) and use it for the
  large display wordmark (.btv-pink). Large text only needs 3:1, so it stays
  fully on-brand pink in light.
- Light --text-accent -> #D6246F (vivid raspberry, ~4.6:1 AA) for the small
  labels/links (eyebrows, tags, package names, docs links) so they're readable
  on white while staying punchy.
- Feature-list check marks now stroke var(--text-green) instead of a hardcoded
  bright green, so they darken to #15683A (AA) on light and stay #46B86C on dark.

Verified light: wordmark rgb(224,88,154), eyebrow rgb(214,36,111),
check rgb(21,104,58); build green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 28, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the light-mode visual system to keep the brand pink for large “display” wordmarks while improving readability/contrast for small accent text and iconography in the website landing page.

Changes:

  • Added --display-accent token for using the full brand pink in large display text across both schemes.
  • Updated light-scheme --text-accent to #D6246F (AA-friendly for small labels/links) and adjusted the landing wordmark styling to use the display accent.
  • Fixed landing feature-list checkmarks to stroke var(--text-green) so they darken appropriately in light mode.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/theme/src/tokens.css Introduces --display-accent and adjusts light-mode --text-accent for AA-friendly small text.
apps/website/.vitepress/theme/Landing.vue Uses --display-accent for the wordmark and switches checkmark stroke to --text-green for better light-mode contrast.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/website/.vitepress/theme/Landing.vue Outdated
Comment thread packages/theme/src/tokens.css Outdated
- .btv-pink reverts to --text-accent (AA) for general highlights incl. the
  small copy toast; --display-accent (brand pink) is now scoped to the large
  wordmarks only (.btv-title/.btv-word). Fixes the toast falling below AA in
  light. [Copilot]
- tokens.css comment: 'colour' -> 'color' for consistency. [Copilot]

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@btravers btravers merged commit 7eda276 into main Jun 28, 2026
@btravers btravers deleted the fix/accent-split-checks branch June 28, 2026 15:31
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