WordPress / theme-experiments

Experimenting with themes made out of blocks.
GNU General Public License v2.0
549 stars 183 forks source link

TT1 Blocks Font Weight Value to Headings #239

Closed carolinan closed 3 years ago

carolinan commented 3 years ago

Alternative to #135 and #211, using a custom variable for the font weight for the title blocks.

Since https://github.com/WordPress/gutenberg/pull/29941, neither this PR or #211 relies on https://github.com/WordPress/gutenberg/pull/27639

carolinan commented 3 years ago

I double checked with Twenty Twenty-One:

h1-h3: normal h4-h6: strong (browser default)

site title: normal

h1.entry-title (single view post/page title): 300

I am not sure why this comment https://github.com/WordPress/theme-experiments/pull/93#discussion_r539419475 says H1 should be light? Not all H1 are also going to be .has-huge-font-size, .has-gigantic-font-size.