-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Systematising typography styles in the admin UI #64340
Copy link
Copy link
Closed
Labels
Design SystemIssues related to the system of combining components according to best practices.Issues related to the system of combining components according to best practices.General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).
Metadata
Metadata
Assignees
Labels
Design SystemIssues related to the system of combining components according to best practices.Issues related to the system of combining components according to best practices.General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Status
💫 Done
There are several typographic styles used throughout the editor, including:
However, these styles are not globally registered, leading to inconsistent and ad hoc usage across the interface. For example, in the data views pagination control, the 'label' styling is applied ad hoc to the 'of 3' suffix here:
This means that if the label style is updated in the future, this suffix will not automatically align with the preceding label leading the UI breakage.
Another problem is unique type styles, such as the section headings in the Editor Preferences modal. This is an inevitable consequence of using such a small / rigid scale and leads to inconsistency and fragility in the overall design. Some of these pain points are already felt in Data Views as mentioned above.
Establishing beautiful and consistent typographic rules will be increasingly important as the admin redesign progress and we begin building UIs outside of the Editor interface (settings forms and so on).
Solution
To ensure design consistency and ease of maintenance, we should establish a set of typographic styles that can be utilized throughout the admin interface.
Goals
Let's discuss which type styles we'll need keeping in mind high-density UI's like the block inspector, but also admin pages like settings screens where there can be more breathing room. As we explore properties, ideally
line-heightvalues should be multiples of 4 to align with the4pxbaseline.