@polyfen/polykit-tokens 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +172 -2
- package/bin/polykit-brand.mjs +83 -0
- package/contrast.pairs.mjs +417 -0
- package/dist/_tokens.scss +492 -0
- package/dist/brand-contract.json +71 -0
- package/dist/brands/coral.css +14 -0
- package/dist/brands/coral.json +109 -0
- package/dist/brands/indigo.css +14 -0
- package/dist/brands/indigo.json +109 -0
- package/dist/brands/purple.css +14 -0
- package/dist/brands/purple.json +109 -0
- package/dist/brands/sky.css +14 -0
- package/dist/brands/sky.json +103 -0
- package/dist/brands/teal.css +14 -0
- package/dist/brands/teal.json +127 -0
- package/dist/brands/violet.css +20 -0
- package/dist/brands/violet.json +157 -0
- package/dist/index.d.ts +1439 -0
- package/dist/index.js +1436 -0
- package/dist/media.css +9 -0
- package/dist/shadcn.css +105 -0
- package/dist/tailwind.css +293 -0
- package/dist/themes/neutral.css +44 -0
- package/dist/tokens-studio.json +2405 -0
- package/dist/tokens.css +742 -0
- package/dist/tokens.dark.css +519 -0
- package/dist/tokens.json +928 -0
- package/dist/tokens.light.css +519 -0
- package/lib/brand.mjs +328 -0
- package/lib/contrast.mjs +130 -0
- package/package.json +54 -3
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "indigo",
|
|
3
|
+
"description": "Fictional example brand: Indigo primary accent, no secondary.",
|
|
4
|
+
"secondary": false,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#5b6bd6",
|
|
9
|
+
"value": "#5b6bd6"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#7c89de",
|
|
13
|
+
"value": "#7c89de"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#ebedfa",
|
|
17
|
+
"value": "#ebedfa"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#ced3f3",
|
|
21
|
+
"value": "#ced3f3"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#2f3a6e",
|
|
25
|
+
"value": "#2f3a6e"
|
|
26
|
+
},
|
|
27
|
+
"on-accent": {
|
|
28
|
+
"css": "#ffffff",
|
|
29
|
+
"value": "#ffffff"
|
|
30
|
+
},
|
|
31
|
+
"focus-field": {
|
|
32
|
+
"css": "#5b6bd6",
|
|
33
|
+
"value": "#5b6bd6"
|
|
34
|
+
},
|
|
35
|
+
"focus-halo": {
|
|
36
|
+
"css": "rgb(91 107 214 / 0.3)",
|
|
37
|
+
"value": "rgb(91 107 214 / 0.3)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dark": {
|
|
41
|
+
"accent": {
|
|
42
|
+
"css": "#8592f0",
|
|
43
|
+
"value": "#8592f0"
|
|
44
|
+
},
|
|
45
|
+
"accent-hover": {
|
|
46
|
+
"css": "#aab3f5",
|
|
47
|
+
"value": "#aab3f5"
|
|
48
|
+
},
|
|
49
|
+
"accent-tint": {
|
|
50
|
+
"css": "#262325",
|
|
51
|
+
"value": "#262325"
|
|
52
|
+
},
|
|
53
|
+
"accent-tint-strong": {
|
|
54
|
+
"css": "#33313f",
|
|
55
|
+
"value": "#33313f"
|
|
56
|
+
},
|
|
57
|
+
"on-accent-tint": {
|
|
58
|
+
"css": "#bcc3f7",
|
|
59
|
+
"value": "#bcc3f7"
|
|
60
|
+
},
|
|
61
|
+
"on-accent": {
|
|
62
|
+
"css": "var(--pk-slate-900)",
|
|
63
|
+
"value": "#080b12"
|
|
64
|
+
},
|
|
65
|
+
"focus-field": {
|
|
66
|
+
"css": "#8592f0",
|
|
67
|
+
"value": "#8592f0"
|
|
68
|
+
},
|
|
69
|
+
"focus-halo": {
|
|
70
|
+
"css": "rgb(133 146 240 / 0.3)",
|
|
71
|
+
"value": "rgb(133 146 240 / 0.3)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"font": {},
|
|
76
|
+
"headingWeight": null,
|
|
77
|
+
"exceptions": {
|
|
78
|
+
"color.danger on color.accent-tint": {
|
|
79
|
+
"themes": [
|
|
80
|
+
"light"
|
|
81
|
+
],
|
|
82
|
+
"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)."
|
|
83
|
+
},
|
|
84
|
+
"color.warning on color.accent-tint": {
|
|
85
|
+
"themes": [
|
|
86
|
+
"light"
|
|
87
|
+
],
|
|
88
|
+
"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)."
|
|
89
|
+
},
|
|
90
|
+
"color.priority-medium on color.accent-tint": {
|
|
91
|
+
"themes": [
|
|
92
|
+
"light"
|
|
93
|
+
],
|
|
94
|
+
"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)."
|
|
95
|
+
},
|
|
96
|
+
"color.cat-green on color.accent-tint": {
|
|
97
|
+
"themes": [
|
|
98
|
+
"light"
|
|
99
|
+
],
|
|
100
|
+
"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)."
|
|
101
|
+
},
|
|
102
|
+
"color.cat-teal on color.accent-tint": {
|
|
103
|
+
"themes": [
|
|
104
|
+
"light"
|
|
105
|
+
],
|
|
106
|
+
"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)."
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Polykit brand "purple".
|
|
2
|
+
* Fictional example brand: Purple primary accent, no secondary.
|
|
3
|
+
* Opt in with data-brand="purple" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="purple"] {
|
|
6
|
+
--pk-brand-accent: light-dark(#9a4fd0, #c08ae8);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#ae72d9, #d3adef);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#f3eaf9, #2b2224);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#e1caf1, #3e303e);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#482f6b, #dcbff2);
|
|
11
|
+
--pk-brand-on-accent: light-dark(#ffffff, var(--pk-slate-900));
|
|
12
|
+
--pk-brand-focus-field: light-dark(#9a4fd0, #c08ae8);
|
|
13
|
+
--pk-brand-focus-halo: light-dark(rgb(154 79 208 / 0.3), rgb(192 138 232 / 0.3));
|
|
14
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "purple",
|
|
3
|
+
"description": "Fictional example brand: Purple primary accent, no secondary.",
|
|
4
|
+
"secondary": false,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#9a4fd0",
|
|
9
|
+
"value": "#9a4fd0"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#ae72d9",
|
|
13
|
+
"value": "#ae72d9"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#f3eaf9",
|
|
17
|
+
"value": "#f3eaf9"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#e1caf1",
|
|
21
|
+
"value": "#e1caf1"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#482f6b",
|
|
25
|
+
"value": "#482f6b"
|
|
26
|
+
},
|
|
27
|
+
"on-accent": {
|
|
28
|
+
"css": "#ffffff",
|
|
29
|
+
"value": "#ffffff"
|
|
30
|
+
},
|
|
31
|
+
"focus-field": {
|
|
32
|
+
"css": "#9a4fd0",
|
|
33
|
+
"value": "#9a4fd0"
|
|
34
|
+
},
|
|
35
|
+
"focus-halo": {
|
|
36
|
+
"css": "rgb(154 79 208 / 0.3)",
|
|
37
|
+
"value": "rgb(154 79 208 / 0.3)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dark": {
|
|
41
|
+
"accent": {
|
|
42
|
+
"css": "#c08ae8",
|
|
43
|
+
"value": "#c08ae8"
|
|
44
|
+
},
|
|
45
|
+
"accent-hover": {
|
|
46
|
+
"css": "#d3adef",
|
|
47
|
+
"value": "#d3adef"
|
|
48
|
+
},
|
|
49
|
+
"accent-tint": {
|
|
50
|
+
"css": "#2b2224",
|
|
51
|
+
"value": "#2b2224"
|
|
52
|
+
},
|
|
53
|
+
"accent-tint-strong": {
|
|
54
|
+
"css": "#3e303e",
|
|
55
|
+
"value": "#3e303e"
|
|
56
|
+
},
|
|
57
|
+
"on-accent-tint": {
|
|
58
|
+
"css": "#dcbff2",
|
|
59
|
+
"value": "#dcbff2"
|
|
60
|
+
},
|
|
61
|
+
"on-accent": {
|
|
62
|
+
"css": "var(--pk-slate-900)",
|
|
63
|
+
"value": "#080b12"
|
|
64
|
+
},
|
|
65
|
+
"focus-field": {
|
|
66
|
+
"css": "#c08ae8",
|
|
67
|
+
"value": "#c08ae8"
|
|
68
|
+
},
|
|
69
|
+
"focus-halo": {
|
|
70
|
+
"css": "rgb(192 138 232 / 0.3)",
|
|
71
|
+
"value": "rgb(192 138 232 / 0.3)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"font": {},
|
|
76
|
+
"headingWeight": null,
|
|
77
|
+
"exceptions": {
|
|
78
|
+
"color.danger on color.accent-tint": {
|
|
79
|
+
"themes": [
|
|
80
|
+
"light"
|
|
81
|
+
],
|
|
82
|
+
"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)."
|
|
83
|
+
},
|
|
84
|
+
"color.warning on color.accent-tint": {
|
|
85
|
+
"themes": [
|
|
86
|
+
"light"
|
|
87
|
+
],
|
|
88
|
+
"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)."
|
|
89
|
+
},
|
|
90
|
+
"color.priority-medium on color.accent-tint": {
|
|
91
|
+
"themes": [
|
|
92
|
+
"light"
|
|
93
|
+
],
|
|
94
|
+
"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)."
|
|
95
|
+
},
|
|
96
|
+
"color.cat-green on color.accent-tint": {
|
|
97
|
+
"themes": [
|
|
98
|
+
"light"
|
|
99
|
+
],
|
|
100
|
+
"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)."
|
|
101
|
+
},
|
|
102
|
+
"color.cat-teal on color.accent-tint": {
|
|
103
|
+
"themes": [
|
|
104
|
+
"light"
|
|
105
|
+
],
|
|
106
|
+
"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)."
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Polykit brand "sky".
|
|
2
|
+
* Fictional example brand: Sky blue primary accent, no secondary.
|
|
3
|
+
* Opt in with data-brand="sky" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="sky"] {
|
|
6
|
+
--pk-brand-accent: light-dark(#0b7fbf, #4fb3e8);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#3c99cc, #84caef);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#e2f0f7, #222524);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#b6d9ec, #28383e);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#0f4264, #9ed5f2);
|
|
11
|
+
--pk-brand-on-accent: var(--pk-slate-900);
|
|
12
|
+
--pk-brand-focus-field: light-dark(#0b7fbf, #4fb3e8);
|
|
13
|
+
--pk-brand-focus-halo: light-dark(rgb(11 127 191 / 0.3), rgb(79 179 232 / 0.3));
|
|
14
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sky",
|
|
3
|
+
"description": "Fictional example brand: Sky blue primary accent, no secondary.",
|
|
4
|
+
"secondary": false,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#0b7fbf",
|
|
9
|
+
"value": "#0b7fbf"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#3c99cc",
|
|
13
|
+
"value": "#3c99cc"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#e2f0f7",
|
|
17
|
+
"value": "#e2f0f7"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#b6d9ec",
|
|
21
|
+
"value": "#b6d9ec"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#0f4264",
|
|
25
|
+
"value": "#0f4264"
|
|
26
|
+
},
|
|
27
|
+
"on-accent": {
|
|
28
|
+
"css": "var(--pk-slate-900)",
|
|
29
|
+
"value": "#080b12"
|
|
30
|
+
},
|
|
31
|
+
"focus-field": {
|
|
32
|
+
"css": "#0b7fbf",
|
|
33
|
+
"value": "#0b7fbf"
|
|
34
|
+
},
|
|
35
|
+
"focus-halo": {
|
|
36
|
+
"css": "rgb(11 127 191 / 0.3)",
|
|
37
|
+
"value": "rgb(11 127 191 / 0.3)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dark": {
|
|
41
|
+
"accent": {
|
|
42
|
+
"css": "#4fb3e8",
|
|
43
|
+
"value": "#4fb3e8"
|
|
44
|
+
},
|
|
45
|
+
"accent-hover": {
|
|
46
|
+
"css": "#84caef",
|
|
47
|
+
"value": "#84caef"
|
|
48
|
+
},
|
|
49
|
+
"accent-tint": {
|
|
50
|
+
"css": "#222524",
|
|
51
|
+
"value": "#222524"
|
|
52
|
+
},
|
|
53
|
+
"accent-tint-strong": {
|
|
54
|
+
"css": "#28383e",
|
|
55
|
+
"value": "#28383e"
|
|
56
|
+
},
|
|
57
|
+
"on-accent-tint": {
|
|
58
|
+
"css": "#9ed5f2",
|
|
59
|
+
"value": "#9ed5f2"
|
|
60
|
+
},
|
|
61
|
+
"on-accent": {
|
|
62
|
+
"css": "var(--pk-slate-900)",
|
|
63
|
+
"value": "#080b12"
|
|
64
|
+
},
|
|
65
|
+
"focus-field": {
|
|
66
|
+
"css": "#4fb3e8",
|
|
67
|
+
"value": "#4fb3e8"
|
|
68
|
+
},
|
|
69
|
+
"focus-halo": {
|
|
70
|
+
"css": "rgb(79 179 232 / 0.3)",
|
|
71
|
+
"value": "rgb(79 179 232 / 0.3)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"font": {},
|
|
76
|
+
"headingWeight": null,
|
|
77
|
+
"exceptions": {
|
|
78
|
+
"color.danger on color.accent-tint": {
|
|
79
|
+
"themes": [
|
|
80
|
+
"light"
|
|
81
|
+
],
|
|
82
|
+
"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)."
|
|
83
|
+
},
|
|
84
|
+
"color.warning on color.accent-tint": {
|
|
85
|
+
"themes": [
|
|
86
|
+
"light"
|
|
87
|
+
],
|
|
88
|
+
"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)."
|
|
89
|
+
},
|
|
90
|
+
"color.priority-medium on color.accent-tint": {
|
|
91
|
+
"themes": [
|
|
92
|
+
"light"
|
|
93
|
+
],
|
|
94
|
+
"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)."
|
|
95
|
+
},
|
|
96
|
+
"color.cat-teal on color.accent-tint": {
|
|
97
|
+
"themes": [
|
|
98
|
+
"light"
|
|
99
|
+
],
|
|
100
|
+
"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)."
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Polykit brand "teal".
|
|
2
|
+
* Fictional example brand: Teal primary accent, no secondary.
|
|
3
|
+
* Opt in with data-brand="teal" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="teal"] {
|
|
6
|
+
--pk-brand-accent: light-dark(#00a393, #14e0c8);
|
|
7
|
+
--pk-brand-accent-hover: light-dark(#33b5a9, #5be9d9);
|
|
8
|
+
--pk-brand-accent-tint: light-dark(#e0f4f2, #1d251e);
|
|
9
|
+
--pk-brand-accent-tint-strong: light-dark(#b3e3df, #1c3d34);
|
|
10
|
+
--pk-brand-on-accent-tint: light-dark(#0a5053, #7eeee1);
|
|
11
|
+
--pk-brand-on-accent: var(--pk-slate-900);
|
|
12
|
+
--pk-brand-focus-field: light-dark(#00a393, #14e0c8);
|
|
13
|
+
--pk-brand-focus-halo: light-dark(rgb(0 163 147 / 0.3), rgb(20 224 200 / 0.3));
|
|
14
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "teal",
|
|
3
|
+
"description": "Fictional example brand: Teal primary accent, no secondary.",
|
|
4
|
+
"secondary": false,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#00a393",
|
|
9
|
+
"value": "#00a393"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#33b5a9",
|
|
13
|
+
"value": "#33b5a9"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#e0f4f2",
|
|
17
|
+
"value": "#e0f4f2"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#b3e3df",
|
|
21
|
+
"value": "#b3e3df"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#0a5053",
|
|
25
|
+
"value": "#0a5053"
|
|
26
|
+
},
|
|
27
|
+
"on-accent": {
|
|
28
|
+
"css": "var(--pk-slate-900)",
|
|
29
|
+
"value": "#080b12"
|
|
30
|
+
},
|
|
31
|
+
"focus-field": {
|
|
32
|
+
"css": "#00a393",
|
|
33
|
+
"value": "#00a393"
|
|
34
|
+
},
|
|
35
|
+
"focus-halo": {
|
|
36
|
+
"css": "rgb(0 163 147 / 0.3)",
|
|
37
|
+
"value": "rgb(0 163 147 / 0.3)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dark": {
|
|
41
|
+
"accent": {
|
|
42
|
+
"css": "#14e0c8",
|
|
43
|
+
"value": "#14e0c8"
|
|
44
|
+
},
|
|
45
|
+
"accent-hover": {
|
|
46
|
+
"css": "#5be9d9",
|
|
47
|
+
"value": "#5be9d9"
|
|
48
|
+
},
|
|
49
|
+
"accent-tint": {
|
|
50
|
+
"css": "#1d251e",
|
|
51
|
+
"value": "#1d251e"
|
|
52
|
+
},
|
|
53
|
+
"accent-tint-strong": {
|
|
54
|
+
"css": "#1c3d34",
|
|
55
|
+
"value": "#1c3d34"
|
|
56
|
+
},
|
|
57
|
+
"on-accent-tint": {
|
|
58
|
+
"css": "#7eeee1",
|
|
59
|
+
"value": "#7eeee1"
|
|
60
|
+
},
|
|
61
|
+
"on-accent": {
|
|
62
|
+
"css": "var(--pk-slate-900)",
|
|
63
|
+
"value": "#080b12"
|
|
64
|
+
},
|
|
65
|
+
"focus-field": {
|
|
66
|
+
"css": "#14e0c8",
|
|
67
|
+
"value": "#14e0c8"
|
|
68
|
+
},
|
|
69
|
+
"focus-halo": {
|
|
70
|
+
"css": "rgb(20 224 200 / 0.3)",
|
|
71
|
+
"value": "rgb(20 224 200 / 0.3)"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"font": {},
|
|
76
|
+
"headingWeight": null,
|
|
77
|
+
"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
|
+
"color.danger on color.accent-tint": {
|
|
85
|
+
"themes": [
|
|
86
|
+
"light"
|
|
87
|
+
],
|
|
88
|
+
"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)."
|
|
89
|
+
},
|
|
90
|
+
"color.accent on color.accent-tint": {
|
|
91
|
+
"themes": [
|
|
92
|
+
"light"
|
|
93
|
+
],
|
|
94
|
+
"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)."
|
|
95
|
+
},
|
|
96
|
+
"color.warning on color.accent-tint": {
|
|
97
|
+
"themes": [
|
|
98
|
+
"light"
|
|
99
|
+
],
|
|
100
|
+
"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)."
|
|
101
|
+
},
|
|
102
|
+
"color.priority-medium on color.accent-tint": {
|
|
103
|
+
"themes": [
|
|
104
|
+
"light"
|
|
105
|
+
],
|
|
106
|
+
"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)."
|
|
107
|
+
},
|
|
108
|
+
"color.cat-teal on color.accent-tint": {
|
|
109
|
+
"themes": [
|
|
110
|
+
"light"
|
|
111
|
+
],
|
|
112
|
+
"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)."
|
|
113
|
+
},
|
|
114
|
+
"color.focus-field on color.canvas": {
|
|
115
|
+
"themes": [
|
|
116
|
+
"light"
|
|
117
|
+
],
|
|
118
|
+
"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)."
|
|
119
|
+
},
|
|
120
|
+
"color.accent on color.canvas": {
|
|
121
|
+
"themes": [
|
|
122
|
+
"light"
|
|
123
|
+
],
|
|
124
|
+
"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)."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Polykit brand "violet".
|
|
2
|
+
* Fictional example brand: Violet primary accent with a magenta secondary, like a marketing site.
|
|
3
|
+
* Opt in with data-brand="violet" on <html> or any element, after tokens.css.
|
|
4
|
+
* Needs light-dark() (Baseline 2024). */
|
|
5
|
+
[data-brand="violet"] {
|
|
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-on-accent: light-dark(#ffffff, var(--pk-slate-900));
|
|
12
|
+
--pk-brand-focus-field: light-dark(#7a55f5, #a183ff);
|
|
13
|
+
--pk-brand-focus-halo: light-dark(rgb(122 85 245 / 0.3), rgb(161 131 255 / 0.3));
|
|
14
|
+
--pk-brand-accent-secondary: light-dark(#c8197a, #ff66b2);
|
|
15
|
+
--pk-brand-accent-secondary-hover: light-dark(#dc3f93, #ff8fc6);
|
|
16
|
+
--pk-brand-accent-secondary-tint: light-dark(#fde9f3, #34112a);
|
|
17
|
+
--pk-brand-accent-secondary-tint-strong: light-dark(#f8c5df, #541a43);
|
|
18
|
+
--pk-brand-on-accent-secondary-tint: light-dark(#650b3c, #ffb0d6);
|
|
19
|
+
--pk-brand-on-accent-secondary: light-dark(#ffffff, var(--pk-slate-900));
|
|
20
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "violet",
|
|
3
|
+
"description": "Fictional example brand: Violet primary accent with a magenta secondary, like a marketing site.",
|
|
4
|
+
"secondary": true,
|
|
5
|
+
"colors": {
|
|
6
|
+
"light": {
|
|
7
|
+
"accent": {
|
|
8
|
+
"css": "#7a55f5",
|
|
9
|
+
"value": "#7a55f5"
|
|
10
|
+
},
|
|
11
|
+
"accent-hover": {
|
|
12
|
+
"css": "#9274f7",
|
|
13
|
+
"value": "#9274f7"
|
|
14
|
+
},
|
|
15
|
+
"accent-tint": {
|
|
16
|
+
"css": "#efe9fe",
|
|
17
|
+
"value": "#efe9fe"
|
|
18
|
+
},
|
|
19
|
+
"accent-tint-strong": {
|
|
20
|
+
"css": "#d8cbfc",
|
|
21
|
+
"value": "#d8cbfc"
|
|
22
|
+
},
|
|
23
|
+
"on-accent-tint": {
|
|
24
|
+
"css": "#2c1170",
|
|
25
|
+
"value": "#2c1170"
|
|
26
|
+
},
|
|
27
|
+
"on-accent": {
|
|
28
|
+
"css": "#ffffff",
|
|
29
|
+
"value": "#ffffff"
|
|
30
|
+
},
|
|
31
|
+
"focus-field": {
|
|
32
|
+
"css": "#7a55f5",
|
|
33
|
+
"value": "#7a55f5"
|
|
34
|
+
},
|
|
35
|
+
"focus-halo": {
|
|
36
|
+
"css": "rgb(122 85 245 / 0.3)",
|
|
37
|
+
"value": "rgb(122 85 245 / 0.3)"
|
|
38
|
+
},
|
|
39
|
+
"accent-secondary": {
|
|
40
|
+
"css": "#c8197a",
|
|
41
|
+
"value": "#c8197a"
|
|
42
|
+
},
|
|
43
|
+
"accent-secondary-hover": {
|
|
44
|
+
"css": "#dc3f93",
|
|
45
|
+
"value": "#dc3f93"
|
|
46
|
+
},
|
|
47
|
+
"accent-secondary-tint": {
|
|
48
|
+
"css": "#fde9f3",
|
|
49
|
+
"value": "#fde9f3"
|
|
50
|
+
},
|
|
51
|
+
"accent-secondary-tint-strong": {
|
|
52
|
+
"css": "#f8c5df",
|
|
53
|
+
"value": "#f8c5df"
|
|
54
|
+
},
|
|
55
|
+
"on-accent-secondary-tint": {
|
|
56
|
+
"css": "#650b3c",
|
|
57
|
+
"value": "#650b3c"
|
|
58
|
+
},
|
|
59
|
+
"on-accent-secondary": {
|
|
60
|
+
"css": "#ffffff",
|
|
61
|
+
"value": "#ffffff"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"dark": {
|
|
65
|
+
"accent": {
|
|
66
|
+
"css": "#a183ff",
|
|
67
|
+
"value": "#a183ff"
|
|
68
|
+
},
|
|
69
|
+
"accent-hover": {
|
|
70
|
+
"css": "#bba6ff",
|
|
71
|
+
"value": "#bba6ff"
|
|
72
|
+
},
|
|
73
|
+
"accent-tint": {
|
|
74
|
+
"css": "#1f1838",
|
|
75
|
+
"value": "#1f1838"
|
|
76
|
+
},
|
|
77
|
+
"accent-tint-strong": {
|
|
78
|
+
"css": "#31255e",
|
|
79
|
+
"value": "#31255e"
|
|
80
|
+
},
|
|
81
|
+
"on-accent-tint": {
|
|
82
|
+
"css": "#cdbdff",
|
|
83
|
+
"value": "#cdbdff"
|
|
84
|
+
},
|
|
85
|
+
"on-accent": {
|
|
86
|
+
"css": "var(--pk-slate-900)",
|
|
87
|
+
"value": "#080b12"
|
|
88
|
+
},
|
|
89
|
+
"focus-field": {
|
|
90
|
+
"css": "#a183ff",
|
|
91
|
+
"value": "#a183ff"
|
|
92
|
+
},
|
|
93
|
+
"focus-halo": {
|
|
94
|
+
"css": "rgb(161 131 255 / 0.3)",
|
|
95
|
+
"value": "rgb(161 131 255 / 0.3)"
|
|
96
|
+
},
|
|
97
|
+
"accent-secondary": {
|
|
98
|
+
"css": "#ff66b2",
|
|
99
|
+
"value": "#ff66b2"
|
|
100
|
+
},
|
|
101
|
+
"accent-secondary-hover": {
|
|
102
|
+
"css": "#ff8fc6",
|
|
103
|
+
"value": "#ff8fc6"
|
|
104
|
+
},
|
|
105
|
+
"accent-secondary-tint": {
|
|
106
|
+
"css": "#34112a",
|
|
107
|
+
"value": "#34112a"
|
|
108
|
+
},
|
|
109
|
+
"accent-secondary-tint-strong": {
|
|
110
|
+
"css": "#541a43",
|
|
111
|
+
"value": "#541a43"
|
|
112
|
+
},
|
|
113
|
+
"on-accent-secondary-tint": {
|
|
114
|
+
"css": "#ffb0d6",
|
|
115
|
+
"value": "#ffb0d6"
|
|
116
|
+
},
|
|
117
|
+
"on-accent-secondary": {
|
|
118
|
+
"css": "var(--pk-slate-900)",
|
|
119
|
+
"value": "#080b12"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"font": {},
|
|
124
|
+
"headingWeight": null,
|
|
125
|
+
"exceptions": {
|
|
126
|
+
"color.danger on color.accent-tint": {
|
|
127
|
+
"themes": [
|
|
128
|
+
"light"
|
|
129
|
+
],
|
|
130
|
+
"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)."
|
|
131
|
+
},
|
|
132
|
+
"color.warning on color.accent-tint": {
|
|
133
|
+
"themes": [
|
|
134
|
+
"light"
|
|
135
|
+
],
|
|
136
|
+
"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)."
|
|
137
|
+
},
|
|
138
|
+
"color.priority-medium on color.accent-tint": {
|
|
139
|
+
"themes": [
|
|
140
|
+
"light"
|
|
141
|
+
],
|
|
142
|
+
"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
|
+
},
|
|
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
|
+
"color.cat-teal on color.accent-tint": {
|
|
151
|
+
"themes": [
|
|
152
|
+
"light"
|
|
153
|
+
],
|
|
154
|
+
"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)."
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|