department-of-veterans-affairs / vets-design-system-documentation

Repository for design.va.gov website
https://design.va.gov
37 stars 57 forks source link

Expose semantic color tokens to the component library to be used on vets-website as utility classes #2994

Open josephrlee opened 2 months ago

josephrlee commented 2 months ago

Bug Report

What happened

Trying to use a semantic color token vads-u-color--warning-dark to apply to an icon using what's available in the DST documentation, but it doesn't seem to be available via the component library.

Here is the slack thread for the background convo.

What I expected to happen

I expect to be able to use the vads-u-color--warning-dark as a class like this like I can with the rest of the Foundation colors:

<!-- TODO: Change to va-icon in production -->
<i aria-hidden="true" class="fas fa-exclamation-triangle fa-md vads-u-margin-right--0p5 vads-u-color--warning-dark"></i>

I'd like to have all the semantic colors added to the utilities so that I can use them as utility classes to style a component.

Reproducing

Steps to reproduce:

  1. Try to apply a semantic color class as a utility class to style a component.

Urgency

How urgent is this request? Please select the appropriate option below and/or provide details

Details

caw310 commented 2 months ago

Hey team! Please add your planning poker estimate with Zenhub @Andrew565 @ataker @harshil1793 @it-harrison @jamigibbs @micahchiang @nickjg231 @powellkerry @rmessina1010 @rsmithadhoc

micahchiang commented 1 week ago

This ticket is really about adding a new map to this file where names are semantic and values are existing scss variables