Skip to content

Nesting of colors produce error. #102

Description

@vikks

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions