@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,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pink",
|
|
3
|
+
"description": "Fictional example brand: Pink primary accent, with a purple secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#d63f86",
|
|
9
|
+
"value": "#d63f86"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#e06aa1",
|
|
13
|
+
"value": "#e06aa1"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#fce9f2",
|
|
17
|
+
"value": "#fce9f2"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#f6c4dc",
|
|
21
|
+
"value": "#f6c4dc"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#6a1540",
|
|
25
|
+
"value": "#6a1540"
|
|
26
|
+
},
|
|
27
|
+
"accent-fill": {
|
|
28
|
+
"css": "#cf3d82",
|
|
29
|
+
"value": "#cf3d82"
|
|
30
|
+
},
|
|
31
|
+
"on-accent": {
|
|
32
|
+
"css": "#ffffff",
|
|
33
|
+
"value": "#ffffff"
|
|
34
|
+
},
|
|
35
|
+
"focus-field": {
|
|
36
|
+
"css": "#d63f86",
|
|
37
|
+
"value": "#d63f86"
|
|
38
|
+
},
|
|
39
|
+
"focus-halo": {
|
|
40
|
+
"css": "rgb(214 63 134 / 0.3)",
|
|
41
|
+
"value": "rgb(214 63 134 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "#9a4fd0",
|
|
45
|
+
"value": "#9a4fd0"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "#ae72d9",
|
|
49
|
+
"value": "#ae72d9"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "#f3eaf9",
|
|
53
|
+
"value": "#f3eaf9"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "#e1caf1",
|
|
57
|
+
"value": "#e1caf1"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "#482f6b",
|
|
61
|
+
"value": "#482f6b"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "#9a4fd0",
|
|
65
|
+
"value": "#9a4fd0"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"dark": {
|
|
73
|
+
"accent": {
|
|
74
|
+
"css": "#f472b0",
|
|
75
|
+
"value": "#f472b0"
|
|
76
|
+
},
|
|
77
|
+
"accent-hover": {
|
|
78
|
+
"css": "#f799c6",
|
|
79
|
+
"value": "#f799c6"
|
|
80
|
+
},
|
|
81
|
+
"accent-tint": {
|
|
82
|
+
"css": "#33141f",
|
|
83
|
+
"value": "#33141f"
|
|
84
|
+
},
|
|
85
|
+
"accent-tint-strong": {
|
|
86
|
+
"css": "#52203a",
|
|
87
|
+
"value": "#52203a"
|
|
88
|
+
},
|
|
89
|
+
"on-accent-tint": {
|
|
90
|
+
"css": "#fbb6d7",
|
|
91
|
+
"value": "#fbb6d7"
|
|
92
|
+
},
|
|
93
|
+
"accent-fill": {
|
|
94
|
+
"css": "#cf3d82",
|
|
95
|
+
"value": "#cf3d82"
|
|
96
|
+
},
|
|
97
|
+
"on-accent": {
|
|
98
|
+
"css": "#ffffff",
|
|
99
|
+
"value": "#ffffff"
|
|
100
|
+
},
|
|
101
|
+
"focus-field": {
|
|
102
|
+
"css": "#f472b0",
|
|
103
|
+
"value": "#f472b0"
|
|
104
|
+
},
|
|
105
|
+
"focus-halo": {
|
|
106
|
+
"css": "rgb(244 114 176 / 0.3)",
|
|
107
|
+
"value": "rgb(244 114 176 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "#c08ae8",
|
|
111
|
+
"value": "#c08ae8"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "#d3adef",
|
|
115
|
+
"value": "#d3adef"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "#2b2224",
|
|
119
|
+
"value": "#2b2224"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "#3e303e",
|
|
123
|
+
"value": "#3e303e"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "#dcbff2",
|
|
127
|
+
"value": "#dcbff2"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "#9a4fd0",
|
|
131
|
+
"value": "#9a4fd0"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"font": {},
|
|
140
|
+
"headingWeight": null,
|
|
141
|
+
"exceptions": {
|
|
142
|
+
"color.danger on color.accent-tint": {
|
|
143
|
+
"themes": [
|
|
144
|
+
"light"
|
|
145
|
+
],
|
|
146
|
+
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are just under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
147
|
+
},
|
|
148
|
+
"color.warning on color.accent-tint": {
|
|
149
|
+
"themes": [
|
|
150
|
+
"light"
|
|
151
|
+
],
|
|
152
|
+
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are just under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
153
|
+
},
|
|
154
|
+
"color.priority-medium on color.accent-tint": {
|
|
155
|
+
"themes": [
|
|
156
|
+
"light"
|
|
157
|
+
],
|
|
158
|
+
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are just under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
159
|
+
},
|
|
160
|
+
"color.cat-teal 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 just under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
package/dist/brands/purple.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Polykit brand "purple".
|
|
2
|
-
* Fictional example brand: Purple primary accent,
|
|
2
|
+
* Fictional example brand: Purple primary accent, with a teal secondary.
|
|
3
3
|
* Opt in with data-brand="purple" on <html> or any element, after tokens.css.
|
|
4
4
|
* Needs light-dark() (Baseline 2024). */
|
|
5
5
|
[data-brand="purple"] {
|
|
@@ -8,7 +8,15 @@
|
|
|
8
8
|
--pk-brand-accent-tint: light-dark(#f3eaf9, #2b2224);
|
|
9
9
|
--pk-brand-accent-tint-strong: light-dark(#e1caf1, #3e303e);
|
|
10
10
|
--pk-brand-on-accent-tint: light-dark(#482f6b, #dcbff2);
|
|
11
|
-
--pk-brand-
|
|
11
|
+
--pk-brand-accent-fill: #9a4fd0;
|
|
12
|
+
--pk-brand-on-accent: #ffffff;
|
|
12
13
|
--pk-brand-focus-field: light-dark(#9a4fd0, #c08ae8);
|
|
13
14
|
--pk-brand-focus-halo: light-dark(rgb(154 79 208 / 0.3), rgb(192 138 232 / 0.3));
|
|
15
|
+
--pk-brand-accent-secondary: light-dark(#00a393, #14e0c8);
|
|
16
|
+
--pk-brand-accent-secondary-hover: light-dark(#33b5a9, #5be9d9);
|
|
17
|
+
--pk-brand-accent-secondary-tint: light-dark(#e0f4f2, #1d251e);
|
|
18
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(#b3e3df, #1c3d34);
|
|
19
|
+
--pk-brand-on-accent-secondary-tint: light-dark(#0a5053, #7eeee1);
|
|
20
|
+
--pk-brand-accent-secondary-fill: #008276;
|
|
21
|
+
--pk-brand-on-accent-secondary: #ffffff;
|
|
14
22
|
}
|
package/dist/brands/purple.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purple",
|
|
3
|
-
"description": "Fictional example brand: Purple primary accent,
|
|
4
|
-
"secondary":
|
|
3
|
+
"description": "Fictional example brand: Purple primary accent, with a teal secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
5
|
"colors": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent": {
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"css": "#482f6b",
|
|
25
25
|
"value": "#482f6b"
|
|
26
26
|
},
|
|
27
|
+
"accent-fill": {
|
|
28
|
+
"css": "#9a4fd0",
|
|
29
|
+
"value": "#9a4fd0"
|
|
30
|
+
},
|
|
27
31
|
"on-accent": {
|
|
28
32
|
"css": "#ffffff",
|
|
29
33
|
"value": "#ffffff"
|
|
@@ -35,6 +39,34 @@
|
|
|
35
39
|
"focus-halo": {
|
|
36
40
|
"css": "rgb(154 79 208 / 0.3)",
|
|
37
41
|
"value": "rgb(154 79 208 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "#00a393",
|
|
45
|
+
"value": "#00a393"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "#33b5a9",
|
|
49
|
+
"value": "#33b5a9"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "#e0f4f2",
|
|
53
|
+
"value": "#e0f4f2"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "#b3e3df",
|
|
57
|
+
"value": "#b3e3df"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "#0a5053",
|
|
61
|
+
"value": "#0a5053"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "#008276",
|
|
65
|
+
"value": "#008276"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
38
70
|
}
|
|
39
71
|
},
|
|
40
72
|
"dark": {
|
|
@@ -58,9 +90,13 @@
|
|
|
58
90
|
"css": "#dcbff2",
|
|
59
91
|
"value": "#dcbff2"
|
|
60
92
|
},
|
|
93
|
+
"accent-fill": {
|
|
94
|
+
"css": "#9a4fd0",
|
|
95
|
+
"value": "#9a4fd0"
|
|
96
|
+
},
|
|
61
97
|
"on-accent": {
|
|
62
|
-
"css": "
|
|
63
|
-
"value": "#
|
|
98
|
+
"css": "#ffffff",
|
|
99
|
+
"value": "#ffffff"
|
|
64
100
|
},
|
|
65
101
|
"focus-field": {
|
|
66
102
|
"css": "#c08ae8",
|
|
@@ -69,6 +105,34 @@
|
|
|
69
105
|
"focus-halo": {
|
|
70
106
|
"css": "rgb(192 138 232 / 0.3)",
|
|
71
107
|
"value": "rgb(192 138 232 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "#14e0c8",
|
|
111
|
+
"value": "#14e0c8"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "#5be9d9",
|
|
115
|
+
"value": "#5be9d9"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "#1d251e",
|
|
119
|
+
"value": "#1d251e"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "#1c3d34",
|
|
123
|
+
"value": "#1c3d34"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "#7eeee1",
|
|
127
|
+
"value": "#7eeee1"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "#008276",
|
|
131
|
+
"value": "#008276"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
72
136
|
}
|
|
73
137
|
}
|
|
74
138
|
},
|
|
@@ -104,6 +168,12 @@
|
|
|
104
168
|
"light"
|
|
105
169
|
],
|
|
106
170
|
"reason": "On the accent tint of a selected row or a pressed stat tile, a few shapes are just under 3:1 in the light theme. Each is paired with text that says the same thing (principle 3)."
|
|
171
|
+
},
|
|
172
|
+
"color.accent-secondary on color.canvas": {
|
|
173
|
+
"themes": [
|
|
174
|
+
"light"
|
|
175
|
+
],
|
|
176
|
+
"reason": "The teal secondary is a shape on light surfaces, never text, under 3:1 on the page, and always paired with a second cue such as weight, ink or fill, as the default orange is (principle 4)."
|
|
107
177
|
}
|
|
108
178
|
}
|
|
109
179
|
}
|
package/dist/brands/sky.css
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
/* Polykit brand "sky".
|
|
2
|
-
* Fictional example brand: Sky blue primary accent,
|
|
2
|
+
* Fictional example brand: Sky blue primary accent, with a purple secondary.
|
|
3
3
|
* Opt in with data-brand="sky" on <html> or any element, after tokens.css.
|
|
4
4
|
* Needs light-dark() (Baseline 2024). */
|
|
5
5
|
[data-brand="sky"] {
|
|
6
|
-
--pk-brand-accent: light-dark(#
|
|
7
|
-
--pk-brand-accent-hover: light-dark(#
|
|
8
|
-
--pk-brand-accent-tint: light-dark(#
|
|
9
|
-
--pk-brand-accent-tint-strong: light-dark(#
|
|
10
|
-
--pk-brand-on-accent-tint: light-dark(#
|
|
11
|
-
--pk-brand-
|
|
12
|
-
--pk-brand-
|
|
13
|
-
--pk-brand-focus-
|
|
6
|
+
--pk-brand-accent: light-dark(#0086d1, #36b4f2);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#33a0e0, #6dc9f6);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#e0f1fb, #16222b);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#afdbf5, #1f3c4f);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#0a4570, #9fdcfb);
|
|
11
|
+
--pk-brand-accent-fill: #007cc2;
|
|
12
|
+
--pk-brand-on-accent: #ffffff;
|
|
13
|
+
--pk-brand-focus-field: light-dark(#0086d1, #36b4f2);
|
|
14
|
+
--pk-brand-focus-halo: light-dark(rgb(0 134 209 / 0.3), rgb(54 180 242 / 0.3));
|
|
15
|
+
--pk-brand-accent-secondary: light-dark(#9a4fd0, #c08ae8);
|
|
16
|
+
--pk-brand-accent-secondary-hover: light-dark(#ae72d9, #d3adef);
|
|
17
|
+
--pk-brand-accent-secondary-tint: light-dark(#f3eaf9, #2b2224);
|
|
18
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(#e1caf1, #3e303e);
|
|
19
|
+
--pk-brand-on-accent-secondary-tint: light-dark(#482f6b, #dcbff2);
|
|
20
|
+
--pk-brand-accent-secondary-fill: #9a4fd0;
|
|
21
|
+
--pk-brand-on-accent-secondary: #ffffff;
|
|
14
22
|
}
|
package/dist/brands/sky.json
CHANGED
|
@@ -1,74 +1,138 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sky",
|
|
3
|
-
"description": "Fictional example brand: Sky blue primary accent,
|
|
4
|
-
"secondary":
|
|
3
|
+
"description": "Fictional example brand: Sky blue primary accent, with a purple secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
5
|
"colors": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent": {
|
|
8
|
-
"css": "#
|
|
9
|
-
"value": "#
|
|
8
|
+
"css": "#0086d1",
|
|
9
|
+
"value": "#0086d1"
|
|
10
10
|
},
|
|
11
11
|
"accent-hover": {
|
|
12
|
-
"css": "#
|
|
13
|
-
"value": "#
|
|
12
|
+
"css": "#33a0e0",
|
|
13
|
+
"value": "#33a0e0"
|
|
14
14
|
},
|
|
15
15
|
"accent-tint": {
|
|
16
|
-
"css": "#
|
|
17
|
-
"value": "#
|
|
16
|
+
"css": "#e0f1fb",
|
|
17
|
+
"value": "#e0f1fb"
|
|
18
18
|
},
|
|
19
19
|
"accent-tint-strong": {
|
|
20
|
-
"css": "#
|
|
21
|
-
"value": "#
|
|
20
|
+
"css": "#afdbf5",
|
|
21
|
+
"value": "#afdbf5"
|
|
22
22
|
},
|
|
23
23
|
"on-accent-tint": {
|
|
24
|
-
"css": "#
|
|
25
|
-
"value": "#
|
|
24
|
+
"css": "#0a4570",
|
|
25
|
+
"value": "#0a4570"
|
|
26
|
+
},
|
|
27
|
+
"accent-fill": {
|
|
28
|
+
"css": "#007cc2",
|
|
29
|
+
"value": "#007cc2"
|
|
26
30
|
},
|
|
27
31
|
"on-accent": {
|
|
28
|
-
"css": "
|
|
29
|
-
"value": "#
|
|
32
|
+
"css": "#ffffff",
|
|
33
|
+
"value": "#ffffff"
|
|
30
34
|
},
|
|
31
35
|
"focus-field": {
|
|
32
|
-
"css": "#
|
|
33
|
-
"value": "#
|
|
36
|
+
"css": "#0086d1",
|
|
37
|
+
"value": "#0086d1"
|
|
34
38
|
},
|
|
35
39
|
"focus-halo": {
|
|
36
|
-
"css": "rgb(
|
|
37
|
-
"value": "rgb(
|
|
40
|
+
"css": "rgb(0 134 209 / 0.3)",
|
|
41
|
+
"value": "rgb(0 134 209 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "#9a4fd0",
|
|
45
|
+
"value": "#9a4fd0"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "#ae72d9",
|
|
49
|
+
"value": "#ae72d9"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "#f3eaf9",
|
|
53
|
+
"value": "#f3eaf9"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "#e1caf1",
|
|
57
|
+
"value": "#e1caf1"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "#482f6b",
|
|
61
|
+
"value": "#482f6b"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "#9a4fd0",
|
|
65
|
+
"value": "#9a4fd0"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
38
70
|
}
|
|
39
71
|
},
|
|
40
72
|
"dark": {
|
|
41
73
|
"accent": {
|
|
42
|
-
"css": "#
|
|
43
|
-
"value": "#
|
|
74
|
+
"css": "#36b4f2",
|
|
75
|
+
"value": "#36b4f2"
|
|
44
76
|
},
|
|
45
77
|
"accent-hover": {
|
|
46
|
-
"css": "#
|
|
47
|
-
"value": "#
|
|
78
|
+
"css": "#6dc9f6",
|
|
79
|
+
"value": "#6dc9f6"
|
|
48
80
|
},
|
|
49
81
|
"accent-tint": {
|
|
50
|
-
"css": "#
|
|
51
|
-
"value": "#
|
|
82
|
+
"css": "#16222b",
|
|
83
|
+
"value": "#16222b"
|
|
52
84
|
},
|
|
53
85
|
"accent-tint-strong": {
|
|
54
|
-
"css": "#
|
|
55
|
-
"value": "#
|
|
86
|
+
"css": "#1f3c4f",
|
|
87
|
+
"value": "#1f3c4f"
|
|
56
88
|
},
|
|
57
89
|
"on-accent-tint": {
|
|
58
|
-
"css": "#
|
|
59
|
-
"value": "#
|
|
90
|
+
"css": "#9fdcfb",
|
|
91
|
+
"value": "#9fdcfb"
|
|
92
|
+
},
|
|
93
|
+
"accent-fill": {
|
|
94
|
+
"css": "#007cc2",
|
|
95
|
+
"value": "#007cc2"
|
|
60
96
|
},
|
|
61
97
|
"on-accent": {
|
|
62
|
-
"css": "
|
|
63
|
-
"value": "#
|
|
98
|
+
"css": "#ffffff",
|
|
99
|
+
"value": "#ffffff"
|
|
64
100
|
},
|
|
65
101
|
"focus-field": {
|
|
66
|
-
"css": "#
|
|
67
|
-
"value": "#
|
|
102
|
+
"css": "#36b4f2",
|
|
103
|
+
"value": "#36b4f2"
|
|
68
104
|
},
|
|
69
105
|
"focus-halo": {
|
|
70
|
-
"css": "rgb(
|
|
71
|
-
"value": "rgb(
|
|
106
|
+
"css": "rgb(54 180 242 / 0.3)",
|
|
107
|
+
"value": "rgb(54 180 242 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "#c08ae8",
|
|
111
|
+
"value": "#c08ae8"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "#d3adef",
|
|
115
|
+
"value": "#d3adef"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "#2b2224",
|
|
119
|
+
"value": "#2b2224"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "#3e303e",
|
|
123
|
+
"value": "#3e303e"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "#dcbff2",
|
|
127
|
+
"value": "#dcbff2"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "#9a4fd0",
|
|
131
|
+
"value": "#9a4fd0"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
72
136
|
}
|
|
73
137
|
}
|
|
74
138
|
},
|
package/dist/brands/teal.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Polykit brand "teal".
|
|
2
|
-
* Fictional example brand: Teal primary accent,
|
|
2
|
+
* Fictional example brand: Teal primary accent, with an indigo secondary.
|
|
3
3
|
* Opt in with data-brand="teal" on <html> or any element, after tokens.css.
|
|
4
4
|
* Needs light-dark() (Baseline 2024). */
|
|
5
5
|
[data-brand="teal"] {
|
|
@@ -8,7 +8,15 @@
|
|
|
8
8
|
--pk-brand-accent-tint: light-dark(#e0f4f2, #1d251e);
|
|
9
9
|
--pk-brand-accent-tint-strong: light-dark(#b3e3df, #1c3d34);
|
|
10
10
|
--pk-brand-on-accent-tint: light-dark(#0a5053, #7eeee1);
|
|
11
|
-
--pk-brand-
|
|
11
|
+
--pk-brand-accent-fill: #008276;
|
|
12
|
+
--pk-brand-on-accent: #ffffff;
|
|
12
13
|
--pk-brand-focus-field: light-dark(#00a393, #14e0c8);
|
|
13
14
|
--pk-brand-focus-halo: light-dark(rgb(0 163 147 / 0.3), rgb(20 224 200 / 0.3));
|
|
15
|
+
--pk-brand-accent-secondary: light-dark(#7a55f5, #a183ff);
|
|
16
|
+
--pk-brand-accent-secondary-hover: light-dark(#9274f7, #bba6ff);
|
|
17
|
+
--pk-brand-accent-secondary-tint: light-dark(#efe9fe, #1f1838);
|
|
18
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(#d8cbfc, #31255e);
|
|
19
|
+
--pk-brand-on-accent-secondary-tint: light-dark(#2c1170, #cdbdff);
|
|
20
|
+
--pk-brand-accent-secondary-fill: #7a55f5;
|
|
21
|
+
--pk-brand-on-accent-secondary: #ffffff;
|
|
14
22
|
}
|
package/dist/brands/teal.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teal",
|
|
3
|
-
"description": "Fictional example brand: Teal primary accent,
|
|
4
|
-
"secondary":
|
|
3
|
+
"description": "Fictional example brand: Teal primary accent, with an indigo secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
5
|
"colors": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent": {
|
|
@@ -24,9 +24,13 @@
|
|
|
24
24
|
"css": "#0a5053",
|
|
25
25
|
"value": "#0a5053"
|
|
26
26
|
},
|
|
27
|
+
"accent-fill": {
|
|
28
|
+
"css": "#008276",
|
|
29
|
+
"value": "#008276"
|
|
30
|
+
},
|
|
27
31
|
"on-accent": {
|
|
28
|
-
"css": "
|
|
29
|
-
"value": "#
|
|
32
|
+
"css": "#ffffff",
|
|
33
|
+
"value": "#ffffff"
|
|
30
34
|
},
|
|
31
35
|
"focus-field": {
|
|
32
36
|
"css": "#00a393",
|
|
@@ -35,6 +39,34 @@
|
|
|
35
39
|
"focus-halo": {
|
|
36
40
|
"css": "rgb(0 163 147 / 0.3)",
|
|
37
41
|
"value": "rgb(0 163 147 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "#7a55f5",
|
|
45
|
+
"value": "#7a55f5"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "#9274f7",
|
|
49
|
+
"value": "#9274f7"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "#efe9fe",
|
|
53
|
+
"value": "#efe9fe"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "#d8cbfc",
|
|
57
|
+
"value": "#d8cbfc"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "#2c1170",
|
|
61
|
+
"value": "#2c1170"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "#7a55f5",
|
|
65
|
+
"value": "#7a55f5"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
38
70
|
}
|
|
39
71
|
},
|
|
40
72
|
"dark": {
|
|
@@ -58,9 +90,13 @@
|
|
|
58
90
|
"css": "#7eeee1",
|
|
59
91
|
"value": "#7eeee1"
|
|
60
92
|
},
|
|
93
|
+
"accent-fill": {
|
|
94
|
+
"css": "#008276",
|
|
95
|
+
"value": "#008276"
|
|
96
|
+
},
|
|
61
97
|
"on-accent": {
|
|
62
|
-
"css": "
|
|
63
|
-
"value": "#
|
|
98
|
+
"css": "#ffffff",
|
|
99
|
+
"value": "#ffffff"
|
|
64
100
|
},
|
|
65
101
|
"focus-field": {
|
|
66
102
|
"css": "#14e0c8",
|
|
@@ -69,18 +105,40 @@
|
|
|
69
105
|
"focus-halo": {
|
|
70
106
|
"css": "rgb(20 224 200 / 0.3)",
|
|
71
107
|
"value": "rgb(20 224 200 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "#a183ff",
|
|
111
|
+
"value": "#a183ff"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "#bba6ff",
|
|
115
|
+
"value": "#bba6ff"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "#1f1838",
|
|
119
|
+
"value": "#1f1838"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "#31255e",
|
|
123
|
+
"value": "#31255e"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "#cdbdff",
|
|
127
|
+
"value": "#cdbdff"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "#7a55f5",
|
|
131
|
+
"value": "#7a55f5"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
72
136
|
}
|
|
73
137
|
}
|
|
74
138
|
},
|
|
75
139
|
"font": {},
|
|
76
140
|
"headingWeight": null,
|
|
77
141
|
"exceptions": {
|
|
78
|
-
"color.accent-secondary on color.canvas": {
|
|
79
|
-
"themes": [
|
|
80
|
-
"light"
|
|
81
|
-
],
|
|
82
|
-
"reason": "The teal accent is a shape on light surfaces, never text, just under 3:1 on the page, and always paired with a second cue such as weight, ink or fill, as the default orange is (principle 4)."
|
|
83
|
-
},
|
|
84
142
|
"color.danger on color.accent-tint": {
|
|
85
143
|
"themes": [
|
|
86
144
|
"light"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Polykit brand "yellow".
|
|
2
|
+
* Fictional example brand: Yellow primary accent, with a magenta secondary.
|
|
3
|
+
* Opt in with data-brand="yellow" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="yellow"] {
|
|
6
|
+
--pk-brand-accent: light-dark(#e5ac00, #f4d10b);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#ebbd33, #f8e15e);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#fdf6dc, #25210f);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#f8e5a3, #3d3512);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#5c4300, #f8e15e);
|
|
11
|
+
--pk-brand-accent-fill: #f5c21b;
|
|
12
|
+
--pk-brand-on-accent: var(--pk-slate-900);
|
|
13
|
+
--pk-brand-focus-field: light-dark(#8f6c00, #f4d10b);
|
|
14
|
+
--pk-brand-focus-halo: light-dark(rgb(229 172 0 / 0.3), rgb(244 209 11 / 0.3));
|
|
15
|
+
--pk-brand-accent-secondary: light-dark(#c8197a, #ff66b2);
|
|
16
|
+
--pk-brand-accent-secondary-hover: light-dark(#dc3f93, #ff8fc6);
|
|
17
|
+
--pk-brand-accent-secondary-tint: light-dark(#fde9f3, #34112a);
|
|
18
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(#f8c5df, #541a43);
|
|
19
|
+
--pk-brand-on-accent-secondary-tint: light-dark(#650b3c, #ffb0d6);
|
|
20
|
+
--pk-brand-accent-secondary-fill: #c8197a;
|
|
21
|
+
--pk-brand-on-accent-secondary: #ffffff;
|
|
22
|
+
}
|