Foundations
Iconography
MingCute icons in three sizes, always paired with a word or an accessible name.
Rules
Icons are masks over currentColor: they take the text color.
Use
- Outline icons for actions and navigation.
- Filled icons for status only.
- Visible text, or an accessible name and a tooltip.
- Tint only on status glyphs.
- Fixed status shapes: circle, triangle, octagon.
Avoid
- Filled icons as decoration or selected state.
- Icon-only navigation or status.
- Sizes other than 16, 20 and 24px.
- Colored icon tiles and multi-color icons.
- A status shape for another meaning.
Sizes
16px with 12px text, 20px with 14px and 16px text, 24px for empty states and headers.
Status glyphs
Each status has a shape, a word and a color. The grayscale row shows it reads without color.
| Status | Shape | Who acts next |
|---|---|---|
| Open | Empty ring | You; not started |
| In progress | Ring with a play mark | You; under way |
| Pending | Clock | Someone else (gray) |
| Resolved | Filled circle with a check | Nobody; done (green) |
| Closed | Archive box | Nobody; filed (gray) |
| At risk | Filled triangle | You, urgently |
| Breached | Filled octagon | You, now |
Using an icon
Icon set
Select an icon to copy its class. Outline names end in -line, filled in -fill.
Adding an icon
- Find the icon on mingcute.design, for example
bookmark-line. - Add the name to
tools/icons.txt. - Run
node tools/build.mjs --iconsto regeneratecss/icons.css. It fails if the name does not exist. - Use it as
sg-icon--bookmark-line. The build fails on any class missing from the set.
MingCute is Apache-2.0. tools/icons.json keeps its source and license notice.
Do and don't
Breached