Skip to content

feat(brand-kit): colour roles and track colours on the brand assets page - #408

Open
IanoNjuguna wants to merge 2 commits into
IntersectMBO:docs/brand-colour-rolesfrom
IanoNjuguna:feat/brand-kit-roles
Open

IanoNjuguna wants to merge 2 commits into
IntersectMBO:docs/brand-colour-rolesfrom
IanoNjuguna:feat/brand-kit-roles

Conversation

@IanoNjuguna

Copy link
Copy Markdown
Contributor

Description

Stacked on #407. Brings the brand kit page (/brand-kit) up to the baseline that PR writes down, so the public page and the guide say the same thing about the same colours.

Before this, the page listed twelve swatches with a one-line gloss that had drifted from what the site does:

Swatch The page said The site does
Vanilla Sunset "Accent highlights" No consumer at all
Blazing Amber "Energetic accents" The "Next session" chip, and the contributor hover ring
Shadow, Twilight, Rich Black, Pure White Missing In the palette, four of them in use

Three changes:

  1. Palette roles. Each swatch now carries its actual job, and the grid is the full twelve rather than eight.
  2. Colour roles section. Renders the role table from the baseline: job, where it appears, light and dark value with a swatch each, and the contrast each clears.
  3. Track colours section. The five track hues existed only in custom.css. Each card shows both values, with the measured ratio on the tab it sits on.

A second commit rewrites the do's and don'ts, which still said "solid fills only, no transparency", a rule the stylesheet does not follow and that #407 replaces.

Refs #376.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing

  • I have tested these changes locally
  • I have checked for broken links
  • Code examples have been tested

Checklist

  • My code follows the style guidelines
  • I have performed a self-review
  • I have made corresponding changes to documentation
  • My changes generate no new warnings

Verification

Built and served locally on 4180, measured in the browser rather than eyeballed.

npx tsc --noEmit -p tsconfig.json       clean
npx docusaurus build                    SUCCESS

Horizontal overflow, scrollWidth - clientWidth, at each width: 0 at 1280, 996, 768 and 390.

Track row at 1280: five cards on one row, and the hue line under the title shares one baseline (all five at 3433px). The title reserves two lines at 3.2em, measured from the card's own 25.5px line height, so a one-line name does not lift its neighbours.

Roles table: 1000px wide, six rows, columns at 134 / 233 / 424 / 545 / 665, swatches 18x18. Under 900px it becomes labelled cards, one per role, with the header row dropped; the fields read WHERE / LIGHT / DARK / WHY. That needed border: 0 on the cells as well as border-bottom: 0, because Infima puts a 1px top and left border on every cell and the cards showed hairlines inside them until both were cleared.

Do's and don'ts: 6 items against 7, both cards 522 wide and 429 tall, so the shorter column does not leave a ragged edge.

Checked in both themes. In dark mode the table sits on #242526 with the zebra at rgba(255,255,255,0.07) and labels at #F5F3EB / #DAE1E1, so nothing needed a per-theme override.

Stacking

Base is docs/brand-colour-roles, not main, because every value on this page comes from the table #407 adds. Merge #407 first; GitHub retargets this PR to main when that happens.

pr-build-website.yml only runs for PRs based on main, so this PR gets no CI checks while it is stacked. The build above is the evidence, and CI will run it once #407 lands and this retargets.

Notes

The palette grid listed twelve swatches with a one-line gloss that had
drifted from the site: vanilla read "accent highlights" while it has no
consumer at all, and blazing read "energetic accents" while it means both
"live now" and "careful".

- The grid now carries the real role per swatch, and the three palette
  members the page was missing (Shadow, Twilight, Rich Black, Pure White).
- A Colour roles section renders the table from the brand baseline: job,
  where it appears, the light and dark value with a swatch each, and the
  contrast each clears.
- A Track colors section renders the five track hues, which existed only
  in custom.css and in no deck: light and dark halves per card, with the
  measured ratio on the tab each one sits on.

Both sections come from the values in .agents/skills/brand-baseline, so the
page and the guide cannot drift apart again without one of them moving.

Geometry, measured at 1280 / 996 / 768 / 390: five track cards share one
row at 1280 with the hue lines on a single baseline (3433px for all five),
no horizontal overflow at any width, and the roles table collapses to
labelled cards under 900px instead of scrolling sideways.

Refs IntersectMBO#376
The list still said "Apply solid fills only, no gradients or blend modes"
and "Do not use gradients or transparency effects". The second half of that
is false against the stylesheet, which uses alpha for elevation and scrims,
and the first named a rule the roles table now states properly.

Replaces them with the rule the site actually holds to: fill anything that
carries a label solidly, and keep alpha for shadows, rings and overlays.
Adds the two color rules the table implies and the page never stated: blue
is the only action color, blazing is never a call to action, and vanilla is
not decoration.

Refs IntersectMBO#376
@IanoNjuguna IanoNjuguna added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant