Skip to content

[css-fonts-4] Additional keywords for font-weight? #9128

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

Closed
BenjaminAster opened this issue Jul 30, 2023 · 2 comments
Closed

[css-fonts-4] Additional keywords for font-weight? #9128

BenjaminAster opened this issue Jul 30, 2023 · 2 comments
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

Comments

@BenjaminAster
Copy link

Currently, only the numbers 400 (normal) and 700 (bold) have their own font-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 a font-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 to font-weight simply as aliases of numbers, e.g.

  • thin = 100
  • extralight = 200
  • light = 300
  • medium = 500
  • semibold = 600
  • extrabold = 800
  • heavy = 900
@Loirooriol
Copy link
Contributor

See #4048

@Loirooriol Loirooriol added the css-fonts-4 Current Work label Jul 30, 2023
@BenjaminAster
Copy link
Author

Ah, I didn't see that, thanks!

@svgeesus svgeesus added the Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants