Repository navigation
docs: add brand guide for diagrams and graphics #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1267584
docs: add brand guide for diagrams and graphics
moezdil cffe2f1
docs: align brand guide with website tokens
moezdil 5bcdd98
docs: document mermaid classes and font loading in brand guide
moezdil 4a14c16
docs: note code block font in brand guide
moezdil 868ad78
docs: add dark diagram tokens to brand guide
moezdil cd09779
docs: add draw.io option and clarify generated imagery in brand guide
moezdil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # HAMi Brand Guide | ||
|
|
||
| Visual rules for diagrams, slides and graphics that feature HAMi. Values come from the website tokens in [`src/css/custom.css`](src/css/custom.css) and the official [CNCF artwork](https://github.com/cncf/artwork/tree/main/projects/hami). | ||
|
|
||
| ## Colors | ||
|
|
||
| | Token | Hex | Use | | ||
| |---|---|---| | ||
| | Primary | `#76b900` | Brand green: accents, key fills and strokes | | ||
| | Primary light / hover | `#8ed400` | Hover, lighter accent | | ||
| | Primary dark | `#69a400` | Pressed, depth | | ||
| | Link | `#4f8500` | Green text on light backgrounds | | ||
| | Secondary | `#39c6f4` | Metrics, observability, info | | ||
| | Tertiary | `#7c8cff` | Scheduling, policy | | ||
| | Success | `#3ddc97` | Positive state | | ||
| | Warning | `#f5b942` | Attention | | ||
| | Text | `#15202b` | Body text | | ||
| | Heading | `#0f1722` | Headings | | ||
| | Muted | `#4f6378` | Secondary text, labels | | ||
| | Background | `#f5f8fb` | Canvas | | ||
| | Surface | `#ffffff` | Cards, nodes, panels | | ||
| | Border | `#d5dee8` | Borders, dividers | | ||
|
|
||
| Dark mode surfaces: `#0b0f14` (background), `#171e27` (surface), `#263241` (surface 3), `#f5f7fa` (text). | ||
|
|
||
| `#76b900` fails text contrast on white. Use it for fills and strokes, and `#4f8500` for green text. | ||
|
|
||
| Suggested diagram mapping: green for HAMi components, blue for observability, indigo for scheduling, neutrals for everything else. | ||
|
|
||
| ## Fonts | ||
|
|
||
| | Role | Font | Fallback | | ||
| |---|---|---| | ||
| | Headings | Space Grotesk | "Avenir Next", "Segoe UI", sans-serif | | ||
| | Body and labels | Source Sans 3 | "Noto Sans", "Segoe UI", sans-serif | | ||
| | Code, YAML, CLI | IBM Plex Mono | "SFMono-Regular", Consolas, monospace | | ||
|
|
||
| ## Logo | ||
|
|
||
| - Use the official SVGs from the [CNCF artwork repo](https://github.com/cncf/artwork/tree/main/projects/hami). Never redraw the melon or retype the "HAMi" wordmark. | ||
| - The official color logo is filled `#0FD05D`, which differs from the website green `#76b900`. Do not recolor the logo; use `#76b900` for the surrounding design. | ||
| - There is no full-color wordmark lockup. Use the color icon alone, or a black or white lockup. | ||
| - Black or color variant on light backgrounds, white variant on dark ones. | ||
| - Keep the aspect ratio. No gradients, shadows, strokes or skewing. | ||
| - Minimum size: icon 24px tall, horizontal lockup 100px wide, stacked lockup 64px wide. | ||
|
|
||
| HAMi and the HAMi logo are trademarks of The Linux Foundation. See the [trademark usage guidelines](https://www.linuxfoundation.org/legal/trademark-usage). | ||
|
|
||
| ## Diagrams | ||
|
|
||
| - Prefer text-based sources (Mermaid, or hand-written SVG using the colors above) so visuals stay easy to update. | ||
| - Use the same palette and font stack across all diagrams, in light and dark mode. | ||
| - No animated or decorative generated imagery. | ||
|
moezdil marked this conversation as resolved.
Resolved
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.