Skip to content

Configuration & Themes

Open Modules > Configure > React in the ProcessWire Admin to control global theming, keyboard shortcuts, media field upgrades, and Admin Vector Icons.

Modules > Configure > React controls site-wide defaults for all React workspaces, Inputfields, and viewports.

All 8 Configuration Settings (ReactConfig)

Section titled “All 8 Configuration Settings (ReactConfig)”
Setting Key Type Default Description
defaultTheme string 'system' Default color mode for React admin pages and viewports: 'system' (follows OS preference), 'light', or 'dark'.
themePreset string 'native' Site-wide color palette preset applied when a user has not chosen a personal override: 'native', 'neutral', 'slate', 'stone', 'ocean', 'indigo', 'teal', or 'custom'.
themeCustomTokens string '' Custom CSS :root { ... } and .dark { ... } variable block parsed and validated by ThemeTokenParser when themePreset is 'custom'.
enableKeyboardShortcuts bool true Enables Cmd/Ctrl+K command search, ? shortcut help, mod+s save, viewport shortcuts, and g w / g a navigation inside React workspaces.
adminReturnLabel string (multi-language) 'Panel' Text on the return button inside Workspace chrome that links back to the classic ProcessWire Admin panel.
useReactMediaFields bool false Automatically upgrades standard ProcessWire Image and File fields on Pages (including Repeaters) to InputfieldReactImage and InputfieldReactFile without changing stored data.
enableAdminVectorIcons bool true Adds a crisp vector icon picker below the standard Icon field on Setup > Templates, Setup > Fields, and Admin page settings.
adminIconPreviewSize int 28 Preview icon size in pixels (16 to 64, clamped via IconManager::clampSize()) on Edit Template and Edit Field screens.

ThemeManager unifies light/dark mode and surface tokens across Workspaces, embedded AdminTheme panels, Inputfield islands, and top-layer <dialog> overlays.

Preset Key Visual Character
native Inherits ProcessWire’s active AdminTheme --pw-* color scheme directly.
neutral Balanced crisp grayscale with neutral accent surfaces.
slate Cool blue-gray editorial surfaces for dense data tables.
stone Warm architectural neutral palette.
ocean Deep coastal blue primary accent with high-contrast surfaces.
indigo Focused violet-indigo interactive highlights.
teal Clean green-teal accent palette.
custom Applies your validated themeCustomTokens CSS variables.

Resolution Precedence:

  1. Personal user preference stored in site/assets/cache/React/workspaces/{user-id}.json (set via the Workspace account menu or /_react/workspace-prefs action=set_theme_preset).
  2. Site-wide themePreset configured under Modules > Configure > React.
  3. native fallback.

When a user toggles light/dark mode in the Workspace account menu (action=set_theme_mode), React also synchronizes ProcessWire’s native $user->meta('adminDarkMode') while respecting AdminThemeUikit’s noDarkMode setting.

Select Custom under Default Theme Preset and paste standard CSS :root and .dark variable blocks into Custom Theme Tokens. ThemeTokenParser validates all tokens against a strict allowlist of color, radius, font, and shadow variables and rejects url(), expression(), @import, CSS escapes, and markup-breaking characters.

At minimum, a complete custom palette (ThemeTokenParser::isComplete()) must define --background, --foreground, --primary, and --primary-foreground. ThemeManager derives card, popover, sidebar, button, and masthead surfaces automatically:

:root {
--background: #ffffff;
--foreground: #0f172a;
--primary: #0f766e;
--primary-foreground: #ffffff;
--radius: 0.5rem;
}
.dark {
--background: #0b1120;
--foreground: #f8fafc;
--primary: #14b8a6;
--primary-foreground: #042f2e;
}

Next steps