Shapes
Change the polygon points or the path width. The dot is a square Box with rounded-full.
| Element | Give it |
|---|---|
Box | Width, height, and a fill. Add rounded-lg or radius={12pt} to round the corners. |
Line | An end={[x, y]} offset and a stroke width. |
Polyline | At least two points and a stroke width. |
Polygon | At least three points. Ebi closes the outline. |
Use colors and gradients for fills and animation methods to move or reveal shapes.
Icons
Use Icon to draw from a bundled icon set. Use fill or gradient utilities to color the artwork, including its strokes. Icons are vector paths and scale with the scene.
<Box w-240 h-100 rounded-xl bg-dark4 flex-row items-center justify-center gap-20
x_align={Align.Center} y_align={Align.Center}>
<Icon name="document-open-symbolic" set="adw" w-40 fill="blue2"/>
<Icon name="mail" set="fluent" variant="filled" w-40 fill="light1"/>
<Icon name="star" set="material" variant="rounded" w-52 h-40
bg-linear-to-br from-yellow1 to-orange3/>
</Box>
set | Artwork | variant |
|---|---|---|
adw (default) | Adwaita and the GNOME Icon Development Kit | symbolic |
fluent | Microsoft Fluent UI System Icons | regular (default), filled, light |
material | Google Material Symbols | outlined (default), rounded, sharp, outlined-filled, rounded-filled, sharp-filled |
Adwaita names accept the optional -symbolic suffix. Fluent and Material use names such as mail, arrow_left, and calendar_month. Availability varies by icon and variant. The API supports path-based artwork, and reports an error for icons that require embedded images or SVG effects.
An icon defaults to its source size. Set width or height to size it proportionally. If both are set, the artwork is centered inside the frame and keeps its aspect ratio. Icons accept the usual element layout and animation properties, including opacity, rotation, and scale. You can also call Icon("search", set = "material", width = 24pt, fill = Color("blue2")).