Sorry, we don't support your browser.  Install a modern browser

WordPress theme.json Integration for Core Framework Variables#229

Summary:
Add support for registering Core Framework variables as WordPress –wp–preset–* variables in theme.json to align with WordPress standards and enable seamless integration with existing theme workflows.

Problem:
Currently, Core Framework creates its own CSS custom properties system that operates independently from WordPress’s native theme.json system. This creates challenges for developers who follow WordPress and modern Web Development best practices by managing canonical variables in theme.json and semantic variables in tools like GreenShift’s Stylebook to establish a standard and achieve greater interoperability.

Proposed Solution:
Enable Core Framework to automatically register its variables (colors, spacing, typography, etc.) as –wp–preset–* variables that integrate with WordPress’s theme.json system. This would allow developers to:

- Visually maintain a centralized configuration through theme.json
- Reference Core Framework variables as WordPress presets
- Eliminate the need for duplicate systems
- Follow WordPress coding standards and Web Development best practices

Use Case:
Developers who currently register canonical variables in theme.json and programmatically create semantic variables that alias the wp preset canonicals would benefit from this integration, making Core Framework’s GUI valuable within their existing workflow.

Expected Outcome:
Core Framework variables would be accessible as standard WordPress preset variables, enabling seamless integration with theme.json-based workflows and increasing interopability between themes and plugins.

15 hours ago