@polyfen/polykit-tokens 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contrast.pairs.mjs +12 -2
- package/dist/_tokens.scss +6 -0
- package/dist/brand-contract.json +4 -0
- package/dist/brands/coral.css +17 -9
- package/dist/brands/coral.json +124 -34
- package/dist/brands/emerald.css +22 -0
- package/dist/brands/{violet.json → emerald.json} +70 -60
- package/dist/brands/indigo.css +17 -9
- package/dist/brands/indigo.json +96 -32
- package/dist/brands/magenta.css +22 -0
- package/dist/brands/magenta.json +192 -0
- package/dist/brands/orange.css +22 -0
- package/dist/brands/orange.json +210 -0
- package/dist/brands/pink.css +22 -0
- package/dist/brands/pink.json +167 -0
- package/dist/brands/purple.css +10 -2
- package/dist/brands/purple.json +74 -4
- package/dist/brands/sky.css +17 -9
- package/dist/brands/sky.json +98 -34
- package/dist/brands/teal.css +10 -2
- package/dist/brands/teal.json +70 -12
- package/dist/brands/yellow.css +22 -0
- package/dist/brands/yellow.json +173 -0
- package/dist/index.d.ts +321 -71
- package/dist/index.js +327 -77
- package/dist/shadcn.css +1 -1
- package/dist/tailwind.css +3 -0
- package/dist/tokens-studio.json +43 -5
- package/dist/tokens.css +16 -4
- package/dist/tokens.dark.css +10 -2
- package/dist/tokens.json +16 -4
- package/dist/tokens.light.css +10 -2
- package/lib/brand.mjs +5 -1
- package/package.json +1 -1
- package/dist/brands/violet.css +0 -20
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yellow",
|
|
3
|
+
"description": "Fictional example brand: Yellow primary accent, with a magenta secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#e5ac00",
|
|
9
|
+
"value": "#e5ac00"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#ebbd33",
|
|
13
|
+
"value": "#ebbd33"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#fdf6dc",
|
|
17
|
+
"value": "#fdf6dc"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#f8e5a3",
|
|
21
|
+
"value": "#f8e5a3"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#5c4300",
|
|
25
|
+
"value": "#5c4300"
|
|
26
|
+
},
|
|
27
|
+
"accent-fill": {
|
|
28
|
+
"css": "#f5c21b",
|
|
29
|
+
"value": "#f5c21b"
|
|
30
|
+
},
|
|
31
|
+
"on-accent": {
|
|
32
|
+
"css": "var(--pk-slate-900)",
|
|
33
|
+
"value": "#080b12"
|
|
34
|
+
},
|
|
35
|
+
"focus-field": {
|
|
36
|
+
"css": "#8f6c00",
|
|
37
|
+
"value": "#8f6c00"
|
|
38
|
+
},
|
|
39
|
+
"focus-halo": {
|
|
40
|
+
"css": "rgb(229 172 0 / 0.3)",
|
|
41
|
+
"value": "rgb(229 172 0 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "#c8197a",
|
|
45
|
+
"value": "#c8197a"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "#dc3f93",
|
|
49
|
+
"value": "#dc3f93"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "#fde9f3",
|
|
53
|
+
"value": "#fde9f3"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "#f8c5df",
|
|
57
|
+
"value": "#f8c5df"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "#650b3c",
|
|
61
|
+
"value": "#650b3c"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "#c8197a",
|
|
65
|
+
"value": "#c8197a"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"dark": {
|
|
73
|
+
"accent": {
|
|
74
|
+
"css": "#f4d10b",
|
|
75
|
+
"value": "#f4d10b"
|
|
76
|
+
},
|
|
77
|
+
"accent-hover": {
|
|
78
|
+
"css": "#f8e15e",
|
|
79
|
+
"value": "#f8e15e"
|
|
80
|
+
},
|
|
81
|
+
"accent-tint": {
|
|
82
|
+
"css": "#25210f",
|
|
83
|
+
"value": "#25210f"
|
|
84
|
+
},
|
|
85
|
+
"accent-tint-strong": {
|
|
86
|
+
"css": "#3d3512",
|
|
87
|
+
"value": "#3d3512"
|
|
88
|
+
},
|
|
89
|
+
"on-accent-tint": {
|
|
90
|
+
"css": "#f8e15e",
|
|
91
|
+
"value": "#f8e15e"
|
|
92
|
+
},
|
|
93
|
+
"accent-fill": {
|
|
94
|
+
"css": "#f5c21b",
|
|
95
|
+
"value": "#f5c21b"
|
|
96
|
+
},
|
|
97
|
+
"on-accent": {
|
|
98
|
+
"css": "var(--pk-slate-900)",
|
|
99
|
+
"value": "#080b12"
|
|
100
|
+
},
|
|
101
|
+
"focus-field": {
|
|
102
|
+
"css": "#f4d10b",
|
|
103
|
+
"value": "#f4d10b"
|
|
104
|
+
},
|
|
105
|
+
"focus-halo": {
|
|
106
|
+
"css": "rgb(244 209 11 / 0.3)",
|
|
107
|
+
"value": "rgb(244 209 11 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "#ff66b2",
|
|
111
|
+
"value": "#ff66b2"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "#ff8fc6",
|
|
115
|
+
"value": "#ff8fc6"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "#34112a",
|
|
119
|
+
"value": "#34112a"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "#541a43",
|
|
123
|
+
"value": "#541a43"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "#ffb0d6",
|
|
127
|
+
"value": "#ffb0d6"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "#c8197a",
|
|
131
|
+
"value": "#c8197a"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"font": {},
|
|
140
|
+
"headingWeight": null,
|
|
141
|
+
"exceptions": {
|
|
142
|
+
"color.accent on color.canvas": {
|
|
143
|
+
"themes": [
|
|
144
|
+
"light"
|
|
145
|
+
],
|
|
146
|
+
"reason": "The yellow accent is a shape on light surfaces, never text, under 3:1 on the page as any yellow is, and always paired with a second cue such as weight, ink or fill, as the default orange is (principle 4). Its focus ring is a darker gold that passes."
|
|
147
|
+
},
|
|
148
|
+
"color.accent on color.surface": {
|
|
149
|
+
"themes": [
|
|
150
|
+
"light"
|
|
151
|
+
],
|
|
152
|
+
"reason": "The yellow accent is a shape on light surfaces, never text, under 3:1 on the page as any yellow is, and always paired with a second cue such as weight, ink or fill, as the default orange is (principle 4). Its focus ring is a darker gold that passes."
|
|
153
|
+
},
|
|
154
|
+
"color.chart-1 on color.surface": {
|
|
155
|
+
"themes": [
|
|
156
|
+
"light"
|
|
157
|
+
],
|
|
158
|
+
"reason": "The yellow accent is a shape on light surfaces, never text, under 3:1 on the page as any yellow is, and always paired with a second cue such as weight, ink or fill, as the default orange is (principle 4). Its focus ring is a darker gold that passes."
|
|
159
|
+
},
|
|
160
|
+
"color.accent on color.accent-tint": {
|
|
161
|
+
"themes": [
|
|
162
|
+
"light"
|
|
163
|
+
],
|
|
164
|
+
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
165
|
+
},
|
|
166
|
+
"color.warning on color.accent-tint": {
|
|
167
|
+
"themes": [
|
|
168
|
+
"light"
|
|
169
|
+
],
|
|
170
|
+
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|