Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Refactor fonts #18

@baetheus

Description

@baetheus

Currently font size is scaled based on a single font with separate classes for font-size and font-weight and no consideration for multiple fonts or vertical rhythm. This feature is an ask for the following:

  1. Define font groupings like color themes are currently defined. Each group includes a font family, a base font size in em relative to a base font size of 16px, and a base line-height as multiple of global line-height. Default to two fonts, serif and sans-serif.
  2. The font-size, font-weight, and font-family classes should stay unchanged.
  3. A new fls (line-size) class should be added that sets line heights (1, 2, 3, 4, 5)
  4. A new fg (font-group) class should be added that sets font-family, the font-size (group defined), the font-weight (group defined), and the line height (group defined).
  5. A new fr (font-rhythm) class should mirror the font-size classes but also scale the line height ratio accordingly.

Potential issues. It appears that web fonts don't align to baseline or respect top cap spacing, so vertical rhythm will still be off.

Metadata

Metadata

Assignees

Labels

v10Version 10

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions