Repository navigation
feat(brand-kit): colour roles and track colours on the brand assets page - #408
Open
IanoNjuguna wants to merge 2 commits into
Open
IanoNjuguna wants to merge 2 commits into
IanoNjuguna wants to merge 2 commits into
Conversation
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
7 of 11 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Three changes:
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
Testing
Checklist
Verification
Built and served locally on 4180, measured in the browser rather than eyeballed.
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: 0on the cells as well asborder-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
#242526with the zebra atrgba(255,255,255,0.07)and labels at#F5F3EB/#DAE1E1, so nothing needed a per-theme override.Stacking
Base is
docs/brand-colour-roles, notmain, because every value on this page comes from the table #407 adds. Merge #407 first; GitHub retargets this PR tomainwhen that happens.pr-build-website.ymlonly runs for PRs based onmain, 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
brand-kit.module.css, and no shared component touched..agents/skillsdoes not. The PR body on docs(brand): colour roles, the track hues, and the two restrictions that drifted #407 is where the numbers are argued; this page is where they are read.