# Symbols & Variable Icons (crow-symbols) (https://crow.build/docs/design-systems/symbols)

`crow-symbols` puts **all 3,893 Material Symbols** at your fingertips with type-safe Kotlin references, animated variable font axes, expressive icon effects, and automatic build-time font subsetting.

## Usage [#usage]

Import any symbol directly (tree-shaken by R8):

```kotlin
import crow.symbols.Symbols
import crow.symbols.rounded.LocalCafe
import crow.ui.Icon
import crow.ui.SymbolStyle

Icon(
    symbol = Symbols.Rounded.LocalCafe,
    size = 24.dp,
    style = if (selected) SymbolStyle(weight = 600f, fill = 1f) else SymbolStyle.Regular,
)
```

### Live Variable Font Axes [#live-variable-font-axes]

`Icon` drives the real variable-font axes (**fill**, **weight 100–700**, **grade**, and **optical size**) reactively via `SymbolStyle` — morphing seamlessly between outlined (`fill = 0f`) and filled (`fill = 1f`) or light and bold weights with zero asset swapping.

### Three Styles + Soft Preset & Custom SVG Sets [#three-styles--soft-preset--custom-svg-sets]

- `Symbols.Rounded.*`, `Symbols.Outlined.*`, and `Symbols.Sharp.*`, plus `SymbolStyle.Soft` for soft-corner styling on any symbol.
- Import external SVG icon sets cleanly via `svgSymbol(...)`.
- **SF-Symbols-inspired effects**: Built-in `SymbolEffect.Bounce`, `Wiggle`, `Spin`, `Pulse`, and `Breathe` icon effects plus smooth replace transitions when switching between two symbols.

## Automatic Font Subsetting (14.9 MB → 182 KB) [#automatic-font-subsetting-149-mb--182-kb]

Shipping full variable icon fonts would bloat your APK by ~14.9 MB. Crow's self-contained build-time subsetter (`gradle/symbol-fonts.gradle.kts`) scans the exact symbols your app references and emits a tight subsetted font automatically — shrinking 14.9 MB down to **182 KB** in the e1 demo (28 symbols), with an automated build check confirming every referenced glyph is present.