ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

Patterns, spacing, and typography defaults #156

Closed knice closed 1 year ago

knice commented 1 year ago

This PR is admittedly too broad in scope. That said, here is what changed.

  1. Patterns: remove one, update one, add one.
  2. Typography: introduce a new modular type scale. This change sets defaults available in the editor, and sets defaults for spacing units and line-height based on the same scale. Combined, these options help maintain a vertical rhythm.
  3. Headers and global footer: bring down the size of the global header and set spacing to the new scale. Add spacing above site name, again using spacing units from the modular scale.

Together, this PR begins to solidify the typographic foundation of the theme. Upcoming changes will include spacing between blocks, which is current set too small.

One more thing, this PR adds a site "style" (WordPress terminology) to experiment with the possibility of using styles to provide approved design variations within the theme.