[discovery] Ensure generated CSS utility classes from style-dictionary
use CSS variables instead of resolved values
#2016
Labels
style-dictionary
use CSS variables instead of resolved values
#2016
Description
Currently, the
style-dictionary
config generates autility-classes.css
file. This file contains many CSS utility classes but use hardcoded (i.e., resolved) values rather than referencing an associated CSS variable.Example:
As is,
.bg-dark
andvar(--pgn-color-dark-base)
are essentially the same. If, however, thevar(--pgn-color-dark-base)
CSS variable is changed at runtime (e.g., manually overridden in the application instead of changing the theme tokens), it'll update styles using the CSS variable but any usage of the.bg-dark
utility class would remain the original color, not the custom overridden one, when before these color values represented the same thing.Acceptance Criteria
The text was updated successfully, but these errors were encountered: