Skip to content

Commit

Permalink
Add semantic color support (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarahoda committed Mar 4, 2021
1 parent 6ff1438 commit c880c1b
Show file tree
Hide file tree
Showing 8 changed files with 2,823 additions and 2,803 deletions.
5,531 changes: 2,756 additions & 2,775 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@types/jest": "^25.1.2",
"@zeplin/extension-model": "^2.9.0",
"@zeplin/extension-model": "^2.11.0",
"adm-zip": "^0.4.11",
"ajv": "^6.12.0",
"babel-jest": "^25.1.0",
Expand Down
11 changes: 7 additions & 4 deletions src/sample-data/componentVariants.json
Expand Up @@ -195,7 +195,8 @@
"r": 255,
"b": 255,
"g": 255,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
}
Expand Down Expand Up @@ -329,7 +330,8 @@
"r": 255,
"b": 255,
"g": 255,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
}
Expand Down Expand Up @@ -1350,7 +1352,8 @@
"r": 48,
"b": 255,
"g": 168,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
],
Expand Down Expand Up @@ -2492,4 +2495,4 @@
}
]
}
]
]
31 changes: 23 additions & 8 deletions src/sample-data/project.json
Expand Up @@ -13,49 +13,64 @@
"g": 0,
"b": 0,
"a": 1,
"name": "red"
"name": "red",
"sourceId": "655bd9de-1c8d-4ca3-9356-bc244a2b697e"
},
{
"r": 0,
"g": 255,
"b": 0,
"a": 1,
"name": "green"
"name": "green",
"sourceId": "7db136dd-7e06-43b8-8c44-13b1f7425e6c"
},
{
"r": 0,
"g": 0,
"b": 255,
"a": 1,
"name": "blue"
"name": "blue",
"sourceId": "cc0496f7-fdab-4996-9ff7-f43cc269c4f6"
},
{
"r": 0,
"g": 0,
"b": 255,
"a": 1,
"name": "background color",
"sourceId": "e719f81a-9ded-4ff1-84f6-e5d0b8cd950c"
},
{
"r": 255,
"g": 255,
"b": 0,
"a": 1,
"name": "yellow"
"name": "yellow",
"sourceId": "375584e6-2dff-4cc3-8d07-dc61e3836c6c"
},
{
"r": 0,
"g": 0,
"b": 0,
"a": 1,
"name": "black"
"name": "black",
"sourceId": "b3be79a3-c886-44de-b3e0-fe5f25684aa8"
},
{
"r": 0,
"g": 0,
"b": 0,
"a": 0.5,
"name": "black50"
"name": "black50",
"sourceId": "64243cac-3cb3-4c09-90dd-e8a33ee27303"
},
{
"r": 255,
"g": 255,
"b": 255,
"a": 1,
"name": "white"
"name": "white",
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
],
"textStyles": [
Expand Down Expand Up @@ -121,4 +136,4 @@
]
}
]
}
}
6 changes: 4 additions & 2 deletions src/sample-data/version.json
Expand Up @@ -518,13 +518,15 @@
"r": 0,
"g": 0,
"b": 255,
"a": 1
"a": 1,
"sourceId": "e719f81a-9ded-4ff1-84f6-e5d0b8cd950c"
},
"color": {
"r": 0,
"g": 0,
"b": 255,
"a": 1
"a": 1,
"sourceId": "e719f81a-9ded-4ff1-84f6-e5d0b8cd950c"
}
}
],
Expand Down
11 changes: 7 additions & 4 deletions src/template/src/fixtures/componentVariants.json
Expand Up @@ -195,7 +195,8 @@
"r": 255,
"b": 255,
"g": 255,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
}
Expand Down Expand Up @@ -329,7 +330,8 @@
"r": 255,
"b": 255,
"g": 255,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
}
Expand Down Expand Up @@ -1350,7 +1352,8 @@
"r": 48,
"b": 255,
"g": 168,
"a": 1
"a": 1,
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
}
],
Expand Down Expand Up @@ -2492,4 +2495,4 @@
}
]
}
]
]
31 changes: 23 additions & 8 deletions src/template/src/fixtures/project.json
Expand Up @@ -13,49 +13,64 @@
"g": 0,
"b": 0,
"a": 1,
"name": "red"
"name": "red",
"sourceId": "655bd9de-1c8d-4ca3-9356-bc244a2b697e"
},
{
"r": 0,
"g": 255,
"b": 0,
"a": 1,
"name": "green"
"name": "green",
"sourceId": "7db136dd-7e06-43b8-8c44-13b1f7425e6c"
},
{
"r": 0,
"g": 0,
"b": 255,
"a": 1,
"name": "blue"
"name": "blue",
"sourceId": "cc0496f7-fdab-4996-9ff7-f43cc269c4f6"
},
{
"r": 0,
"g": 0,
"b": 255,
"a": 1,
"name": "background color",
"sourceId": "e719f81a-9ded-4ff1-84f6-e5d0b8cd950c"
},
{
"r": 255,
"g": 255,
"b": 0,
"a": 1,
"name": "yellow"
"name": "yellow",
"sourceId": "375584e6-2dff-4cc3-8d07-dc61e3836c6c"
},
{
"r": 0,
"g": 0,
"b": 0,
"a": 1,
"name": "black"
"name": "black",
"sourceId": "b3be79a3-c886-44de-b3e0-fe5f25684aa8"
},
{
"r": 0,
"g": 0,
"b": 0,
"a": 0.5,
"name": "black50"
"name": "black50",
"sourceId": "64243cac-3cb3-4c09-90dd-e8a33ee27303"
},
{
"r": 255,
"g": 255,
"b": 255,
"a": 1,
"name": "white"
"name": "white",
"sourceId": "e5a911ed-3626-48ac-8c16-523b0edf0d42"
}
],
"textStyles": [
Expand Down Expand Up @@ -121,4 +136,4 @@
]
}
]
}
}
3 changes: 2 additions & 1 deletion src/template/src/fixtures/version.json
Expand Up @@ -457,7 +457,8 @@
"r": 0,
"g": 0,
"b": 255,
"a": 1
"a": 1,
"sourceId": "e719f81a-9ded-4ff1-84f6-e5d0b8cd950c"
}
}
],
Expand Down

0 comments on commit c880c1b

Please sign in to comment.