With this nested color declarations in DESIGN.md
colors:
background:
light: '#fbfaf1'
dark: '#11140e'
on-background:
light: '#1b1c17'
dark: '#e4e3da'
Running npx @google/design.md lint DESIGN.md gives this error
{
"findings": [
{
"severity": "error",
"message": "Unexpected error during model building: colorStr.trim is not a function"
}
],
"summary": {
"errors": 1,
"warnings": 0,
"infos": 0
}
}
With this nested color declarations in DESIGN.md
Running
npx @google/design.md lint DESIGN.mdgives this error{ "findings": [ { "severity": "error", "message": "Unexpected error during model building: colorStr.trim is not a function" } ], "summary": { "errors": 1, "warnings": 0, "infos": 0 } }