department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
0 stars 0 forks source link

Discovery - Design Tokens: Create structure for semantic tokens #163

Closed jessicawoodin closed 3 months ago

jessicawoodin commented 5 months ago

Now that we have our primitive colors tokens pulling in from VADS, we need to create the structure for semantic color tokens.

Semantic color tokens will:

Examples of color tokens (found in Alert component) are:

AC:

narin commented 3 months ago

After multiple discussions with @jessicawoodin we tried to find a way to best format the files in a way for easy Figma import. While we were able to determine a method to import dark and light tokens into figma variables, we couldn't figure out a way to also take advantage of Figma's "Modes" feature. We decided that both the input and output json files should be separated by file into primitive, semantic-light, and semantic-dark files. We also decided on using on-dark and on-light as suffixes for our modes. Follow-up tickets are as follows: