Skip to content
Sections
Rastrillo components

Icons

16 slugs, vendored as inline SVG and compiled into the binary. They need no build step, second origin or network connection. core.css sizes each slug from the text beside it with its .icon rule. A slug with no match renders nothing, so a typo leaves a missing icon instead of stopping the page response.

  • alert-triangle{{icon "alert-triangle"}}lucide.dev/icons/triangle-alert
  • check{{icon "check"}}lucide.dev/icons/check
  • check-circle{{icon "check-circle"}}lucide.dev/icons/circle-check
  • chevron-down{{icon "chevron-down"}}lucide.dev/icons/chevron-down
  • chevron-left{{icon "chevron-left"}}lucide.dev/icons/chevron-left
  • help-circle{{icon "help-circle"}}lucide.dev/icons/circle-help
  • info{{icon "info"}}lucide.dev/icons/info
  • kebab{{icon "kebab"}}lucide.dev/icons/ellipsis-vertical
  • menu{{icon "menu"}}lucide.dev/icons/menu
  • monitor{{icon "monitor"}}lucide.dev/icons/monitor
  • moon{{icon "moon"}}lucide.dev/icons/moon
  • plus{{icon "plus"}}lucide.dev/icons/plus
  • sun{{icon "sun"}}lucide.dev/icons/sun
  • x{{icon "x"}}lucide.dev/icons/x
  • x-circle{{icon "x-circle"}}lucide.dev/icons/circle-x

The names are rastrillo's own

5 of the 16 differ from the name lucide.dev publishes, so even the Lucide set carries a translation of its own. Where the last line under an icon does not repeat its name, that is one of them. The payoff is that one call means the same glyph whichever set an app scaffolds, and the shipped partials never change when the set does.

kebab and menu are the pair worth keeping straight: kebab is the three dots that mean more actions on this row, menu the three lines that mean navigation. The shells use menu when they collapse.

Where the glyphs come from

Lucide, vendored under the ISC licence and pinned in the source rather than fetched at run time. rastrillo new --icons=font-awesome scaffolds Font Awesome Free instead: a source an app can draw from, not a dependency this framework has. Nothing here fetches it, and Pro is a paid product rastrillo cannot vendor on your behalf.

The whole set is at lucide.dev (opens in a new tab).

An icon the framework does not ship

The icons package rastrillo new writes is app-owned source: add the glyph there and call it like any other. Pass its Icon and Assets to ui.Pages as icon and iconAssets, and your set stands in front of the framework's own.

Funcs: template.FuncMap{"icon": icons.Icon, "iconAssets": icons.Assets, "asset": assets.Path},

Pass both, always. With only icon, iconAssets stays on the framework's default, and cdn or js delivery breaks with no error.