Settings Options
Reference for all OxyMade settings and WordPress options.
This reference documents all settings and WordPress options used by OxyMade.
Admin Settings
Feature Toggles
| Setting | Option Key | Default | Description |
|---|---|---|---|
| CSS Output | oxymade_css_enabled | true | Enable/disable CSS framework |
| Presets | oxymade_presets_enabled | true | Enable preset functionality |
| Button | oxymade_button_enabled | true | Enable custom Button element |
| Colors | oxymade_colors_enabled | true | Enable color features |
Sync Settings
| Setting | Option Key | Default | Description |
|---|---|---|---|
| Sync Mode | oxymade_variables_mode | add_new | How to sync variables |
| Auto-Sync | oxymade_sync_with_oxygen | false | Enable real-time sync |
Design Set
| Setting | Option Key | Default | Description |
|---|---|---|---|
| Template | oxymade_default_designset_template | layers | Selected design set |
WordPress Options
Color Palette
oxymade_color_palette
Structured color palette data.
[
'primary' => [
'base' => '#6366f1',
'shades' => [
'bg' => '#f5f5ff',
'surface' => '#ededff',
'subtle' => '#e0e0ff',
'border' => '#c7c7ff',
'muted' => '#a0a0ff',
'hover' => '#5050d9',
'text' => '#4040b3',
'active' => '#30308c',
'heading' => '#202066',
'dark' => '#101040'
]
],
'secondary' => [...],
'tertiary' => [...],
'accent' => [...],
'neutral' => [...],
'base-white' => ['base' => '#ffffff'],
'base-black' => ['base' => '#101010']
]
oxymade_color_palette_flat
Flattened palette for quick lookups.
[
'primary' => '#6366f1',
'bg-primary' => '#f5f5ff',
'surface-primary' => '#ededff',
// ... all shades
'secondary' => '#10b981',
// ... all colors and shades
]
Typography
oxymade_typography_config
Typography configuration.
[
'typescale_enabled' => true,
'fluid_enabled' => true,
'base_font_size_mobile' => 16,
'base_font_size_desktop' => 18,
'typescale_mobile' => 1.25,
'typescale_desktop' => 1.33,
'custom_sizes' => []
]
Installation Status
| Option Key | Type | Description |
|---|---|---|
oxymade_variables_synced | bool | Variables installed |
oxymade_typography_installed | bool | Typography installed |
oxymade_selectors_synced | bool | Selectors synced |
oxymade_components_registered | bool | Components imported |
oxymade_global_settings_installed | bool | Global settings done |
Main Settings
oxymade_settings
Combined settings object.
[
'css_enabled' => true,
'presets_enabled' => true,
'button_enabled' => true,
'colors_enabled' => true,
'sync_with_oxygen' => false,
'variables_mode' => 'add_new',
'designset' => 'layers'
]
AJAX Endpoints
Color Palette
| Action | Description |
|---|---|
oxymade_save_palette | Save color palette |
oxymade_get_palette | Get current palette |
Typography
| Action | Description |
|---|---|
oxymade_save_typography_config | Save typography settings |
oxymade_get_typography_config | Get typography settings |
oxymade_install_typography | Install typography |
Variables
| Action | Description |
|---|---|
oxymade_sync_variables | Sync variables with Oxygen |
oxymade_get_variables | Get all variables |
Selectors
| Action | Description |
|---|---|
oxymade_sync_selectors | Sync selectors with Oxygen |
oxymade_get_selectors | Get selector list |
Components
| Action | Description |
|---|---|
oxymade_sync_components | Import components |
oxymade_get_components | Get component list |
JavaScript Localization
oxymadeSettings Object
Available on admin pages:
window.oxymadeSettings = {
ajaxUrl: '/wp-admin/admin-ajax.php',
nonce: 'abc123...',
syncWithOxygen: false,
pluginUrl: '/wp-content/plugins/oxymade/',
palette: {...},
settings: {...}
};
Configuration Files
config.php
define('OXYMADE_VERSION', '0.1.8');
define('OXYMADE_LICENSE_TOKEN', 'your-token');
release.json
{
"version": "0.1.8",
"date": "2025-12-04",
"changelog": "..."
}
Data Files
/data/layers.json
Default Layers design set palette and settings.
/data/variables.json
Variable definitions for spacing and radius.
/data/selectors-only.json
Selector definitions for CSS classes (lightweight mode).
/data/class-mappings.json
Maps selector UUIDs to CSS class names.
Programmatic Access
Get Settings
$settings = get_option('oxymade_settings', []);
$css_enabled = $settings['css_enabled'] ?? true;
Get Palette
$palette = get_option('oxymade_color_palette', []);
$primary = $palette['primary']['base'] ?? '#6366f1';
Get Flat Palette
$flat = get_option('oxymade_color_palette_flat', []);
$bg_primary = $flat['bg-primary'] ?? '';
Check Setup Status
$vars_synced = get_option('oxymade_variables_synced', false);
$typography_installed = get_option('oxymade_typography_installed', false);
Hooks and Filters
Actions
| Hook | Description |
|---|---|
oxymade_before_sync_variables | Before variable sync |
oxymade_after_sync_variables | After variable sync |
oxymade_palette_saved | After palette save |
Filters
| Filter | Description |
|---|---|
oxymade_color_palette | Filter palette before save |
oxymade_typography_config | Filter typography config |
oxymade_variables | Filter variables before sync |
Database Tables
OxyMade uses WordPress options table only. No custom tables are created.
Cache Keys
Transients
| Key | TTL | Description |
|---|---|---|
oxymade_api_response_* | 30 min | API response cache |
oxymade_remote_components | 30 min | Remote components cache |
Object Cache
Uses WordPress object cache when available for:
- Options lookups
- Palette data
- Selector data
Security
Nonce Verification
All AJAX endpoints verify WordPress nonces:
check_ajax_referer('oxymade_nonce', 'nonce');
Capability Checks
Settings require manage_options capability:
if (!current_user_can('manage_options')) {
wp_die('Unauthorized');
}
Rate Limiting
Color palette saves are limited:
- 10 saves per minute per user
- Prevents abuse and performance issues