Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Study WordPress Style Engine, Design Library and System in progress #12

Open
eliot-akira opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@eliot-akira
Copy link
Contributor

Figma files

WordPress admin redesign

We have an opportunity to take customisation and even private labelling to the next level.

How might we design WordPress in such a way that it can be tailored and rebranded to a point where it feels like an entirely new product focused on a specific use case?

image

Gutenberg

Due to the customisable and extendable nature of WordPress admin its important it has a strong system at its core.

We should aim to iterate on the existing WordPress components package which can evolve into a fully fledged, themeable system with accessibility baked in that plugin authors can refer to and make use of. This also includes variables for generated color scales (ideally with a high contrast option), spacing, shadows etc.

Tokens/Variables - Variables make up the foundation of the system and give admin its character. Our set of primitive components need to work in dense environments like the editor, as well as environments that need more breathing room and focus like admin.

..If we want to lean heavily into customisation, and support themes including dark, we may need to extend the system and take a more programmatic approach.

Introduces a theme package that aims to standardise how we name, generate and use the css variables that make up the foundation of an admin theme.

Theme provider - This also includes a very lightweight theme provider that is used to generate theme variables which are included in a CSS class added to document head.

In the context of the wider admin redesign, a scalable, portable, and responsive design pattern for settings pages is crucial. This issue outlines some foundational principles and design conventions for such a pattern.

Block themes and styles

Block Supports is the API that allows a block to declare support for certain features. Opting into any of these features will register additional attributes on the block and provide the UI to manipulate that attribute.

The Style Engine aims to provide a consistent API for rendering styling for blocks across both client-side and server-side applications.

Initially, it will offer a single, centralized agent responsible for generating block styles, and, in later phases, it will also assume the responsibility of processing and rendering optimized frontend CSS.

  • Consolidate global and block style rendering and enqueuing
  • Explore pre-render CSS rule processing with the intention of deduplicating other common and/or repetitive block styles
  • Extend the scope of semantic class names and/or design token expression, and encapsulate rules into stable utility classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant