amzn/style-dictionary

View on GitHub
__tests__/__properties/nonString.json

Summary

Maintainability
Test Coverage
{
  "color": {
    "red": {
      "value": {
        "r": 255,
        "g": 0,
        "b": 0,
        "a": 1
      }
    },
    "otherRed": {
      "value": "{color.red.value}"
    }
  },

  "size": {
    "large": {
      "value": 20
    },
    "otherLarge": {
      "value": "{size.large.value}"
    }
  },

  "number": {
    "test": { "value": 20 },
    "otherTest": { "value": "{number.test.value}" }
  },

  "array": {
    "test": { "value": ["foo","bar"] },
    "otherTest": { "value": "{array.test.value}" }
  },

  "object": {
    "test": {
      "value": {
        "foo": "bar",
        "test": {
          "bar": "foo"
        }
      }
    },
    "otherTest": { "value": "{object.test.value}" }
  }
}