Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ui-icon-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@variablelab/brand": patch
---

The Iconography chapter keeps the rules for drawing a UI icon and no longer lists icons: the Copy and Copied icons, with their geometry, move to the site that uses them.
9 changes: 3 additions & 6 deletions skills/vlab-brand/iconography.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ Two families, and nothing else: filled shapes, which are the Signs and the Class

## UI icons

This guideline holds the rules for drawing a UI icon, not the icons: a site draws the icons it needs and keeps their geometry in its own specs. Every UI icon follows these rules:

- `viewBox 0 0 16 16`, shown at 14px. Stroke 1.5, no fill, `stroke-linecap: square`, `stroke-linejoin: miter`: square corners, like every other shape.
- `currentColor`: `dim` at rest, `ink` on hover.
- Decorative, so `aria-hidden="true"`. The control that holds the icon carries the accessible name.
- Outlined, so a UI icon never reads as a Sign, which is filled.

| Icon | Use | Geometry |
| --- | --- | --- |
| Copy | Copies a command. | `<rect x="5.75" y="5.75" width="8.5" height="8.5"/>` and `<path d="M2.75 10.25V2.75h7.5"/>` |
| Copied | Replaces Copy for a moment after a copy. | `<path d="M3 8.5l3.25 3.25L13 5"/>` |

A new icon follows the stroke rules. Before it ships, set it at 14px beside every Project's `brand/sign.svg` and both Class stamps: it must not be mistaken for any of them.
Before an icon ships, set it at 14px beside every Project's `brand/sign.svg` and both Class stamps: it must not be mistaken for any of them.

## Shapes beside text

Expand Down
Loading