For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
3
Sponsor

Assets

Learn how maccn handles icons and other assets.

Built-in icons

Controls such as MacCheckbox, MacSwitch, MacPopUpButton, MacSearchField, and MacStepper include their own vector graphics:

  • Check marks and dashes for checkbox states
  • Switch thumb and track shapes
  • Pop-up button chevrons
  • Search field magnifying glass and clear button
  • Stepper up/down arrows

These are implemented as regular GPUI Image elements with embedded SVG bytes, so they scale cleanly at every control size and DPI.

No asset setup required

Because every glyph is compiled into the crate binary, there is no assets/ folder to configure and no font file to load. This keeps both native and WebAssembly builds self-contained.

Custom icons

For your own application icons, use GPUI's native image support or any GPUI-compatible icon library. You can style custom icons with colors from MaccnTheme:

use maccn::theme::ThemeExt as _;
 
let theme = cx.theme();
let icon_color = theme.label_secondary;