Native vs HeadSpin Code
Understand the difference between BreakMade Native and HeadSpin frameworks and when to use each.
BreakMade designs are available in two frameworks: Native and HeadSpin. This guide explains the differences and helps you choose the right one for your project.
Overview
Native Framework
The standard BreakMade framework using BreakMade’s own CSS variables.
/* Native variable examples */
--s8
--s16
--s32
--primary-base
--secondary-surface
--radius-lg
HeadSpin Framework
Designed for use with HeadSpinUI, using HeadSpin-prefixed variables.
/* HeadSpin variable examples */
--hsp-s8
--hsp-s16
--hsp-s32
--hsp-primary-base
--hsp-secondary-surface
--hsp-radius-lg
Which Should You Use?
Use Native When
- ✅ Using BreakMade plugin only
- ✅ Not using HeadSpinUI
- ✅ Want simpler setup
- ✅ New to BreakMade
- ✅ Building standalone projects
Use HeadSpin When
- ✅ Using HeadSpinUI plugin
- ✅ HeadSpin Mode is enabled in BreakMade
- ✅ Want HeadSpinUI’s token management
- ✅ Need HeadSpinUI components
- ✅ Building HeadSpin-based projects
Setting Up Each Framework
Native Setup
- Install BreakMade plugin
- Go to BreakMade settings
- Install design set (Layers)
- Install color palette
- Install typography presets
- Keep HeadSpin Mode OFF
Your site uses Native variables automatically.
HeadSpin Setup
- Install BreakMade plugin
- Install HeadSpinUI plugin
- Initialize HeadSpinUI
- Go to BreakMade settings
- Enable HeadSpin Mode
- Click Merge Data
- Install design set
Variables are converted to HeadSpin format.
Variable Comparison
Spacing Variables
| Native | HeadSpin |
|---|---|
--s1 | --hsp-s1 |
--s4 | --hsp-s4 |
--s8 | --hsp-s8 |
--s16 | --hsp-s16 |
--s32 | --hsp-s32 |
--s64 | --hsp-s64 |
Color Variables
| Native | HeadSpin |
|---|---|
--primary-base | --hsp-primary-base |
--primary-surface | --hsp-primary-surface |
--secondary-base | --hsp-secondary-base |
--neutral-text | --hsp-neutral-text |
Other Variables
| Native | HeadSpin |
|---|---|
--radius-lg | --hsp-radius-lg |
--radius-full | --hsp-radius-full |
Getting the Right Code
On BreakMade.com
When browsing designs:
- Look for the framework indicator
- Native = Standard BreakMade
- HeadSpin = HeadSpinUI compatible
- Select the matching version
Copy the Correct Version
Before copying a design:
- Check your site’s setup
- Is HeadSpin Mode enabled?
- Copy the matching framework
- Paste into your editor
Switching Frameworks
From Native to HeadSpin
If you decide to add HeadSpinUI later:
- Install HeadSpinUI
- Enable HeadSpin Mode in BreakMade
- Click Merge Data
- Re-register selectors
- Note: Existing designs may need updating
From HeadSpin to Native
To go back to Native:
- Disable HeadSpin Mode
- Variables revert automatically
- May need to re-paste designs
- Re-register selectors
Updating Existing Designs
When switching frameworks:
- Old designs keep their variables
- May show incorrect values
- Best to re-copy from correct framework
- Or manually update variable names
Common Issues
Mixed Variables
Problem: Page has both Native and HeadSpin variables
Solution:
- Check all sections use same framework
- Re-copy mismatched sections
- Or manually update variables
Variables Not Working
Problem: Variables show no value
Cause: Wrong framework selected
Solution:
- Check HeadSpin Mode setting
- Match designs to your setup
- Re-copy correct framework version
Styles Breaking on HeadSpin Enable
Problem: Enabling HeadSpin Mode breaks existing designs
Solution:
- Re-copy designs using HeadSpin framework
- Or keep HeadSpin Mode disabled
- Run unconverted variable checker
Best Practices
Choose Once, Stick With It
- Decide on framework early
- Use consistently throughout project
- Avoid mixing frameworks
Document Your Choice
For team projects:
- Note which framework you’re using
- Add to project documentation
- Inform all team members
Test After Changes
After any framework changes:
- Preview all pages
- Check responsive views
- Verify colors and spacing
Feature Comparison
| Feature | Native | HeadSpin |
|---|---|---|
| Ease of setup | Easier | More steps |
| Variables | Standard | Prefixed |
| HeadSpinUI components | No | Yes |
| Token management | Basic | Advanced |
| CSS generation | BreakMade | HeadSpinUI |
| Best for | Simple projects | Advanced projects |
Recommendations
For Beginners
Start with Native:
- Simpler setup
- Fewer moving parts
- Easy to understand
- Can switch later if needed
For Advanced Users
Consider HeadSpin if:
- Already using HeadSpinUI
- Need advanced token management
- Want HeadSpinUI components
- Building complex design systems
For Agencies
Native for:
- Quick client projects
- Simpler handoffs
- Maintenance simplicity
HeadSpin for:
- Enterprise projects
- Design system projects
- Long-term maintenance