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 |
| Autocomplete | oxymade_autocomplete_enabled | '1' | Enable/disable class autocomplete in builder |
| Fluid Text Sizing | (in oxymade_settings) | true | Enable fluid clamp() text sizes |
| Fluid Spacing | (in oxymade_settings) | true | Enable fluid clamp() spacing values |
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 |
| Auto Sync on Change | oxymade_auto_sync | false | Sync variables when changes are made |
Design Set
| Setting | Option Key | Default | Description |
|---|---|---|---|
| Template | oxymade_default_designset_template | Layers | Selected design set (Layers is default, others loaded from API) |
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' => false,
'fluid_enabled' => true,
'base_font_size_mobile' => 16,
'base_font_size_desktop' => 18,
'typescale_mobile' => 1.25,
'typescale_desktop' => 1.333,
'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',
'fluid_spacing' => true,
'fluid_text_sizing' => true
]
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 to Oxygen |
oxymade_reset_typography_from_template | Reset typography to design set defaults |
Variables & Sync
| Action | Description |
|---|---|
oxymade_sync_variables | Sync variables with Oxygen |
oxymade_import_variables | Direct variable import |
oxymade_sync_oxygen | Sync selectors with Oxygen |
oxymade_save_sync_setting | Save sync with Oxygen toggle |
oxymade_toggle_auto_sync | Toggle auto-sync setting |
oxymade_update_selector_mode | Update selector sync mode |
Selectors & Classes
| Action | Description |
|---|---|
oxymade_get_selector_counts | Get counts of total/OxyMade/other/custom selectors |
oxymade_delete_oxymade_selectors | Delete only OxyMade selectors (with toggle protections) |
oxymade_delete_all_selectors | Delete all selectors (with toggle protections) |
oxymade_fix_styling | Scan all pages and restore used OxyMade selectors |
oxymade_create_classes_from_paste | Create selectors from pasted CSS JSON |
Components
| Action | Description |
|---|---|
oxymade_sync_components | Import components from design set |
oxymade_toggle_update_existing_components | Toggle whether existing components get updated |
Design Sets
| Action | Description |
|---|---|
oxymade_fetch_design_sets | Fetch available design sets from API |
oxymade_install_design_set | Install a design set |
oxymade_preview_design_set | Preview a design set’s colors, typography, and settings |
oxymade_install_palette | Install color palette and spacing variables |
oxymade_install_global_settings | Install global settings from design set |
Feature Toggles
| Action | Description |
|---|---|
oxymade_save_autocomplete_setting | Toggle builder class autocomplete |
oxymade_toggle_fluid_text_sizing | Toggle fluid clamp() text sizes |
oxymade_toggle_fluid_spacing | Toggle fluid clamp() spacing values |
Admin UI
| Action | Description |
|---|---|
oxymade_get_oxymade_settings | Get all OxyMade settings |
oxymade_dismiss_notice | Dismiss admin notice |
oxymade_dismiss_wizard | Dismiss setup wizard |
oxymade_hide_progress_tracker | Hide setup progress tracker |
License
| Action | Description |
|---|---|
oxymade_license_action | License activation/deactivation/status check |
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', '1.4.0');
define('OXYMADE_LICENSE_TOKEN', 'your-token');
release.json
{
"version": "1.4.0",
"date": "2026-03-08",
"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_selectors_option_cache | 24 hours | Cached selectors option via pre_option filter |
oxymade_api_response_* | 30 min | API response cache |
oxymade_remote_components | 30 min | Remote components cache |
Important: The
oxymade_selectors_option_cachetransient is used for server-side performance. When writing tooxygen_oxy_selectors_json_stringviaupdate_option(), you must call_invalidate_selectors_cache()before and after the write to prevent stale data.
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