Branchwell

Glimmer / app / native / ICONS.md

Show the source

Glimmer row icons

Every row, sidebar item and choice gets one solid, single-colour SF Symbol, tinted from the theme. Icons never use colour emoji, brand logos, two-tone rendering or drawn art. Glimmer/Glyph.swift resolves the symbol and draws the tile. Glimmer/GlyphMap.swift holds the map.

Emoji can still appear where they mean something: in lesson text and in anything a person types. Names a person types are kept exactly as typed. Built-in catalog names never show an emoji. The emoji becomes the row's symbol, so "💻 Deep work" shows as a laptop tile next to "Deep work".

Rendering

  • Image(systemName:) with .symbolRenderingMode(.monochrome) and one foregroundStyle(tint). Never .hierarchical, .palette or .multicolor.
  • Use the filled style: the .fill variant wherever one exists. Symbols with no fill variant are used as drawn.
  • Weight is .semibold inside a tile and .medium for a plain glyph.
  • Use SF Symbols only. Don't use symbols Apple restricts to its own products, such as message.fill, video.fill, iphone or safari.
  • Icons are decoration. Each one sits beside its text label and is accessibilityHidden(true).

Tint by kind

KindGlimmerColor
Source (apps, sites, feeds), task, to-do, cleaning, maintenance, tagaccent
Activity, habitsage
Person, seasonal, practiceember
Challenge, energyhoney
Lesson, toolkitdusk

Task library: easy honey, focus accent, move sage, offline ember, wind dusk, calm dusk.

softBlue is not an icon tint. Its light value fails 3:1 on a tile. Never tint an icon .secondary, grey or Color.primary.

Containers and sizes

Content rows use a tile GlyphTile. It is the tint at 13% (20% in the Glimmer theme), with corner radius 28% of the tile, continuous. The glyph is 54% of the tile, stepping down to 44% for very wide symbols. A tile has no border, shadow or gradient.

Navigation (the sidebar and the tab bar) and chips use a plain tinted glyph with no tile.

PlaceMaciPhone and iPad
Sidebar row15pt medium glyph, 24pt slot20pt medium glyph, 29pt slot
Content row24pt tile30pt tile, scales with Dynamic Type
Header or empty state44pt tile48pt tile
DestinationSymbolTint
Todaysun.horizon.fillaccent
Insightschart.bar.fillsage
Weeklycalendarhoney
Coachtext.bubble.fillember
Planlist.bullet.clipboard.fillaccent
Toolkitwrench.and.screwdriver.filldusk
Habitsleaf.fillsage
Challengestrophy.fillhoney
Lessonsbook.filldusk
Cleaningbubbles.and.sparkles.fillaccent
Seasonaltree.fillember
Settingsgearshape.filldusk

Choosing a symbol

The first hit wins:

  1. A stored SF Symbol name.
  2. GlyphMap.names: sources, activities and people by plain name, case-insensitive.
  3. GlyphMap.emoji for a stored or leading emoji. Keys drop U+FE0F and U+FE0E.
  4. GlyphMap.keywords, in order, against the lowercased name. Guards come first, so "brunch" never matches "run".
  5. GlyphMap.categoryFallback for the row's kind or category.
  6. GlyphMap.fallback (sparkles).

A checklist item with no match wears its list's glyph.

The Glimmer logo is the AppMark asset only. Never draw it, tint it or substitute a symbol for it. Don't use the single sparkle symbol in honey as a row icon, because it reads as a copy of the mark.

Checks

native/scripts/core-checks.sh checks the following:

  • every built-in activity, person and lesson page resolves to a real symbol
  • no catalog name shows an emoji
  • built-in emoji names in older journals migrate without touching names a person typed