Documentation Index
Fetch the complete documentation index at: https://skelementorcss.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
| Semantic token | Color class |
|---|---|
primary | button-primary |
secondary | button-secondary |
neutral | button-neutral |
success | button-success |
warning | button-warning |
error | button-error |
Changing size
Add a size class next to the preset when the button should feel more prominent or more compact in the layout.| Suffix | Class |
|---|---|
xs | button-xs |
sm | button-sm |
md | button-md |
lg | button-lg |
xl | button-xl |
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.

