[css-fonts-4] Additional keywords for font-weight
?
#9128
Labels
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
css-fonts-4
Current Work
Currently, only the numbers
400
(normal) and700
(bold) have their ownfont-weight
keywords. When wanting to use other font weights (e.g. 600, which is often used as a "not so heavy" alternative to 700/bold), you currently have to use a number for that. I personally think that numbers are very unreadable in this case, especially to newcomers. Seeing afont-weight: 600
declaration somewhere without knowing the exact "boldness" mappings basically gives no information to the reader, making the DX pretty bad. Would it be feasable to add more keywords tofont-weight
simply as aliases of numbers, e.g.thin
= 100extralight
= 200light
= 300medium
= 500semibold
= 600extrabold
= 800heavy
= 900The text was updated successfully, but these errors were encountered: