terribleMia’s avatarterribleMia’s Twitter Archive—№ 6,403

  1. Design token storage should support: - human & machine readable structure - aliases & more complex relationships - design-specific types (colors, lengths, etc) - typed adjustments (color mixing, unit math, etc) YAML/JSON string interpolation is not enough
    1. …in reply to @TerribleMia
      There are workarounds: - YAML: github.com/Shopify/polaris-tokens/blob/master/tokens/colors.yml#L71 - Sass: oddbird.net/accoutrement/docs/core-get.html#functional-adjustments But I'd love to see a language handle this all natively. Sass is best at support for design types/manipulations, but structured data (map keys) can't easily cross-reference.