File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,11 @@ const generateColorName = (theme, colorName) => {
98
98
if ( parts . length > 2 ) {
99
99
state = parts [ 3 ] ;
100
100
}
101
- if ( colorName === "db-brand/on/enabled" ) {
102
- state = parts [ 2 ] ;
103
- }
101
+
104
102
if ( color === "bg-weak" ) {
105
103
return `${ theme } /${ componentName } /${ on } /bg/weak-${ state } ` ;
106
- } else if ( color === "bg" || color === "contrast" ) {
107
- return `${ theme } /${ componentName } /${ on } /${ color } /${ state } ` ;
108
104
}
109
- return `${ theme } /${ componentName } /${ on } /${ state } ` ;
105
+ return `${ theme } /${ componentName } /${ on } /${ color } / ${ state } ` ;
110
106
}
111
107
112
108
if ( color . includes ( "bg-lvl-" ) ) {
@@ -197,7 +193,6 @@ const importThemes = async () => {
197
193
const alpha = 1 - transparencyPercentage / 100 ;
198
194
199
195
const newNames = generateColorName ( theme , colorName ) ;
200
- //console.log(newNames);
201
196
createSwatch ( document , newNames , hexValue , alpha ) ;
202
197
}
203
198
} ;
You can’t perform that action at this time.
0 commit comments