Icon
One SVG file per icon, inlined at build time so a page only carries the icons it uses. Icons inherit the text color, so they theme with the surrounding text.
UI icons
24×24 grid, filled shapes. 19 icons.
accessibilityarrow-leftarrow-rightboltcheckmarkchevron-downcraftsmanshipdevicesdribbbleexpandexperienceinstagramlinkedinrockettheme-darktheme-lighttheme-systemuserxService icons
80×80, one per service. Unlike UI icons they don’t follow the text color or the theme: each is a fixed color.gold.600 tile with white lines and color.gold.200 accents, which reads on both light and dark pages. Containers crop them to a circle, so keep the artwork inside the middle ~58px.
brandingui-ux-designweb-developmentUsage
UI and service icons use the same component. Each renders at its own size by default: 24px for UI icons, 80px for service icons.
---
import Icon from '../components/Icon.astro';
---
<Icon name="arrow-right" /> <!-- UI icon, 24px -->
<Icon name="web-development" /> <!-- Service icon, 80px -->Size
Pass size to scale a UI icon. Any CSS length works; 1em matches the surrounding text.
<Icon name="arrow-right" size={16} />
<Icon name="arrow-right" /> <!-- 24px default -->
<Icon name="arrow-right" size="2rem" />
<Icon name="arrow-right" size={48} />Color and background
Pass color to fill a UI icon with a semantic color. Add bg to set it in a circle of the matching background: brand gets color.bg.brand, positive gets color.bg.positive, negative gets color.bg.negative. The background is always a circle, and size sets its diameter.
<Icon name="checkmark" color="brand" />
<Icon name="checkmark" color="brand" bg />
<Icon name="checkmark" color="positive" bg />
<Icon name="checkmark" bg size="2.5rem" />Props
| Prop | Type | Default | Notes |
|---|---|---|---|
name | string | — | File name in src/icons, without .svg |
size | string | number | viewBox width | Width and height; any CSS length. 24 for UI icons, 80 for service icons. With bg, the circle’s diameter |
color | 'brand' | 'positive' | 'negative' | — | Fills with color.fill.<color>. Without it the icon follows the text color |
bg | boolean | false | Sets the icon in a circle filled with color.bg.<color> (color.bg.secondary without a color). The glyph sits at 2/3 of the circle |
class | string | — | Extra classes |