System
Shape
Shape is the radius of each kind of surface, from a small control to a dialog, and how corners nest. One choice, applied everywhere by class.
Radius by role
Radius grows with the surface. Plain's shape, soft, gives each role its own: control 4px, field 4px, card 12px, dialog 16px, avatar full. Put
virtu-shape-card or its siblings on an element to take one.soft, round corners
control
Search notesfield
card
dialog
ABavatar
Shapes in the registry
Six shapes, from sharp to pill. Squircle and classical name a CSS corner shape too, and fall back to round corners where a browser has none.
6 shapes
classicalbevel
pillround
roundround
sharpround
softround
squirclesquircle