Oxygen Sync
Seamless integration with Oxygen's variable system, selectors, and components.
OxyMade seamlessly integrates with Oxygen page builder, syncing variables, selectors, and components for a unified design workflow.
Overview
OxyMade syncs with Oxygen to provide:
- CSS Variables - Available in Oxygen’s variable picker
- Selectors/Classes - Organized in Oxygen’s class picker
- Components - Pre-built elements in Oxygen’s library
- Real-time Updates - Changes reflect immediately
Variable Syncing
What Gets Synced
- Color palette variables (60+ colors)
- Spacing variables (24+ values)
- Typography variables (sizes, weights)
- Border radius variables
- Section spacing variables
- RGB value variables
How to Sync
Initial Sync
- Complete the OxyMade setup wizard
- Click Install Variables in Step 2
- Wait for sync confirmation
- Variables appear in Oxygen
Manual Re-sync
- Go to OxyMade > Settings
- Click Sync Variables with Oxygen
- Choose sync mode
- Confirm the sync
Sync Modes
| Mode | Description | Use When |
|---|---|---|
| Add New | Only adds missing variables | Default, safest option |
| Update | Updates existing + adds new | After making changes |
| Replace | Replaces all variables | Fresh start needed |
Using Variables in Oxygen
After syncing, access variables in the Oxygen builder:
- Select any element
- Click a property (color, spacing, etc.)
- Click the variable icon
{x} - Find OxyMade variables by collection:
- OxyMade Colors
- OxyMade Spacing
- OxyMade Typography
Or type directly:
{var-primary}
{var-s8}
{var-text-lg}
Selector Syncing
What Are Selectors?
Selectors are pre-defined CSS classes that apply styling. OxyMade provides 200+ utility classes.
Selector Collections
Classes are organized in collections:
| Collection | Contents |
|---|---|
| OxyMade System | Root utilities |
| OxyMade Layout | Display, position |
| OxyMade Colors | Color utilities |
| OxyMade Typography | Font utilities |
| OxyMade Spacing | Margin/padding |
| OxyMade Section Spacing | Section utilities |
| OxyMade Radius | Border radius |
| OxyMade Flexbox | Flex utilities |
| OxyMade Grid | Grid utilities |
| OxyMade Borders | Border utilities |
| OxyMade Effects | Shadow, opacity |
| OxyMade RGB Values | RGB variables |
How to Sync Selectors
- Go to OxyMade > Settings
- Complete Step 5: Sync Selectors
- Click Sync Selectors with Oxygen
- Classes appear in Oxygen’s class picker
Using Selectors in Oxygen
- Select an element
- Open the Classes panel
- Click Add Class
- Search for OxyMade classes or browse collections
- Click to apply
Multiple classes can be combined:
flex items-center justify-between gap-4
CSS File Injection
OxyMade injects its CSS framework automatically:
/assets/oxymade-framework.css- Full framework- Loaded on frontend when CSS is enabled
- ~49KB uncompressed (minified in production)
Component Syncing
What Are Components?
Pre-built design elements ready to use in Oxygen:
- Buttons
- Cards
- Navigation
- Forms
- And more (based on design set)
How to Register Components
- Complete Step 6: Register Components
- Choose local or remote components
- Click Import Components
- Components appear in Oxygen’s element library
Using Components
- Open Oxygen Builder
- Click Add Element
- Find OxyMade category
- Drag component to canvas
- Customize as needed
Real-time Sync
Enable Auto-Sync
For immediate updates when you make changes:
- Go to OxyMade > Settings
- Enable Sync with Oxygen toggle
- Changes now auto-sync
Rate Limiting
Auto-sync is rate limited:
- Maximum 10 syncs per minute
- Prevents performance issues
- Queues excess changes
When to Use Auto-Sync
Enable when:
- Actively designing
- Tweaking colors
- Testing changes
Disable when:
- In production
- Making bulk changes
- Importing/exporting
Oxygen Builder Integration
Toolbar Button
OxyMade adds a button to the Oxygen toolbar:
- Open Oxygen Builder
- Find the OxyMade button in the toolbar
- Click to open the color panel
- Make quick color adjustments
Color Panel
The in-builder color panel provides:
- Primary color picker
- Live shade preview
- Quick save/reset
- Sync toggle
Spacing Picker
Interactive spacing selection:
- Visual scale preview
- Click to copy variable
- Quick insertion
Breakpoint Mapping
OxyMade breakpoints map to Oxygen’s system:
| OxyMade | Oxygen | Width |
|---|---|---|
| base | Base | All |
| sm | phone_portrait | ≥480px |
| md | phone_landscape | ≥640px |
| lg | tablet_portrait | ≥768px |
| xl | tablet_landscape | ≥1024px |
Responsive classes use these breakpoints:
grid-cols-1 lg-grid-cols-3
Best Practices
Initial Setup
- Choose your design set first
- Sync variables (Add New mode)
- Sync selectors
- Register components
- Test in the builder
Making Changes
- Disable auto-sync for bulk changes
- Make all your adjustments
- Re-sync when ready
- Test thoroughly
Production Workflow
- Keep auto-sync disabled
- Make changes in staging
- Sync and test
- Deploy to production
Avoiding Conflicts
- Use unique variable names for custom vars
- Don’t manually edit Oxygen’s var database
- Backup before major syncs
- Document custom overrides
Troubleshooting
Variables Not Showing
- Verify sync completed successfully
- Check Oxygen’s global settings
- Clear Oxygen’s cache
- Refresh the builder
Selectors Not Available
- Confirm selectors were synced
- Check the class picker
- Search by exact class name
- Re-sync if needed
Components Missing
- Verify component registration
- Check your license status
- Try remote import
- Clear Oxygen’s cache
Sync Errors
- Check PHP error logs
- Verify file permissions
- Ensure Oxygen is active
- Try manual sync
Breakpoint Issues
- Verify breakpoint class format
- Check Oxygen’s breakpoint settings
- Test at each viewport size
- Use browser dev tools