What happened?
I've encountered an issue with the alwaysAddFontStyle option in version 1.2.0 that affects fontWeight tokens. AlwaysAddFontStyle should probably only affect typography tokens.
For example we get the following result.
--font-weight-primary-regular-weight: bold;
--font-weight-primary-regular-style: normal;
Reproduction
Configurator Link
Here you see the fontStyle being added unneeded. If you remove alwaysAddFontStyle the tokens are what we expect.
Expected output
--font-weight-primary-regular: 700;
Version
1.2.0
What happened?
I've encountered an issue with the alwaysAddFontStyle option in version 1.2.0 that affects fontWeight tokens. AlwaysAddFontStyle should probably only affect
typographytokens.For example we get the following result.
Reproduction
Configurator Link
Here you see the
fontStylebeing added unneeded. If you removealwaysAddFontStylethe tokens are what we expect.Expected output
--font-weight-primary-regular: 700;Version
1.2.0