-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Typography Style Presets #66932
Copy link
Copy link
Open
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DesignNeeds design efforts.Needs design efforts.[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Feature] TypographyFont and typography-related issues and PRsFont and typography-related issues and PRs
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DesignNeeds design efforts.Needs design efforts.[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Feature] TypographyFont and typography-related issues and PRsFont and typography-related issues and PRs
Type
Fields
Give feedbackNo fields configured for Enhancement.
Currently we support a broad set of individual tools to define typography related styles. An editor can individually set the font size, weight, line height, letter spacing, text transform, writing mode etc for individual elements.
This is great and really powerful.
However most of the time a specific type style consists of the consistent application of a bunch of these settings at once. And always having to manually set every single property individually creates several issues.
A solution for this already partially exists for specific element styles. In the global styles interface or in
theme.jsonyou can define the type style for all of your different heading levels for example.However, the visual appearance of an element often differs from the semantically correct meaning of an element. Also there might be more than one possible style variations for a h4 or a paragraph.
Every traditional text formatting tool like Google Docs / Pages / Word etc have the concept of "Text styles" where a user can define various predefined text styles they want to reuse again and again throughout their document.
Having something like that would be really powerful.
As an implementation note. We should make sure that the solution we come up with does not actually set every single individual setting on every instance of this text because that would still not allow us to globally change the appearance of our type styles in one spot