@polyfen/polykit-tokens 0.3.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 +1 -1
- package/contrast.pairs.mjs +11 -1
- package/dist/_tokens.scss +4 -1
- package/dist/brands/coral.css +16 -9
- package/dist/brands/coral.json +116 -34
- package/dist/brands/emerald.css +22 -0
- package/dist/brands/{violet.json → emerald.json} +58 -64
- package/dist/brands/indigo.css +16 -9
- package/dist/brands/indigo.json +90 -34
- 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 +8 -1
- package/dist/brands/purple.json +64 -2
- package/dist/brands/sky.css +16 -9
- package/dist/brands/sky.json +90 -34
- package/dist/brands/teal.css +8 -1
- package/dist/brands/teal.json +58 -8
- package/dist/brands/yellow.css +22 -0
- package/dist/brands/yellow.json +173 -0
- package/dist/index.d.ts +300 -72
- package/dist/index.js +306 -78
- package/dist/tailwind.css +1 -1
- package/dist/tokens-studio.json +16 -1
- package/dist/tokens.css +4 -1
- package/dist/tokens.dark.css +4 -1
- package/dist/tokens.json +12 -6
- package/dist/tokens.light.css +4 -1
- package/package.json +1 -1
- package/dist/brands/violet.css +0 -22
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ Write the brand as JSON (`src/brands/teal.json` in this package is an example),
|
|
|
95
95
|
npx polykit-brand brand.json --css brand.css
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
The command checks the contract and measures every contrast pair that touches the accent, in both themes. A pair that falls short fails the check unless the brand file lists it under `exceptions` with a reason. Brand CSS uses `light-dark()` (Baseline 2024); pages without a brand are unaffected. Fictional examples ship in `dist/brands/`, named by their colors: `indigo`, `purple`, `
|
|
98
|
+
The command checks the contract and measures every contrast pair that touches the accent, in both themes. A pair that falls short fails the check unless the brand file lists it under `exceptions` with a reason. Brand CSS uses `light-dark()` (Baseline 2024); pages without a brand are unaffected. Fictional examples ship in `dist/brands/`, named by their colors: `sky`, `indigo`, `purple`, `magenta`, `pink`, `coral`, `orange`, `yellow`, `emerald` and `teal`, each with a paired secondary (ADR 0034). Their resolved colors are also in `raw.brands` in the JS entry.
|
|
99
99
|
|
|
100
100
|
## Tailwind CSS v4
|
|
101
101
|
|
package/contrast.pairs.mjs
CHANGED
|
@@ -28,6 +28,11 @@ export const EXCEPTIONS = {
|
|
|
28
28
|
reason:
|
|
29
29
|
'The switch keeps the reference design border-strong track and white thumb in its off state: 2.30:1 between them in the light theme. The thumb position and the track turning ink when on carry the state, and the switch always has a name. Same decision as the control borders (O5); a strict project would darken --pk-color-border-strong.',
|
|
30
30
|
},
|
|
31
|
+
accentFill: {
|
|
32
|
+
ref: 'ADR 0034',
|
|
33
|
+
reason:
|
|
34
|
+
'The orange button fill is lightened past the 4.5:1 line for white labels (4.0:1), so the button stays bright; the label is bold, the button is one call to action among plain text, and a strict project sets a deeper accent-fill.',
|
|
35
|
+
},
|
|
31
36
|
accentShape: {
|
|
32
37
|
ref: 'PRINCIPLES 4',
|
|
33
38
|
reason:
|
|
@@ -136,7 +141,11 @@ export const pairs = [
|
|
|
136
141
|
text(color('success-ink'), color('success-tint'), { group: 'Text' }),
|
|
137
142
|
text(color('on-accent-tint'), color('accent-tint'), { group: 'Text' }),
|
|
138
143
|
text(color('on-accent-tint'), color('accent-tint-strong'), { group: 'Text' }),
|
|
139
|
-
text(color('on-accent'), color('accent-fill'), {
|
|
144
|
+
text(color('on-accent'), color('accent-fill'), {
|
|
145
|
+
group: 'Text',
|
|
146
|
+
label: 'accent button',
|
|
147
|
+
exceptions: { light: EXCEPTIONS.accentFill, dark: EXCEPTIONS.accentFill },
|
|
148
|
+
}),
|
|
140
149
|
text(color('frame-ink'), color('danger-strong'), { group: 'Text', label: 'error toast' }),
|
|
141
150
|
text(color('ink'), color('danger-tint'), { group: 'Text', label: 'link in a danger banner' }),
|
|
142
151
|
text(color('ink'), color('success-tint'), { group: 'Text', label: 'link in a success banner' }),
|
|
@@ -200,6 +209,7 @@ export const pairs = [
|
|
|
200
209
|
text(color('on-accent-secondary'), color('accent-secondary-fill'), {
|
|
201
210
|
group: 'Text',
|
|
202
211
|
label: 'secondary accent button',
|
|
212
|
+
exceptions: { light: EXCEPTIONS.accentFill, dark: EXCEPTIONS.accentFill },
|
|
203
213
|
}),
|
|
204
214
|
text(color('accent-secondary'), color('surface'), { themes: ['dark'], group: 'Text' }),
|
|
205
215
|
...['canvas', 'surface'].map((bg) =>
|
package/dist/_tokens.scss
CHANGED
|
@@ -25,7 +25,7 @@ $pk-orange-200: #fbceb6;
|
|
|
25
25
|
$pk-orange-300: #f8b089;
|
|
26
26
|
$pk-orange-400: #f5925d;
|
|
27
27
|
$pk-orange-500: #f27430;
|
|
28
|
-
$pk-orange-600: #
|
|
28
|
+
$pk-orange-600: #ca6128;
|
|
29
29
|
$pk-orange-800: #4d1d02;
|
|
30
30
|
$pk-orange-850: #331200;
|
|
31
31
|
$pk-red-50: #fcf3f3;
|
|
@@ -162,6 +162,9 @@ $pk-duration-slow: 200ms;
|
|
|
162
162
|
$pk-duration-slower: 300ms;
|
|
163
163
|
$pk-duration-typing: 1200ms;
|
|
164
164
|
$pk-duration-pulse: 1200ms;
|
|
165
|
+
$pk-duration-glow: 3000ms;
|
|
166
|
+
$pk-duration-marquee: 40000ms;
|
|
167
|
+
$pk-duration-reveal: 600ms;
|
|
165
168
|
$pk-delay-stagger: 90ms;
|
|
166
169
|
$pk-ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
167
170
|
$pk-motion-toast-ms: 4000;
|
package/dist/brands/coral.css
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
/* Polykit brand "coral".
|
|
2
|
-
* Fictional example brand: Coral primary accent,
|
|
2
|
+
* Fictional example brand: Coral primary accent, with an orange secondary.
|
|
3
3
|
* Opt in with data-brand="coral" on <html> or any element, after tokens.css.
|
|
4
4
|
* Needs light-dark() (Baseline 2024). */
|
|
5
5
|
[data-brand="coral"] {
|
|
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-accent-fill: #
|
|
6
|
+
--pk-brand-accent: light-dark(#d93f4f, #f27d89);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#e16573, #f6a4ac);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#fae8e9, #2f221d);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#f4c5ca, #482f2d);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#612838, #f8b8bf);
|
|
11
|
+
--pk-brand-accent-fill: #d93f4f;
|
|
12
12
|
--pk-brand-on-accent: #ffffff;
|
|
13
|
-
--pk-brand-focus-field: light-dark(#
|
|
14
|
-
--pk-brand-focus-halo: light-dark(rgb(217 63
|
|
13
|
+
--pk-brand-focus-field: light-dark(#d93f4f, #f27d89);
|
|
14
|
+
--pk-brand-focus-halo: light-dark(rgb(217 63 79 / 0.3), rgb(242 125 137 / 0.3));
|
|
15
|
+
--pk-brand-accent-secondary: light-dark(var(--pk-orange-500), var(--pk-orange-400));
|
|
16
|
+
--pk-brand-accent-secondary-hover: light-dark(var(--pk-orange-400), var(--pk-orange-300));
|
|
17
|
+
--pk-brand-accent-secondary-tint: light-dark(var(--pk-orange-100), var(--pk-orange-850));
|
|
18
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(var(--pk-orange-200), var(--pk-orange-800));
|
|
19
|
+
--pk-brand-on-accent-secondary-tint: light-dark(var(--pk-orange-850), var(--pk-orange-300));
|
|
20
|
+
--pk-brand-accent-secondary-fill: var(--pk-orange-600);
|
|
21
|
+
--pk-brand-on-accent-secondary: #ffffff;
|
|
15
22
|
}
|
package/dist/brands/coral.json
CHANGED
|
@@ -1,82 +1,138 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coral",
|
|
3
|
-
"description": "Fictional example brand: Coral primary accent,
|
|
4
|
-
"secondary":
|
|
3
|
+
"description": "Fictional example brand: Coral primary accent, with an orange secondary.",
|
|
4
|
+
"secondary": true,
|
|
5
5
|
"colors": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent": {
|
|
8
|
-
"css": "#
|
|
9
|
-
"value": "#
|
|
8
|
+
"css": "#d93f4f",
|
|
9
|
+
"value": "#d93f4f"
|
|
10
10
|
},
|
|
11
11
|
"accent-hover": {
|
|
12
|
-
"css": "#
|
|
13
|
-
"value": "#
|
|
12
|
+
"css": "#e16573",
|
|
13
|
+
"value": "#e16573"
|
|
14
14
|
},
|
|
15
15
|
"accent-tint": {
|
|
16
|
-
"css": "#
|
|
17
|
-
"value": "#
|
|
16
|
+
"css": "#fae8e9",
|
|
17
|
+
"value": "#fae8e9"
|
|
18
18
|
},
|
|
19
19
|
"accent-tint-strong": {
|
|
20
|
-
"css": "#
|
|
21
|
-
"value": "#
|
|
20
|
+
"css": "#f4c5ca",
|
|
21
|
+
"value": "#f4c5ca"
|
|
22
22
|
},
|
|
23
23
|
"on-accent-tint": {
|
|
24
|
-
"css": "#
|
|
25
|
-
"value": "#
|
|
24
|
+
"css": "#612838",
|
|
25
|
+
"value": "#612838"
|
|
26
26
|
},
|
|
27
27
|
"accent-fill": {
|
|
28
|
-
"css": "#
|
|
29
|
-
"value": "#
|
|
28
|
+
"css": "#d93f4f",
|
|
29
|
+
"value": "#d93f4f"
|
|
30
30
|
},
|
|
31
31
|
"on-accent": {
|
|
32
32
|
"css": "#ffffff",
|
|
33
33
|
"value": "#ffffff"
|
|
34
34
|
},
|
|
35
35
|
"focus-field": {
|
|
36
|
-
"css": "#
|
|
37
|
-
"value": "#
|
|
36
|
+
"css": "#d93f4f",
|
|
37
|
+
"value": "#d93f4f"
|
|
38
38
|
},
|
|
39
39
|
"focus-halo": {
|
|
40
|
-
"css": "rgb(217 63
|
|
41
|
-
"value": "rgb(217 63
|
|
40
|
+
"css": "rgb(217 63 79 / 0.3)",
|
|
41
|
+
"value": "rgb(217 63 79 / 0.3)"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary": {
|
|
44
|
+
"css": "var(--pk-orange-500)",
|
|
45
|
+
"value": "#f27430"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-hover": {
|
|
48
|
+
"css": "var(--pk-orange-400)",
|
|
49
|
+
"value": "#f5925d"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint": {
|
|
52
|
+
"css": "var(--pk-orange-100)",
|
|
53
|
+
"value": "#fdece2"
|
|
54
|
+
},
|
|
55
|
+
"accent-secondary-tint-strong": {
|
|
56
|
+
"css": "var(--pk-orange-200)",
|
|
57
|
+
"value": "#fbceb6"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary-tint": {
|
|
60
|
+
"css": "var(--pk-orange-850)",
|
|
61
|
+
"value": "#331200"
|
|
62
|
+
},
|
|
63
|
+
"accent-secondary-fill": {
|
|
64
|
+
"css": "var(--pk-orange-600)",
|
|
65
|
+
"value": "#ca6128"
|
|
66
|
+
},
|
|
67
|
+
"on-accent-secondary": {
|
|
68
|
+
"css": "#ffffff",
|
|
69
|
+
"value": "#ffffff"
|
|
42
70
|
}
|
|
43
71
|
},
|
|
44
72
|
"dark": {
|
|
45
73
|
"accent": {
|
|
46
|
-
"css": "#
|
|
47
|
-
"value": "#
|
|
74
|
+
"css": "#f27d89",
|
|
75
|
+
"value": "#f27d89"
|
|
48
76
|
},
|
|
49
77
|
"accent-hover": {
|
|
50
|
-
"css": "#
|
|
51
|
-
"value": "#
|
|
78
|
+
"css": "#f6a4ac",
|
|
79
|
+
"value": "#f6a4ac"
|
|
52
80
|
},
|
|
53
81
|
"accent-tint": {
|
|
54
|
-
"css": "#
|
|
55
|
-
"value": "#
|
|
82
|
+
"css": "#2f221d",
|
|
83
|
+
"value": "#2f221d"
|
|
56
84
|
},
|
|
57
85
|
"accent-tint-strong": {
|
|
58
|
-
"css": "#
|
|
59
|
-
"value": "#
|
|
86
|
+
"css": "#482f2d",
|
|
87
|
+
"value": "#482f2d"
|
|
60
88
|
},
|
|
61
89
|
"on-accent-tint": {
|
|
62
|
-
"css": "#
|
|
63
|
-
"value": "#
|
|
90
|
+
"css": "#f8b8bf",
|
|
91
|
+
"value": "#f8b8bf"
|
|
64
92
|
},
|
|
65
93
|
"accent-fill": {
|
|
66
|
-
"css": "#
|
|
67
|
-
"value": "#
|
|
94
|
+
"css": "#d93f4f",
|
|
95
|
+
"value": "#d93f4f"
|
|
68
96
|
},
|
|
69
97
|
"on-accent": {
|
|
70
98
|
"css": "#ffffff",
|
|
71
99
|
"value": "#ffffff"
|
|
72
100
|
},
|
|
73
101
|
"focus-field": {
|
|
74
|
-
"css": "#
|
|
75
|
-
"value": "#
|
|
102
|
+
"css": "#f27d89",
|
|
103
|
+
"value": "#f27d89"
|
|
76
104
|
},
|
|
77
105
|
"focus-halo": {
|
|
78
|
-
"css": "rgb(242 125
|
|
79
|
-
"value": "rgb(242 125
|
|
106
|
+
"css": "rgb(242 125 137 / 0.3)",
|
|
107
|
+
"value": "rgb(242 125 137 / 0.3)"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary": {
|
|
110
|
+
"css": "var(--pk-orange-400)",
|
|
111
|
+
"value": "#f5925d"
|
|
112
|
+
},
|
|
113
|
+
"accent-secondary-hover": {
|
|
114
|
+
"css": "var(--pk-orange-300)",
|
|
115
|
+
"value": "#f8b089"
|
|
116
|
+
},
|
|
117
|
+
"accent-secondary-tint": {
|
|
118
|
+
"css": "var(--pk-orange-850)",
|
|
119
|
+
"value": "#331200"
|
|
120
|
+
},
|
|
121
|
+
"accent-secondary-tint-strong": {
|
|
122
|
+
"css": "var(--pk-orange-800)",
|
|
123
|
+
"value": "#4d1d02"
|
|
124
|
+
},
|
|
125
|
+
"on-accent-secondary-tint": {
|
|
126
|
+
"css": "var(--pk-orange-300)",
|
|
127
|
+
"value": "#f8b089"
|
|
128
|
+
},
|
|
129
|
+
"accent-secondary-fill": {
|
|
130
|
+
"css": "var(--pk-orange-600)",
|
|
131
|
+
"value": "#ca6128"
|
|
132
|
+
},
|
|
133
|
+
"on-accent-secondary": {
|
|
134
|
+
"css": "#ffffff",
|
|
135
|
+
"value": "#ffffff"
|
|
80
136
|
}
|
|
81
137
|
}
|
|
82
138
|
},
|
|
@@ -112,6 +168,32 @@
|
|
|
112
168
|
"light"
|
|
113
169
|
],
|
|
114
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 orange 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)."
|
|
177
|
+
},
|
|
178
|
+
"color.accent-secondary on color.surface": {
|
|
179
|
+
"themes": [
|
|
180
|
+
"light"
|
|
181
|
+
],
|
|
182
|
+
"reason": "The orange 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)."
|
|
183
|
+
},
|
|
184
|
+
"color.on-accent on color.accent-fill": {
|
|
185
|
+
"themes": [
|
|
186
|
+
"light",
|
|
187
|
+
"dark"
|
|
188
|
+
],
|
|
189
|
+
"reason": "The coral button fill is its own accent, a touch past the 4.5:1 line for white labels (4.4:1), so the button stays bright; the label is bold, the button is one call to action among plain text (ADR 0034)."
|
|
190
|
+
},
|
|
191
|
+
"color.on-accent-secondary on color.accent-secondary-fill": {
|
|
192
|
+
"themes": [
|
|
193
|
+
"light",
|
|
194
|
+
"dark"
|
|
195
|
+
],
|
|
196
|
+
"reason": "The orange button fill is lightened past the 4.5:1 line for white labels (4.0:1), so the button stays bright; the label is bold, the button is one call to action among plain text (ADR 0034)."
|
|
115
197
|
}
|
|
116
198
|
}
|
|
117
199
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Polykit brand "emerald".
|
|
2
|
+
* Fictional example brand: Emerald primary accent, with an indigo secondary. Bluer and deeper than the success green, so the two stay apart.
|
|
3
|
+
* Opt in with data-brand="emerald" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="emerald"] {
|
|
6
|
+
--pk-brand-accent: light-dark(#0b8f63, #34d399);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#3aa682, #6ee0b4);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#e0f3eb, #12251d);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#b2e2cf, #1a3d2f);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#0b4d36, #8ef0c6);
|
|
11
|
+
--pk-brand-accent-fill: #0a875e;
|
|
12
|
+
--pk-brand-on-accent: #ffffff;
|
|
13
|
+
--pk-brand-focus-field: light-dark(#0b8f63, #34d399);
|
|
14
|
+
--pk-brand-focus-halo: light-dark(rgb(11 143 99 / 0.3), rgb(52 211 153 / 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;
|
|
22
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"description": "Fictional example brand:
|
|
2
|
+
"name": "emerald",
|
|
3
|
+
"description": "Fictional example brand: Emerald primary accent, with an indigo secondary. Bluer and deeper than the success green, so the two stay apart.",
|
|
4
4
|
"secondary": true,
|
|
5
5
|
"colors": {
|
|
6
6
|
"light": {
|
|
7
7
|
"accent": {
|
|
8
|
-
"css": "#
|
|
9
|
-
"value": "#
|
|
8
|
+
"css": "#0b8f63",
|
|
9
|
+
"value": "#0b8f63"
|
|
10
10
|
},
|
|
11
11
|
"accent-hover": {
|
|
12
|
-
"css": "#
|
|
13
|
-
"value": "#
|
|
12
|
+
"css": "#3aa682",
|
|
13
|
+
"value": "#3aa682"
|
|
14
14
|
},
|
|
15
15
|
"accent-tint": {
|
|
16
|
-
"css": "#
|
|
17
|
-
"value": "#
|
|
16
|
+
"css": "#e0f3eb",
|
|
17
|
+
"value": "#e0f3eb"
|
|
18
18
|
},
|
|
19
19
|
"accent-tint-strong": {
|
|
20
|
-
"css": "#
|
|
21
|
-
"value": "#
|
|
20
|
+
"css": "#b2e2cf",
|
|
21
|
+
"value": "#b2e2cf"
|
|
22
22
|
},
|
|
23
23
|
"on-accent-tint": {
|
|
24
|
-
"css": "#
|
|
25
|
-
"value": "#
|
|
24
|
+
"css": "#0b4d36",
|
|
25
|
+
"value": "#0b4d36"
|
|
26
26
|
},
|
|
27
27
|
"accent-fill": {
|
|
28
|
-
"css": "#
|
|
29
|
-
"value": "#
|
|
28
|
+
"css": "#0a875e",
|
|
29
|
+
"value": "#0a875e"
|
|
30
30
|
},
|
|
31
31
|
"on-accent": {
|
|
32
32
|
"css": "#ffffff",
|
|
33
33
|
"value": "#ffffff"
|
|
34
34
|
},
|
|
35
35
|
"focus-field": {
|
|
36
|
-
"css": "#
|
|
37
|
-
"value": "#
|
|
36
|
+
"css": "#0b8f63",
|
|
37
|
+
"value": "#0b8f63"
|
|
38
38
|
},
|
|
39
39
|
"focus-halo": {
|
|
40
|
-
"css": "rgb(
|
|
41
|
-
"value": "rgb(
|
|
40
|
+
"css": "rgb(11 143 99 / 0.3)",
|
|
41
|
+
"value": "rgb(11 143 99 / 0.3)"
|
|
42
42
|
},
|
|
43
43
|
"accent-secondary": {
|
|
44
|
-
"css": "#
|
|
45
|
-
"value": "#
|
|
44
|
+
"css": "#7a55f5",
|
|
45
|
+
"value": "#7a55f5"
|
|
46
46
|
},
|
|
47
47
|
"accent-secondary-hover": {
|
|
48
|
-
"css": "#
|
|
49
|
-
"value": "#
|
|
48
|
+
"css": "#9274f7",
|
|
49
|
+
"value": "#9274f7"
|
|
50
50
|
},
|
|
51
51
|
"accent-secondary-tint": {
|
|
52
|
-
"css": "#
|
|
53
|
-
"value": "#
|
|
52
|
+
"css": "#efe9fe",
|
|
53
|
+
"value": "#efe9fe"
|
|
54
54
|
},
|
|
55
55
|
"accent-secondary-tint-strong": {
|
|
56
|
-
"css": "#
|
|
57
|
-
"value": "#
|
|
56
|
+
"css": "#d8cbfc",
|
|
57
|
+
"value": "#d8cbfc"
|
|
58
58
|
},
|
|
59
59
|
"on-accent-secondary-tint": {
|
|
60
|
-
"css": "#
|
|
61
|
-
"value": "#
|
|
60
|
+
"css": "#2c1170",
|
|
61
|
+
"value": "#2c1170"
|
|
62
62
|
},
|
|
63
63
|
"accent-secondary-fill": {
|
|
64
|
-
"css": "#
|
|
65
|
-
"value": "#
|
|
64
|
+
"css": "#7a55f5",
|
|
65
|
+
"value": "#7a55f5"
|
|
66
66
|
},
|
|
67
67
|
"on-accent-secondary": {
|
|
68
68
|
"css": "#ffffff",
|
|
@@ -71,64 +71,64 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dark": {
|
|
73
73
|
"accent": {
|
|
74
|
-
"css": "#
|
|
75
|
-
"value": "#
|
|
74
|
+
"css": "#34d399",
|
|
75
|
+
"value": "#34d399"
|
|
76
76
|
},
|
|
77
77
|
"accent-hover": {
|
|
78
|
-
"css": "#
|
|
79
|
-
"value": "#
|
|
78
|
+
"css": "#6ee0b4",
|
|
79
|
+
"value": "#6ee0b4"
|
|
80
80
|
},
|
|
81
81
|
"accent-tint": {
|
|
82
|
-
"css": "#
|
|
83
|
-
"value": "#
|
|
82
|
+
"css": "#12251d",
|
|
83
|
+
"value": "#12251d"
|
|
84
84
|
},
|
|
85
85
|
"accent-tint-strong": {
|
|
86
|
-
"css": "#
|
|
87
|
-
"value": "#
|
|
86
|
+
"css": "#1a3d2f",
|
|
87
|
+
"value": "#1a3d2f"
|
|
88
88
|
},
|
|
89
89
|
"on-accent-tint": {
|
|
90
|
-
"css": "#
|
|
91
|
-
"value": "#
|
|
90
|
+
"css": "#8ef0c6",
|
|
91
|
+
"value": "#8ef0c6"
|
|
92
92
|
},
|
|
93
93
|
"accent-fill": {
|
|
94
|
-
"css": "#
|
|
95
|
-
"value": "#
|
|
94
|
+
"css": "#0a875e",
|
|
95
|
+
"value": "#0a875e"
|
|
96
96
|
},
|
|
97
97
|
"on-accent": {
|
|
98
98
|
"css": "#ffffff",
|
|
99
99
|
"value": "#ffffff"
|
|
100
100
|
},
|
|
101
101
|
"focus-field": {
|
|
102
|
-
"css": "#
|
|
103
|
-
"value": "#
|
|
102
|
+
"css": "#34d399",
|
|
103
|
+
"value": "#34d399"
|
|
104
104
|
},
|
|
105
105
|
"focus-halo": {
|
|
106
|
-
"css": "rgb(
|
|
107
|
-
"value": "rgb(
|
|
106
|
+
"css": "rgb(52 211 153 / 0.3)",
|
|
107
|
+
"value": "rgb(52 211 153 / 0.3)"
|
|
108
108
|
},
|
|
109
109
|
"accent-secondary": {
|
|
110
|
-
"css": "#
|
|
111
|
-
"value": "#
|
|
110
|
+
"css": "#a183ff",
|
|
111
|
+
"value": "#a183ff"
|
|
112
112
|
},
|
|
113
113
|
"accent-secondary-hover": {
|
|
114
|
-
"css": "#
|
|
115
|
-
"value": "#
|
|
114
|
+
"css": "#bba6ff",
|
|
115
|
+
"value": "#bba6ff"
|
|
116
116
|
},
|
|
117
117
|
"accent-secondary-tint": {
|
|
118
|
-
"css": "#
|
|
119
|
-
"value": "#
|
|
118
|
+
"css": "#1f1838",
|
|
119
|
+
"value": "#1f1838"
|
|
120
120
|
},
|
|
121
121
|
"accent-secondary-tint-strong": {
|
|
122
|
-
"css": "#
|
|
123
|
-
"value": "#
|
|
122
|
+
"css": "#31255e",
|
|
123
|
+
"value": "#31255e"
|
|
124
124
|
},
|
|
125
125
|
"on-accent-secondary-tint": {
|
|
126
|
-
"css": "#
|
|
127
|
-
"value": "#
|
|
126
|
+
"css": "#cdbdff",
|
|
127
|
+
"value": "#cdbdff"
|
|
128
128
|
},
|
|
129
129
|
"accent-secondary-fill": {
|
|
130
|
-
"css": "#
|
|
131
|
-
"value": "#
|
|
130
|
+
"css": "#7a55f5",
|
|
131
|
+
"value": "#7a55f5"
|
|
132
132
|
},
|
|
133
133
|
"on-accent-secondary": {
|
|
134
134
|
"css": "#ffffff",
|
|
@@ -157,12 +157,6 @@
|
|
|
157
157
|
],
|
|
158
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
159
|
},
|
|
160
|
-
"color.cat-green 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
160
|
"color.cat-teal on color.accent-tint": {
|
|
167
161
|
"themes": [
|
|
168
162
|
"light"
|
package/dist/brands/indigo.css
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
/* Polykit brand "indigo".
|
|
2
|
-
* Fictional example brand: Indigo primary accent,
|
|
2
|
+
* Fictional example brand: Indigo primary accent with a magenta secondary, like a marketing site.
|
|
3
3
|
* Opt in with data-brand="indigo" on <html> or any element, after tokens.css.
|
|
4
4
|
* Needs light-dark() (Baseline 2024). */
|
|
5
5
|
[data-brand="indigo"] {
|
|
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-accent-fill: #
|
|
6
|
+
--pk-brand-accent: light-dark(#7a55f5, #a183ff);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#9274f7, #bba6ff);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#efe9fe, #1f1838);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#d8cbfc, #31255e);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#2c1170, #cdbdff);
|
|
11
|
+
--pk-brand-accent-fill: #7a55f5;
|
|
12
12
|
--pk-brand-on-accent: #ffffff;
|
|
13
|
-
--pk-brand-focus-field: light-dark(#
|
|
14
|
-
--pk-brand-focus-halo: light-dark(rgb(
|
|
13
|
+
--pk-brand-focus-field: light-dark(#7a55f5, #a183ff);
|
|
14
|
+
--pk-brand-focus-halo: light-dark(rgb(122 85 245 / 0.3), rgb(161 131 255 / 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;
|
|
15
22
|
}
|