@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 CHANGED
@@ -84,8 +84,8 @@ A brand sets the accent: a required primary and an optional secondary. Everythin
84
84
  | Token | Set by the brand |
85
85
  | ---------------------------- | ---------------------------------------------------------------- |
86
86
  | `--pk-color-accent` | Primary, required: location, selection, focus in fields |
87
- | `-accent-hover`, `-accent-tint`, `-accent-tint-strong`, `-on-accent-tint`, `-on-accent`, `-focus-field`, `-focus-halo` | The rest of the primary, required. `on-accent` is text on a solid accent fill (the opt-in accent button), at 4.5:1 |
88
- | `--pk-color-accent-secondary` and `-hover`, `-tint`, `-tint-strong`, `on-accent-secondary-tint`, `on-accent-secondary` | Optional, all six or none; without them each is the primary |
87
+ | `-accent-hover`, `-accent-tint`, `-accent-tint-strong`, `-on-accent-tint`, `-accent-fill`, `-on-accent`, `-focus-field`, `-focus-halo` | The rest of the primary, required. `accent-fill` is the opt-in accent button's background (the accent deepened until white `on-accent` text reaches 4.5:1) |
88
+ | `--pk-color-accent-secondary` and `-hover`, `-tint`, `-tint-strong`, `on-accent-secondary-tint`, `accent-secondary-fill`, `on-accent-secondary` | Optional, all seven or none; without them each is the primary |
89
89
 
90
90
  `chart-1` and the accent badge follow the primary.
91
91
 
@@ -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`, `sky`, `teal`, `coral`, and `violet` (with a magenta secondary). Their resolved colors are also in `raw.brands` in the JS entry.
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
 
@@ -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'), { group: 'Text', label: 'accent button' }),
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' }),
@@ -197,9 +206,10 @@ export const pairs = [
197
206
  // the primary here, with the same exceptions; brands with one are measured on their own.
198
207
  text(color('on-accent-secondary-tint'), color('accent-secondary-tint'), { group: 'Text' }),
199
208
  text(color('on-accent-secondary-tint'), color('accent-secondary-tint-strong'), { group: 'Text' }),
200
- text(color('on-accent-secondary'), color('accent-secondary'), {
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,6 +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: #ca6128;
28
29
  $pk-orange-800: #4d1d02;
29
30
  $pk-orange-850: #331200;
30
31
  $pk-red-50: #fcf3f3;
@@ -161,6 +162,9 @@ $pk-duration-slow: 200ms;
161
162
  $pk-duration-slower: 300ms;
162
163
  $pk-duration-typing: 1200ms;
163
164
  $pk-duration-pulse: 1200ms;
165
+ $pk-duration-glow: 3000ms;
166
+ $pk-duration-marquee: 40000ms;
167
+ $pk-duration-reveal: 600ms;
164
168
  $pk-delay-stagger: 90ms;
165
169
  $pk-ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
166
170
  $pk-motion-toast-ms: 4000;
@@ -355,12 +359,14 @@ $pk-color-accent-hover: var(--pk-color-accent-hover);
355
359
  $pk-color-accent-tint: var(--pk-color-accent-tint);
356
360
  $pk-color-accent-tint-strong: var(--pk-color-accent-tint-strong);
357
361
  $pk-color-on-accent-tint: var(--pk-color-on-accent-tint);
362
+ $pk-color-accent-fill: var(--pk-color-accent-fill);
358
363
  $pk-color-on-accent: var(--pk-color-on-accent);
359
364
  $pk-color-accent-secondary: var(--pk-color-accent-secondary);
360
365
  $pk-color-accent-secondary-hover: var(--pk-color-accent-secondary-hover);
361
366
  $pk-color-accent-secondary-tint: var(--pk-color-accent-secondary-tint);
362
367
  $pk-color-accent-secondary-tint-strong: var(--pk-color-accent-secondary-tint-strong);
363
368
  $pk-color-on-accent-secondary-tint: var(--pk-color-on-accent-secondary-tint);
369
+ $pk-color-accent-secondary-fill: var(--pk-color-accent-secondary-fill);
364
370
  $pk-color-on-accent-secondary: var(--pk-color-on-accent-secondary);
365
371
  $pk-color-danger: var(--pk-color-danger);
366
372
  $pk-color-danger-ink: var(--pk-color-danger-ink);
@@ -5,6 +5,7 @@
5
5
  "accent-tint",
6
6
  "accent-tint-strong",
7
7
  "on-accent-tint",
8
+ "accent-fill",
8
9
  "on-accent",
9
10
  "focus-field",
10
11
  "focus-halo"
@@ -15,6 +16,7 @@
15
16
  "accent-secondary-tint",
16
17
  "accent-secondary-tint-strong",
17
18
  "on-accent-secondary-tint",
19
+ "accent-secondary-fill",
18
20
  "on-accent-secondary"
19
21
  ],
20
22
  "dependents": {
@@ -24,6 +26,7 @@
24
26
  "color.accent-secondary-tint": "color.accent-tint",
25
27
  "color.accent-secondary-tint-strong": "color.accent-tint-strong",
26
28
  "color.on-accent-secondary-tint": "color.on-accent-tint",
29
+ "color.accent-secondary-fill": "color.accent-fill",
27
30
  "color.on-accent-secondary": "color.on-accent",
28
31
  "color.chart-1": "color.accent",
29
32
  "color.badge-accent-bg": "color.accent-tint",
@@ -39,6 +42,7 @@
39
42
  "color.accent-secondary-tint": "color.accent-tint",
40
43
  "color.accent-secondary-tint-strong": "color.accent-tint-strong",
41
44
  "color.on-accent-secondary-tint": "color.on-accent-tint",
45
+ "color.accent-secondary-fill": "color.accent-fill",
42
46
  "color.on-accent-secondary": "color.on-accent",
43
47
  "color.chart-1": "color.accent",
44
48
  "color.badge-accent-bg": "color.accent-tint",
@@ -1,14 +1,22 @@
1
1
  /* Polykit brand "coral".
2
- * Fictional example brand: Coral primary accent, no secondary.
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(#d93f5c, #f27d93);
7
- --pk-brand-accent-hover: light-dark(#e1657d, #f6a4b3);
8
- --pk-brand-accent-tint: light-dark(#fae8eb, #2f211d);
9
- --pk-brand-accent-tint-strong: light-dark(#f4c5ce, #482d2d);
10
- --pk-brand-on-accent-tint: light-dark(#61283d, #f8b8c4);
11
- --pk-brand-on-accent: var(--pk-slate-900);
12
- --pk-brand-focus-field: light-dark(#d93f5c, #f27d93);
13
- --pk-brand-focus-halo: light-dark(rgb(217 63 92 / 0.3), rgb(242 125 147 / 0.3));
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
+ --pk-brand-on-accent: #ffffff;
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;
14
22
  }
@@ -1,74 +1,138 @@
1
1
  {
2
2
  "name": "coral",
3
- "description": "Fictional example brand: Coral primary accent, no secondary.",
4
- "secondary": false,
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": "#d93f5c",
9
- "value": "#d93f5c"
8
+ "css": "#d93f4f",
9
+ "value": "#d93f4f"
10
10
  },
11
11
  "accent-hover": {
12
- "css": "#e1657d",
13
- "value": "#e1657d"
12
+ "css": "#e16573",
13
+ "value": "#e16573"
14
14
  },
15
15
  "accent-tint": {
16
- "css": "#fae8eb",
17
- "value": "#fae8eb"
16
+ "css": "#fae8e9",
17
+ "value": "#fae8e9"
18
18
  },
19
19
  "accent-tint-strong": {
20
- "css": "#f4c5ce",
21
- "value": "#f4c5ce"
20
+ "css": "#f4c5ca",
21
+ "value": "#f4c5ca"
22
22
  },
23
23
  "on-accent-tint": {
24
- "css": "#61283d",
25
- "value": "#61283d"
24
+ "css": "#612838",
25
+ "value": "#612838"
26
+ },
27
+ "accent-fill": {
28
+ "css": "#d93f4f",
29
+ "value": "#d93f4f"
26
30
  },
27
31
  "on-accent": {
28
- "css": "var(--pk-slate-900)",
29
- "value": "#080b12"
32
+ "css": "#ffffff",
33
+ "value": "#ffffff"
30
34
  },
31
35
  "focus-field": {
32
- "css": "#d93f5c",
33
- "value": "#d93f5c"
36
+ "css": "#d93f4f",
37
+ "value": "#d93f4f"
34
38
  },
35
39
  "focus-halo": {
36
- "css": "rgb(217 63 92 / 0.3)",
37
- "value": "rgb(217 63 92 / 0.3)"
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"
38
70
  }
39
71
  },
40
72
  "dark": {
41
73
  "accent": {
42
- "css": "#f27d93",
43
- "value": "#f27d93"
74
+ "css": "#f27d89",
75
+ "value": "#f27d89"
44
76
  },
45
77
  "accent-hover": {
46
- "css": "#f6a4b3",
47
- "value": "#f6a4b3"
78
+ "css": "#f6a4ac",
79
+ "value": "#f6a4ac"
48
80
  },
49
81
  "accent-tint": {
50
- "css": "#2f211d",
51
- "value": "#2f211d"
82
+ "css": "#2f221d",
83
+ "value": "#2f221d"
52
84
  },
53
85
  "accent-tint-strong": {
54
- "css": "#482d2d",
55
- "value": "#482d2d"
86
+ "css": "#482f2d",
87
+ "value": "#482f2d"
56
88
  },
57
89
  "on-accent-tint": {
58
- "css": "#f8b8c4",
59
- "value": "#f8b8c4"
90
+ "css": "#f8b8bf",
91
+ "value": "#f8b8bf"
92
+ },
93
+ "accent-fill": {
94
+ "css": "#d93f4f",
95
+ "value": "#d93f4f"
60
96
  },
61
97
  "on-accent": {
62
- "css": "var(--pk-slate-900)",
63
- "value": "#080b12"
98
+ "css": "#ffffff",
99
+ "value": "#ffffff"
64
100
  },
65
101
  "focus-field": {
66
- "css": "#f27d93",
67
- "value": "#f27d93"
102
+ "css": "#f27d89",
103
+ "value": "#f27d89"
68
104
  },
69
105
  "focus-halo": {
70
- "css": "rgb(242 125 147 / 0.3)",
71
- "value": "rgb(242 125 147 / 0.3)"
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"
72
136
  }
73
137
  }
74
138
  },
@@ -104,6 +168,32 @@
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 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)."
107
197
  }
108
198
  }
109
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,60 +1,68 @@
1
1
  {
2
- "name": "violet",
3
- "description": "Fictional example brand: Violet primary accent with a magenta secondary, like a marketing site.",
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": "#7a55f5",
9
- "value": "#7a55f5"
8
+ "css": "#0b8f63",
9
+ "value": "#0b8f63"
10
10
  },
11
11
  "accent-hover": {
12
- "css": "#9274f7",
13
- "value": "#9274f7"
12
+ "css": "#3aa682",
13
+ "value": "#3aa682"
14
14
  },
15
15
  "accent-tint": {
16
- "css": "#efe9fe",
17
- "value": "#efe9fe"
16
+ "css": "#e0f3eb",
17
+ "value": "#e0f3eb"
18
18
  },
19
19
  "accent-tint-strong": {
20
- "css": "#d8cbfc",
21
- "value": "#d8cbfc"
20
+ "css": "#b2e2cf",
21
+ "value": "#b2e2cf"
22
22
  },
23
23
  "on-accent-tint": {
24
- "css": "#2c1170",
25
- "value": "#2c1170"
24
+ "css": "#0b4d36",
25
+ "value": "#0b4d36"
26
+ },
27
+ "accent-fill": {
28
+ "css": "#0a875e",
29
+ "value": "#0a875e"
26
30
  },
27
31
  "on-accent": {
28
32
  "css": "#ffffff",
29
33
  "value": "#ffffff"
30
34
  },
31
35
  "focus-field": {
32
- "css": "#7a55f5",
33
- "value": "#7a55f5"
36
+ "css": "#0b8f63",
37
+ "value": "#0b8f63"
34
38
  },
35
39
  "focus-halo": {
36
- "css": "rgb(122 85 245 / 0.3)",
37
- "value": "rgb(122 85 245 / 0.3)"
40
+ "css": "rgb(11 143 99 / 0.3)",
41
+ "value": "rgb(11 143 99 / 0.3)"
38
42
  },
39
43
  "accent-secondary": {
40
- "css": "#c8197a",
41
- "value": "#c8197a"
44
+ "css": "#7a55f5",
45
+ "value": "#7a55f5"
42
46
  },
43
47
  "accent-secondary-hover": {
44
- "css": "#dc3f93",
45
- "value": "#dc3f93"
48
+ "css": "#9274f7",
49
+ "value": "#9274f7"
46
50
  },
47
51
  "accent-secondary-tint": {
48
- "css": "#fde9f3",
49
- "value": "#fde9f3"
52
+ "css": "#efe9fe",
53
+ "value": "#efe9fe"
50
54
  },
51
55
  "accent-secondary-tint-strong": {
52
- "css": "#f8c5df",
53
- "value": "#f8c5df"
56
+ "css": "#d8cbfc",
57
+ "value": "#d8cbfc"
54
58
  },
55
59
  "on-accent-secondary-tint": {
56
- "css": "#650b3c",
57
- "value": "#650b3c"
60
+ "css": "#2c1170",
61
+ "value": "#2c1170"
62
+ },
63
+ "accent-secondary-fill": {
64
+ "css": "#7a55f5",
65
+ "value": "#7a55f5"
58
66
  },
59
67
  "on-accent-secondary": {
60
68
  "css": "#ffffff",
@@ -63,60 +71,68 @@
63
71
  },
64
72
  "dark": {
65
73
  "accent": {
66
- "css": "#a183ff",
67
- "value": "#a183ff"
74
+ "css": "#34d399",
75
+ "value": "#34d399"
68
76
  },
69
77
  "accent-hover": {
70
- "css": "#bba6ff",
71
- "value": "#bba6ff"
78
+ "css": "#6ee0b4",
79
+ "value": "#6ee0b4"
72
80
  },
73
81
  "accent-tint": {
74
- "css": "#1f1838",
75
- "value": "#1f1838"
82
+ "css": "#12251d",
83
+ "value": "#12251d"
76
84
  },
77
85
  "accent-tint-strong": {
78
- "css": "#31255e",
79
- "value": "#31255e"
86
+ "css": "#1a3d2f",
87
+ "value": "#1a3d2f"
80
88
  },
81
89
  "on-accent-tint": {
82
- "css": "#cdbdff",
83
- "value": "#cdbdff"
90
+ "css": "#8ef0c6",
91
+ "value": "#8ef0c6"
92
+ },
93
+ "accent-fill": {
94
+ "css": "#0a875e",
95
+ "value": "#0a875e"
84
96
  },
85
97
  "on-accent": {
86
- "css": "var(--pk-slate-900)",
87
- "value": "#080b12"
98
+ "css": "#ffffff",
99
+ "value": "#ffffff"
88
100
  },
89
101
  "focus-field": {
90
- "css": "#a183ff",
91
- "value": "#a183ff"
102
+ "css": "#34d399",
103
+ "value": "#34d399"
92
104
  },
93
105
  "focus-halo": {
94
- "css": "rgb(161 131 255 / 0.3)",
95
- "value": "rgb(161 131 255 / 0.3)"
106
+ "css": "rgb(52 211 153 / 0.3)",
107
+ "value": "rgb(52 211 153 / 0.3)"
96
108
  },
97
109
  "accent-secondary": {
98
- "css": "#ff66b2",
99
- "value": "#ff66b2"
110
+ "css": "#a183ff",
111
+ "value": "#a183ff"
100
112
  },
101
113
  "accent-secondary-hover": {
102
- "css": "#ff8fc6",
103
- "value": "#ff8fc6"
114
+ "css": "#bba6ff",
115
+ "value": "#bba6ff"
104
116
  },
105
117
  "accent-secondary-tint": {
106
- "css": "#34112a",
107
- "value": "#34112a"
118
+ "css": "#1f1838",
119
+ "value": "#1f1838"
108
120
  },
109
121
  "accent-secondary-tint-strong": {
110
- "css": "#541a43",
111
- "value": "#541a43"
122
+ "css": "#31255e",
123
+ "value": "#31255e"
112
124
  },
113
125
  "on-accent-secondary-tint": {
114
- "css": "#ffb0d6",
115
- "value": "#ffb0d6"
126
+ "css": "#cdbdff",
127
+ "value": "#cdbdff"
128
+ },
129
+ "accent-secondary-fill": {
130
+ "css": "#7a55f5",
131
+ "value": "#7a55f5"
116
132
  },
117
133
  "on-accent-secondary": {
118
- "css": "var(--pk-slate-900)",
119
- "value": "#080b12"
134
+ "css": "#ffffff",
135
+ "value": "#ffffff"
120
136
  }
121
137
  }
122
138
  },
@@ -141,12 +157,6 @@
141
157
  ],
142
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)."
143
159
  },
144
- "color.cat-green on color.accent-tint": {
145
- "themes": [
146
- "light"
147
- ],
148
- "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)."
149
- },
150
160
  "color.cat-teal on color.accent-tint": {
151
161
  "themes": [
152
162
  "light"
@@ -1,14 +1,22 @@
1
1
  /* Polykit brand "indigo".
2
- * Fictional example brand: Indigo primary accent, no secondary.
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(#5b6bd6, #8592f0);
7
- --pk-brand-accent-hover: light-dark(#7c89de, #aab3f5);
8
- --pk-brand-accent-tint: light-dark(#ebedfa, #262325);
9
- --pk-brand-accent-tint-strong: light-dark(#ced3f3, #33313f);
10
- --pk-brand-on-accent-tint: light-dark(#2f3a6e, #bcc3f7);
11
- --pk-brand-on-accent: light-dark(#ffffff, var(--pk-slate-900));
12
- --pk-brand-focus-field: light-dark(#5b6bd6, #8592f0);
13
- --pk-brand-focus-halo: light-dark(rgb(91 107 214 / 0.3), rgb(133 146 240 / 0.3));
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
+ --pk-brand-on-accent: #ffffff;
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;
14
22
  }