Open Bug 1889645 Opened 10 months ago Updated 10 months ago

Style dictionary logging is overly verbose, warnings should be suppressed

Categories

(Toolkit :: Themes, task, P3)

task

Tracking

()

People

(Reporter: hjones, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

In Bug 1850611 we introduced a Style Dictionary backed workflow for generating CSS files from a JSON tokens file. Because of the configuration options we use and the fact that we split our CSS into three different files that depend on on another, whenever we build we get overly verbose warning messages to the effect of:

While building tokens-brand.css, filtered out token references were found; output may be unexpected. Here are the references that are used but not defined in the file

In our case, this is expected because many of our base/shared CSS variables are defined in tokens-shared.css, which gets @imported by both tokens-brand.css and tokens-platform.css. Both of those consuming files reference variables that are defined in tokens-shared.css, and Style Dictionary isn't happy about that even though it's not a real problem.

These warnings are a known issue with Style Dictionary that is expected to be fixed as part of the v4 release. When we upgrade we should look into changing our error level to "warn" and/or modifying the verbosity - see here for configuration options.

Whiteboard: [recomp]

Feel free to change the priority if this is a more urgent problem

Severity: -- → N/A
Type: defect → task
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: