Skip to content

[Bug]: alwaysAddFontStyle Affects Font Weight Tokens Incorrectly #298

Description

@wannesdebacker

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

Metadata

Metadata

Assignees

Labels

triageTo be reproduced as bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions