Skip to content

Commit 762b711

Browse files
committed
fix: do not include legacy color variables in swatches
1 parent 23fd87d commit 762b711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ function swatchJsonTransformer( json ) {
123123
sassContent.push(`\t) !default,`);
124124
}
125125

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

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

136135
return sassContent.join( '\n' );
137136
},
137+
// TODO remove legacy
138138
legacy: () => {
139139
const sassContent = [];
140140
if ( !colorSystem.length ) {

0 commit comments

Comments
 (0)