in script/lib/variable-collection.ts [40:59]
public add(path: PathItem[], value: any) {
if (Array.isArray(value)) {
for (const idx in value) {
const newPath = [...path, idx]
this.add(newPath, value[idx])
}
return
}
const fullName = getFullName(this.prefix, path)
if (value === 'transparent') {
value = 'rgba(0,0,0,0)'
}
const variable: ModeVariable = {name: fullName, path, value}
this.data.set(fullName, variable)
}