@mistriwork/engine 1.0.0-rc.62 → 1.0.0-rc.63
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/dist/shared/builtInThemes.js +96 -96
- package/dist/shared/frameworkWords.d.ts +1 -1
- package/dist/shared/frameworkWords.js +1 -1
- package/dist/shared/lookPalettes.d.ts +14 -3
- package/dist/shared/lookPalettes.js +67 -9
- package/dist/shared/theme.js +4 -0
- package/dist/shared/themeLooks.js +4 -11
- package/dist/shared/themePresets.d.ts +1 -0
- package/dist/shared/themeTokens.d.ts +1 -0
- package/dist/shared/themeTokens.js +1 -0
- package/package.json +1 -1
- package/schema/theme.d.ts +5 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const ROLES = ["ground", "surface", "raised", "line", "lineStrong", "lineControl", "ink", "inkMuted", "inkSubtle", "accent", "accentSoft", "link", "focus", "onAccent", "accentInk", "statusGood", "statusWarning", "statusCritical", "statusInfo", "navGround", "navInk", "navMuted", "navLine", "navAccent", "navCurrent", "navOnCurrent", "chart1", "chart2", "chart3", "chart4", "chart5", "chart6", "chart7", "chart8", "rulesSection", "rulesHead", "rulesWeight", "rulesControl", "primary", "onPrimary", "shadow", "band", "field"];
|
|
1
|
+
const ROLES = ["ground", "surface", "raised", "line", "lineStrong", "lineControl", "ink", "inkMuted", "inkSubtle", "accent", "accentSoft", "link", "focus", "onAccent", "accentInk", "statusGood", "statusWarning", "statusCritical", "statusInfo", "navGround", "navInk", "navMuted", "navLine", "navAccent", "navCurrent", "navOnCurrent", "chart1", "chart2", "chart3", "chart4", "chart5", "chart6", "chart7", "chart8", "rulesSection", "rulesHead", "rulesWeight", "rulesControl", "primary", "onPrimary", "shadow", "band", "field", "ai"];
|
|
2
2
|
/** A palette from its values in ROLES order ("-" for a role it leaves to its base). */
|
|
3
3
|
function p(values) {
|
|
4
4
|
const palette = {};
|
|
@@ -48,20 +48,20 @@ export const THEME_PRESETS = [
|
|
|
48
48
|
{
|
|
49
49
|
"id": "teal",
|
|
50
50
|
"label": "Teal",
|
|
51
|
-
"light": p("- - - - - - - - - #17a9c4 - #00687e #0b6f86 #1b1813 #1b1813 - - -
|
|
51
|
+
"light": p("- - - - - - - - - #17a9c4 - #00687e #0b6f86 #1b1813 #1b1813 - - - #56477e - - - - #00687e - - #0e8fb0 - - - #d97706 - - - - - - - #17a9c4"),
|
|
52
52
|
"dark": p("- - - - - - - - - #3ccbe0 - #79d6e6 #4cc6db #15130f #efe9de - - - - - - - - #79d6e6 - - #0c8ab0 - - - #c88317 - #d26b3b - - - - - #3ccbe0")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"id": "cobalt",
|
|
56
56
|
"label": "Cobalt",
|
|
57
|
-
"light": p("- - - - - - - - - #2f5ce8 - #2d4fd6 #2d4fd6 #faf8f3 #1b1813 - - -
|
|
58
|
-
"dark": p("- - - - - - - - - #7f9cff - #91a8ff #8aa1ff #15130f #efe9de - - -
|
|
57
|
+
"light": p("- - - - - - - - - #2f5ce8 - #2d4fd6 #2d4fd6 #faf8f3 #1b1813 - - - #105c6b - - - - #2d4fd6 - - #2557e0 - #0e9a6c #d97706 #e0428a #0e8fb0 - - - - - - #2f5ce8 #faf8f3"),
|
|
58
|
+
"dark": p("- - - - - - - - - #7f9cff - #91a8ff #8aa1ff #15130f #efe9de - - - #1cc2e0 - - - - #91a8ff - - #4369f0 - #12a678 #c88317 #e0559b #1597b9 #d26b3b - - - - - #7f9cff")
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"id": "violet",
|
|
62
62
|
"label": "Violet",
|
|
63
|
-
"light": p("- - - - - - - - - #7445e8 - #6534d8 #6534d8 #faf8f3 #1b1813 - - -
|
|
64
|
-
"dark": p("- - - - - - - - - #a98cff - #bea8ff #ad91ff #15130f #efe9de - - -
|
|
63
|
+
"light": p("- - - - - - - - - #7445e8 - #6534d8 #6534d8 #faf8f3 #1b1813 - - - #005e71 - - - - #6534d8 - - #9a6cf7 - #0e9a6c #d97706 #e0428a #0e8fb0 - - - - - - #7445e8 #faf8f3"),
|
|
64
|
+
"dark": p("- - - - - - - - - #a98cff - #bea8ff #ad91ff #15130f #efe9de - - - #1cc2e0 - - - - #bea8ff - - #9a78ec - #12a678 #c88317 #e0559b #1597b9 #d26b3b - - - - - #a98cff")
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"id": "plum",
|
|
@@ -78,8 +78,8 @@ export const THEME_PRESETS = [
|
|
|
78
78
|
{
|
|
79
79
|
"id": "slate",
|
|
80
80
|
"label": "Slate",
|
|
81
|
-
"light": p("- - - - - - - - - #4c6584 - #3f5670 #3f5670 #faf8f3 #1b1813 - - -
|
|
82
|
-
"dark": p("- - - - - - - - - #9fb4cf - #c2d0e1 #a8bbd2 #15130f #efe9de - - -
|
|
81
|
+
"light": p("- - - - - - - - - #4c6584 - #3f5670 #3f5670 #faf8f3 #1b1813 - - - #006158 - - - - #3f5670 - - #5f7690 - - - #d97706 - - - - - - - #4c6584 #faf8f3"),
|
|
82
|
+
"dark": p("- - - - - - - - - #9fb4cf - #c2d0e1 #a8bbd2 #15130f #efe9de - - - #1bc8b8 - - - - #c2d0e1 - - #8a9fba - - - #c88317 - #d26b3b - - - - - #9fb4cf")
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"id": "ink",
|
|
@@ -194,44 +194,44 @@ export const THEME_PRESETS = [
|
|
|
194
194
|
{
|
|
195
195
|
"id": "lumen",
|
|
196
196
|
"label": "Lumen",
|
|
197
|
-
"light": p("#ffffff #ffffff #f5f4f2 #ebe8e4 #8f8a83 #8f8a83 #1c1a17 #5c5852 #726c64 #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - #127a40 #a65308 #c52a2a #
|
|
198
|
-
"dark": p("#121110 #161514 #201f1d #2d2b27 #726d65 #726d65 #eeece8 #b8b3ab #9f9a92 #8aa1ff #1d2547 #91a8ff #5a73d6 - - #4ade80 #fbbf24 #f87171 #
|
|
197
|
+
"light": p("#ffffff #ffffff #f5f4f2 #ebe8e4 #8f8a83 #8f8a83 #1c1a17 #5c5852 #726c64 #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - #127a40 #a65308 #c52a2a #1c6c7d #fbfaf9 #1c1a17 #5c5852 #ebe8e4 #2d4fd6 - - #2557e0 #9a6cf7 #0e9a6c #d97706 #e0428a #0e8fb0 #a3510b #94a3b8 #ebe8e4 #ebe8e4 1px - #1c1a17 #ffffff"),
|
|
198
|
+
"dark": p("#121110 #161514 #201f1d #2d2b27 #726d65 #726d65 #eeece8 #b8b3ab #9f9a92 #8aa1ff #1d2547 #91a8ff #5a73d6 - - #4ade80 #fbbf24 #f87171 #1cc2e0 #141312 #eeece8 #aaa59d #262422 #91a8ff - - #4369f0 #12a678 #9a78ec #c88317 #e0559b #1597b9 #d26b3b #6b7694 #2d2b27 #2d2b27 1px - #eeece8 #121110"),
|
|
199
199
|
"palettes": [
|
|
200
200
|
{
|
|
201
201
|
"id": "crimson",
|
|
202
202
|
"label": "Crimson",
|
|
203
|
-
"light": p("- - - - - - - - - #b42318 #fdecea #b42318 #d9534a - - - - -
|
|
204
|
-
"dark": p("- - - - - - - - - #ff8f85 #3d1715 #ffaca5 #e06158 - - - - -
|
|
203
|
+
"light": p("- - - - - - - - - #b42318 #fdecea #b42318 #d9534a - - - - - #2d4fd6 - - - - #b42318 - - #d63a32 #2557e0 #9a6cf7 #0e9a6c #d97706 #e0428a #0e8fb0"),
|
|
204
|
+
"dark": p("- - - - - - - - - #ff8f85 #3d1715 #ffaca5 #e06158 - - - - - #91a8ff - - - - #ffaca5 - - #e5534b #3559e6 - #12a678 #1597b9 #e0559b #c88317")
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"id": "safety",
|
|
208
208
|
"label": "Safety orange",
|
|
209
|
-
"light": p("- - - - - - - - - #b33d0b #fdeee4 #b33d0b #d4612a - - - - -
|
|
210
|
-
"dark": p("- - - - - - - - - #ff9d66 #3b2112 #ffb88f #d8743a - - - - -
|
|
209
|
+
"light": p("- - - - - - - - - #b33d0b #fdeee4 #b33d0b #d4612a - - - - - #2d4fd6 - - - - #b33d0b - - #e8691f #2557e0 #9a6cf7 #0e9a6c #0e8fb0 #e0428a"),
|
|
210
|
+
"dark": p("- - - - - - - - - #ff9d66 #3b2112 #ffb88f #d8743a - - - - - #91a8ff - - - - #ffb88f - - #f07a32 #3559e6 - #12a678 #1597b9 #e0559b #c88317")
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"id": "amber",
|
|
214
214
|
"label": "Amber",
|
|
215
|
-
"light": p("- - - - - - - - - #875a00 #fbf2dc #875a00 #b57a33 - - - - -
|
|
216
|
-
"dark": p("- - - - - - - - - #f4b24a #3a2a10 #fbcf86 #b07d2d - - - - -
|
|
215
|
+
"light": p("- - - - - - - - - #875a00 #fbf2dc #875a00 #b57a33 - - - - - #2d4fd6 - - - - #875a00 - - #d97706 #2557e0 #9a6cf7 #0e9a6c #0e8fb0 #e0428a"),
|
|
216
|
+
"dark": p("- - - - - - - - - #f4b24a #3a2a10 #fbcf86 #b07d2d - - - - - #91a8ff - - - - #fbcf86 - - #c88317 #3559e6 - #12a678 #1597b9 #e0559b")
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"id": "moss",
|
|
220
220
|
"label": "Moss",
|
|
221
|
-
"light": p("- - - - - - - - - #436e10 #eef4e2 #436e10 #638f2a - - - - -
|
|
222
|
-
"dark": p("- - - - - - - - - #a6d468 #232f15 #bfe28f #7aa743 - - - - -
|
|
221
|
+
"light": p("- - - - - - - - - #436e10 #eef4e2 #436e10 #638f2a - - - - - #2d4fd6 - - - - #436e10 - - #6b9e1f #2557e0 #9a6cf7"),
|
|
222
|
+
"dark": p("- - - - - - - - - #a6d468 #232f15 #bfe28f #7aa743 - - - - - #91a8ff - - - - #bfe28f - - #8cbf45 #3559e6")
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"id": "emerald",
|
|
226
226
|
"label": "Emerald",
|
|
227
|
-
"light": p("- - - - - - - - - #08734f #e4f6ed #08734f #36966f - - - - -
|
|
228
|
-
"dark": p("- - - - - - - - - #4ad6a0 #0f3529 #7ee6bd #279771 - - - - -
|
|
227
|
+
"light": p("- - - - - - - - - #08734f #e4f6ed #08734f #36966f - - - - - #2d4fd6 - - - - #08734f - - #0e9a6c #2557e0 #9a6cf7"),
|
|
228
|
+
"dark": p("- - - - - - - - - #4ad6a0 #0f3529 #7ee6bd #279771 - - - - - #91a8ff - - - - #7ee6bd - - #12a678 #3559e6")
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
"id": "teal",
|
|
232
232
|
"label": "Teal",
|
|
233
|
-
"light": p("- - - - - - - - - #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - - - -
|
|
234
|
-
"dark": p("- - - - - - - - - #4cc6db #0f3540 #79d6e6 #2a8a9c - - - - -
|
|
233
|
+
"light": p("- - - - - - - - - #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - - - - #684fa2 - - - - #0b6f86 - - #0e8fb0 #2557e0 #9a6cf7 #0e9a6c #d97706 #e0428a"),
|
|
234
|
+
"dark": p("- - - - - - - - - #4cc6db #0f3540 #79d6e6 #2a8a9c - - - - - #91a8ff - - - - #79d6e6 - - #0c8ab0 #3559e6 - #12a678 #c88317 #e0559b")
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"id": "cobalt",
|
|
@@ -242,32 +242,32 @@ export const THEME_PRESETS = [
|
|
|
242
242
|
{
|
|
243
243
|
"id": "violet",
|
|
244
244
|
"label": "Violet",
|
|
245
|
-
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - -
|
|
245
|
+
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - - #00728f - - - - #6534d8 - - #9a6cf7 #2557e0"),
|
|
246
246
|
"dark": p("- - - - - - - - - #ad91ff #2a2154 #bea8ff #7c63cf - - - - - - - - - - #bea8ff - - #9a78ec #3559e6 #12a678")
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"id": "plum",
|
|
250
250
|
"label": "Plum",
|
|
251
|
-
"light": p("- - - - - - - - - #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - -
|
|
252
|
-
"dark": p("- - - - - - - - - #e28cea #3a1840 #edaef2 #b366bb - - - - -
|
|
251
|
+
"light": p("- - - - - - - - - #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - - #2d4fd6 - - - - #8a1f8f - - #b847c0 #0e9a6c #2557e0"),
|
|
252
|
+
"dark": p("- - - - - - - - - #e28cea #3a1840 #edaef2 #b366bb - - - - - #91a8ff - - - - #edaef2 - - #d062d8 #3559e6 - #12a678 #c88317")
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"id": "rose",
|
|
256
256
|
"label": "Rose",
|
|
257
|
-
"light": p("- - - - - - - - - #b4185a #fdebf2 #b4185a #d0608f - - - - -
|
|
258
|
-
"dark": p("- - - - - - - - - #f57ab9 #3e1631 #f9a6cf #bd5a8f - - - - -
|
|
257
|
+
"light": p("- - - - - - - - - #b4185a #fdebf2 #b4185a #d0608f - - - - - #2d4fd6 - - - - #b4185a - - #e0428a #2557e0 #9a6cf7 #0e9a6c #d97706"),
|
|
258
|
+
"dark": p("- - - - - - - - - #f57ab9 #3e1631 #f9a6cf #bd5a8f - - - - - #91a8ff - - - - #f9a6cf - - #e0559b #3559e6 - #12a678 #c88317")
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
"id": "slate",
|
|
262
262
|
"label": "Slate",
|
|
263
|
-
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 - - - - -
|
|
264
|
-
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - - - -
|
|
263
|
+
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 - - - - - #00776b - - - - #3f5670 - - #5f7690 #2557e0 #9a6cf7 #0e9a6c #d97706 #e0428a"),
|
|
264
|
+
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - - - - #1bc8b8 - - - - #c2d0e1 - - #8a9fba #3559e6 - #12a678 #c88317 #e0559b")
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
"id": "ink",
|
|
268
268
|
"label": "Ink",
|
|
269
|
-
"light": p("- - - - - - - - - #1c1a17 #eeedeb #1c1a17 #726c64 - - - - -
|
|
270
|
-
"dark": p("- - - - - - - - - #eeece8 #2a2826 #eeece8 #9f9a92 - - - - -
|
|
269
|
+
"light": p("- - - - - - - - - #1c1a17 #eeedeb #1c1a17 #726c64 - - - - - #2d4fd6 - - - - #1c1a17 - - #2b2620 #2557e0 #9a6cf7 #0e9a6c #d97706 #e0428a #0e8fb0"),
|
|
270
|
+
"dark": p("- - - - - - - - - #eeece8 #2a2826 #eeece8 #9f9a92 - - - - - #91a8ff - - - - #eeece8 - - #d9d0c0 #3559e6 - #12a678 #1597b9 #e0559b")
|
|
271
271
|
}
|
|
272
272
|
],
|
|
273
273
|
"defaultPalette": "cobalt",
|
|
@@ -370,20 +370,20 @@ export const THEME_PRESETS = [
|
|
|
370
370
|
{
|
|
371
371
|
"id": "teal",
|
|
372
372
|
"label": "Teal",
|
|
373
|
-
"light": p("- - - - - - - - - #0b6f86 - #0b6f86 #3c90a4 - - - - -
|
|
373
|
+
"light": p("- - - - - - - - - #0b6f86 - #0b6f86 #3c90a4 - - - - - #60479a - - - - #0b6f86 - - #0e8fb0 #000000 #6b6b6b #333333"),
|
|
374
374
|
"dark": p("- - - - - - - - - #4cc6db - #79d6e6 #2a8a9c - - - - - - - - - - #79d6e6 - - #0c8ab0 #ffffff")
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"id": "cobalt",
|
|
378
378
|
"label": "Cobalt",
|
|
379
|
-
"light": p("- - - - - - - - - #2d4fd6 - #2d4fd6 #6880e0 - - - - -
|
|
380
|
-
"dark": p("- - - - - - - - - #8aa1ff - #91a8ff #5a73d6 - - - - -
|
|
379
|
+
"light": p("- - - - - - - - - #2d4fd6 - #2d4fd6 #6880e0 - - - - - #106575 - - - - #2d4fd6 - - #2557e0 #000000"),
|
|
380
|
+
"dark": p("- - - - - - - - - #8aa1ff - #91a8ff #5a73d6 - - - - - #52c9e4 - - - - #91a8ff - - #4369f0 #ffffff #8a8a8a #cccccc")
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
383
|
"id": "violet",
|
|
384
384
|
"label": "Violet",
|
|
385
|
-
"light": p("- - - - - - - - - #6534d8 - #6534d8 #8a6ee6 - - - - -
|
|
386
|
-
"dark": p("- - - - - - - - - #ad91ff - #bea8ff #7c63cf - - - - -
|
|
385
|
+
"light": p("- - - - - - - - - #6534d8 - #6534d8 #8a6ee6 - - - - - #006a87 - - - - #6534d8 - - #9a6cf7 #000000 #6b6b6b #333333"),
|
|
386
|
+
"dark": p("- - - - - - - - - #ad91ff - #bea8ff #7c63cf - - - - - #52c9e4 - - - - #bea8ff - - #9a78ec #ffffff")
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"id": "plum",
|
|
@@ -400,8 +400,8 @@ export const THEME_PRESETS = [
|
|
|
400
400
|
{
|
|
401
401
|
"id": "slate",
|
|
402
402
|
"label": "Slate",
|
|
403
|
-
"light": p("- - - - - - - - - #3f5670 - #3f5670 #6e8399 - - - - -
|
|
404
|
-
"dark": p("- - - - - - - - - #a8bbd2 - #c2d0e1 #6f86a3 - - - - -
|
|
403
|
+
"light": p("- - - - - - - - - #3f5670 - #3f5670 #6e8399 - - - - - #006f63 - - - - #3f5670 - - #5f7690 #000000"),
|
|
404
|
+
"dark": p("- - - - - - - - - #a8bbd2 - #c2d0e1 #6f86a3 - - - - - #53cfc1 - - - - #c2d0e1 - - #8a9fba #ffffff #8a8a8a #cccccc #6a6a6a")
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"id": "ink",
|
|
@@ -511,20 +511,20 @@ export const THEME_PRESETS = [
|
|
|
511
511
|
{
|
|
512
512
|
"id": "teal",
|
|
513
513
|
"label": "Teal",
|
|
514
|
-
"light": p("- - - - - - - - - #0b6f86 - #0b6f86 #3c90a4 - - - - -
|
|
515
|
-
"dark": p("- - - - - - - - - #4cc6db - #79d6e6 #2a8a9c - - - - -
|
|
514
|
+
"light": p("- - - - - - - - - #0b6f86 - #0b6f86 #3c90a4 - - - - - #664f9c - - - - #0b6f86 - - #0e8fb0 #3a8560 #7b61c4 #c4573f #b25c8c #a8781f"),
|
|
515
|
+
"dark": p("- - - - - - - - - #4cc6db - #79d6e6 #2a8a9c - - - - - #baabec - - - - #79d6e6 - - #0c8ab0 #7fd1a0 #c4b1f2 #f2a08a #f08cc4 #ecc36e #6fd1c8 #92b8f2")
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
518
|
"id": "cobalt",
|
|
519
519
|
"label": "Cobalt",
|
|
520
|
-
"light": p("- - - - - - - - - #2d4fd6 - #2d4fd6 #6880e0 - - - - -
|
|
521
|
-
"dark": p("- - - - - - - - - #8aa1ff - #91a8ff #5a73d6 - - - - -
|
|
520
|
+
"light": p("- - - - - - - - - #2d4fd6 - #2d4fd6 #6880e0 - - - - - #236a79 - - - - #2d4fd6 - - #2557e0 #3a8560 #7b61c4 #c4573f #b25c8c #a8781f"),
|
|
521
|
+
"dark": p("- - - - - - - - - #8aa1ff - #91a8ff #5a73d6 - - - - - #69c6db - - - - #91a8ff - - #4369f0 #7fd1a0 #c4b1f2 #f2a08a #f08cc4 #ecc36e #6fd1c8 #92b8f2")
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
524
|
"id": "violet",
|
|
525
525
|
"label": "Violet",
|
|
526
|
-
"light": p("- - - - - - - - - #6534d8 - #6534d8 #8a6ee6 - - - - -
|
|
527
|
-
"dark": p("- - - - - - - - - #ad91ff - #bea8ff #7c63cf - - - - -
|
|
526
|
+
"light": p("- - - - - - - - - #6534d8 - #6534d8 #8a6ee6 - - - - - #006f8a - - - - #6534d8 - - #9a6cf7 #3a8560 #7b61c4 #c4573f #2f8f89 #a8781f"),
|
|
527
|
+
"dark": p("- - - - - - - - - #ad91ff - #bea8ff #7c63cf - - - - - #69c6db - - - - #bea8ff - - #9a78ec #7fd1a0 #92b8f2 #f2a08a #f08cc4 #ecc36e #6fd1c8")
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
"id": "plum",
|
|
@@ -541,8 +541,8 @@ export const THEME_PRESETS = [
|
|
|
541
541
|
{
|
|
542
542
|
"id": "slate",
|
|
543
543
|
"label": "Slate",
|
|
544
|
-
"light": p("- - - - - - - - - #3f5670 - #3f5670 #6e8399 - - - - -
|
|
545
|
-
"dark": p("- - - - - - - - - #a8bbd2 - #c2d0e1 #6f86a3 - - - - -
|
|
544
|
+
"light": p("- - - - - - - - - #3f5670 - #3f5670 #6e8399 - - - - - #007469 - - - - #3f5670 - - #5f7690 #c4573f #b25c8c #a8781f #7b61c4 #3a8560"),
|
|
545
|
+
"dark": p("- - - - - - - - - #a8bbd2 - #c2d0e1 #6f86a3 - - - - - #6acabe - - - - #c2d0e1 - - #8a9fba #7fd1a0 #c4b1f2 #f2a08a #f08cc4 #ecc36e #6fd1c8 #92b8f2")
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
548
|
"id": "ink",
|
|
@@ -640,20 +640,20 @@ export const THEME_PRESETS = [
|
|
|
640
640
|
{
|
|
641
641
|
"id": "teal",
|
|
642
642
|
"label": "Teal",
|
|
643
|
-
"light": p("- - - - - - - - - #0b6f86 #e3f5f8 #0b6f86 #3c90a4 #ffffff #0b6f86 - - -
|
|
643
|
+
"light": p("- - - - - - - - - #0b6f86 #e3f5f8 #0b6f86 #3c90a4 #ffffff #0b6f86 - - - #684fa2 - - - - - - - #0e8fb0 #0f6b4a #9a6cf7 #0e9a6c #d97706 #e0428a - - #0b6f86 #0b6f86 - - #0b6f86"),
|
|
644
644
|
"dark": p("- - - - - - - - - #4cc6db #0f3540 #79d6e6 #2a8a9c #0b1310 #79d6e6 - - - - - - - - - - - #0c8ab0 #5fbf92 #9a78ec #12a678 #c88317 #e0559b - - #2a8a9c #2a8a9c - - #4cc6db")
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
647
|
"id": "cobalt",
|
|
648
648
|
"label": "Cobalt",
|
|
649
|
-
"light": p("- - - - - - - - - #2d4fd6 #eef1fd #2d4fd6 #6880e0 #ffffff #2d4fd6 - - -
|
|
650
|
-
"dark": p("- - - - - - - - - #8aa1ff #1d2547 #91a8ff #5a73d6 #0b1310 #91a8ff - - -
|
|
649
|
+
"light": p("- - - - - - - - - #2d4fd6 #eef1fd #2d4fd6 #6880e0 #ffffff #2d4fd6 - - - #1c6c7d - - - - - - - #2557e0 #0f6b4a - - - - - - #2d4fd6 #2d4fd6 - - #2d4fd6"),
|
|
650
|
+
"dark": p("- - - - - - - - - #8aa1ff #1d2547 #91a8ff #5a73d6 #0b1310 #91a8ff - - - #1cc2e0 - - - - - - - #4369f0 #5fbf92 #c88317 #12a678 #1597b9 #e0559b - - #5a73d6 #5a73d6 - - #8aa1ff")
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
"id": "violet",
|
|
654
654
|
"label": "Violet",
|
|
655
|
-
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 #ffffff #6534d8 - - -
|
|
656
|
-
"dark": p("- - - - - - - - - #ad91ff #2a2154 #bea8ff #7c63cf #0b1310 #bea8ff - - -
|
|
655
|
+
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 #ffffff #6534d8 - - - #006f8c - - - - - - - #9a6cf7 #0f6b4a - - - - - - #6534d8 #6534d8 - - #6534d8"),
|
|
656
|
+
"dark": p("- - - - - - - - - #ad91ff #2a2154 #bea8ff #7c63cf #0b1310 #bea8ff - - - #1cc2e0 - - - - - - - #9a78ec #5fbf92 #c88317 #12a678 #1597b9 #e0559b - - #7c63cf #7c63cf - - #ad91ff")
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
"id": "plum",
|
|
@@ -670,8 +670,8 @@ export const THEME_PRESETS = [
|
|
|
670
670
|
{
|
|
671
671
|
"id": "slate",
|
|
672
672
|
"label": "Slate",
|
|
673
|
-
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 #ffffff #3f5670 - - -
|
|
674
|
-
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 #0b1310 #c2d0e1 - - -
|
|
673
|
+
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 #ffffff #3f5670 - - - #007468 - - - - - - - #5f7690 #0f6b4a #9a6cf7 #0e9a6c #d97706 #e0428a - - #3f5670 #3f5670 - - #3f5670"),
|
|
674
|
+
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 #0b1310 #c2d0e1 - - - #1bc8b8 - - - - - - - #8a9fba #5fbf92 #9a78ec #12a678 #c88317 #e0559b - - #6f86a3 #6f86a3 - - #a8bbd2")
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
677
|
"id": "ink",
|
|
@@ -819,20 +819,20 @@ export const THEME_PRESETS = [
|
|
|
819
819
|
{
|
|
820
820
|
"id": "teal",
|
|
821
821
|
"label": "Teal",
|
|
822
|
-
"light": p("- - - - - - - - - #0b6f86 #e2ecea #00687e #3c90a4 - - - - -
|
|
823
|
-
"dark": p("- - - - - - - - - #4cc6db #212d2d #79d6e6 #2a8a9c - - - - -
|
|
822
|
+
"light": p("- - - - - - - - - #0b6f86 #e2ecea #00687e #3c90a4 - - - - - #674ea1 - - - - #00687e - - #0e8fb0 #b4472a #2b5fa8 #2c6a46 #7b4a8c #8a6d1f #8a8578 #a3510b"),
|
|
823
|
+
"dark": p("- - - - - - - - - #4cc6db #212d2d #79d6e6 #2a8a9c - - - - - #b5a5ea - - - - #79d6e6 - - #0c8ab0 #e2896b #86b4f0 #6fc08f #c79ad6 #d8b65c #6fc7cf #d99a5b")
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
"id": "cobalt",
|
|
827
827
|
"label": "Cobalt",
|
|
828
|
-
"light": p("- - - - - - - - - #2d4fd6 #e6e8f4 #2d4fd6 #6880e0 - - - - -
|
|
829
|
-
"dark": p("- - - - - - - - - #8aa1ff #282831 #91a8ff #5a73d6 - - - - -
|
|
828
|
+
"light": p("- - - - - - - - - #2d4fd6 #e6e8f4 #2d4fd6 #6880e0 - - - - - #1b6b7c - - - - #2d4fd6 - - #2557e0 #b4472a #7b4a8c #2c6a46 #2f7f86 #8a6d1f #8a8578 #a3510b"),
|
|
829
|
+
"dark": p("- - - - - - - - - #8aa1ff #282831 #91a8ff #5a73d6 - - - - - #5bc1d9 - - - - #91a8ff - - #4369f0 #e2896b #c79ad6 #6fc08f #8c887f #d8b65c #6fc7cf #d99a5b")
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"id": "violet",
|
|
833
833
|
"label": "Violet",
|
|
834
|
-
"light": p("- - - - - - - - - #6534d8 #ede5f4 #6534d8 #8a6ee6 - - - - -
|
|
835
|
-
"dark": p("- - - - - - - - - #ad91ff #2d2731 #bea8ff #7c63cf - - - - -
|
|
834
|
+
"light": p("- - - - - - - - - #6534d8 #ede5f4 #6534d8 #8a6ee6 - - - - - #00708d - - - - #6534d8 - - #9a6cf7 #b4472a #2b5fa8 #2c6a46 #2f7f86 #8a6d1f #8a8578 #a3510b"),
|
|
835
|
+
"dark": p("- - - - - - - - - #ad91ff #2d2731 #bea8ff #7c63cf - - - - - #5bc1d9 - - - - #bea8ff - - #9a78ec #e2896b #86b4f0 #6fc08f #8c887f #d8b65c #6fc7cf #d99a5b")
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
"id": "plum",
|
|
@@ -849,8 +849,8 @@ export const THEME_PRESETS = [
|
|
|
849
849
|
{
|
|
850
850
|
"id": "slate",
|
|
851
851
|
"label": "Slate",
|
|
852
|
-
"light": p("- - - - - - - - - #3f5670 #e8e9e8 #3f5670 #6e8399 - - - - -
|
|
853
|
-
"dark": p("- - - - - - - - - #a8bbd2 #2c2c2c #c2d0e1 #6f86a3 - - - - -
|
|
852
|
+
"light": p("- - - - - - - - - #3f5670 #e8e9e8 #3f5670 #6e8399 - - - - - #00766a - - - - #3f5670 - - #5f7690 #b4472a #2b5fa8 #2c6a46 #7b4a8c #8a6d1f #8a8578 #a3510b"),
|
|
853
|
+
"dark": p("- - - - - - - - - #a8bbd2 #2c2c2c #c2d0e1 #6f86a3 - - - - - #5cc6b9 - - - - #c2d0e1 - - #8a9fba #e2896b #c79ad6 #6fc08f #8c887f #d8b65c #6fc7cf #d99a5b")
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
"id": "ink",
|
|
@@ -938,37 +938,37 @@ export const THEME_PRESETS = [
|
|
|
938
938
|
{
|
|
939
939
|
"id": "graphite",
|
|
940
940
|
"label": "Graphite",
|
|
941
|
-
"light": p("#f1f3f5 #ffffff #eceef1 #e1e4e8 #9aa1ab #78808c #0f1216 #474e58 #5c646f #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - #16714a #8a5700 #bb2a2a #
|
|
941
|
+
"light": p("#f1f3f5 #ffffff #eceef1 #e1e4e8 #9aa1ab #78808c #0f1216 #474e58 #5c646f #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - #16714a #8a5700 #bb2a2a #664ca0 #0f1216 #e6e9ee #a3abb7 #232830 #79d6e6 #1c222b #ffffff #0e8fb0 #9a6cf7 #0e9a6c #d97706 #e0428a #2557e0 #a3510b #94a3b8 #e1e4e8 #e1e4e8 1px - #0f1216 #ffffff"),
|
|
942
942
|
"dark": p("#0b0d10 #111418 #191d23 #232830 #4a525e #727b88 #eef1f5 #aab2be #8c95a2 #4cc6db #0f3540 #79d6e6 #2a8a9c - - #5fcf98 #e2b04e #ff8a80 #8ab4ff #07090b #e6e9ee #a3abb7 #1c2128 #79d6e6 #171c23 #ffffff #0c8ab0 #9a78ec #12a678 #c88317 #e0559b #3559e6 #d26b3b #6b7694 #232830 #232830 1px - #eef1f5 #0b0d10"),
|
|
943
943
|
"palettes": [
|
|
944
944
|
{
|
|
945
945
|
"id": "crimson",
|
|
946
946
|
"label": "Crimson",
|
|
947
|
-
"light": p("- - - - - - - - - #b42318 #fdecea #b42318 #d9534a - - - - -
|
|
947
|
+
"light": p("- - - - - - - - - #b42318 #fdecea #b42318 #d9534a - - - - - #2459b8 - - - - #ffaca5 - - #d63a32 #0e8fb0 #9a6cf7 #0e9a6c #d97706 #e0428a #2557e0"),
|
|
948
948
|
"dark": p("- - - - - - - - - #ff8f85 #3d1715 #ffaca5 #e06158 - - - - - - - - - - #ffaca5 - - #e5534b #1597b9 - #9a78ec #c88317 #e0559b #3559e6")
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
951
|
"id": "safety",
|
|
952
952
|
"label": "Safety orange",
|
|
953
|
-
"light": p("- - - - - - - - - #b33d0b #fdeee4 #b33d0b #d4612a - - - - -
|
|
953
|
+
"light": p("- - - - - - - - - #b33d0b #fdeee4 #b33d0b #d4612a - - - - - #2459b8 - - - - #ffb88f - - #e8691f #0e8fb0 #9a6cf7 #0e9a6c #2557e0 #e0428a"),
|
|
954
954
|
"dark": p("- - - - - - - - - #ff9d66 #3b2112 #ffb88f #d8743a - - - - - - - - - - #ffb88f - - #f07a32 #1597b9 - #9a78ec #c88317 #e0559b #3559e6")
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
"id": "amber",
|
|
958
958
|
"label": "Amber",
|
|
959
|
-
"light": p("- - - - - - - - - #875a00 #fbf2dc #875a00 #b57a33 - - - - -
|
|
959
|
+
"light": p("- - - - - - - - - #875a00 #fbf2dc #875a00 #b57a33 - - - - - #2459b8 - - - - #fbcf86 - - #d97706 #0e8fb0 #9a6cf7 #0e9a6c #2557e0 #e0428a"),
|
|
960
960
|
"dark": p("- - - - - - - - - #f4b24a #3a2a10 #fbcf86 #b07d2d - - - - - - - - - - #fbcf86 - - #c88317 #1597b9 - #9a78ec")
|
|
961
961
|
},
|
|
962
962
|
{
|
|
963
963
|
"id": "moss",
|
|
964
964
|
"label": "Moss",
|
|
965
|
-
"light": p("- - - - - - - - - #436e10 #eef4e2 #436e10 #638f2a - - - - -
|
|
965
|
+
"light": p("- - - - - - - - - #436e10 #eef4e2 #436e10 #638f2a - - - - - #2459b8 - - - - #bfe28f - - #6b9e1f #0e8fb0 #9a6cf7"),
|
|
966
966
|
"dark": p("- - - - - - - - - #a6d468 #232f15 #bfe28f #7aa743 - - - - - - - - - - #bfe28f - - #8cbf45 #1597b9 #c88317 #9a78ec")
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
"id": "emerald",
|
|
970
970
|
"label": "Emerald",
|
|
971
|
-
"light": p("- - - - - - - - - #08734f #e4f6ed #08734f #36966f - - - - -
|
|
971
|
+
"light": p("- - - - - - - - - #08734f #e4f6ed #08734f #36966f - - - - - #2459b8 - - - - #7ee6bd - - #0e9a6c #0e8fb0 #9a6cf7"),
|
|
972
972
|
"dark": p("- - - - - - - - - #4ad6a0 #0f3529 #7ee6bd #279771 - - - - - - - - - - #7ee6bd - - #12a678 #1597b9 #c88317 #9a78ec")
|
|
973
973
|
},
|
|
974
974
|
{
|
|
@@ -980,37 +980,37 @@ export const THEME_PRESETS = [
|
|
|
980
980
|
{
|
|
981
981
|
"id": "cobalt",
|
|
982
982
|
"label": "Cobalt",
|
|
983
|
-
"light": p("- - - - - - - - - #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - - - -
|
|
984
|
-
"dark": p("- - - - - - - - - #8aa1ff #1d2547 #91a8ff #5a73d6 - - - - -
|
|
983
|
+
"light": p("- - - - - - - - - #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - - - - #186a7a - - - - #91a8ff - - #2557e0 #0e8fb0 #9a6cf7 #0e9a6c #d97706 #e0428a"),
|
|
984
|
+
"dark": p("- - - - - - - - - #8aa1ff #1d2547 #91a8ff #5a73d6 - - - - - #44c7e3 - - - - #91a8ff - - #4369f0 #1597b9 - #9a78ec #c88317 #e0559b")
|
|
985
985
|
},
|
|
986
986
|
{
|
|
987
987
|
"id": "violet",
|
|
988
988
|
"label": "Violet",
|
|
989
|
-
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - -
|
|
990
|
-
"dark": p("- - - - - - - - - #ad91ff #2a2154 #bea8ff #7c63cf - - - - -
|
|
989
|
+
"light": p("- - - - - - - - - #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - - #006f8c - - - - #bea8ff - - #9a6cf7 #0e8fb0"),
|
|
990
|
+
"dark": p("- - - - - - - - - #ad91ff #2a2154 #bea8ff #7c63cf - - - - - #44c7e3 - - - - #bea8ff - - #9a78ec #12a678 #1597b9")
|
|
991
991
|
},
|
|
992
992
|
{
|
|
993
993
|
"id": "plum",
|
|
994
994
|
"label": "Plum",
|
|
995
|
-
"light": p("- - - - - - - - - #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - -
|
|
995
|
+
"light": p("- - - - - - - - - #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - - #2459b8 - - - - #edaef2 - - #b847c0 #0e9a6c #0e8fb0"),
|
|
996
996
|
"dark": p("- - - - - - - - - #e28cea #3a1840 #edaef2 #b366bb - - - - - - - - - - #edaef2 - - #d062d8 #12a678 #1597b9 - #9a78ec")
|
|
997
997
|
},
|
|
998
998
|
{
|
|
999
999
|
"id": "rose",
|
|
1000
1000
|
"label": "Rose",
|
|
1001
|
-
"light": p("- - - - - - - - - #b4185a #fdebf2 #b4185a #d0608f - - - - -
|
|
1001
|
+
"light": p("- - - - - - - - - #b4185a #fdebf2 #b4185a #d0608f - - - - - #2459b8 - - - - #f9a6cf - - #e0428a #0e8fb0 #9a6cf7 #0e9a6c #d97706"),
|
|
1002
1002
|
"dark": p("- - - - - - - - - #f57ab9 #3e1631 #f9a6cf #bd5a8f - - - - - - - - - - #f9a6cf - - #e0559b #1597b9 - #9a78ec #c88317")
|
|
1003
1003
|
},
|
|
1004
1004
|
{
|
|
1005
1005
|
"id": "slate",
|
|
1006
1006
|
"label": "Slate",
|
|
1007
|
-
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 - - - - -
|
|
1008
|
-
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - - - -
|
|
1007
|
+
"light": p("- - - - - - - - - #3f5670 #ebeff4 #3f5670 #6e8399 - - - - - #007569 - - - - #c2d0e1 - - #5f7690"),
|
|
1008
|
+
"dark": p("- - - - - - - - - #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - - - - #44ccbe - - - - #c2d0e1 - - #8a9fba")
|
|
1009
1009
|
},
|
|
1010
1010
|
{
|
|
1011
1011
|
"id": "ink",
|
|
1012
1012
|
"label": "Ink",
|
|
1013
|
-
"light": p("- - - - - - - - - #1c1a17 #eeedeb #1c1a17 #726c64 - - - - -
|
|
1013
|
+
"light": p("- - - - - - - - - #1c1a17 #eeedeb #1c1a17 #726c64 - - - - - #2459b8 - - - - #eeece8 - - #2b2620 #0e8fb0 #9a6cf7 #0e9a6c #d97706 #e0428a #2557e0"),
|
|
1014
1014
|
"dark": p("- - - - - - - - - #eeece8 #2a2826 #eeece8 #9f9a92 - - - - - - - - - - #eeece8 - - #d9d0c0 #1597b9 - #9a78ec")
|
|
1015
1015
|
}
|
|
1016
1016
|
],
|
|
@@ -1098,26 +1098,26 @@ export const THEME_PRESETS = [
|
|
|
1098
1098
|
{
|
|
1099
1099
|
"id": "bloom",
|
|
1100
1100
|
"label": "Bloom",
|
|
1101
|
-
"light": p("#f2f3f5 #ffffff #eeeff2 #e2e3e7 #abafb6 #82878f #181c21 #4e5259 #60656c #3f5670 #ebeff4 #3f5670 #6e8399 - - #1c7550 #875600 #c0263b #
|
|
1102
|
-
"dark": p("#0e1114 #15191c #1e2126 #272b31 #4f5660 #777f88 #eceff2 #b1b6be #9298a0 #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - #6fd0a0 #e6b458 #ff8f9d #
|
|
1101
|
+
"light": p("#f2f3f5 #ffffff #eeeff2 #e2e3e7 #abafb6 #82878f #181c21 #4e5259 #60656c #3f5670 #ebeff4 #3f5670 #6e8399 - - #1c7550 #875600 #c0263b #00776a #ffffff #181c21 #4e5259 #e2e3e7 #3f5670 - - #5f7690 #9a6cf7 #0e9a6c #d97706 #e0428a #2557e0 #a3510b #94a3b8 #e2e3e7 #e2e3e7 1px - #3f5670 - - - #ffffff"),
|
|
1102
|
+
"dark": p("#0e1114 #15191c #1e2126 #272b31 #4f5660 #777f88 #eceff2 #b1b6be #9298a0 #a8bbd2 #1f2733 #c2d0e1 #6f86a3 - - #6fd0a0 #e6b458 #ff8f9d #4ccdbf #15191c #eceff2 #b1b6be #272b31 #c2d0e1 - - #8a9fba #9a78ec #12a678 #c88317 #e0559b #3559e6 #d26b3b #6b7694 #272b31 #272b31 1px - #a8bbd2 - - - #15191c"),
|
|
1103
1103
|
"palettes": [
|
|
1104
1104
|
{
|
|
1105
1105
|
"id": "crimson",
|
|
1106
1106
|
"label": "Crimson",
|
|
1107
|
-
"light": p("#faf1ed - #f8ede9 #f0e0d9 #c7a79b #a27d71 #2b1510 #684a41 #7c5b53 #b42318 #fdecea #b42318 #d9534a - - - - - #
|
|
1108
|
-
"dark": p("#1a0c0b #251311 #301a18 #3d2320 #754742 #9f716a #faebe8 #d0ada6 #b38d87 #ff8f85 #3d1715 #ffaca5 #e06158 - - - - - #
|
|
1107
|
+
"light": p("#faf1ed - #f8ede9 #f0e0d9 #c7a79b #a27d71 #2b1510 #684a41 #7c5b53 #b42318 #fdecea #b42318 #d9534a - - - - - #2f62c9 - #2b1510 #684a41 #f0e0d9 #b42318 - - #d63a32 - - - - #0e8fb0 #2557e0 - #f0e0d9 #f0e0d9 - - #b42318"),
|
|
1108
|
+
"dark": p("#1a0c0b #251311 #301a18 #3d2320 #754742 #9f716a #faebe8 #d0ada6 #b38d87 #ff8f85 #3d1715 #ffaca5 #e06158 - - - - - #8fb5ff #251311 #faebe8 #d0ada6 #3d2320 #ffaca5 - - #e5534b - - - - #1597b9 #3559e6 - #3d2320 #3d2320 - - #ff8f85 - - - #251311")
|
|
1109
1109
|
},
|
|
1110
1110
|
{
|
|
1111
1111
|
"id": "safety",
|
|
1112
1112
|
"label": "Safety orange",
|
|
1113
|
-
"light": p("#f9f1ed - #f6ede8 #eee1d9 #c3a99b #9e7f70 #29160f #654b40 #785d51 #b33d0b #fdeee4 #b33d0b #d4612a - - - - - #
|
|
1114
|
-
"dark": p("#1a0d07 #24140b #2f1c11 #3b2418 #724b35 #9c745e #f9ece4 #cdaf9d #b0907d #ff9d66 #3b2112 #ffb88f #d8743a - - - - - #
|
|
1113
|
+
"light": p("#f9f1ed - #f6ede8 #eee1d9 #c3a99b #9e7f70 #29160f #654b40 #785d51 #b33d0b #fdeee4 #b33d0b #d4612a - - - - - #2f62c9 - #29160f #654b40 #eee1d9 #b33d0b - - #e8691f - - #0e8fb0 - - - - #eee1d9 #eee1d9 - - #b33d0b"),
|
|
1114
|
+
"dark": p("#1a0d07 #24140b #2f1c11 #3b2418 #724b35 #9c745e #f9ece4 #cdaf9d #b0907d #ff9d66 #3b2112 #ffb88f #d8743a - - - - - #8fb5ff #24140b #f9ece4 #cdaf9d #3b2418 #ffb88f - - #f07a32 - - - - #1597b9 #3559e6 - #3b2418 #3b2418 - - #ff9d66 - - - #24140b")
|
|
1115
1115
|
},
|
|
1116
1116
|
{
|
|
1117
1117
|
"id": "amber",
|
|
1118
1118
|
"label": "Amber",
|
|
1119
|
-
"light": p("#f5f3ee - #f1efea #e7e3db #b6ae9e #8f8573 #211a10 #595142 #6c6353 #875a00 #fbf2dc #875a00 #b57a33 - - - - - #
|
|
1120
|
-
"dark": p("#170f04 #211607 #2b1e0b #372811 #6a5029 #937a54 #f5eee1 #c5b397 #a99476 #f4b24a #3a2a10 #fbcf86 #b07d2d - - - - - #
|
|
1119
|
+
"light": p("#f5f3ee - #f1efea #e7e3db #b6ae9e #8f8573 #211a10 #595142 #6c6353 #875a00 #fbf2dc #875a00 #b57a33 - - - - - #2f62c9 - #211a10 #595142 #e7e3db #875a00 - - #d97706 - - #0e8fb0 - - - - #e7e3db #e7e3db - - #875a00"),
|
|
1120
|
+
"dark": p("#170f04 #211607 #2b1e0b #372811 #6a5029 #937a54 #f5eee1 #c5b397 #a99476 #f4b24a #3a2a10 #fbcf86 #b07d2d - - - - - #8fb5ff #211607 #f5eee1 #c5b397 #372811 #fbcf86 - - #c88317 - - #1597b9 - - - - #372811 #372811 - - #f4b24a - - - #211607")
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
1123
|
"id": "moss",
|
|
@@ -1134,32 +1134,32 @@ export const THEME_PRESETS = [
|
|
|
1134
1134
|
{
|
|
1135
1135
|
"id": "teal",
|
|
1136
1136
|
"label": "Teal",
|
|
1137
|
-
"light": p("#eff4f6 - #ebf0f3 #dde5e9 #a3b1b9 #788a92 #121e22 #46555b #57676e #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - - - - #
|
|
1138
|
-
"dark": p("#061315 #091b1f #0f2529 #152f34 #305d66 #5c868f #e5f1f5 #9ebcc4 #7d9ea6 #4cc6db #0f3540 #79d6e6 #2a8a9c - - - - - #
|
|
1137
|
+
"light": p("#eff4f6 - #ebf0f3 #dde5e9 #a3b1b9 #788a92 #121e22 #46555b #57676e #0b6f86 #e3f5f8 #0b6f86 #3c90a4 - - - - - #6f57ab - #121e22 #46555b #dde5e9 #0b6f86 - - #0e8fb0 - - - - - - - #dde5e9 #dde5e9 - - #0b6f86"),
|
|
1138
|
+
"dark": p("#061315 #091b1f #0f2529 #152f34 #305d66 #5c868f #e5f1f5 #9ebcc4 #7d9ea6 #4cc6db #0f3540 #79d6e6 #2a8a9c - - - - - #8fb5ff #091b1f #e5f1f5 #9ebcc4 #152f34 #79d6e6 - - #0c8ab0 - - - - - - - #152f34 #152f34 - - #4cc6db - - - #091b1f")
|
|
1139
1139
|
},
|
|
1140
1140
|
{
|
|
1141
1141
|
"id": "cobalt",
|
|
1142
1142
|
"label": "Cobalt",
|
|
1143
|
-
"light": p("#f1f2fb - #edeefa #e0e2f3 #a7adce #7c84a9 #141a30 #49506f #5a6383 #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - - - - #
|
|
1144
|
-
"dark": p("#0c101c #131727 #1b2033 #232940 #49537a #727ca3 #ebeefb #aeb4d2 #8e96b6 #8aa1ff #1d2547 #91a8ff #5a73d6 - - - - - #
|
|
1143
|
+
"light": p("#f1f2fb - #edeefa #e0e2f3 #a7adce #7c84a9 #141a30 #49506f #5a6383 #2d4fd6 #eef1fd #2d4fd6 #6880e0 - - - - - #237182 - #141a30 #49506f #e0e2f3 #2d4fd6 - - #2557e0 - - - - #0e8fb0 - - #e0e2f3 #e0e2f3 - - #2d4fd6"),
|
|
1144
|
+
"dark": p("#0c101c #131727 #1b2033 #232940 #49537a #727ca3 #ebeefb #aeb4d2 #8e96b6 #8aa1ff #1d2547 #91a8ff #5a73d6 - - - - - #4bc8e3 #131727 #ebeefb #aeb4d2 #232940 #91a8ff - - #4369f0 #12a678 #9a78ec - - #1597b9 - - #232940 #232940 - - #8aa1ff - - - #131727")
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
1147
1147
|
"id": "violet",
|
|
1148
1148
|
"label": "Violet",
|
|
1149
|
-
"light": p("#f4f1fb - #f1edf9 #e6e0f2 #b3a8cc #8a7fa8 #1c1730 #544c6e #665e82 #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - - #
|
|
1150
|
-
"dark": p("#110e1c #191527 #221d33 #2c2640 #584d7a #8176a3 #f0ecfb #b9b0d2 #9a91b6 #ad91ff #2a2154 #bea8ff #7c63cf - - - - - #
|
|
1149
|
+
"light": p("#f4f1fb - #f1edf9 #e6e0f2 #b3a8cc #8a7fa8 #1c1730 #544c6e #665e82 #6534d8 #f1ecff #6534d8 #8a6ee6 - - - - - #00718e - #1c1730 #544c6e #e6e0f2 #6534d8 - - #9a6cf7 #0e9a6c #d97706 #e0428a #0e8fb0 - - - #e6e0f2 #e6e0f2 - - #6534d8"),
|
|
1150
|
+
"dark": p("#110e1c #191527 #221d33 #2c2640 #584d7a #8176a3 #f0ecfb #b9b0d2 #9a91b6 #ad91ff #2a2154 #bea8ff #7c63cf - - - - - #4bc8e3 #191527 #f0ecfb #b9b0d2 #2c2640 #bea8ff - - #9a78ec #12a678 #c88317 #e0559b #1597b9 - - - #2c2640 #2c2640 - - #ad91ff - - - #191527")
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
1153
1153
|
"id": "plum",
|
|
1154
1154
|
"label": "Plum",
|
|
1155
|
-
"light": p("#f8f0f6 - #f6ecf2 #eddfe8 #c1a5b9 #9a7b93 #261525 #62495d #755b70 #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - - #
|
|
1156
|
-
"dark": p("#170c18 #201322 #2b1a2c #362238 #6a476c #947095 #f7eaf6 #c8acc6 #aa8caa #e28cea #3a1840 #edaef2 #b366bb - - - - - #
|
|
1155
|
+
"light": p("#f8f0f6 - #f6ecf2 #eddfe8 #c1a5b9 #9a7b93 #261525 #62495d #755b70 #8a1f8f #f8eaf8 #8a1f8f #b65bbb - - - - - #2f62c9 - #261525 #62495d #eddfe8 #8a1f8f - - #b847c0 #0e9a6c #d97706 #e0428a #0e8fb0 - - - #eddfe8 #eddfe8 - - #8a1f8f"),
|
|
1156
|
+
"dark": p("#170c18 #201322 #2b1a2c #362238 #6a476c #947095 #f7eaf6 #c8acc6 #aa8caa #e28cea #3a1840 #edaef2 #b366bb - - - - - #8fb5ff #201322 #f7eaf6 #c8acc6 #362238 #edaef2 - - #d062d8 #12a678 #9a78ec - #1597b9 - - - #362238 #362238 - - #e28cea - - - #201322")
|
|
1157
1157
|
},
|
|
1158
1158
|
{
|
|
1159
1159
|
"id": "rose",
|
|
1160
1160
|
"label": "Rose",
|
|
1161
|
-
"light": p("#faf0f0 - #f8ecec #f1dedf #c9a4a7 #a37a7f #2b1319 #69484c #7d595e #b4185a #fdebf2 #b4185a #d0608f - - - - - #
|
|
1162
|
-
"dark": p("#1a0b12 #24111b #301824 #3c212e #74445b #9e6d83 #fbe9ef #d0aab8 #b38a9b #f57ab9 #3e1631 #f9a6cf #bd5a8f - - - - - #
|
|
1161
|
+
"light": p("#faf0f0 - #f8ecec #f1dedf #c9a4a7 #a37a7f #2b1319 #69484c #7d595e #b4185a #fdebf2 #b4185a #d0608f - - - - - #2f62c9 - #2b1319 #69484c #f1dedf #b4185a - - #e0428a - - - #0e8fb0 - - - #f1dedf #f1dedf - - #b4185a"),
|
|
1162
|
+
"dark": p("#1a0b12 #24111b #301824 #3c212e #74445b #9e6d83 #fbe9ef #d0aab8 #b38a9b #f57ab9 #3e1631 #f9a6cf #bd5a8f - - - - - #8fb5ff #24111b #fbe9ef #d0aab8 #3c212e #f9a6cf - - #e0559b - - - #1597b9 - - - #3c212e #3c212e - - #f57ab9 - - - #24111b")
|
|
1163
1163
|
},
|
|
1164
1164
|
{
|
|
1165
1165
|
"id": "slate",
|
|
@@ -1170,8 +1170,8 @@ export const THEME_PRESETS = [
|
|
|
1170
1170
|
{
|
|
1171
1171
|
"id": "ink",
|
|
1172
1172
|
"label": "Ink",
|
|
1173
|
-
"light": p("#f3f3f2 - #efefef #e3e3e3 #afafae #878685 #1c1c1b #525251 #656463 #1c1a17 #eeedeb #1c1a17 #726c64 - - - - - #
|
|
1174
|
-
"dark": p("#111010 #191818 #212120 #2b2b2a #565554 #7f7e7c #efeeee #b6b6b5 #989796 #eeece8 #2a2826 #eeece8 #9f9a92 - - - - - #
|
|
1173
|
+
"light": p("#f3f3f2 - #efefef #e3e3e3 #afafae #878685 #1c1c1b #525251 #656463 #1c1a17 #eeedeb #1c1a17 #726c64 - - - - - #2f62c9 - #1c1c1b #525251 #e3e3e3 #1c1a17 - - #2b2620 - - - - #0e8fb0 #2557e0 - #e3e3e3 #e3e3e3 - - #1c1a17"),
|
|
1174
|
+
"dark": p("#111010 #191818 #212120 #2b2b2a #565554 #7f7e7c #efeeee #b6b6b5 #989796 #eeece8 #2a2826 #eeece8 #9f9a92 - - - - - #8fb5ff #191818 #efeeee #b6b6b5 #2b2b2a #eeece8 - - #d9d0c0 - - #1597b9 - - - - #2b2b2a #2b2b2a - - #eeece8 - - - #191818")
|
|
1175
1175
|
}
|
|
1176
1176
|
],
|
|
1177
1177
|
"defaultPalette": "slate",
|
|
@@ -18,7 +18,7 @@ export declare const FRAMEWORK_WORDS: {
|
|
|
18
18
|
readonly 'mistri.form.yes': 'Yes';
|
|
19
19
|
readonly 'mistri.form.no': 'No';
|
|
20
20
|
readonly 'mistri.form.monthHint': 'MM/YYYY';
|
|
21
|
-
readonly 'mistri.form.
|
|
21
|
+
readonly 'mistri.form.timeHint': 'HH:MM';
|
|
22
22
|
readonly 'mistri.status.offerEmail': 'We can email a code to the address on this application. It opens its details once, for 10 minutes.';
|
|
23
23
|
readonly 'mistri.status.offerText': 'We can send a code to the phone number on this application. It opens its details once, for 10 minutes.';
|
|
24
24
|
readonly 'mistri.status.askEmail': 'Email me a code';
|
|
@@ -18,7 +18,7 @@ export const FRAMEWORK_WORDS = {
|
|
|
18
18
|
'mistri.form.yes': 'Yes',
|
|
19
19
|
'mistri.form.no': 'No',
|
|
20
20
|
'mistri.form.monthHint': 'MM/YYYY',
|
|
21
|
-
'mistri.form.
|
|
21
|
+
'mistri.form.timeHint': 'HH:MM',
|
|
22
22
|
'mistri.status.offerEmail': 'We can email a code to the address on this application. It opens its details once, for 10 minutes.',
|
|
23
23
|
'mistri.status.offerText': 'We can send a code to the phone number on this application. It opens its details once, for 10 minutes.',
|
|
24
24
|
'mistri.status.askEmail': 'Email me a code',
|
|
@@ -49,9 +49,20 @@ interface LookPalette {
|
|
|
49
49
|
export declare const LOOK_PALETTES: readonly LookPalette[];
|
|
50
50
|
/** A palette's hue as one look draws it. */
|
|
51
51
|
export declare function paletteAccent(look: ThemeBase, palette: LookPalette, mode: 'light' | 'dark'): string;
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
export declare function
|
|
52
|
+
/** How far apart two colours' hues are on OKLab's wheel, in degrees; 180 where one has no hue at all (a grey reads as
|
|
53
|
+
nothing the other could be taken for). */
|
|
54
|
+
export declare function hueGap(a: string, b: string): number;
|
|
55
|
+
/** The least hue gap between `info` and the accent that reads as another color, and not as the accent's own. */
|
|
56
|
+
export declare const INFO_APART = 50;
|
|
57
|
+
/**
|
|
58
|
+
* `info` is what is merely so (a new step, a note, a key): its own hue, never the accent's. A look's blue under a
|
|
59
|
+
* Cobalt or Slate palette, or a look that wore the palette's hue for it (Bloom), was the accent said twice, so a
|
|
60
|
+
* tab, a link and a "new" chip read as one thing. Where the hue is within INFO_APART degrees of the accent's, it
|
|
61
|
+
* turns to the first of blue, cyan, violet and teal that stands clear of the accent, at the lightness that keeps the
|
|
62
|
+
* 4.5:1 the status colors owe the grounds it is read on (the page, a panel and a raised row), and as much colour as
|
|
63
|
+
* the screen holds at that hue (about what the look's own had). A hue already apart, and a look with no accent hue to be taken for, keep what they wrote.
|
|
64
|
+
*/
|
|
65
|
+
export declare function infoApart(colors: ThemeColorsOver, mode: 'light' | 'dark'): ThemeColorsOver;
|
|
55
66
|
/**
|
|
56
67
|
* A look's own colours turned to another hue: every neutral keeps how light it is and how much colour it holds, and
|
|
57
68
|
* takes the hue of `like` in place of the hue of `was` (the look's default palette's accent). A look whose page is a
|
|
@@ -268,15 +268,74 @@ function hexOf([L, a, b]) {
|
|
|
268
268
|
export function paletteAccent(look, palette, mode) {
|
|
269
269
|
return { ...palette[mode], ...palette.looks?.[look]?.[mode] }.accent;
|
|
270
270
|
}
|
|
271
|
-
/**
|
|
272
|
-
|
|
273
|
-
export function
|
|
271
|
+
/** How far apart two colours' hues are on OKLab's wheel, in degrees; 180 where one has no hue at all (a grey reads as
|
|
272
|
+
nothing the other could be taken for). */
|
|
273
|
+
export function hueGap(a, b) {
|
|
274
274
|
const [, aA, aB] = oklab(linear(a));
|
|
275
275
|
const [, bA, bB] = oklab(linear(b));
|
|
276
276
|
if (Math.hypot(aA, aB) < 0.03 || Math.hypot(bA, bB) < 0.03)
|
|
277
|
-
return
|
|
277
|
+
return 180;
|
|
278
278
|
const turn = Math.abs(Math.atan2(aB, aA) - Math.atan2(bB, bA));
|
|
279
|
-
return Math.min(turn, 2 * Math.PI - turn)
|
|
279
|
+
return (Math.min(turn, 2 * Math.PI - turn) * 180) / Math.PI;
|
|
280
|
+
}
|
|
281
|
+
/** The least hue gap between `info` and the accent that reads as another color, and not as the accent's own. */
|
|
282
|
+
export const INFO_APART = 50;
|
|
283
|
+
const chromaOf = (hex) => {
|
|
284
|
+
const [, a, b] = oklab(linear(hex));
|
|
285
|
+
return Math.hypot(a, b);
|
|
286
|
+
};
|
|
287
|
+
const relativeLuminance = (hex) => {
|
|
288
|
+
const [r, g, b] = linear(hex);
|
|
289
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
290
|
+
};
|
|
291
|
+
const contrastOf = (a, b) => {
|
|
292
|
+
const x = relativeLuminance(a);
|
|
293
|
+
const y = relativeLuminance(b);
|
|
294
|
+
return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05);
|
|
295
|
+
};
|
|
296
|
+
const hexMix = (a, b, weight) => `#${[1, 3, 5]
|
|
297
|
+
.map((at) => Math.round(parseInt(a.slice(at, at + 2), 16) * weight + parseInt(b.slice(at, at + 2), 16) * (1 - weight))
|
|
298
|
+
.toString(16)
|
|
299
|
+
.padStart(2, '0'))
|
|
300
|
+
.join('')}`;
|
|
301
|
+
/**
|
|
302
|
+
* `info` is what is merely so (a new step, a note, a key): its own hue, never the accent's. A look's blue under a
|
|
303
|
+
* Cobalt or Slate palette, or a look that wore the palette's hue for it (Bloom), was the accent said twice, so a
|
|
304
|
+
* tab, a link and a "new" chip read as one thing. Where the hue is within INFO_APART degrees of the accent's, it
|
|
305
|
+
* turns to the first of blue, cyan, violet and teal that stands clear of the accent, at the lightness that keeps the
|
|
306
|
+
* 4.5:1 the status colors owe the grounds it is read on (the page, a panel and a raised row), and as much colour as
|
|
307
|
+
* the screen holds at that hue (about what the look's own had). A hue already apart, and a look with no accent hue to be taken for, keep what they wrote.
|
|
308
|
+
*/
|
|
309
|
+
export function infoApart(colors, mode) {
|
|
310
|
+
const info = colors.status?.info;
|
|
311
|
+
const accent = colors.accent;
|
|
312
|
+
const hex = /^#[0-9a-f]{6}$/i;
|
|
313
|
+
if (!info || !accent || !hex.test(info) || !hex.test(accent) || hueGap(info, accent) >= INFO_APART)
|
|
314
|
+
return colors;
|
|
315
|
+
const grounds = [colors.ground, colors.surface].filter((ground) => !!ground && hex.test(ground));
|
|
316
|
+
if (colors.ink && colors.surface && hex.test(colors.ink) && hex.test(colors.surface))
|
|
317
|
+
grounds.push(hexMix(colors.ink, colors.surface, 0.04));
|
|
318
|
+
const [L, a, b] = oklab(linear(info));
|
|
319
|
+
const [, accentA, accentB] = oklab(linear(accent));
|
|
320
|
+
const accentHue = (Math.atan2(accentB, accentA) * 180) / Math.PI;
|
|
321
|
+
const gap = (hue) => {
|
|
322
|
+
const turn = Math.abs(((((hue - accentHue) % 360) + 540) % 360) - 180);
|
|
323
|
+
return turn;
|
|
324
|
+
};
|
|
325
|
+
/* Blue first, then cyan, violet and teal: the first that stands INFO_APART away, else the furthest. */
|
|
326
|
+
const hues = [255, 215, 295, 185];
|
|
327
|
+
const chosen = hues.find((hue) => gap(hue) >= INFO_APART) ?? [...hues].sort((x, y) => gap(y) - gap(x))[0];
|
|
328
|
+
const radians = (chosen * Math.PI) / 180;
|
|
329
|
+
const chroma = Math.min(Math.max(Math.hypot(a, b), 0.09), 0.13);
|
|
330
|
+
for (const keep of [1, 0.8, 0.6, 0.45]) {
|
|
331
|
+
for (let step = 0; step <= 40; step++) {
|
|
332
|
+
const lightness = mode === 'light' ? L - step * 0.01 : L + step * 0.01;
|
|
333
|
+
const worn = hexOf([lightness, chroma * keep * Math.cos(radians), chroma * keep * Math.sin(radians)]);
|
|
334
|
+
if (hueGap(worn, accent) >= INFO_APART && chromaOf(worn) >= 0.06 && grounds.every((ground) => contrastOf(worn, ground) >= 4.9))
|
|
335
|
+
return { ...colors, status: { ...colors.status, info: worn } };
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return colors;
|
|
280
339
|
}
|
|
281
340
|
/**
|
|
282
341
|
* A look's own colours turned to another hue: every neutral keeps how light it is and how much colour it holds, and
|
|
@@ -383,16 +442,15 @@ export function paletteColors(look, palette, mode, series) {
|
|
|
383
442
|
}
|
|
384
443
|
case 'bloom':
|
|
385
444
|
/* The hue is the look: the primary button is filled in it, what is chosen sits on its tint. What is merely so
|
|
386
|
-
(a step that is new or under way, a note)
|
|
387
|
-
|
|
388
|
-
|
|
445
|
+
(a step that is new or under way, a note) keeps the look's own blue, moved off the hue only where the palette
|
|
446
|
+
is itself a blue (infoApart): the accent said twice read as one thing. What a colour warns of or confirms
|
|
447
|
+
keeps its own. */
|
|
389
448
|
return {
|
|
390
449
|
accent: tone.accent,
|
|
391
450
|
primary: tone.accent,
|
|
392
451
|
accentSoft: tone.soft,
|
|
393
452
|
link,
|
|
394
453
|
focus: tone.focus,
|
|
395
|
-
status: { info: link },
|
|
396
454
|
nav: { accent: link },
|
|
397
455
|
chart: ledSeries(series, tone.chart),
|
|
398
456
|
};
|
package/dist/shared/theme.js
CHANGED
|
@@ -438,6 +438,10 @@ const CONTRAST_PAIRS = [
|
|
|
438
438
|
[role, 'ground', 4.5],
|
|
439
439
|
[role, 'raised', 4.5, 'a status word in a hovered row or on a raised panel'],
|
|
440
440
|
]),
|
|
441
|
+
/* The AI mark (`colors.ai`, said by few themes) is a graphic: a badge or an edge a reader looks for, 3:1 (1.4.11) wherever it can stand. */
|
|
442
|
+
['ai', 'surface', 3, 'the mark of what an AI made'],
|
|
443
|
+
['ai', 'ground', 3, 'the mark of what an AI made'],
|
|
444
|
+
['ai', 'raised', 3, 'the mark of what an AI made'],
|
|
441
445
|
['lineControl', 'surface', 3],
|
|
442
446
|
['lineControl', 'ground', 3],
|
|
443
447
|
/* A field stands on a raised panel too, and a list's sort and filter controls on its head: a control's edge that
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LOOK_PALETTES, paletteAccent, paletteColors, rehued
|
|
1
|
+
import { LOOK_PALETTES, infoApart, paletteAccent, paletteColors, rehued } from './lookPalettes.js';
|
|
2
2
|
import { familyRecipes, recipeParts } from './themeRecipeFamilies.js';
|
|
3
3
|
/** The system's own interface face on every machine; nothing is fetched and
|
|
4
4
|
nothing is bundled. A look's identity is its type roles: size, weight and tracking. */
|
|
@@ -72,16 +72,9 @@ function withPalettes({ tinted, ...look }) {
|
|
|
72
72
|
const own = (id, mode) => tinted && id !== tinted
|
|
73
73
|
? rehued(look.colors[mode], paletteAccent(look.id, named(id), mode), paletteAccent(look.id, named(tinted), mode))
|
|
74
74
|
: look.colors[mode];
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
the colour of what went well, and a step that is new stood beside one that is done in one tint: there the
|
|
79
|
-
look's own colour for it stands, so the two still read apart. */
|
|
80
|
-
const lookStatus = look.colors[mode].status;
|
|
81
|
-
if (tinted && colors.status?.info && colors.status.good && lookStatus?.info && sameHue(colors.status.info, colors.status.good))
|
|
82
|
-
return { ...colors, status: { ...colors.status, info: lookStatus.info } };
|
|
83
|
-
return colors;
|
|
84
|
-
};
|
|
75
|
+
/* What is merely so (`status.info`) is a hue of its own under every palette: a look's blue under Cobalt or Slate, or
|
|
76
|
+
a look that wore the palette's own hue for it, was the accent said twice (infoApart). */
|
|
77
|
+
const worn = (id, mode) => infoApart(overColors(own(id, mode), paletteColors(look.id, named(id), mode, series(mode))), mode);
|
|
85
78
|
return {
|
|
86
79
|
...look,
|
|
87
80
|
colors: { light: worn(look.defaultPalette, 'light'), dark: worn(look.defaultPalette, 'dark') },
|
|
@@ -34,6 +34,7 @@ export declare const PALETTE_TOKENS: {
|
|
|
34
34
|
readonly rulesHead: '--rules-head';
|
|
35
35
|
readonly shadow: '--shadow-ink';
|
|
36
36
|
readonly band: '--band';
|
|
37
|
+
readonly ai: '--ai';
|
|
37
38
|
readonly rulesWeight: '--rules-weight';
|
|
38
39
|
readonly rulesControl: '--control-border-w';
|
|
39
40
|
readonly chart1: '--chart-1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/engine",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.63",
|
|
4
4
|
"description": "The engine both products stand on: the adapters (SQLite, Postgres), the catalog, the query language, keyset pages, the HTTP kit and the shared rules. No React.",
|
|
5
5
|
"homepage": "https://mistriwork.dev",
|
|
6
6
|
"bugs": {
|
package/schema/theme.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export interface ThemePalette {
|
|
|
42
42
|
rulesHead?: string;
|
|
43
43
|
shadow?: string;
|
|
44
44
|
band?: string;
|
|
45
|
+
ai?: string;
|
|
45
46
|
rulesWeight?: '1px' | '2px' | '3px';
|
|
46
47
|
rulesControl?: '0px' | '1px' | '2px';
|
|
47
48
|
chart1?: string;
|
|
@@ -187,6 +188,7 @@ export type ThemeColorPath =
|
|
|
187
188
|
| 'surface'
|
|
188
189
|
| 'raised'
|
|
189
190
|
| 'band'
|
|
191
|
+
| 'ai'
|
|
190
192
|
| 'ink'
|
|
191
193
|
| 'inkMuted'
|
|
192
194
|
| 'inkSubtle'
|
|
@@ -437,6 +439,9 @@ export interface ThemeColors {
|
|
|
437
439
|
shadow?: string;
|
|
438
440
|
/** Every other row of a `banded` table (`recipes.table`). Omitted, `raised`. Text on it is checked as on `ground`. */
|
|
439
441
|
band?: string;
|
|
442
|
+
/** The mark of what an AI made: a generated draft's badge, a suggestion's edge, the assistant's avatar. Omitted, the
|
|
443
|
+
platform's (`--ai`, a violet apart from every look's accent, info and status colors). Checked at 3:1 on the page, as a mark is. */
|
|
444
|
+
ai?: string;
|
|
440
445
|
}
|
|
441
446
|
|
|
442
447
|
/** A control's height in pixels, 32 to 56. */
|