Custom Selectors
Use pre-built CSS classes for buttons and components integrated with Breakdance.
BreakMade Custom Selectors provide pre-built CSS classes that integrate directly with Breakdance’s selector system.
Registering Selectors
- Go to BreakMade settings
- Find the Selectors section
- Click Add/Update Selectors
Toggle Overwrite Selectors to replace existing selectors instead of merging.
Available Selectors
Button Sizes
.btn-s /* Small */
.btn-m /* Medium (default) */
.btn-l /* Large */
Button Colors
.btn-primary .btn-secondary .btn-tertiary
.btn-accent .btn-black .btn-white
Button Styles
.btn-light /* Subtle/light button */
.btn-link /* Link-style button */
.btn-outline /* Outlined button */
Utility
.alt-shade /* Inverted color scheme */
Using Selectors in Breakdance
Method 1: Selector Panel
- Select an element
- Open Style panel → Selectors
- Search
btn-to find button selectors - Click to apply
Method 2: CSS Classes Field
- Select an element
- Find CSS Classes field (in Advanced)
- Type class names:
btn-primary btn-l
Combining Selectors
<a class="btn-primary btn-l">Large Primary</a>
<a class="btn-outline btn-s">Small Outline</a>
Alt-Shade Selector
Inverts your color scheme for contrast sections:
<section class="alt-shade">
<!-- Children use inverted colors -->
</section>
Double-nesting returns to original colors.
HeadSpin Mode
When HeadSpin Mode is enabled, selectors automatically use --hsp-* variables. Re-register selectors after enabling HeadSpin Mode.
Customizing Selectors
/* Custom button radius */
.btn-primary {
border-radius: var(--radius-full);
}
/* Add shadow */
.btn-primary {
box-shadow: 0 4px 14px rgba(var(--primary-base-rgb), 0.4);
}
Troubleshooting
Selectors not appearing?
- Click Add/Update Selectors
- Refresh Breakdance editor
- Search
btn-in selector search
Styles not applying?
- Check for CSS specificity conflicts
- Inspect element in DevTools
- Clear caches
Selector Reference
| Selector | Category | Description |
|---|---|---|
.btn-s | Size | Small button |
.btn-m | Size | Medium button |
.btn-l | Size | Large button |
.btn-primary | Color | Primary color |
.btn-secondary | Color | Secondary color |
.btn-tertiary | Color | Tertiary color |
.btn-accent | Color | Accent color |
.btn-black | Color | Black button |
.btn-white | Color | White button |
.btn-light | Style | Subtle/light button |
.btn-link | Style | Link-style button |
.btn-outline | Style | Outlined button |
.alt-shade | Utility | Color inversion |
Related
- Color Palette System - Colors used by button selectors
- HeadSpinUI Variables - Using selectors with HeadSpin
- CSS Variables Reference - All available variables