-
Notifications
You must be signed in to change notification settings - Fork 3
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
typography
not-font field updates
#16
Comments
Yeah, I 100% agree that there's complete overlap in I do think Edit: it's |
Conclusion from discussion today:
|
Quick sketch of the updated schema. - id: brand-typography
description: Typography definitions for the brand.
object:
closed: true
properties:
fonts:
description: Font files and definitions for the brand.
arrayOf:
ref: brand-font
base:
description: >
The base font settings for the brand. These are used as the default for
all text.
ref: brand-typography-options
headings:
description: >
The font settings for headings.
ref: brand-typography-options-no-size
monospace:
description: >
The font settings for monospace text
ref: brand-typography-options-text # family, size, weight, style
monospace-inline:
description: Inline code, all values inherit from `monospace`.
ref: brand-typography-options-inline # family, size, weight, style, color, background-color
monospace-block:
description: Block code, all values inherit from `monospace`.
ref: brand-typography-options-block # family, size, weight, style, line-height, color, background-color
link:
description: The text properties used for hyperlinks.
object:
closed: true
properties:
weight:
ref: brand-font-weight
decoration: string
color:
ref: brand-maybe-named-color
background-color:
ref: brand-maybe-named-color |
Summarizing from slack, the But some options don't make much sense in practice and represent a maintenance burden. We also have reduced the value of consistent properties by introducing I'm proposing we:
Here's a sketch of the typography:
base:
family:
weight:
size:
line-height:
color:
headings:
family:
weight:
style:
line-height:
color:
monospace:
family:
weight:
size:
monospace-inline:
family:
weight:
size:
color:
background-color:
monospace-block:
family:
weight:
size:
line-height:
color:
background-color:
link:
weight:
decoration:
color:
background-color: |
Originally posted by @cscheid in #15 (comment) |
From @gordonwoodhull's table of Typst support of these fields |
Should we move all color declarations to
color
? It feels weird forbase
to allow color definitions when we haveforeground
.I understand why
background
is technically there, but are there any good-looking themes out there that have different background colors for type and for the page itself?I think
monospace
andheadings
color definitions also feel off.The text was updated successfully, but these errors were encountered: