Overview
Buttons use a preset system with two parts: a semantic color class and, when needed, a size class. Start with a preset likebutton-primary, then add a size like button-lg when the default scale is not the right fit.
Examples
Basic button preset
Use a semantic preset likebutton-primary when you need a standard primary action without changing the size.
Choosing a semantic color
Use a semantic token to communicate intent. For example,button-success works well for positive confirmations and completion actions.
Changing size
Add a size class next to the preset when the button should feel more prominent or more compact in the layout.Combining with utilities
Preset classes define the button itself, and utilities handle the surrounding composition. This works well when a button needs spacing or typography adjustments inside a larger layout.Notes
- Every button starts with a semantic preset such as
button-primaryorbutton-success. - Size classes only make sense next to a color preset (
button-primary button-md). secondaryis a light fill (#aaebfd); usetext-blackortext-gray-darkon the label if contrast is weak.- You can still add spacing, layout, or typography utilities alongside the preset classes.

