Drupal is a registered trademark of Dries Buytaert
Release: Modeler API 1.1.5 Minor update available for module modeler_api (1.1.5). Release: Scheduler Date / Time Clear 1.0.0 Initial release available for module scheduler_clear (1.0.0)! Release: Attach Inline 8.x-1.9 Minor update available for module attachinline (8.x-1.9). Release: Scolta 1.4.0 Minor update available for module scolta (1.4.0). Release: Protected Content 10.1.124 Minor update available for module proc (10.1.124). Release: No Translate 1.0.0 Initial release available for module notranslate (1.0.0)! Release: Log Alert Rules 1.0.0 Initial release available for module log_alert_rules (1.0.0)! Release: Log Alert Rules 2.1.1 Minor update available for module log_alert_rules (2.1.1). Module Revived: Comment Notify 8.x-1.6 Module comment_notify updated after 10 months of inactivity (8.x-1.6). Usage Milestone: OpenTelemetry Module opentelemetry crossed 1,000 active installs.

SDX React Base is a foundational theme that replaces standard Drupal templates with React components. It enables the creation of React-powered Drupal themes by providing pre-built implementations for common elements like forms, blocks, and navigation, allowing developers to focus on unique theme features.

SDX React Base is a hidden base theme that provides React component implementations for standard Drupal theme hooks. It serves as the foundation for building React-powered Drupal themes with the SDX DRAST theme engine, so you don't have to re-implement common templates from scratch.

Set base theme: sdx_react_base in your theme's .info.yml and start building. All 50+ template overrides are inherited automatically.

Features

Template overrides

  • 50+ Drupal theme hooks implemented as React components
  • Form elements: input, textarea, select, checkboxes, radios, datetime, details, fieldset, vertical tabs
  • Block system: generic block + specific overrides for page title, breadcrumb, messages, menu blocks
  • Views: views-view, views-view-table, views-view-unformatted, views-mini-pager
  • Navigation: menu, breadcrumb, pager, local tasks, local actions
  • Administration: status-report, system-modules, system-themes-page, admin-page, confirm-form
  • Fields: field, field-multiple-value-form
  • Utility: table, image, links, dropbutton, page-title

SPA shell

  • BaseLayout component with region rendering and content area
  • Toast notification system for Drupal status messages
  • Confirm modal portal for entity delete operations
  • ComponentRegistryProvider for automatic template resolution

Shared components

  • SidePanel: dual-mode component for content display and Drupal form loading via AJAX
  • useDrupalForm: hook encapsulating AJAX form handling, CSRF tokens, multi-step forms, and response parsing
  • ErrorBoundary: graceful error display with retry and component stack logging
  • useFocusTrap: focus trap hook for modals and panels
  • Select: native and styled select component
  • TagInput: pill-based autocomplete input
  • DropdownMenu: accessible dropdown menu
  • BlockShell: block wrapper with contextual links support

Code quality

  • Full TypeScript with proper interfaces and typed hooks
  • All imports use SDX aliases (@sdx/*, @theme:sdx_react_base/*), no relative paths
  • All user-facing strings use Drupal's t() translation function
  • Accessibility attributes throughout (aria-modal, aria-label, role, focus management)

How It Works

Extend the base theme in your own theme's .info.yml:

name: 'My Admin Theme'
type: theme
engine: sdx
base theme: sdx_react_base
dependencies:
  - sdx:sdx
  - sdx:sdx_react
  - sdx_drast:sdx_drast

Your theme inherits all template overrides. Override any template by creating a same-named file in your theme's templates/ directory. The SDX build pipeline handles the full inheritance chain automatically.

Additional Requirements

  • Drupal 10.3+ or 11
  • PHP 8.3+
  • SDX core module with sdx_react, sdx_typescript, sdx_sass, and sdx_router enabled
  • SDX DRAST (Theme Engine)
  • Node.js 18+ for building components
  • sdx_ssr (included in SDX) for server-side rendering
  • SDX Aurora as a reference implementation of a full admin theme built on this base

Supporting this Theme

Report bugs and feature requests in the issue queue.

Part of the SDX ecosystem.

Community Documentation

- Coming Soon -

Activity

Tracked releases
7
Tracked since
Apr 2026
Latest release
1 week ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.x-dev Dev Aug 17, 2026
1.0.0-alpha6 Pre-release Aug 17, 2026
1.0.0-alpha5 Pre-release Aug 17, 2026
1.0.0-alpha4 Pre-release Aug 9, 2026
1.0.0-alpha3 Pre-release Apr 23, 2026
1.0.0-alpha2 Pre-release Apr 17, 2026
1.0.0-alpha1 Pre-release Apr 11, 2026