As part of design systems work supporting the admin design project, the Gutenberg Components Team has been working on a foundational layer of themeability and design tokens that support consistent, accessible UI components across the admin experience. On behalf of this group, I would like to propose the initial theming capabilities for merge: a comprehensive […]
As part of design systems work supporting the admin design project, the Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc.
https://wordpress.org/gutenberg/ Components Team has been working on a foundational layer of themeability and design tokens that support consistent, accessible UI User interface components across the admin (and super admin) experience. On behalf of this group, I would like to propose the initial theming capabilities A capability is permission to perform one or more types of task. Checking if a user has a capability is performed by the current_user_can function. Each user of a WordPress site might have some permissions but not others, depending on their role. For example, users who have the Author role usually have permission to edit their own posts (the “edit_posts” capability), but not permission to edit other users’ posts (the “edit_others_posts” capability). for merge: a comprehensive set of design tokens and themeability enabled through the ThemeProvider React React is a JavaScript library that makes it easy to reason about, construct, and maintain stateless and stateful user interfaces.
https://reactjs.org component.
The broader design systems effort is aimed at improving consistency and accessibility Accessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both “direct access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility) of components in the WordPress admin experience. Theming and design tokens are the foundational set of styles that support this work. In practice, the net result is a set of CSS custom properties that can be used within components to apply color, typography, border, elevation, or other styling aspects.
Using design token properties instead of hard-coded values helps ensure consistency across components, while still supporting customization like user color scheme. This builds upon established shared styles like those in the @wordpress/base-styles NPM package by providing a basis that can apply to many other types of UI surfaces and controls. With this comprehensive theming approach, those established CSS Cascading Style Sheets. colors will become aliases to tokens within the broader set of design tokens.
One particularly ambitious outcome of this project is a tool for generating color ramps from a pair of accent and background “seed” colors. This tool can create a color scale that’s configurable, visually harmonious, and provides accessible contrast between color values that are used together.
This configurability is an important aspect of theming, and it’s crucial to unlocking a number of use-cases that should be supported:
The design system effort has evolved over the last several years, guided by a baseline expectation of accessibility and consistency, and a need for a strong foundation for admin innovation:
While WordPress has had shared styles and shared componentry in many forms over the years, it has required significant ongoing effort to try to maintain consistency. WordPress 7.0’s visual refresh is one example of this (in particular, the reskin effort in #64308). A comprehensive theming system based on CSS properties should reduce this ongoing maintenance cost, in both React-based and non-React-based admin interfaces.
This also tracks with where the software industry is moving. The W3C Design Tokens Community Group published the first stable version of the Design Tokens (DTCG) specification late last year, and the WordPress theme design tokens follow this specification. This specification is seeing adoption in industry tools like Figma, which has added support for importing design tokens as variables. As the discrete foundational unit for styling UI components, a set of documented, semantic design tokens are well-understood by AI agents, which helps maintain a high standard of quality as developers adopt this technology.
For developers, the initial set of theming APIs proposed for merge are:
wp-theme, including a set of prebuilt CSS properties for the default WordPress theme.wp-theme, including a single React ThemeProvider component for extending the default theme in an area of the admin’s user interface.The default theme stylesheet is compiled from a set of design tokens that follow the design token specification. Developers and designers may find these tokens useful, as they can be imported directly into design tools like Figma for use in designs.
For users, the current expected impact should be minimal, aside from more UI component consistency throughout the admin interface. The default theme was intentionally designed to be largely aligned with existing styles, and not radically change the appearance of existing screens.
That being said, a noteworthy feature coming in WordPress 7.1 is the application of the user color scheme to the Site Editor, which is powered by the theming implementation.
While not targeted for inclusion in WordPress 7.1, the following features are being considered for future iterations:
wp-theme stylesheet will be registered, it will only be enqueued by default on specific WordPress screens that use the new theming feature. As theming extends to more parts of the interface, it’s expected that the tokens would be available more universally throughout the admin interface. In the meantime, developers can enqueue the stylesheet themselves.current_user_can function. Each user of a WordPress site might have some permissions but not others, depending on their role. For example, users who have the Author role usually have permission to edit their own posts (the “edit_posts” capability), but not permission to edit other users’ posts (the “edit_others_posts” capability). for this today.Your feedback to this merge proposal is welcomed in the comments below. As this work is focused on the long-term sustainability of UI component development, there’s particular interest in any risks or conflicts to consider in the proposed implementation.
Props to @mciampini, @annezazu, and @0mirka00 for reviewing this post.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Merge Proposal: Guidelines built on Knowledge | 0 | 5 | 22-06-2026 |
| 2 | Merge Proposal: Expanding WordPress Core Abilities | 0 | 7 | 02-07-2026 |
| 3 | X-post: Call for Testing: Responsive Styling | 0 | 1 | 03-07-2026 |
| 4 | X-post: WordPress Credits Updates | 0 | 2 | 29-06-2026 |
| 5 | What’s new in Gutenberg 23.5? (July 1, 2026) | 0 | 5 | 01-07-2026 |
| 6 | Guidelines for Syncing Code From Gutenberg Into WordPress Develop | 0 | 7 | 30-06-2026 |
| 7 | Transitioning To Rulesets In The Gutenberg Repository | 0 | 5 | 08-07-2026 |
| 8 | EIPIP Meeting #128, July 08, 2026 | 0 | 7 | 08-07-2026 |
| 9 | Bug Scrub Schedule for WordPress 7.1 | 2 | 4 | 03-07-2026 |
| 10 | Themes mode System doesn't work | -1 | 2 | 27-06-2026 |