Skip to content

Commit b0addc0

Browse files
authored
Fix the generation of asymmetric tokens on iOS. (#170)
* Generate .colorset assets for asymmetric tokens on iOS. * Reference asymmetric colorset assets from the semantic tokens.
1 parent 62104d5 commit b0addc0

File tree

18 files changed

+586
-85
lines changed

18 files changed

+586
-85
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal",
5+
"color": {
6+
"color-space": "srgb",
7+
"components": {
8+
"alpha": "1.0000",
9+
"red": "1.0000",
10+
"green": "1.0000",
11+
"blue": "1.0000"
12+
}
13+
}
14+
},
15+
{
16+
"idiom": "universal",
17+
"appearances": [
18+
{
19+
"appearance": "contrast",
20+
"value": "high"
21+
}
22+
],
23+
"color": {
24+
"color-space": "srgb",
25+
"components": {
26+
"alpha": "1.0000",
27+
"red": "1.0000",
28+
"green": "1.0000",
29+
"blue": "1.0000"
30+
}
31+
}
32+
},
33+
{
34+
"idiom": "universal",
35+
"appearances": [
36+
{
37+
"appearance": "luminosity",
38+
"value": "dark"
39+
}
40+
],
41+
"color": {
42+
"color-space": "srgb",
43+
"components": {
44+
"alpha": "1.0000",
45+
"red": "0.1137",
46+
"green": "0.1216",
47+
"blue": "0.1412"
48+
}
49+
}
50+
},
51+
{
52+
"idiom": "universal",
53+
"appearances": [
54+
{
55+
"appearance": "luminosity",
56+
"value": "dark"
57+
},
58+
{
59+
"appearance": "contrast",
60+
"value": "high"
61+
}
62+
],
63+
"color": {
64+
"color-space": "srgb",
65+
"components": {
66+
"alpha": "1.0000",
67+
"red": "0.1490",
68+
"green": "0.1569",
69+
"blue": "0.1765"
70+
}
71+
}
72+
}
73+
],
74+
"info": {
75+
"author": "xcode",
76+
"version": 1
77+
}
78+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal",
5+
"color": {
6+
"color-space": "srgb",
7+
"components": {
8+
"alpha": "1.0000",
9+
"red": "0.9412",
10+
"green": "0.9490",
11+
"blue": "0.9608"
12+
}
13+
}
14+
},
15+
{
16+
"idiom": "universal",
17+
"appearances": [
18+
{
19+
"appearance": "contrast",
20+
"value": "high"
21+
}
22+
],
23+
"color": {
24+
"color-space": "srgb",
25+
"components": {
26+
"alpha": "1.0000",
27+
"red": "0.8824",
28+
"green": "0.9020",
29+
"blue": "0.9255"
30+
}
31+
}
32+
},
33+
{
34+
"idiom": "universal",
35+
"appearances": [
36+
{
37+
"appearance": "luminosity",
38+
"value": "dark"
39+
}
40+
],
41+
"color": {
42+
"color-space": "srgb",
43+
"components": {
44+
"alpha": "1.0000",
45+
"red": "0.0627",
46+
"green": "0.0745",
47+
"blue": "0.0902"
48+
}
49+
}
50+
},
51+
{
52+
"idiom": "universal",
53+
"appearances": [
54+
{
55+
"appearance": "luminosity",
56+
"value": "dark"
57+
},
58+
{
59+
"appearance": "contrast",
60+
"value": "high"
61+
}
62+
],
63+
"color": {
64+
"color-space": "srgb",
65+
"components": {
66+
"alpha": "1.0000",
67+
"red": "0.0627",
68+
"green": "0.0745",
69+
"blue": "0.0902"
70+
}
71+
}
72+
}
73+
],
74+
"info": {
75+
"author": "xcode",
76+
"version": 1
77+
}
78+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal",
5+
"color": {
6+
"color-space": "srgb",
7+
"components": {
8+
"alpha": "1.0000",
9+
"red": "0.5961",
10+
"green": "0.8824",
11+
"blue": "0.7569"
12+
}
13+
}
14+
},
15+
{
16+
"idiom": "universal",
17+
"appearances": [
18+
{
19+
"appearance": "contrast",
20+
"value": "high"
21+
}
22+
],
23+
"color": {
24+
"color-space": "srgb",
25+
"components": {
26+
"alpha": "1.0000",
27+
"red": "0.4431",
28+
"green": "0.8431",
29+
"blue": "0.6824"
30+
}
31+
}
32+
},
33+
{
34+
"idiom": "universal",
35+
"appearances": [
36+
{
37+
"appearance": "luminosity",
38+
"value": "dark"
39+
}
40+
],
41+
"color": {
42+
"color-space": "srgb",
43+
"components": {
44+
"alpha": "1.0000",
45+
"red": "0.1216",
46+
"green": "0.7529",
47+
"blue": "0.5647"
48+
}
49+
}
50+
},
51+
{
52+
"idiom": "universal",
53+
"appearances": [
54+
{
55+
"appearance": "luminosity",
56+
"value": "dark"
57+
},
58+
{
59+
"appearance": "contrast",
60+
"value": "high"
61+
}
62+
],
63+
"color": {
64+
"color-space": "srgb",
65+
"components": {
66+
"alpha": "1.0000",
67+
"red": "0.5608",
68+
"green": "0.8667",
69+
"blue": "0.7373"
70+
}
71+
}
72+
}
73+
],
74+
"info": {
75+
"author": "xcode",
76+
"version": 1
77+
}
78+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal",
5+
"color": {
6+
"color-space": "srgb",
7+
"components": {
8+
"alpha": "1.0000",
9+
"red": "0.0431",
10+
"green": "0.7686",
11+
"blue": "0.5686"
12+
}
13+
}
14+
},
15+
{
16+
"idiom": "universal",
17+
"appearances": [
18+
{
19+
"appearance": "contrast",
20+
"value": "high"
21+
}
22+
],
23+
"color": {
24+
"color-space": "srgb",
25+
"components": {
26+
"alpha": "1.0000",
27+
"red": "0.0000",
28+
"green": "0.6353",
29+
"blue": "0.4863"
30+
}
31+
}
32+
},
33+
{
34+
"idiom": "universal",
35+
"appearances": [
36+
{
37+
"appearance": "luminosity",
38+
"value": "dark"
39+
}
40+
],
41+
"color": {
42+
"color-space": "srgb",
43+
"components": {
44+
"alpha": "1.0000",
45+
"red": "0.0706",
46+
"green": "0.6039",
47+
"blue": "0.4706"
48+
}
49+
}
50+
},
51+
{
52+
"idiom": "universal",
53+
"appearances": [
54+
{
55+
"appearance": "luminosity",
56+
"value": "dark"
57+
},
58+
{
59+
"appearance": "contrast",
60+
"value": "high"
61+
}
62+
],
63+
"color": {
64+
"color-space": "srgb",
65+
"components": {
66+
"alpha": "1.0000",
67+
"red": "0.2157",
68+
"green": "0.7882",
69+
"blue": "0.5961"
70+
}
71+
}
72+
}
73+
],
74+
"info": {
75+
"author": "xcode",
76+
"version": 1
77+
}
78+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal",
5+
"color": {
6+
"color-space": "srgb",
7+
"components": {
8+
"alpha": "1.0000",
9+
"red": "0.0000",
10+
"green": "0.4784",
11+
"blue": "0.3804"
12+
}
13+
}
14+
},
15+
{
16+
"idiom": "universal",
17+
"appearances": [
18+
{
19+
"appearance": "contrast",
20+
"value": "high"
21+
}
22+
],
23+
"color": {
24+
"color-space": "srgb",
25+
"components": {
26+
"alpha": "1.0000",
27+
"red": "0.0000",
28+
"green": "0.3333",
29+
"blue": "0.2392"
30+
}
31+
}
32+
},
33+
{
34+
"idiom": "universal",
35+
"appearances": [
36+
{
37+
"appearance": "luminosity",
38+
"value": "dark"
39+
}
40+
],
41+
"color": {
42+
"color-space": "srgb",
43+
"components": {
44+
"alpha": "1.0000",
45+
"red": "0.0000",
46+
"green": "0.3529",
47+
"blue": "0.2627"
48+
}
49+
}
50+
},
51+
{
52+
"idiom": "universal",
53+
"appearances": [
54+
{
55+
"appearance": "luminosity",
56+
"value": "dark"
57+
},
58+
{
59+
"appearance": "contrast",
60+
"value": "high"
61+
}
62+
],
63+
"color": {
64+
"color-space": "srgb",
65+
"components": {
66+
"alpha": "1.0000",
67+
"red": "0.0000",
68+
"green": "0.4549",
69+
"blue": "0.3608"
70+
}
71+
}
72+
}
73+
],
74+
"info": {
75+
"author": "xcode",
76+
"version": 1
77+
}
78+
}

0 commit comments

Comments
 (0)