@taprootio/site-authoring 0.42.0 → 0.55.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.
Files changed (75) hide show
  1. package/README.md +32 -1
  2. package/examples/riverbend-wellness/settings/site-publishing-preferences.json +3 -0
  3. package/examples/riverbend-wellness/settings/taproot-styles.json +11 -0
  4. package/package.json +4 -3
  5. package/src/api.js +161 -8
  6. package/src/appearance-contract.js +264 -3
  7. package/src/authored-tag-names.js +88 -0
  8. package/src/block-flow.js +103 -1
  9. package/src/brand-color.js +22 -0
  10. package/src/breadcrumb-artwork.js +234 -0
  11. package/src/breadcrumb-separators.js +11 -0
  12. package/src/changelog.json +143 -0
  13. package/src/chrome-features.js +6 -2
  14. package/src/chrome-input.js +1 -0
  15. package/src/chrome-paint-catalog-taproot.json +3 -3
  16. package/src/chrome-report.js +91 -12
  17. package/src/cli.js +45 -16
  18. package/src/content/components.js +27 -4
  19. package/src/content/external-link.js +2 -1
  20. package/src/content/markdown.js +271 -101
  21. package/src/content/tiptap-prosemirror.ts +125 -43
  22. package/src/content/validate-document.js +4 -1
  23. package/src/content-inset.js +48 -0
  24. package/src/errors.js +1 -0
  25. package/src/espalier-shared.js +26 -0
  26. package/src/field-suggestions.js +40 -0
  27. package/src/fixture-init.js +22 -5
  28. package/src/font-catalog.js +11 -1
  29. package/src/footer-brand-inputs.js +22 -3
  30. package/src/footer-content.js +1 -0
  31. package/src/footer-contract.js +11 -0
  32. package/src/footer-cta-styles.js +6 -0
  33. package/src/footer-draft-hash.js +4 -2
  34. package/src/footer-fit.js +62 -15
  35. package/src/footer-workspace.js +44 -7
  36. package/src/latest-posts-tags.js +57 -0
  37. package/src/page-structure-checks.js +5 -0
  38. package/src/page-tag-badge-modes.js +6 -0
  39. package/src/page-tag-writes.js +158 -0
  40. package/src/page-type-tags.js +16 -0
  41. package/src/presentation-reference.js +297 -86
  42. package/src/recipe-page-options.js +22 -0
  43. package/src/recipe-step-contract.js +164 -0
  44. package/src/recipe-step-contract.json +65 -0
  45. package/src/reference-help.js +164 -78
  46. package/src/session.js +39 -24
  47. package/src/setting-reference.js +239 -48
  48. package/src/settings-catalog.js +63 -0
  49. package/src/site-check-findings.js +23 -5
  50. package/src/site-check-rules.json +1 -0
  51. package/src/site-health-findings.js +13 -13
  52. package/src/styling-fixed-values.js +71 -0
  53. package/src/tag-destination-warnings.js +35 -0
  54. package/src/template-token-reach.json +242 -0
  55. package/src/theme-proposals.js +18 -27
  56. package/src/theme-resolve.js +265 -23
  57. package/src/theme-validation.js +118 -7
  58. package/src/token-reach.js +222 -0
  59. package/src/typed-page-reference.js +72 -15
  60. package/src/typed-pages.js +171 -71
  61. package/src/verbs/deploy.js +6 -0
  62. package/src/verbs/footer-push.js +30 -5
  63. package/src/verbs/forms-push.js +11 -3
  64. package/src/verbs/pages-delete.js +19 -10
  65. package/src/verbs/pages-push.js +125 -36
  66. package/src/verbs/plan.js +10 -4
  67. package/src/verbs/pull.js +277 -67
  68. package/src/verbs/staging-review.js +27 -1
  69. package/src/verbs/status.js +22 -0
  70. package/src/verbs/theme-push.js +93 -25
  71. package/src/verbs/theme-resolve.js +189 -55
  72. package/src/verbs/validate.js +6 -5
  73. package/src/workspace-check.js +35 -3
  74. package/src/workspace.js +37 -1
  75. package/test/fixtures/default-site-theme.json +516 -0
@@ -1,13 +1,17 @@
1
+ import { checkTagDestinationTargets } from "./appearance-contract.js";
1
2
  import { sharedThemeContextNames } from "./content/free-form-sections.js";
2
3
  import { readAppearanceWorkspaceContext, FOOTER_SETTINGS_FILE } from "./footer-workspace.js";
3
4
  import { placedFormKeys } from "./form-references.js";
5
+ import { latestPostsTagProblems } from "./latest-posts-tags.js";
4
6
  import { FORMS_DIRECTORY } from "./forms-contract.js";
5
7
  import { readWorkspaceForms } from "./forms-workspace.js";
6
8
  import { describeSiteFinding } from "./site-check-findings.js";
7
9
  import { unknownFormKeyFindings } from "./site-checks.js";
8
10
  import { CHECK_AREA, collectProblems, problemsOf } from "./problems.js";
9
11
  import { normalizeRedirectPath, REDIRECTS_FILE_NAME, validateRedirectsDocument } from "./redirects-contract.js";
12
+ import { boundedByBytes } from "./session.js";
10
13
  import { SETTINGS_TYPE_SITE_PUBLISHING_PREFERENCES } from "./settings-catalog.js";
14
+ import { missingTagDestinations, reportTagDestinationWarnings } from "./tag-destination-warnings.js";
11
15
  import { validateFooterWorkspaceDocument } from "./verbs/footer-push.js";
12
16
  import { validateNavigationWorkspaceDocument } from "./verbs/nav-push.js";
13
17
  import { planPages } from "./verbs/pages-push.js";
@@ -71,8 +75,27 @@ export async function checkWorkspace({
71
75
  onProgress("Validating the complete light/dark theme, appearance, header, brand, and surface contexts.");
72
76
  const presentation = knownImageIds === undefined
73
77
  ? undefined
74
- : await collectProblems(problems, { area: CHECK_AREA.presentation }, async () =>
75
- await validateThemeWorkspace(workspaceDir, siteId, knownImageIds, binding.settingsEntityIds));
78
+ : await collectProblems(problems, { area: CHECK_AREA.presentation }, async () => {
79
+ const validated = await validateThemeWorkspace(workspaceDir, siteId, knownImageIds, binding.settingsEntityIds);
80
+ if (validated.publishing.tagDestinations !== undefined) {
81
+ // A fixture declares its own tag names and has no live tag catalog.
82
+ const fixtureTagSlugs = binding.fixture ? Object.keys(validated.publishing.tagDestinations) : undefined;
83
+ checkTagDestinationTargets(
84
+ validated.publishing.tagDestinations, manifest.presentation?.tagDestinations, manifest,
85
+ undefined, fixtureTagSlugs,
86
+ );
87
+ }
88
+ if (validated.publishing.recipeMetadataDestinations !== undefined) {
89
+ checkTagDestinationTargets(
90
+ validated.publishing.recipeMetadataDestinations, manifest.presentation?.recipeMetadataDestinations,
91
+ manifest, undefined, undefined, true,
92
+ );
93
+ }
94
+ return validated;
95
+ });
96
+ const tagDestinationWarnings = reportTagDestinationWarnings(
97
+ missingTagDestinations(presentation?.publishing, manifest), onProgress,
98
+ );
76
99
 
77
100
  onProgress("Validating the closed footer document and its page and image targets.");
78
101
  const footer = knownImageIds === undefined
@@ -124,6 +147,12 @@ export async function checkWorkspace({
124
147
  onProgress,
125
148
  }));
126
149
  if (pages !== undefined) problems.push(...pages.problems);
150
+ const listingTagProblems = pages === undefined ? [] : latestPostsTagProblems(pages.planned, manifest);
151
+ const latestPostsWarnings = { count: listingTagProblems.length, ...boundedByBytes(listingTagProblems, 8 * 1024) };
152
+ for (const { message } of latestPostsWarnings.items) onProgress("Warning: " + message);
153
+ if (latestPostsWarnings.truncated) {
154
+ onProgress("Additional Latest Posts tag warnings: " + (latestPostsWarnings.count - latestPostsWarnings.items.length) + ".");
155
+ }
127
156
 
128
157
  // `plan` leaves redirects and forms to their own pushes.
129
158
  if (areas.has(CHECK_AREA.redirects)) {
@@ -161,7 +190,10 @@ export async function checkWorkspace({
161
190
  }
162
191
  }
163
192
 
164
- return { problems, settingsOnly, presentation, footer, navigation, pages, redirects, forms, formKeysChecked };
193
+ return {
194
+ problems, settingsOnly, presentation, footer, navigation, pages, redirects, forms, formKeysChecked,
195
+ tagDestinationWarnings, latestPostsWarnings,
196
+ };
165
197
  }
166
198
 
167
199
  /**
package/src/workspace.js CHANGED
@@ -4,9 +4,11 @@ import { lstat, mkdir, open, readdir, unlink } from "node:fs/promises";
4
4
  import path from "node:path";
5
5
 
6
6
  import { atomicWriteFile } from "./atomic-file.js";
7
+ import { AUTHORED_TAG_SLUG, MAX_AUTHORED_TAG_NAME_SCALARS, MAX_AUTHORED_TAGS } from "./authored-tag-names.js";
7
8
  import { parseAuthorReference } from "./authors-contract.js";
8
9
  import { LIMITS } from "./constants.js";
9
10
  import { hasAsciiControl, sanitizeDiagnostic, SiteAuthoringError } from "./errors.js";
11
+ import { isSystemPageTypeTag } from "./page-type-tags.js";
10
12
  import {
11
13
  noteEntry,
12
14
  noteExists,
@@ -172,6 +174,31 @@ export function normalizePageBodyRevision(value) {
172
174
  return typeof value === "string" && PAGE_BODY_REVISION.test(value) ? value : undefined;
173
175
  }
174
176
 
177
+ /** Tag revisions use the same bounded envelope and an independent namespace. */
178
+ export const normalizeAuthoredTagRevision = normalizePageBodyRevision;
179
+
180
+ function normalizeAuthoredTagSlugs(value) {
181
+ if (value === null) return null;
182
+ if (!Array.isArray(value) || value.length > MAX_AUTHORED_TAGS) return undefined;
183
+ const distinct = new Set();
184
+ for (const slug of value) {
185
+ if (
186
+ typeof slug !== "string" || slug.length > MAX_AUTHORED_TAG_NAME_SCALARS || !AUTHORED_TAG_SLUG.test(slug)
187
+ || isSystemPageTypeTag("", slug) || distinct.has(slug)
188
+ ) return undefined;
189
+ distinct.add(slug);
190
+ }
191
+ return [...distinct].sort();
192
+ }
193
+
194
+ export function normalizeAuthoredTagBaseline(value) {
195
+ const authoredTagRevision = normalizeAuthoredTagRevision(value?.authoredTagRevision);
196
+ const authoredTagSlugs = normalizeAuthoredTagSlugs(value?.authoredTagSlugs);
197
+ return authoredTagRevision === undefined || authoredTagSlugs === undefined
198
+ ? undefined
199
+ : { authoredTagRevision, authoredTagSlugs };
200
+ }
201
+
175
202
  /**
176
203
  * The revision of the remote body this workspace last saw for a page, or
177
204
  * `undefined` when it has not seen one it did not also reconcile with.
@@ -344,6 +371,11 @@ export function canonicalDocumentHash(document_) {
344
371
  return `sha256:${createHash("sha256").update(canonicalJson(document_, 0), "utf8").digest("hex")}`;
345
372
  }
346
373
 
374
+ /** The typed source's body and metadata, independent of the authored tag list. */
375
+ export function workspacePageSourceBodyHash({ tags: _tags, ...document_ }) {
376
+ return canonicalDocumentHash(document_);
377
+ }
378
+
347
379
  /**
348
380
  * What a push would send for a page, as one hash: the source's bytes plus the
349
381
  * title, path, description and author that travel with it (for a `.pm.json`
@@ -456,17 +488,20 @@ export function pageSourceRegistry(manifest) {
456
488
  const declared = entry.baseline;
457
489
  const remoteHash = normalizeBaselineHash(declared?.remoteHash);
458
490
  const sourceHash = normalizeBaselineHash(declared?.sourceHash);
491
+ const sourceBodyHash = normalizeBaselineHash(declared?.sourceBodyHash);
459
492
  const contentKey = normalizeBaselineHash(declared?.contentKey);
460
493
  const revision = normalizePageBodyRevision(declared?.revision);
461
494
  const displayDate = normalizeBaselineDisplayDate(declared?.displayDate);
462
495
  const author = normalizeAuthorValue(declared?.author);
496
+ const tagBaseline = normalizeAuthoredTagBaseline(declared);
463
497
  const baseline =
464
498
  remoteHash === undefined && sourceHash === undefined && revision === undefined && displayDate === undefined
465
- && contentKey === undefined && author === undefined
499
+ && sourceBodyHash === undefined && contentKey === undefined && author === undefined && tagBaseline === undefined
466
500
  ? undefined
467
501
  : {
468
502
  ...(remoteHash === undefined ? {} : { remoteHash }),
469
503
  ...(sourceHash === undefined ? {} : { sourceHash }),
504
+ ...(sourceBodyHash === undefined ? {} : { sourceBodyHash }),
470
505
  ...(contentKey === undefined ? {} : { contentKey }),
471
506
  ...(revision === undefined ? {} : { revision }),
472
507
  ...(displayDate === undefined ? {} : { displayDate }),
@@ -474,6 +509,7 @@ export function pageSourceRegistry(manifest) {
474
509
  // reconciled with it: what a page's own author reference is
475
510
  // compared with before anything is sent (TR01196).
476
511
  ...(author === undefined || author === "" ? {} : { author }),
512
+ ...tagBaseline,
477
513
  };
478
514
  const record = {
479
515
  pageId: entry.pageId,
@@ -0,0 +1,516 @@
1
+ {
2
+ "$generated": "Generated by scripts/build-default-site-theme.mjs from @taprootio/espalier. Do not edit by hand — run `npm run theme:build`.",
3
+ "espalierVersion": "7.5.0",
4
+ "light": {
5
+ "encoded": "eyJzZWVkQ29sb3IiOiJva2xjaCguMDcgMC4xNSAyMTYpIiwiZm9udEJvZHkiOiJcIk5vdG8gU2Fuc1wiLCBzYW5zLXNlcmlmIiwiZm9udEhlYWRpbmdzIjoiXCJJbmlrYVwiLCBzZXJpZiIsImZvbnRCcmFuZCI6IlwiSW5pa2FcIiwgc2VyaWYiLCJmb250TWVudSI6IiIsImZvbnRNb25vc3BhY2UiOiJcIkpldEJyYWlucyBNb25vXCIsIG1vbm9zcGFjZSIsImZvbnRXZWlnaHRCb2R5Ijoibm9ybWFsIiwiZm9udFdlaWdodEhlYWRpbmdzIjoibm9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JzIjp7fSwicm9sZXMiOnt9LCJjb250ZXh0cyI6e30sImRhdGFQYWxldHRlIjp7InNlcmllczEiOiIjMDAwMDAwIiwic2VyaWVzMiI6IiNFNjlGMDAiLCJzZXJpZXMzIjoiIzU2QjRFOSIsInNlcmllczQiOiIjMDA5RTczIiwic2VyaWVzNSI6IiNGMEU0NDIiLCJzZXJpZXM2IjoiIzAwNzJCMiIsInNlcmllczciOiIjRDU1RTAwIiwic2VyaWVzOCI6IiNDQzc5QTcifSwiZGF0YVJhbXBzIjp7fSwibGlnaHRuZXNzIjp7InN1cmZhY2UiOjAuOTksInJhaXNlZDEiOjAuOTcsInJhaXNlZDIiOjAuOSwicmFpc2VkMyI6MC44LCJyYWlzZWQ0IjowLjcyLCJhY2NlbnQiOjAuNSwibXV0ZWQiOjAuNDUsInRleHQiOjAuMzUsImJvcmRlciI6MC4zLCJpbmsiOjAuMjUsInNoYWRvdyI6MC4yfSwicGFnZUJhY2tncm91bmRJbWFnZSI6IiIsInBhZ2VCYWNrZ3JvdW5kSW1hZ2VPcGFjaXR5IjowLjV9",
6
+ "theme": {
7
+ "anchors": {},
8
+ "angles": {
9
+ "analogous": 30,
10
+ "complementary": 180,
11
+ "splitComplementary": 30,
12
+ "triadic": 120
13
+ },
14
+ "borderRadius": 0.1,
15
+ "chroma": {
16
+ "actionBackground": {
17
+ "max": 0.4,
18
+ "min": 0
19
+ },
20
+ "actionText": {
21
+ "max": 0.4,
22
+ "min": 0
23
+ },
24
+ "background": {
25
+ "max": 0.4,
26
+ "min": 0
27
+ },
28
+ "border": {
29
+ "max": 0.4,
30
+ "min": 0
31
+ },
32
+ "dangerText": {
33
+ "max": 0.4,
34
+ "min": 0
35
+ },
36
+ "headings": {
37
+ "max": 0.4,
38
+ "min": 0
39
+ },
40
+ "headingsHover": {
41
+ "max": 0.4,
42
+ "min": 0
43
+ },
44
+ "inputCaret": {
45
+ "max": 0.4,
46
+ "min": 0
47
+ },
48
+ "inputSelection": {
49
+ "max": 0.4,
50
+ "min": 0
51
+ },
52
+ "inputSelectionBg": {
53
+ "max": 0.4,
54
+ "min": 0
55
+ },
56
+ "layer1": {
57
+ "max": 0.4,
58
+ "min": 0
59
+ },
60
+ "layer2": {
61
+ "max": 0.4,
62
+ "min": 0
63
+ },
64
+ "layer3": {
65
+ "max": 0.4,
66
+ "min": 0
67
+ },
68
+ "layer4": {
69
+ "max": 0.4,
70
+ "min": 0
71
+ },
72
+ "link": {
73
+ "max": 0.4,
74
+ "min": 0
75
+ },
76
+ "linkHover": {
77
+ "max": 0.4,
78
+ "min": 0
79
+ },
80
+ "linkHoverBg": {
81
+ "max": 0.4,
82
+ "min": 0
83
+ },
84
+ "shadow": {
85
+ "max": 0.4,
86
+ "min": 0
87
+ },
88
+ "text": {
89
+ "max": 0.4,
90
+ "min": 0
91
+ },
92
+ "typeCaption": {
93
+ "max": 0.4,
94
+ "min": 0
95
+ },
96
+ "typeLabel": {
97
+ "max": 0.4,
98
+ "min": 0
99
+ },
100
+ "typeLead": {
101
+ "max": 0.4,
102
+ "min": 0
103
+ },
104
+ "typeOverline": {
105
+ "max": 0.4,
106
+ "min": 0
107
+ }
108
+ },
109
+ "contexts": {},
110
+ "dataPalette": {
111
+ "series1": "#000000",
112
+ "series2": "#E69F00",
113
+ "series3": "#56B4E9",
114
+ "series4": "#009E73",
115
+ "series5": "#F0E442",
116
+ "series6": "#0072B2",
117
+ "series7": "#D55E00",
118
+ "series8": "#CC79A7"
119
+ },
120
+ "dataRamps": {},
121
+ "explicitMappingTokens": [],
122
+ "fontBody": "\"Noto Sans\", sans-serif",
123
+ "fontBrand": "\"Inika\", serif",
124
+ "fontHeadings": "\"Inika\", serif",
125
+ "fontMenu": "",
126
+ "fontMonospace": "\"JetBrains Mono\", monospace",
127
+ "fontWeightBody": "normal",
128
+ "fontWeightBrand": "normal",
129
+ "fontWeightHeadings": "normal",
130
+ "fontWeightMenu": "bold",
131
+ "fontWeightMonospace": "normal",
132
+ "intents": {},
133
+ "lightness": {
134
+ "accent": 0.5,
135
+ "border": 0.3,
136
+ "ink": 0.25,
137
+ "muted": 0.45,
138
+ "raised1": 0.97,
139
+ "raised2": 0.9,
140
+ "raised3": 0.8,
141
+ "raised4": 0.72,
142
+ "shadow": 0.2,
143
+ "surface": 0.99,
144
+ "text": 0.35
145
+ },
146
+ "pageBackgroundImage": "",
147
+ "pageBackgroundImageOpacity": 0.5,
148
+ "roles": {},
149
+ "rootFontSize": 16,
150
+ "seedColor": "oklch(.07 0.15 216)",
151
+ "semanticHues": {
152
+ "danger": 27,
153
+ "info": 244,
154
+ "success": 150,
155
+ "warning": 90
156
+ },
157
+ "semanticMappings": {
158
+ "actionBackground": {
159
+ "lightness": "muted",
160
+ "source": "primary"
161
+ },
162
+ "actionText": {
163
+ "lightness": "ink",
164
+ "source": "primary"
165
+ },
166
+ "background": {
167
+ "lightness": "surface",
168
+ "source": "primary"
169
+ },
170
+ "border": {
171
+ "lightness": "border",
172
+ "source": "primary"
173
+ },
174
+ "dangerText": {
175
+ "lightness": "text",
176
+ "source": "danger"
177
+ },
178
+ "headings": {
179
+ "lightness": "muted",
180
+ "source": "primary"
181
+ },
182
+ "headingsHover": {
183
+ "lightness": "text",
184
+ "source": "primary"
185
+ },
186
+ "inputCaret": {
187
+ "lightness": "ink",
188
+ "source": "triadic-right"
189
+ },
190
+ "inputSelection": {
191
+ "lightness": "text",
192
+ "source": "complementary"
193
+ },
194
+ "inputSelectionBg": {
195
+ "lightness": "raised2",
196
+ "source": "triadic-left"
197
+ },
198
+ "layer1": {
199
+ "lightness": "raised1",
200
+ "source": "primary"
201
+ },
202
+ "layer2": {
203
+ "lightness": "raised2",
204
+ "source": "primary"
205
+ },
206
+ "layer3": {
207
+ "lightness": "raised3",
208
+ "source": "primary"
209
+ },
210
+ "layer4": {
211
+ "lightness": "raised4",
212
+ "source": "primary"
213
+ },
214
+ "link": {
215
+ "lightness": "accent",
216
+ "source": "complementary"
217
+ },
218
+ "linkHover": {
219
+ "lightness": "text",
220
+ "source": "complementary"
221
+ },
222
+ "linkHoverBg": {
223
+ "lightness": "raised2",
224
+ "source": "triadic-left"
225
+ },
226
+ "shadow": {
227
+ "lightness": "shadow",
228
+ "source": "primary"
229
+ },
230
+ "text": {
231
+ "lightness": "text",
232
+ "source": "primary"
233
+ },
234
+ "typeCaption": {
235
+ "lightness": "text",
236
+ "source": "primary"
237
+ },
238
+ "typeLabel": {
239
+ "lightness": "text",
240
+ "source": "primary"
241
+ },
242
+ "typeLead": {
243
+ "lightness": "text",
244
+ "source": "primary"
245
+ },
246
+ "typeOverline": {
247
+ "lightness": "text",
248
+ "source": "primary"
249
+ }
250
+ },
251
+ "spaceRatio": 1.618,
252
+ "stylesheets": [],
253
+ "tones": {},
254
+ "typeRatio": 1.25,
255
+ "variantChroma": {},
256
+ "viewportMax": 1200,
257
+ "viewportMin": 320
258
+ }
259
+ },
260
+ "dark": {
261
+ "encoded": "eyJzZWVkQ29sb3IiOiJva2xjaCguMDcgMC4xNSAyMTYpIiwiZm9udEJvZHkiOiJcIk5vdG8gU2Fuc1wiLCBzYW5zLXNlcmlmIiwiZm9udEhlYWRpbmdzIjoiXCJJbmlrYVwiLCBzZXJpZiIsImZvbnRCcmFuZCI6IlwiSW5pa2FcIiwgc2VyaWYiLCJmb250TWVudSI6IiIsImZvbnRNb25vc3BhY2UiOiJcIkpldEJyYWlucyBNb25vXCIsIG1vbm9zcGFjZSIsImZvbnRXZWlnaHRCb2R5Ijoibm9ybWFsIiwiZm9udFdlaWdodEhlYWRpbmdzIjoibm9ybWFsIiwiZm9udFdlaWdodEJyYW5kIjoibm9ybWFsIiwiZm9udFdlaWdodE1lbnUiOiJib2xkIiwiZm9udFdlaWdodE1vbm9zcGFjZSI6Im5vcm1hbCIsInN0eWxlc2hlZXRzIjpbXSwicm9vdEZvbnRTaXplIjoxNiwidHlwZVJhdGlvIjoxLjI1LCJzcGFjZVJhdGlvIjoxLjYxOCwiYm9yZGVyUmFkaXVzIjowLjEsInZpZXdwb3J0T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ic2VyaWVzNyI6IiNENTVFMDAiLCJzZXJpZXM4IjoiI0NDNzlBNyJ9LCJkYXRhUmFtcHMiOnt9LCJsaWdodG5lc3MiOnsic3VyZmFjZSI6MC4xNSwicmFpc2VkMSI6MC4yLCJyYWlzZWQyIjowLjMsInJhaXNlZDMiOjAuNCwicmFpc2VkNCI6MC4zNiwiYWNjZW50IjowLjYsIm11dGVkIjowLjc1LCJ0ZXh0IjowLjg1LCJib3JkZXIiOjAuNywiaW5rIjowLjk1LCJzaGFkb3ciOjAuNn0sInBhZ2VCYWNrZ3JvdW5kSW1hZ2UiOiIiLCJwYWdlQmFja2dyb3VuZEltYWdlT3BhY2l0eSI6MC41NX0=",
262
+ "theme": {
263
+ "anchors": {},
264
+ "angles": {
265
+ "analogous": 30,
266
+ "complementary": 180,
267
+ "splitComplementary": 30,
268
+ "triadic": 120
269
+ },
270
+ "borderRadius": 0.1,
271
+ "chroma": {
272
+ "actionBackground": {
273
+ "max": 0.4,
274
+ "min": 0
275
+ },
276
+ "actionText": {
277
+ "max": 0.4,
278
+ "min": 0
279
+ },
280
+ "background": {
281
+ "max": 0.4,
282
+ "min": 0
283
+ },
284
+ "border": {
285
+ "max": 0.4,
286
+ "min": 0
287
+ },
288
+ "dangerText": {
289
+ "max": 0.4,
290
+ "min": 0
291
+ },
292
+ "headings": {
293
+ "max": 0.4,
294
+ "min": 0
295
+ },
296
+ "headingsHover": {
297
+ "max": 0.4,
298
+ "min": 0
299
+ },
300
+ "inputCaret": {
301
+ "max": 0.4,
302
+ "min": 0
303
+ },
304
+ "inputSelection": {
305
+ "max": 0.4,
306
+ "min": 0
307
+ },
308
+ "inputSelectionBg": {
309
+ "max": 0.4,
310
+ "min": 0
311
+ },
312
+ "layer1": {
313
+ "max": 0.4,
314
+ "min": 0
315
+ },
316
+ "layer2": {
317
+ "max": 0.4,
318
+ "min": 0
319
+ },
320
+ "layer3": {
321
+ "max": 0.4,
322
+ "min": 0
323
+ },
324
+ "layer4": {
325
+ "max": 0.4,
326
+ "min": 0
327
+ },
328
+ "link": {
329
+ "max": 0.4,
330
+ "min": 0
331
+ },
332
+ "linkHover": {
333
+ "max": 0.4,
334
+ "min": 0
335
+ },
336
+ "linkHoverBg": {
337
+ "max": 0.4,
338
+ "min": 0
339
+ },
340
+ "shadow": {
341
+ "max": 0.4,
342
+ "min": 0
343
+ },
344
+ "text": {
345
+ "max": 0.4,
346
+ "min": 0
347
+ },
348
+ "typeCaption": {
349
+ "max": 0.4,
350
+ "min": 0
351
+ },
352
+ "typeLabel": {
353
+ "max": 0.4,
354
+ "min": 0
355
+ },
356
+ "typeLead": {
357
+ "max": 0.4,
358
+ "min": 0
359
+ },
360
+ "typeOverline": {
361
+ "max": 0.4,
362
+ "min": 0
363
+ }
364
+ },
365
+ "contexts": {},
366
+ "dataPalette": {
367
+ "series1": "#000000",
368
+ "series2": "#E69F00",
369
+ "series3": "#56B4E9",
370
+ "series4": "#009E73",
371
+ "series5": "#F0E442",
372
+ "series6": "#0072B2",
373
+ "series7": "#D55E00",
374
+ "series8": "#CC79A7"
375
+ },
376
+ "dataRamps": {},
377
+ "explicitMappingTokens": [],
378
+ "fontBody": "\"Noto Sans\", sans-serif",
379
+ "fontBrand": "\"Inika\", serif",
380
+ "fontHeadings": "\"Inika\", serif",
381
+ "fontMenu": "",
382
+ "fontMonospace": "\"JetBrains Mono\", monospace",
383
+ "fontWeightBody": "normal",
384
+ "fontWeightBrand": "normal",
385
+ "fontWeightHeadings": "normal",
386
+ "fontWeightMenu": "bold",
387
+ "fontWeightMonospace": "normal",
388
+ "intents": {},
389
+ "lightness": {
390
+ "accent": 0.6,
391
+ "border": 0.7,
392
+ "ink": 0.95,
393
+ "muted": 0.75,
394
+ "raised1": 0.2,
395
+ "raised2": 0.3,
396
+ "raised3": 0.4,
397
+ "raised4": 0.36,
398
+ "shadow": 0.6,
399
+ "surface": 0.15,
400
+ "text": 0.85
401
+ },
402
+ "pageBackgroundImage": "",
403
+ "pageBackgroundImageOpacity": 0.55,
404
+ "roles": {},
405
+ "rootFontSize": 16,
406
+ "seedColor": "oklch(.07 0.15 216)",
407
+ "semanticHues": {
408
+ "danger": 27,
409
+ "info": 244,
410
+ "success": 150,
411
+ "warning": 90
412
+ },
413
+ "semanticMappings": {
414
+ "actionBackground": {
415
+ "lightness": "raised3",
416
+ "source": "primary"
417
+ },
418
+ "actionText": {
419
+ "lightness": "ink",
420
+ "source": "primary"
421
+ },
422
+ "background": {
423
+ "lightness": "surface",
424
+ "source": "primary"
425
+ },
426
+ "border": {
427
+ "lightness": "border",
428
+ "source": "primary"
429
+ },
430
+ "dangerText": {
431
+ "lightness": "text",
432
+ "source": "danger"
433
+ },
434
+ "headings": {
435
+ "lightness": "muted",
436
+ "source": "primary"
437
+ },
438
+ "headingsHover": {
439
+ "lightness": "text",
440
+ "source": "primary"
441
+ },
442
+ "inputCaret": {
443
+ "lightness": "ink",
444
+ "source": "triadic-right"
445
+ },
446
+ "inputSelection": {
447
+ "lightness": "text",
448
+ "source": "complementary"
449
+ },
450
+ "inputSelectionBg": {
451
+ "lightness": "raised2",
452
+ "source": "triadic-left"
453
+ },
454
+ "layer1": {
455
+ "lightness": "raised1",
456
+ "source": "primary"
457
+ },
458
+ "layer2": {
459
+ "lightness": "raised2",
460
+ "source": "primary"
461
+ },
462
+ "layer3": {
463
+ "lightness": "raised3",
464
+ "source": "primary"
465
+ },
466
+ "layer4": {
467
+ "lightness": "raised4",
468
+ "source": "primary"
469
+ },
470
+ "link": {
471
+ "lightness": "accent",
472
+ "source": "complementary"
473
+ },
474
+ "linkHover": {
475
+ "lightness": "text",
476
+ "source": "complementary"
477
+ },
478
+ "linkHoverBg": {
479
+ "lightness": "raised2",
480
+ "source": "triadic-left"
481
+ },
482
+ "shadow": {
483
+ "lightness": "shadow",
484
+ "source": "primary"
485
+ },
486
+ "text": {
487
+ "lightness": "text",
488
+ "source": "primary"
489
+ },
490
+ "typeCaption": {
491
+ "lightness": "text",
492
+ "source": "primary"
493
+ },
494
+ "typeLabel": {
495
+ "lightness": "text",
496
+ "source": "primary"
497
+ },
498
+ "typeLead": {
499
+ "lightness": "text",
500
+ "source": "primary"
501
+ },
502
+ "typeOverline": {
503
+ "lightness": "text",
504
+ "source": "primary"
505
+ }
506
+ },
507
+ "spaceRatio": 1.618,
508
+ "stylesheets": [],
509
+ "tones": {},
510
+ "typeRatio": 1.25,
511
+ "variantChroma": {},
512
+ "viewportMax": 1200,
513
+ "viewportMin": 320
514
+ }
515
+ }
516
+ }