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

SettingOption KeyDefaultDescription
CSS Outputoxymade_css_enabledtrueEnable/disable CSS framework
Presetsoxymade_presets_enabledtrueEnable preset functionality
Buttonoxymade_button_enabledtrueEnable custom Button element
Colorsoxymade_colors_enabledtrueEnable color features

Sync Settings

SettingOption KeyDefaultDescription
Sync Modeoxymade_variables_modeadd_newHow to sync variables
Auto-Syncoxymade_sync_with_oxygenfalseEnable real-time sync

Design Set

SettingOption KeyDefaultDescription
Templateoxymade_default_designset_templatelayersSelected 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 KeyTypeDescription
oxymade_variables_syncedboolVariables installed
oxymade_typography_installedboolTypography installed
oxymade_selectors_syncedboolSelectors synced
oxymade_components_registeredboolComponents imported
oxymade_global_settings_installedboolGlobal 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

ActionDescription
oxymade_save_paletteSave color palette
oxymade_get_paletteGet current palette

Typography

ActionDescription
oxymade_save_typography_configSave typography settings
oxymade_get_typography_configGet typography settings
oxymade_install_typographyInstall typography

Variables

ActionDescription
oxymade_sync_variablesSync variables with Oxygen
oxymade_get_variablesGet all variables

Selectors

ActionDescription
oxymade_sync_selectorsSync selectors with Oxygen
oxymade_get_selectorsGet selector list

Components

ActionDescription
oxymade_sync_componentsImport components
oxymade_get_componentsGet 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

HookDescription
oxymade_before_sync_variablesBefore variable sync
oxymade_after_sync_variablesAfter variable sync
oxymade_palette_savedAfter palette save

Filters

FilterDescription
oxymade_color_paletteFilter palette before save
oxymade_typography_configFilter typography config
oxymade_variablesFilter variables before sync

Database Tables

OxyMade uses WordPress options table only. No custom tables are created.

Cache Keys

Transients

KeyTTLDescription
oxymade_api_response_*30 minAPI response cache
oxymade_remote_components30 minRemote 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