DocsThe iconLooks, colour, size
Looks, colour and size
Four looks, three weights and any colour. All of it is a class or a CSS variable, so it changes live and costs nothing extra.
#Looks
| Look | Class | What it does |
|---|---|---|
| Line | none | Ink outline with one accent. The default. |
| Mono | fidg-mono | One colour. The accent follows the ink. |
| Offset | fidg-offset | A second print in the accent colour, slipped to one side. |
| Chip | fidg-chip | The icon on a solid rounded tile. |
A look on a parent restyles every icon inside it.
#Size, ink and accent
| To change | Set | Default |
|---|---|---|
| Size | font-size: an icon is 1em wide | inherits |
| Ink | color | inherits |
| Accent | --fidg-accent | mango, #ffb300 |
| Weight | --fidg-stroke: 1.25 Light, 1.75 Regular, 2.25 Bold | 1.25 |
| Surface | --fidg-bg: the colour the icon sits on | white |
| Chip colours | --fidg-chip, --fidg-chip-ink | ink, white |
.toolbar {
font-size: 24px;
color: #1d2433;
--fidg-accent: #2f6bff;
--fidg-stroke: 1.75;
--fidg-bg: #f4f6fb;
}#Dark mode
@media (prefers-color-scheme: dark) {
:root { color: #f4f3ee; --fidg-bg: #15161c; }
}Something missing or unclear?Write to usRequest an icon