Skip to main content

Use CSS var names instead of hex codes for colors in inspect code view


Vincent_Spallek

Select a component, then click on the Inspect pane and look at the generated code. It will contain entries like:

/* gray-262_20/gray-262_20-33 */
background: #494C65;

Developers won’t use this code. They will use the CSS variable names as defined under Design – Color Styles.

Desired output:

background: var(--gray-262_20-33);

Please fix. Thanks.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings