-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
It would be nice if, in addition to fonts, text sizes, font weights, line heights, letter spacings, and text colors, we could define "text styles" (aka "character styles" or "paragraph styles") which could combine any of those properties.
The way I see it working, it would be possible to use names representing values defined in the config, like this:
textStyles: {
'h1': {
'font': 'serif',
'textSize': '3xl',
'fontWeight': 'bold',
},
},
...or we could use values directly (which are not necessarily used anywhere else in the config):
textStyles: {
'h1': {
'font': ['Constantia', 'Lucida Bright', 'Lucidabright'],
'textSize': '1.875rem',
'fontWeight': 700,
},
},
All properties are optional and the ones that aren't defined simply inherit as per CSS. The above would generate a style-h1
class, and maybe it could be possible to override some of its properties like this:
<h1 class="style-h1 font-light">Title</h1>
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels