Skip to content

Commit

Permalink
fix: do not include legacy color variables in swatches
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow committed Nov 6, 2024
1 parent 23fd87d commit 762b711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ function swatchJsonTransformer( json ) {
sassContent.push(`\t) !default,`);
}

sassContent.push(variables.map( (variable) => `\t$${variable.name}: ${variable.value} !default,`).join( '\n' ));
// Universal variables are also included here as they are part of the a11y swatch
sassContent.push(universal.map( (variable) => `\t$${variable.name}: ${variable.value} !default,`).join( '\n' ));

Expand All @@ -135,6 +134,7 @@ function swatchJsonTransformer( json ) {

return sassContent.join( '\n' );
},
// TODO remove legacy
legacy: () => {
const sassContent = [];
if ( !colorSystem.length ) {
Expand Down

0 comments on commit 762b711

Please sign in to comment.