Repository navigation
all/brand: Add the console status colors and neutral scale to the brand guide - #60
Merged
Merged
Conversation
…nd guide The console shows the state of resources, which the brand guide had no colors for. Add the status colors (success, warning, danger, in progress, idle), the three levels of text, the second neutral, the line and the border of a control, with their contrast ratios in both themes, and copy the tokens to brand/tokens.css.
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.
Summary
The brand guide and its tokens carry the colors the console ships (phorge-fr/phorge-console#35), so that every Phorge interface uses the same ones.
brand/tokens.css: the status colors (success, warning, danger, in progress, idle, each as text, tint and dot),surface-2,text-2,text-3,line,controlandprimary-hover, in both themes, with the popover shadow.docs/reference/brand-guide.md: the new tokens in the light and dark tables with their contrast ratios, and a "Status colors" section that says what each color means and that a state is never carried by color alone.The ratios are computed from the hex values (WCAG 2): text 4.5:1 at least on its background and on its tint, controls and dots 3:1 at least.
Tested
scripts/check_docs.py(docs layout and headers) passes locally; the Markdown and prose checks run in CI. The tokens file is the one the console ships, with the quotes of this repository.Closes #59