Presets are complex utility classes that combine various Skeleton primitives. Allowing you quickly style buttons, badges, cards, and more. Create any combination of styles by mixing Skeleton Presets and Tailwind primitives.
1
2
3
4
5
6
7
- Filled - a filled preset of the primary brand color.
- Tonal - a tonal preset of the primary brand color.
- Outlined - an outlined preset of the primary brand color.
- Elevated - mixes a filled preset with a shadow.
- Ghost - has no style by default, but shows a tonal preset on hover.
- Ghost Icon - has no style by default, but shows a branded tonal preset on hover.
- Gradient - a custom preset generated using Tailwind gradient primitives.
Built-Ins
Filled
(neutral)
950-50
900-100
800-200
700-300
600-400
500
400-600
300-700
200-800
100-900
50-950
Tonal
(neutral)
primary
secondary
tertiary
success
warning
error
surface
Outlined
(neutral)
950-50
900-100
800-200
700-300
600-400
500
400-600
300-700
200-800
100-900
50-950
Custom Presets
Create a Preset
Presets are pre-generated combination of Skeleton and Tailwind primitives, which means you can abstract these to create your own set. Add these classes to your global stylesheet and use anywhere you would use the built-in presets. Use the preset-{foo}
naming scheme to keep things standardized.
Gradient Presets
Tailwind provides a number of powerful Gradient utility classes. Combine these to create your own unique gradient presets.
1
2
3