Replace hard-coded font-weight
values with CSS custom properties
#25073
Labels
A-Developer-Experience
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Enhancement
Your use case
What would you like to do?
Replace hard-coded
font-weight
values with CSS custom properties on_font-weights.pcss
. Currently there is just$font-semi-weight: 600
on the file.Why would you like to do it?
Because the style guide suggests you to use a variable for a font property. CSS custom properties have been implemented for other properties such as spacing and font-size, and they should be specified for font-weight as well.
How would you like to achieve it?
Add variables for font-weight 400, 500, 700, 900, etc.
Have you considered any alternatives?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: