@elmethis/core 0.24.0 → 0.25.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/dist/index.mjs CHANGED
@@ -561,8 +561,15 @@ function inlineZod(schema) {
561
561
  });
562
562
  return rest;
563
563
  }
564
- const FINGERPRINT_TO_REF = /* @__PURE__ */ new Map();
565
- for (const [name, schema] of COMMON_BY_REF) FINGERPRINT_TO_REF.set(fingerprint(inlineZod(schema)), name);
564
+ let fingerprintToRef;
565
+ function getFingerprintToRef() {
566
+ if (fingerprintToRef === void 0) {
567
+ const refs = /* @__PURE__ */ new Map();
568
+ for (const [name, schema] of COMMON_BY_REF) refs.set(fingerprint(inlineZod(schema)), name);
569
+ fingerprintToRef = refs;
570
+ }
571
+ return fingerprintToRef;
572
+ }
566
573
  /**
567
574
  * Walks a JSON Schema subtree. Whenever it finds a node whose structural
568
575
  * fingerprint matches a registered common type, it replaces that node with
@@ -574,7 +581,7 @@ function collapseCommonRefs(node) {
574
581
  if (Array.isArray(node)) return node.map(collapseCommonRefs);
575
582
  if (!node || typeof node !== "object") return node;
576
583
  const obj = node;
577
- const refName = FINGERPRINT_TO_REF.get(fingerprint(obj));
584
+ const refName = getFingerprintToRef().get(fingerprint(obj));
578
585
  if (refName !== void 0) {
579
586
  const description = obj.description;
580
587
  return description !== void 0 ? {
@@ -588,7 +595,8 @@ function collapseCommonRefs(node) {
588
595
  }
589
596
  const FACTORED_OUT_KEYS = /* @__PURE__ */ new Set(["accessibility", "weight"]);
590
597
  function buildComponentSchema(api) {
591
- const inner = zodToJsonSchema(z.object({ x: api.schema }), {
598
+ const wrapped = z.object({ x: api.schema });
599
+ const inner = zodToJsonSchema(wrapped, {
592
600
  $refStrategy: "none",
593
601
  target: "jsonSchema7"
594
602
  }).properties?.x ?? {};
@@ -643,13 +651,14 @@ function assembleCatalog(envelope, components) {
643
651
  /**
644
652
  * Method A — runtime catalog constant.
645
653
  *
646
- * Assembles the Notion block catalog from the `*Api` Zod definitions into a
647
- * freestanding A2UI v0.9 catalog JSON Schema document. Consumers that want
648
- * the catalog at runtime (e.g. to feed into an LLM system prompt or to
649
- * validate an inbound A2UI message) import `notionBlockCatalogJson` directly.
654
+ * Exposes the Notion block catalog as a freestanding A2UI v0.9 JSON Schema
655
+ * document. Assembly is deferred until `components` or `$defs` is accessed,
656
+ * so consumers importing only metadata do not run schema generation.
657
+ * Consumers that need the schema at runtime (e.g. for an LLM system prompt
658
+ * or inbound message validation) can serialize this object normally.
650
659
  *
651
660
  * Consumers that want the document as a hostable artifact use Method B:
652
- * `dist/a2ui/notion_block_catalog.json` is emitted at build time from this
661
+ * `dist/a2ui/v0_9/notion_block_catalog.json` is emitted at build time from this
653
662
  * same constant and is served at the URL identified by
654
663
  * `NOTION_BLOCK_CATALOG_ID`.
655
664
  */
@@ -659,11 +668,7 @@ function assembleCatalog(envelope, components) {
659
668
  * third-party agents and validators that look up `catalogId`.
660
669
  */
661
670
  const NOTION_BLOCK_CATALOG_ID = "https://46ki75.github.io/elmethis/a2ui/v0_9/notion_block_catalog.json";
662
- const notionBlockCatalogJson = assembleCatalog({
663
- id: NOTION_BLOCK_CATALOG_ID,
664
- title: "Elmethis Notion Block Catalog",
665
- description: "Notion block-level A2UI components used by the @elmethis renderers (typography, media, code, math, table, tabs). Extends — does not replace — the A2UI Basic Catalog."
666
- }, [
671
+ const NOTION_BLOCK_CATALOG_COMPONENTS = [
667
672
  RichTextApi,
668
673
  LinkTextApi,
669
674
  IconApi,
@@ -694,7 +699,35 @@ const notionBlockCatalogJson = assembleCatalog({
694
699
  TableRowApi,
695
700
  TableCellApi,
696
701
  UnsupportedApi
697
- ]);
702
+ ];
703
+ const envelope = {
704
+ id: NOTION_BLOCK_CATALOG_ID,
705
+ title: "Elmethis Notion Block Catalog",
706
+ description: "Notion block-level A2UI components used by the @elmethis renderers (typography, media, code, math, table, tabs). Extends — does not replace — the A2UI Basic Catalog."
707
+ };
708
+ let assembledCatalog;
709
+ function getCatalog() {
710
+ return assembledCatalog ??= assembleCatalog(envelope, NOTION_BLOCK_CATALOG_COMPONENTS);
711
+ }
712
+ const notionBlockCatalogJson = {
713
+ $schema: "https://json-schema.org/draft/2020-12/schema",
714
+ $id: envelope.id,
715
+ catalogId: envelope.id,
716
+ title: envelope.title,
717
+ description: envelope.description,
718
+ get components() {
719
+ return getCatalog().components;
720
+ },
721
+ set components(value) {
722
+ getCatalog().components = value;
723
+ },
724
+ get $defs() {
725
+ return getCatalog().$defs;
726
+ },
727
+ set $defs(value) {
728
+ getCatalog().$defs = value;
729
+ }
730
+ };
698
731
  //#endregion
699
732
  //#region src/icon/languages/registry.ts
700
733
  /**
package/dist/tokens.cjs CHANGED
@@ -1,47 +1,84 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/style/color-scale.ts
3
+ const parseHex = (hex) => {
4
+ if (!/^#[\da-f]{6}$/i.test(hex)) throw new Error(`Expected a six-digit hex color, received ${hex}`);
5
+ return [
6
+ Number.parseInt(hex.slice(1, 3), 16) / 255,
7
+ Number.parseInt(hex.slice(3, 5), 16) / 255,
8
+ Number.parseInt(hex.slice(5, 7), 16) / 255
9
+ ];
10
+ };
11
+ const srgbToLinear = (channel) => channel <= .04045 ? channel / 12.92 : ((channel + .055) / 1.055) ** 2.4;
12
+ const linearToSrgb = (channel) => channel <= .0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - .055;
13
+ const hexToOklab = (hex) => {
14
+ const [encodedRed, encodedGreen, encodedBlue] = parseHex(hex);
15
+ const red = srgbToLinear(encodedRed);
16
+ const green = srgbToLinear(encodedGreen);
17
+ const blue = srgbToLinear(encodedBlue);
18
+ const lightness = Math.cbrt(.4122214708 * red + .5363325363 * green + .0514459929 * blue);
19
+ const medium = Math.cbrt(.2119034982 * red + .6806995451 * green + .1073969566 * blue);
20
+ const short = Math.cbrt(.0883024619 * red + .2817188376 * green + .6299787005 * blue);
21
+ return [
22
+ .2104542553 * lightness + .793617785 * medium - .0040720468 * short,
23
+ 1.9779984951 * lightness - 2.428592205 * medium + .4505937099 * short,
24
+ .0259040371 * lightness + .7827717662 * medium - .808675766 * short
25
+ ];
26
+ };
27
+ const oklabToHex = ([lightness, a, b]) => {
28
+ const light = (lightness + .3963377774 * a + .2158037573 * b) ** 3;
29
+ const medium = (lightness - .1055613458 * a - .0638541728 * b) ** 3;
30
+ const short = (lightness - .0894841775 * a - 1.291485548 * b) ** 3;
31
+ return `#${[
32
+ 4.0767416621 * light - 3.3077115913 * medium + .2309699292 * short,
33
+ -1.2684380046 * light + 2.6097574011 * medium - .3413193965 * short,
34
+ -.0041960863 * light - .7034186147 * medium + 1.707614701 * short
35
+ ].map(linearToSrgb).map((channel) => Math.min(1, Math.max(0, channel))).map((channel) => Math.round(channel * 255).toString(16).padStart(2, "0")).join("")}`;
36
+ };
37
+ const interpolateOklab = (start, end, amount) => oklabToHex([
38
+ start[0] + (end[0] - start[0]) * amount,
39
+ start[1] + (end[1] - start[1]) * amount,
40
+ start[2] + (end[2] - start[2]) * amount
41
+ ]);
42
+ /**
43
+ * Expands the authored 100/500/900 anchors into a perceptually even ramp.
44
+ * OKLab avoids the muddy midpoints produced by interpolating encoded sRGB.
45
+ */
46
+ const createColorScale = (light, middle, dark) => {
47
+ const lightOklab = hexToOklab(light);
48
+ const middleOklab = hexToOklab(middle);
49
+ const darkOklab = hexToOklab(dark);
50
+ return {
51
+ 100: light.toLowerCase(),
52
+ 200: interpolateOklab(lightOklab, middleOklab, .25),
53
+ 300: interpolateOklab(lightOklab, middleOklab, .5),
54
+ 400: interpolateOklab(lightOklab, middleOklab, .75),
55
+ 500: middle.toLowerCase(),
56
+ 600: interpolateOklab(middleOklab, darkOklab, .25),
57
+ 700: interpolateOklab(middleOklab, darkOklab, .5),
58
+ 800: interpolateOklab(middleOklab, darkOklab, .75),
59
+ 900: dark.toLowerCase()
60
+ };
61
+ };
62
+ //#endregion
2
63
  //#region src/style/token.ts
3
64
  const PRIMITIVE_VALUES = {
4
65
  color: {
5
- red: {
6
- 100: "#e9dddd",
7
- 500: "#ae6e6e",
8
- 900: "#291313"
9
- },
10
- orange: {
11
- 100: "#ebdfdb",
12
- 500: "#b8816e",
13
- 900: "#3f251c"
14
- },
15
- yellow: {
16
- 100: "#ebe6db",
17
- 500: "#b09a66",
18
- 900: "#332b19"
19
- },
20
- green: {
21
- 100: "#dde9e2",
22
- 500: "#659878",
23
- 900: "#15281d"
24
- },
25
- cyan: {
26
- 100: "#dde9e7",
27
- 500: "#6091a0",
28
- 900: "#203b37"
29
- },
30
- blue: {
31
- 100: "#dde2e9",
32
- 500: "#68779f",
33
- 900: "#242d3e"
34
- },
35
- purple: {
36
- 100: "#e3dde9",
37
- 500: "#8d799f",
38
- 900: "#271836"
39
- },
40
- magenta: {
41
- 100: "#eadce4",
42
- 500: "#b17396",
43
- 900: "#3c1f2f"
44
- },
66
+ red: createColorScale("#e9dddd", "#ae6e6e", "#291313"),
67
+ "muted-red": createColorScale("#e4dfdf", "#967a7a", "#211817"),
68
+ orange: createColorScale("#ebdfdb", "#b8816e", "#3f251c"),
69
+ "muted-orange": createColorScale("#e6e1df", "#a28a82", "#352a26"),
70
+ yellow: createColorScale("#ebe6db", "#b09a66", "#332b19"),
71
+ "muted-yellow": createColorScale("#e8e6e2", "#a59c87", "#2f2c24"),
72
+ green: createColorScale("#dde9e2", "#659878", "#15281d"),
73
+ "muted-green": createColorScale("#e2e7e4", "#7c9083", "#1e2521"),
74
+ cyan: createColorScale("#dde9e7", "#6091a0", "#203b37"),
75
+ "muted-cyan": createColorScale("#e2e7e6", "#798c92", "#2d3836"),
76
+ blue: createColorScale("#dde2e9", "#68779f", "#242d3e"),
77
+ "muted-blue": createColorScale("#e0e2e5", "#717889", "#292d34"),
78
+ purple: createColorScale("#e3dde9", "#8d799f", "#271836"),
79
+ "muted-purple": createColorScale("#e1dfe4", "#877f8f", "#231d2a"),
80
+ magenta: createColorScale("#eadce4", "#b17396", "#3c1f2f"),
81
+ "muted-magenta": createColorScale("#e4dfe2", "#9b818f", "#32262c"),
45
82
  slate: {
46
83
  100: "#d7d9e1",
47
84
  200: "#b0b5be",
@@ -97,6 +134,8 @@ const theme = (light, dark) => ({
97
134
  dark: resolve(dark)
98
135
  });
99
136
  const { color, font } = primitive;
137
+ const accentSurface = (hue) => theme(color[hue][100], color[hue][800]);
138
+ const displaySurface = (hue) => theme(color[hue][100], color[hue][900]);
100
139
  /**
101
140
  * Semantic tokens, keyed by the full kebab suffix that follows `--elmethis-`
102
141
  * (so `"color-accent-info-surface"` emits `--elmethis-color-accent-info-surface`).
@@ -123,20 +162,20 @@ const semanticTokens = {
123
162
  "font-family-sans": common(font.family.sans),
124
163
  "font-family-monospace": common(font.family.monospace),
125
164
  "color-box-shadow": theme("oklch(from #3e434b l c h / 0.25)", color.slate[900]),
126
- "color-accent-link-surface": theme(color.blue[100], color.blue[900]),
165
+ "color-accent-link-surface": accentSurface("muted-blue"),
127
166
  "color-accent-link": common(color.blue[500]),
128
167
  "color-accent-link-visited": common(color.purple[500]),
129
- "color-accent-link-surface-visited": theme(color.purple[100], color.purple[900]),
168
+ "color-accent-link-surface-visited": accentSurface("muted-purple"),
130
169
  "color-accent-info": common(color.blue[500]),
131
- "color-accent-info-surface": theme(color.blue[100], color.blue[900]),
170
+ "color-accent-info-surface": accentSurface("muted-blue"),
132
171
  "color-accent-success": common(color.green[500]),
133
- "color-accent-success-surface": theme(color.green[100], color.green[900]),
172
+ "color-accent-success-surface": accentSurface("muted-green"),
134
173
  "color-accent-important": common(color.purple[500]),
135
- "color-accent-important-surface": theme(color.purple[100], color.purple[900]),
174
+ "color-accent-important-surface": accentSurface("muted-purple"),
136
175
  "color-accent-warning": common(color.yellow[500]),
137
- "color-accent-warning-surface": theme(color.yellow[100], color.yellow[900]),
176
+ "color-accent-warning-surface": accentSurface("muted-yellow"),
138
177
  "color-accent-error": common(color.red[500]),
139
- "color-accent-error-surface": theme(color.red[100], color.red[900]),
178
+ "color-accent-error-surface": accentSurface("muted-red"),
140
179
  "color-divider": theme(color.gold[300], color.slate[800]),
141
180
  "color-modal-backdrop": common("oklch(from black l c h / 50%)"),
142
181
  "color-surface-sunken": theme(color.gold[300], color.slate[800]),
@@ -151,21 +190,21 @@ const semanticTokens = {
151
190
  "color-primary-hover": common("oklch(from var(--elmethis-color-primary) l c h / 15%)"),
152
191
  "color-selection": common("oklch(from var(--elmethis-color-primary) l c h / 25%)"),
153
192
  "color-display-red": common(color.red[500]),
154
- "color-display-red-surface": theme(color.red[100], color.red[900]),
193
+ "color-display-red-surface": displaySurface("muted-red"),
155
194
  "color-display-orange": common(color.orange[500]),
156
- "color-display-orange-surface": theme(color.orange[100], color.orange[900]),
195
+ "color-display-orange-surface": displaySurface("muted-orange"),
157
196
  "color-display-yellow": common(color.yellow[500]),
158
- "color-display-yellow-surface": theme(color.yellow[100], color.yellow[900]),
197
+ "color-display-yellow-surface": displaySurface("muted-yellow"),
159
198
  "color-display-green": common(color.green[500]),
160
- "color-display-green-surface": theme(color.green[100], color.green[900]),
199
+ "color-display-green-surface": displaySurface("muted-green"),
161
200
  "color-display-cyan": common(color.cyan[500]),
162
- "color-display-cyan-surface": theme(color.cyan[100], color.cyan[900]),
201
+ "color-display-cyan-surface": displaySurface("muted-cyan"),
163
202
  "color-display-blue": common(color.blue[500]),
164
- "color-display-blue-surface": theme(color.blue[100], color.blue[900]),
203
+ "color-display-blue-surface": displaySurface("muted-blue"),
165
204
  "color-display-purple": common(color.purple[500]),
166
- "color-display-purple-surface": theme(color.purple[100], color.purple[900]),
205
+ "color-display-purple-surface": displaySurface("muted-purple"),
167
206
  "color-display-magenta": common(color.magenta[500]),
168
- "color-display-magenta-surface": theme(color.magenta[100], color.magenta[900])
207
+ "color-display-magenta-surface": displaySurface("muted-magenta")
169
208
  };
170
209
  //#endregion
171
210
  exports.primitive = primitive;
package/dist/tokens.css CHANGED
@@ -1,28 +1,148 @@
1
1
  :root {
2
2
  --elmethis-primitive-color-red-100: #e9dddd;
3
+ --elmethis-primitive-color-red-200: #dbc1c0;
4
+ --elmethis-primitive-color-red-300: #cda5a4;
5
+ --elmethis-primitive-color-red-400: #be8989;
3
6
  --elmethis-primitive-color-red-500: #ae6e6e;
7
+ --elmethis-primitive-color-red-600: #8a5555;
8
+ --elmethis-primitive-color-red-700: #683e3e;
9
+ --elmethis-primitive-color-red-800: #472727;
4
10
  --elmethis-primitive-color-red-900: #291313;
11
+ --elmethis-primitive-color-muted-red-100: #e4dfdf;
12
+ --elmethis-primitive-color-muted-red-200: #d0c5c5;
13
+ --elmethis-primitive-color-muted-red-300: #bdabab;
14
+ --elmethis-primitive-color-muted-red-400: #a99292;
15
+ --elmethis-primitive-color-muted-red-500: #967a7a;
16
+ --elmethis-primitive-color-muted-red-600: #765f5f;
17
+ --elmethis-primitive-color-muted-red-700: #584645;
18
+ --elmethis-primitive-color-muted-red-800: #3b2e2d;
19
+ --elmethis-primitive-color-muted-red-900: #211817;
5
20
  --elmethis-primitive-color-orange-100: #ebdfdb;
21
+ --elmethis-primitive-color-orange-200: #dfc7bf;
22
+ --elmethis-primitive-color-orange-300: #d2afa3;
23
+ --elmethis-primitive-color-orange-400: #c59888;
6
24
  --elmethis-primitive-color-orange-500: #b8816e;
25
+ --elmethis-primitive-color-orange-600: #986858;
26
+ --elmethis-primitive-color-orange-700: #795143;
27
+ --elmethis-primitive-color-orange-800: #5b3a2f;
7
28
  --elmethis-primitive-color-orange-900: #3f251c;
29
+ --elmethis-primitive-color-muted-orange-100: #e6e1df;
30
+ --elmethis-primitive-color-muted-orange-200: #d5cbc7;
31
+ --elmethis-primitive-color-muted-orange-300: #c4b5af;
32
+ --elmethis-primitive-color-muted-orange-400: #b39f98;
33
+ --elmethis-primitive-color-muted-orange-500: #a28a82;
34
+ --elmethis-primitive-color-muted-orange-600: #857069;
35
+ --elmethis-primitive-color-muted-orange-700: #695852;
36
+ --elmethis-primitive-color-muted-orange-800: #4e403b;
37
+ --elmethis-primitive-color-muted-orange-900: #352a26;
8
38
  --elmethis-primitive-color-yellow-100: #ebe6db;
39
+ --elmethis-primitive-color-yellow-200: #dcd3be;
40
+ --elmethis-primitive-color-yellow-300: #cdc0a0;
41
+ --elmethis-primitive-color-yellow-400: #bfad83;
9
42
  --elmethis-primitive-color-yellow-500: #b09a66;
43
+ --elmethis-primitive-color-yellow-600: #8e7c51;
44
+ --elmethis-primitive-color-yellow-700: #6e603d;
45
+ --elmethis-primitive-color-yellow-800: #50442b;
10
46
  --elmethis-primitive-color-yellow-900: #332b19;
47
+ --elmethis-primitive-color-muted-yellow-100: #e8e6e2;
48
+ --elmethis-primitive-color-muted-yellow-200: #d7d3cb;
49
+ --elmethis-primitive-color-muted-yellow-300: #c6c0b4;
50
+ --elmethis-primitive-color-muted-yellow-400: #b5ae9d;
51
+ --elmethis-primitive-color-muted-yellow-500: #a59c87;
52
+ --elmethis-primitive-color-muted-yellow-600: #857e6c;
53
+ --elmethis-primitive-color-muted-yellow-700: #676153;
54
+ --elmethis-primitive-color-muted-yellow-800: #4a463b;
55
+ --elmethis-primitive-color-muted-yellow-900: #2f2c24;
11
56
  --elmethis-primitive-color-green-100: #dde9e2;
57
+ --elmethis-primitive-color-green-200: #bfd4c7;
58
+ --elmethis-primitive-color-green-300: #a1c0ac;
59
+ --elmethis-primitive-color-green-400: #83ac92;
12
60
  --elmethis-primitive-color-green-500: #659878;
61
+ --elmethis-primitive-color-green-600: #4f7a5f;
62
+ --elmethis-primitive-color-green-700: #3b5d48;
63
+ --elmethis-primitive-color-green-800: #274232;
13
64
  --elmethis-primitive-color-green-900: #15281d;
65
+ --elmethis-primitive-color-muted-green-100: #e2e7e4;
66
+ --elmethis-primitive-color-muted-green-200: #c8d1cb;
67
+ --elmethis-primitive-color-muted-green-300: #aebbb2;
68
+ --elmethis-primitive-color-muted-green-400: #95a59a;
69
+ --elmethis-primitive-color-muted-green-500: #7c9083;
70
+ --elmethis-primitive-color-muted-green-600: #637369;
71
+ --elmethis-primitive-color-muted-green-700: #4a584f;
72
+ --elmethis-primitive-color-muted-green-800: #333d37;
73
+ --elmethis-primitive-color-muted-green-900: #1e2521;
14
74
  --elmethis-primitive-color-cyan-100: #dde9e7;
75
+ --elmethis-primitive-color-cyan-200: #bdd2d5;
76
+ --elmethis-primitive-color-cyan-300: #9ebcc3;
77
+ --elmethis-primitive-color-cyan-400: #7fa6b1;
15
78
  --elmethis-primitive-color-cyan-500: #6091a0;
79
+ --elmethis-primitive-color-cyan-600: #4f7a84;
80
+ --elmethis-primitive-color-cyan-700: #3f6469;
81
+ --elmethis-primitive-color-cyan-800: #2f4f4f;
16
82
  --elmethis-primitive-color-cyan-900: #203b37;
83
+ --elmethis-primitive-color-muted-cyan-100: #e2e7e6;
84
+ --elmethis-primitive-color-muted-cyan-200: #c7d0d0;
85
+ --elmethis-primitive-color-muted-cyan-300: #acb9bb;
86
+ --elmethis-primitive-color-muted-cyan-400: #92a2a6;
87
+ --elmethis-primitive-color-muted-cyan-500: #798c92;
88
+ --elmethis-primitive-color-muted-cyan-600: #65767a;
89
+ --elmethis-primitive-color-muted-cyan-700: #516062;
90
+ --elmethis-primitive-color-muted-cyan-800: #3f4c4c;
91
+ --elmethis-primitive-color-muted-cyan-900: #2d3836;
17
92
  --elmethis-primitive-color-blue-100: #dde2e9;
93
+ --elmethis-primitive-color-blue-200: #bec6d6;
94
+ --elmethis-primitive-color-blue-300: #a1abc4;
95
+ --elmethis-primitive-color-blue-400: #8491b2;
18
96
  --elmethis-primitive-color-blue-500: #68779f;
97
+ --elmethis-primitive-color-blue-600: #566385;
98
+ --elmethis-primitive-color-blue-700: #45516d;
99
+ --elmethis-primitive-color-blue-800: #343e55;
19
100
  --elmethis-primitive-color-blue-900: #242d3e;
101
+ --elmethis-primitive-color-muted-blue-100: #e0e2e5;
102
+ --elmethis-primitive-color-muted-blue-200: #c3c6cd;
103
+ --elmethis-primitive-color-muted-blue-300: #a7acb6;
104
+ --elmethis-primitive-color-muted-blue-400: #8b919f;
105
+ --elmethis-primitive-color-muted-blue-500: #717889;
106
+ --elmethis-primitive-color-muted-blue-600: #5e6473;
107
+ --elmethis-primitive-color-muted-blue-700: #4c515d;
108
+ --elmethis-primitive-color-muted-blue-800: #3a3f48;
109
+ --elmethis-primitive-color-muted-blue-900: #292d34;
20
110
  --elmethis-primitive-color-purple-100: #e3dde9;
111
+ --elmethis-primitive-color-purple-200: #cdc3d6;
112
+ --elmethis-primitive-color-purple-300: #b7aac4;
113
+ --elmethis-primitive-color-purple-400: #a291b1;
21
114
  --elmethis-primitive-color-purple-500: #8d799f;
115
+ --elmethis-primitive-color-purple-600: #725f83;
116
+ --elmethis-primitive-color-purple-700: #574668;
117
+ --elmethis-primitive-color-purple-800: #3e2e4f;
22
118
  --elmethis-primitive-color-purple-900: #271836;
119
+ --elmethis-primitive-color-muted-purple-100: #e1dfe4;
120
+ --elmethis-primitive-color-muted-purple-200: #cac6ce;
121
+ --elmethis-primitive-color-muted-purple-300: #b3aeb9;
122
+ --elmethis-primitive-color-muted-purple-400: #9d96a4;
123
+ --elmethis-primitive-color-muted-purple-500: #877f8f;
124
+ --elmethis-primitive-color-muted-purple-600: #6c6574;
125
+ --elmethis-primitive-color-muted-purple-700: #524b5a;
126
+ --elmethis-primitive-color-muted-purple-800: #3a3341;
127
+ --elmethis-primitive-color-muted-purple-900: #231d2a;
23
128
  --elmethis-primitive-color-magenta-100: #eadce4;
129
+ --elmethis-primitive-color-magenta-200: #dcc1d0;
130
+ --elmethis-primitive-color-magenta-300: #cea7bc;
131
+ --elmethis-primitive-color-magenta-400: #c08da9;
24
132
  --elmethis-primitive-color-magenta-500: #b17396;
133
+ --elmethis-primitive-color-magenta-600: #925d7a;
134
+ --elmethis-primitive-color-magenta-700: #744760;
135
+ --elmethis-primitive-color-magenta-800: #573247;
25
136
  --elmethis-primitive-color-magenta-900: #3c1f2f;
137
+ --elmethis-primitive-color-muted-magenta-100: #e4dfe2;
138
+ --elmethis-primitive-color-muted-magenta-200: #d1c7cd;
139
+ --elmethis-primitive-color-muted-magenta-300: #bfafb8;
140
+ --elmethis-primitive-color-muted-magenta-400: #ad98a3;
141
+ --elmethis-primitive-color-muted-magenta-500: #9b818f;
142
+ --elmethis-primitive-color-muted-magenta-600: #7f6975;
143
+ --elmethis-primitive-color-muted-magenta-700: #64515b;
144
+ --elmethis-primitive-color-muted-magenta-800: #4a3b43;
145
+ --elmethis-primitive-color-muted-magenta-900: #32262c;
26
146
  --elmethis-primitive-color-slate-100: #d7d9e1;
27
147
  --elmethis-primitive-color-slate-200: #b0b5be;
28
148
  --elmethis-primitive-color-slate-300: #949ba7;
@@ -60,41 +180,41 @@
60
180
  var(--elmethis-primitive-color-slate-900)
61
181
  );
62
182
  --elmethis-color-accent-link-surface: light-dark(
63
- var(--elmethis-primitive-color-blue-100),
64
- var(--elmethis-primitive-color-blue-900)
183
+ var(--elmethis-primitive-color-muted-blue-100),
184
+ var(--elmethis-primitive-color-muted-blue-800)
65
185
  );
66
186
  --elmethis-color-accent-link: var(--elmethis-primitive-color-blue-500);
67
187
  --elmethis-color-accent-link-visited: var(
68
188
  --elmethis-primitive-color-purple-500
69
189
  );
70
190
  --elmethis-color-accent-link-surface-visited: light-dark(
71
- var(--elmethis-primitive-color-purple-100),
72
- var(--elmethis-primitive-color-purple-900)
191
+ var(--elmethis-primitive-color-muted-purple-100),
192
+ var(--elmethis-primitive-color-muted-purple-800)
73
193
  );
74
194
  --elmethis-color-accent-info: var(--elmethis-primitive-color-blue-500);
75
195
  --elmethis-color-accent-info-surface: light-dark(
76
- var(--elmethis-primitive-color-blue-100),
77
- var(--elmethis-primitive-color-blue-900)
196
+ var(--elmethis-primitive-color-muted-blue-100),
197
+ var(--elmethis-primitive-color-muted-blue-800)
78
198
  );
79
199
  --elmethis-color-accent-success: var(--elmethis-primitive-color-green-500);
80
200
  --elmethis-color-accent-success-surface: light-dark(
81
- var(--elmethis-primitive-color-green-100),
82
- var(--elmethis-primitive-color-green-900)
201
+ var(--elmethis-primitive-color-muted-green-100),
202
+ var(--elmethis-primitive-color-muted-green-800)
83
203
  );
84
204
  --elmethis-color-accent-important: var(--elmethis-primitive-color-purple-500);
85
205
  --elmethis-color-accent-important-surface: light-dark(
86
- var(--elmethis-primitive-color-purple-100),
87
- var(--elmethis-primitive-color-purple-900)
206
+ var(--elmethis-primitive-color-muted-purple-100),
207
+ var(--elmethis-primitive-color-muted-purple-800)
88
208
  );
89
209
  --elmethis-color-accent-warning: var(--elmethis-primitive-color-yellow-500);
90
210
  --elmethis-color-accent-warning-surface: light-dark(
91
- var(--elmethis-primitive-color-yellow-100),
92
- var(--elmethis-primitive-color-yellow-900)
211
+ var(--elmethis-primitive-color-muted-yellow-100),
212
+ var(--elmethis-primitive-color-muted-yellow-800)
93
213
  );
94
214
  --elmethis-color-accent-error: var(--elmethis-primitive-color-red-500);
95
215
  --elmethis-color-accent-error-surface: light-dark(
96
- var(--elmethis-primitive-color-red-100),
97
- var(--elmethis-primitive-color-red-900)
216
+ var(--elmethis-primitive-color-muted-red-100),
217
+ var(--elmethis-primitive-color-muted-red-800)
98
218
  );
99
219
  --elmethis-color-divider: light-dark(
100
220
  var(--elmethis-primitive-color-gold-300),
@@ -139,43 +259,43 @@
139
259
  );
140
260
  --elmethis-color-display-red: var(--elmethis-primitive-color-red-500);
141
261
  --elmethis-color-display-red-surface: light-dark(
142
- var(--elmethis-primitive-color-red-100),
143
- var(--elmethis-primitive-color-red-900)
262
+ var(--elmethis-primitive-color-muted-red-100),
263
+ var(--elmethis-primitive-color-muted-red-900)
144
264
  );
145
265
  --elmethis-color-display-orange: var(--elmethis-primitive-color-orange-500);
146
266
  --elmethis-color-display-orange-surface: light-dark(
147
- var(--elmethis-primitive-color-orange-100),
148
- var(--elmethis-primitive-color-orange-900)
267
+ var(--elmethis-primitive-color-muted-orange-100),
268
+ var(--elmethis-primitive-color-muted-orange-900)
149
269
  );
150
270
  --elmethis-color-display-yellow: var(--elmethis-primitive-color-yellow-500);
151
271
  --elmethis-color-display-yellow-surface: light-dark(
152
- var(--elmethis-primitive-color-yellow-100),
153
- var(--elmethis-primitive-color-yellow-900)
272
+ var(--elmethis-primitive-color-muted-yellow-100),
273
+ var(--elmethis-primitive-color-muted-yellow-900)
154
274
  );
155
275
  --elmethis-color-display-green: var(--elmethis-primitive-color-green-500);
156
276
  --elmethis-color-display-green-surface: light-dark(
157
- var(--elmethis-primitive-color-green-100),
158
- var(--elmethis-primitive-color-green-900)
277
+ var(--elmethis-primitive-color-muted-green-100),
278
+ var(--elmethis-primitive-color-muted-green-900)
159
279
  );
160
280
  --elmethis-color-display-cyan: var(--elmethis-primitive-color-cyan-500);
161
281
  --elmethis-color-display-cyan-surface: light-dark(
162
- var(--elmethis-primitive-color-cyan-100),
163
- var(--elmethis-primitive-color-cyan-900)
282
+ var(--elmethis-primitive-color-muted-cyan-100),
283
+ var(--elmethis-primitive-color-muted-cyan-900)
164
284
  );
165
285
  --elmethis-color-display-blue: var(--elmethis-primitive-color-blue-500);
166
286
  --elmethis-color-display-blue-surface: light-dark(
167
- var(--elmethis-primitive-color-blue-100),
168
- var(--elmethis-primitive-color-blue-900)
287
+ var(--elmethis-primitive-color-muted-blue-100),
288
+ var(--elmethis-primitive-color-muted-blue-900)
169
289
  );
170
290
  --elmethis-color-display-purple: var(--elmethis-primitive-color-purple-500);
171
291
  --elmethis-color-display-purple-surface: light-dark(
172
- var(--elmethis-primitive-color-purple-100),
173
- var(--elmethis-primitive-color-purple-900)
292
+ var(--elmethis-primitive-color-muted-purple-100),
293
+ var(--elmethis-primitive-color-muted-purple-900)
174
294
  );
175
295
  --elmethis-color-display-magenta: var(--elmethis-primitive-color-magenta-500);
176
296
  --elmethis-color-display-magenta-surface: light-dark(
177
- var(--elmethis-primitive-color-magenta-100),
178
- var(--elmethis-primitive-color-magenta-900)
297
+ var(--elmethis-primitive-color-muted-magenta-100),
298
+ var(--elmethis-primitive-color-muted-magenta-900)
179
299
  );
180
300
  color-scheme: light dark;
181
301
  font-family: var(--elmethis-font-family-sans);