@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/tokens.d.cts CHANGED
@@ -1,3 +1,6 @@
1
+ //#region src/style/color-scale.d.ts
2
+ type ColorStep = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
3
+ //#endregion
1
4
  //#region src/style/token.d.ts
2
5
  /**
3
6
  * Design tokens for `@elmethis/core` — the single source of truth that the
@@ -6,7 +9,7 @@
6
9
  * and a semantic layer that references it, themed natively via `light-dark()`.
7
10
  */
8
11
  /** A primitive token knows the custom property that defines it. */
9
- interface PrimitiveToken {
12
+ export interface PrimitiveToken {
10
13
  /** e.g. `--elmethis-primitive-color-blue-500` */
11
14
  readonly property: string;
12
15
  /** the literal value, e.g. `#68779f` */
@@ -15,7 +18,7 @@ interface PrimitiveToken {
15
18
  readonly ref: string;
16
19
  }
17
20
  /** A semantic token is either theme-independent or a `light-dark()` pair. */
18
- type SemanticValue = {
21
+ export type SemanticValue = {
19
22
  readonly common: string;
20
23
  } | {
21
24
  readonly light: string;
@@ -23,46 +26,22 @@ type SemanticValue = {
23
26
  };
24
27
  declare const PRIMITIVE_VALUES: {
25
28
  readonly color: {
26
- readonly red: {
27
- readonly 100: "#e9dddd";
28
- readonly 500: "#ae6e6e";
29
- readonly 900: "#291313";
30
- };
31
- readonly orange: {
32
- readonly 100: "#ebdfdb";
33
- readonly 500: "#b8816e";
34
- readonly 900: "#3f251c";
35
- };
36
- readonly yellow: {
37
- readonly 100: "#ebe6db";
38
- readonly 500: "#b09a66";
39
- readonly 900: "#332b19";
40
- };
41
- readonly green: {
42
- readonly 100: "#dde9e2";
43
- readonly 500: "#659878";
44
- readonly 900: "#15281d";
45
- };
46
- readonly cyan: {
47
- readonly 100: "#dde9e7";
48
- readonly 500: "#6091a0";
49
- readonly 900: "#203b37";
50
- };
51
- readonly blue: {
52
- readonly 100: "#dde2e9";
53
- readonly 500: "#68779f";
54
- readonly 900: "#242d3e";
55
- };
56
- readonly purple: {
57
- readonly 100: "#e3dde9";
58
- readonly 500: "#8d799f";
59
- readonly 900: "#271836";
60
- };
61
- readonly magenta: {
62
- readonly 100: "#eadce4";
63
- readonly 500: "#b17396";
64
- readonly 900: "#3c1f2f";
65
- };
29
+ readonly red: Readonly<Record<ColorStep, string>>;
30
+ readonly "muted-red": Readonly<Record<ColorStep, string>>;
31
+ readonly orange: Readonly<Record<ColorStep, string>>;
32
+ readonly "muted-orange": Readonly<Record<ColorStep, string>>;
33
+ readonly yellow: Readonly<Record<ColorStep, string>>;
34
+ readonly "muted-yellow": Readonly<Record<ColorStep, string>>;
35
+ readonly green: Readonly<Record<ColorStep, string>>;
36
+ readonly "muted-green": Readonly<Record<ColorStep, string>>;
37
+ readonly cyan: Readonly<Record<ColorStep, string>>;
38
+ readonly "muted-cyan": Readonly<Record<ColorStep, string>>;
39
+ readonly blue: Readonly<Record<ColorStep, string>>;
40
+ readonly "muted-blue": Readonly<Record<ColorStep, string>>;
41
+ readonly purple: Readonly<Record<ColorStep, string>>;
42
+ readonly "muted-purple": Readonly<Record<ColorStep, string>>;
43
+ readonly magenta: Readonly<Record<ColorStep, string>>;
44
+ readonly "muted-magenta": Readonly<Record<ColorStep, string>>;
66
45
  readonly slate: {
67
46
  readonly 100: "#d7d9e1";
68
47
  readonly 200: "#b0b5be";
@@ -95,7 +74,7 @@ declare const PRIMITIVE_VALUES: {
95
74
  };
96
75
  type PrimitiveTree<T> = { readonly [K in keyof T]: T[K] extends string ? PrimitiveToken : PrimitiveTree<T[K]>; };
97
76
  /** Primitive tokens, addressable as `primitive.color.blue[500]`. */
98
- declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
77
+ export declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
99
78
  /**
100
79
  * Semantic tokens, keyed by the full kebab suffix that follows `--elmethis-`
101
80
  * (so `"color-accent-info-surface"` emits `--elmethis-color-accent-info-surface`).
@@ -105,7 +84,7 @@ declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
105
84
  * `color-neutral` coexisting with `color-neutral-weak`. References to the
106
85
  * primitive layer are symbolic (`PrimitiveToken.ref`), never resolved values.
107
86
  */
108
- declare const semanticTokens: {
87
+ export declare const semanticTokens: {
109
88
  /**
110
89
  * Vertical rhythm between stacked blocks. Applied as `gap` on an explicit
111
90
  * flex-column "stack" container (e.g. each framework's `ElmA2ui` surface,
@@ -166,5 +145,4 @@ declare const semanticTokens: {
166
145
  "color-display-magenta": SemanticValue;
167
146
  "color-display-magenta-surface": SemanticValue;
168
147
  };
169
- //#endregion
170
- export { PrimitiveToken, SemanticValue, primitive, semanticTokens };
148
+ //#endregion
package/dist/tokens.d.mts CHANGED
@@ -1,3 +1,6 @@
1
+ //#region src/style/color-scale.d.ts
2
+ type ColorStep = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
3
+ //#endregion
1
4
  //#region src/style/token.d.ts
2
5
  /**
3
6
  * Design tokens for `@elmethis/core` — the single source of truth that the
@@ -6,7 +9,7 @@
6
9
  * and a semantic layer that references it, themed natively via `light-dark()`.
7
10
  */
8
11
  /** A primitive token knows the custom property that defines it. */
9
- interface PrimitiveToken {
12
+ export interface PrimitiveToken {
10
13
  /** e.g. `--elmethis-primitive-color-blue-500` */
11
14
  readonly property: string;
12
15
  /** the literal value, e.g. `#68779f` */
@@ -15,7 +18,7 @@ interface PrimitiveToken {
15
18
  readonly ref: string;
16
19
  }
17
20
  /** A semantic token is either theme-independent or a `light-dark()` pair. */
18
- type SemanticValue = {
21
+ export type SemanticValue = {
19
22
  readonly common: string;
20
23
  } | {
21
24
  readonly light: string;
@@ -23,46 +26,22 @@ type SemanticValue = {
23
26
  };
24
27
  declare const PRIMITIVE_VALUES: {
25
28
  readonly color: {
26
- readonly red: {
27
- readonly 100: "#e9dddd";
28
- readonly 500: "#ae6e6e";
29
- readonly 900: "#291313";
30
- };
31
- readonly orange: {
32
- readonly 100: "#ebdfdb";
33
- readonly 500: "#b8816e";
34
- readonly 900: "#3f251c";
35
- };
36
- readonly yellow: {
37
- readonly 100: "#ebe6db";
38
- readonly 500: "#b09a66";
39
- readonly 900: "#332b19";
40
- };
41
- readonly green: {
42
- readonly 100: "#dde9e2";
43
- readonly 500: "#659878";
44
- readonly 900: "#15281d";
45
- };
46
- readonly cyan: {
47
- readonly 100: "#dde9e7";
48
- readonly 500: "#6091a0";
49
- readonly 900: "#203b37";
50
- };
51
- readonly blue: {
52
- readonly 100: "#dde2e9";
53
- readonly 500: "#68779f";
54
- readonly 900: "#242d3e";
55
- };
56
- readonly purple: {
57
- readonly 100: "#e3dde9";
58
- readonly 500: "#8d799f";
59
- readonly 900: "#271836";
60
- };
61
- readonly magenta: {
62
- readonly 100: "#eadce4";
63
- readonly 500: "#b17396";
64
- readonly 900: "#3c1f2f";
65
- };
29
+ readonly red: Readonly<Record<ColorStep, string>>;
30
+ readonly "muted-red": Readonly<Record<ColorStep, string>>;
31
+ readonly orange: Readonly<Record<ColorStep, string>>;
32
+ readonly "muted-orange": Readonly<Record<ColorStep, string>>;
33
+ readonly yellow: Readonly<Record<ColorStep, string>>;
34
+ readonly "muted-yellow": Readonly<Record<ColorStep, string>>;
35
+ readonly green: Readonly<Record<ColorStep, string>>;
36
+ readonly "muted-green": Readonly<Record<ColorStep, string>>;
37
+ readonly cyan: Readonly<Record<ColorStep, string>>;
38
+ readonly "muted-cyan": Readonly<Record<ColorStep, string>>;
39
+ readonly blue: Readonly<Record<ColorStep, string>>;
40
+ readonly "muted-blue": Readonly<Record<ColorStep, string>>;
41
+ readonly purple: Readonly<Record<ColorStep, string>>;
42
+ readonly "muted-purple": Readonly<Record<ColorStep, string>>;
43
+ readonly magenta: Readonly<Record<ColorStep, string>>;
44
+ readonly "muted-magenta": Readonly<Record<ColorStep, string>>;
66
45
  readonly slate: {
67
46
  readonly 100: "#d7d9e1";
68
47
  readonly 200: "#b0b5be";
@@ -95,7 +74,7 @@ declare const PRIMITIVE_VALUES: {
95
74
  };
96
75
  type PrimitiveTree<T> = { readonly [K in keyof T]: T[K] extends string ? PrimitiveToken : PrimitiveTree<T[K]>; };
97
76
  /** Primitive tokens, addressable as `primitive.color.blue[500]`. */
98
- declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
77
+ export declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
99
78
  /**
100
79
  * Semantic tokens, keyed by the full kebab suffix that follows `--elmethis-`
101
80
  * (so `"color-accent-info-surface"` emits `--elmethis-color-accent-info-surface`).
@@ -105,7 +84,7 @@ declare const primitive: PrimitiveTree<typeof PRIMITIVE_VALUES>;
105
84
  * `color-neutral` coexisting with `color-neutral-weak`. References to the
106
85
  * primitive layer are symbolic (`PrimitiveToken.ref`), never resolved values.
107
86
  */
108
- declare const semanticTokens: {
87
+ export declare const semanticTokens: {
109
88
  /**
110
89
  * Vertical rhythm between stacked blocks. Applied as `gap` on an explicit
111
90
  * flex-column "stack" container (e.g. each framework's `ElmA2ui` surface,
@@ -166,5 +145,4 @@ declare const semanticTokens: {
166
145
  "color-display-magenta": SemanticValue;
167
146
  "color-display-magenta-surface": SemanticValue;
168
147
  };
169
- //#endregion
170
- export { PrimitiveToken, SemanticValue, primitive, semanticTokens };
148
+ //#endregion
package/dist/tokens.mjs CHANGED
@@ -1,46 +1,83 @@
1
+ //#region src/style/color-scale.ts
2
+ const parseHex = (hex) => {
3
+ if (!/^#[\da-f]{6}$/i.test(hex)) throw new Error(`Expected a six-digit hex color, received ${hex}`);
4
+ return [
5
+ Number.parseInt(hex.slice(1, 3), 16) / 255,
6
+ Number.parseInt(hex.slice(3, 5), 16) / 255,
7
+ Number.parseInt(hex.slice(5, 7), 16) / 255
8
+ ];
9
+ };
10
+ const srgbToLinear = (channel) => channel <= .04045 ? channel / 12.92 : ((channel + .055) / 1.055) ** 2.4;
11
+ const linearToSrgb = (channel) => channel <= .0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - .055;
12
+ const hexToOklab = (hex) => {
13
+ const [encodedRed, encodedGreen, encodedBlue] = parseHex(hex);
14
+ const red = srgbToLinear(encodedRed);
15
+ const green = srgbToLinear(encodedGreen);
16
+ const blue = srgbToLinear(encodedBlue);
17
+ const lightness = Math.cbrt(.4122214708 * red + .5363325363 * green + .0514459929 * blue);
18
+ const medium = Math.cbrt(.2119034982 * red + .6806995451 * green + .1073969566 * blue);
19
+ const short = Math.cbrt(.0883024619 * red + .2817188376 * green + .6299787005 * blue);
20
+ return [
21
+ .2104542553 * lightness + .793617785 * medium - .0040720468 * short,
22
+ 1.9779984951 * lightness - 2.428592205 * medium + .4505937099 * short,
23
+ .0259040371 * lightness + .7827717662 * medium - .808675766 * short
24
+ ];
25
+ };
26
+ const oklabToHex = ([lightness, a, b]) => {
27
+ const light = (lightness + .3963377774 * a + .2158037573 * b) ** 3;
28
+ const medium = (lightness - .1055613458 * a - .0638541728 * b) ** 3;
29
+ const short = (lightness - .0894841775 * a - 1.291485548 * b) ** 3;
30
+ return `#${[
31
+ 4.0767416621 * light - 3.3077115913 * medium + .2309699292 * short,
32
+ -1.2684380046 * light + 2.6097574011 * medium - .3413193965 * short,
33
+ -.0041960863 * light - .7034186147 * medium + 1.707614701 * short
34
+ ].map(linearToSrgb).map((channel) => Math.min(1, Math.max(0, channel))).map((channel) => Math.round(channel * 255).toString(16).padStart(2, "0")).join("")}`;
35
+ };
36
+ const interpolateOklab = (start, end, amount) => oklabToHex([
37
+ start[0] + (end[0] - start[0]) * amount,
38
+ start[1] + (end[1] - start[1]) * amount,
39
+ start[2] + (end[2] - start[2]) * amount
40
+ ]);
41
+ /**
42
+ * Expands the authored 100/500/900 anchors into a perceptually even ramp.
43
+ * OKLab avoids the muddy midpoints produced by interpolating encoded sRGB.
44
+ */
45
+ const createColorScale = (light, middle, dark) => {
46
+ const lightOklab = hexToOklab(light);
47
+ const middleOklab = hexToOklab(middle);
48
+ const darkOklab = hexToOklab(dark);
49
+ return {
50
+ 100: light.toLowerCase(),
51
+ 200: interpolateOklab(lightOklab, middleOklab, .25),
52
+ 300: interpolateOklab(lightOklab, middleOklab, .5),
53
+ 400: interpolateOklab(lightOklab, middleOklab, .75),
54
+ 500: middle.toLowerCase(),
55
+ 600: interpolateOklab(middleOklab, darkOklab, .25),
56
+ 700: interpolateOklab(middleOklab, darkOklab, .5),
57
+ 800: interpolateOklab(middleOklab, darkOklab, .75),
58
+ 900: dark.toLowerCase()
59
+ };
60
+ };
61
+ //#endregion
1
62
  //#region src/style/token.ts
2
63
  const PRIMITIVE_VALUES = {
3
64
  color: {
4
- red: {
5
- 100: "#e9dddd",
6
- 500: "#ae6e6e",
7
- 900: "#291313"
8
- },
9
- orange: {
10
- 100: "#ebdfdb",
11
- 500: "#b8816e",
12
- 900: "#3f251c"
13
- },
14
- yellow: {
15
- 100: "#ebe6db",
16
- 500: "#b09a66",
17
- 900: "#332b19"
18
- },
19
- green: {
20
- 100: "#dde9e2",
21
- 500: "#659878",
22
- 900: "#15281d"
23
- },
24
- cyan: {
25
- 100: "#dde9e7",
26
- 500: "#6091a0",
27
- 900: "#203b37"
28
- },
29
- blue: {
30
- 100: "#dde2e9",
31
- 500: "#68779f",
32
- 900: "#242d3e"
33
- },
34
- purple: {
35
- 100: "#e3dde9",
36
- 500: "#8d799f",
37
- 900: "#271836"
38
- },
39
- magenta: {
40
- 100: "#eadce4",
41
- 500: "#b17396",
42
- 900: "#3c1f2f"
43
- },
65
+ red: createColorScale("#e9dddd", "#ae6e6e", "#291313"),
66
+ "muted-red": createColorScale("#e4dfdf", "#967a7a", "#211817"),
67
+ orange: createColorScale("#ebdfdb", "#b8816e", "#3f251c"),
68
+ "muted-orange": createColorScale("#e6e1df", "#a28a82", "#352a26"),
69
+ yellow: createColorScale("#ebe6db", "#b09a66", "#332b19"),
70
+ "muted-yellow": createColorScale("#e8e6e2", "#a59c87", "#2f2c24"),
71
+ green: createColorScale("#dde9e2", "#659878", "#15281d"),
72
+ "muted-green": createColorScale("#e2e7e4", "#7c9083", "#1e2521"),
73
+ cyan: createColorScale("#dde9e7", "#6091a0", "#203b37"),
74
+ "muted-cyan": createColorScale("#e2e7e6", "#798c92", "#2d3836"),
75
+ blue: createColorScale("#dde2e9", "#68779f", "#242d3e"),
76
+ "muted-blue": createColorScale("#e0e2e5", "#717889", "#292d34"),
77
+ purple: createColorScale("#e3dde9", "#8d799f", "#271836"),
78
+ "muted-purple": createColorScale("#e1dfe4", "#877f8f", "#231d2a"),
79
+ magenta: createColorScale("#eadce4", "#b17396", "#3c1f2f"),
80
+ "muted-magenta": createColorScale("#e4dfe2", "#9b818f", "#32262c"),
44
81
  slate: {
45
82
  100: "#d7d9e1",
46
83
  200: "#b0b5be",
@@ -96,6 +133,8 @@ const theme = (light, dark) => ({
96
133
  dark: resolve(dark)
97
134
  });
98
135
  const { color, font } = primitive;
136
+ const accentSurface = (hue) => theme(color[hue][100], color[hue][800]);
137
+ const displaySurface = (hue) => theme(color[hue][100], color[hue][900]);
99
138
  /**
100
139
  * Semantic tokens, keyed by the full kebab suffix that follows `--elmethis-`
101
140
  * (so `"color-accent-info-surface"` emits `--elmethis-color-accent-info-surface`).
@@ -122,20 +161,20 @@ const semanticTokens = {
122
161
  "font-family-sans": common(font.family.sans),
123
162
  "font-family-monospace": common(font.family.monospace),
124
163
  "color-box-shadow": theme("oklch(from #3e434b l c h / 0.25)", color.slate[900]),
125
- "color-accent-link-surface": theme(color.blue[100], color.blue[900]),
164
+ "color-accent-link-surface": accentSurface("muted-blue"),
126
165
  "color-accent-link": common(color.blue[500]),
127
166
  "color-accent-link-visited": common(color.purple[500]),
128
- "color-accent-link-surface-visited": theme(color.purple[100], color.purple[900]),
167
+ "color-accent-link-surface-visited": accentSurface("muted-purple"),
129
168
  "color-accent-info": common(color.blue[500]),
130
- "color-accent-info-surface": theme(color.blue[100], color.blue[900]),
169
+ "color-accent-info-surface": accentSurface("muted-blue"),
131
170
  "color-accent-success": common(color.green[500]),
132
- "color-accent-success-surface": theme(color.green[100], color.green[900]),
171
+ "color-accent-success-surface": accentSurface("muted-green"),
133
172
  "color-accent-important": common(color.purple[500]),
134
- "color-accent-important-surface": theme(color.purple[100], color.purple[900]),
173
+ "color-accent-important-surface": accentSurface("muted-purple"),
135
174
  "color-accent-warning": common(color.yellow[500]),
136
- "color-accent-warning-surface": theme(color.yellow[100], color.yellow[900]),
175
+ "color-accent-warning-surface": accentSurface("muted-yellow"),
137
176
  "color-accent-error": common(color.red[500]),
138
- "color-accent-error-surface": theme(color.red[100], color.red[900]),
177
+ "color-accent-error-surface": accentSurface("muted-red"),
139
178
  "color-divider": theme(color.gold[300], color.slate[800]),
140
179
  "color-modal-backdrop": common("oklch(from black l c h / 50%)"),
141
180
  "color-surface-sunken": theme(color.gold[300], color.slate[800]),
@@ -150,21 +189,21 @@ const semanticTokens = {
150
189
  "color-primary-hover": common("oklch(from var(--elmethis-color-primary) l c h / 15%)"),
151
190
  "color-selection": common("oklch(from var(--elmethis-color-primary) l c h / 25%)"),
152
191
  "color-display-red": common(color.red[500]),
153
- "color-display-red-surface": theme(color.red[100], color.red[900]),
192
+ "color-display-red-surface": displaySurface("muted-red"),
154
193
  "color-display-orange": common(color.orange[500]),
155
- "color-display-orange-surface": theme(color.orange[100], color.orange[900]),
194
+ "color-display-orange-surface": displaySurface("muted-orange"),
156
195
  "color-display-yellow": common(color.yellow[500]),
157
- "color-display-yellow-surface": theme(color.yellow[100], color.yellow[900]),
196
+ "color-display-yellow-surface": displaySurface("muted-yellow"),
158
197
  "color-display-green": common(color.green[500]),
159
- "color-display-green-surface": theme(color.green[100], color.green[900]),
198
+ "color-display-green-surface": displaySurface("muted-green"),
160
199
  "color-display-cyan": common(color.cyan[500]),
161
- "color-display-cyan-surface": theme(color.cyan[100], color.cyan[900]),
200
+ "color-display-cyan-surface": displaySurface("muted-cyan"),
162
201
  "color-display-blue": common(color.blue[500]),
163
- "color-display-blue-surface": theme(color.blue[100], color.blue[900]),
202
+ "color-display-blue-surface": displaySurface("muted-blue"),
164
203
  "color-display-purple": common(color.purple[500]),
165
- "color-display-purple-surface": theme(color.purple[100], color.purple[900]),
204
+ "color-display-purple-surface": displaySurface("muted-purple"),
166
205
  "color-display-magenta": common(color.magenta[500]),
167
- "color-display-magenta-surface": theme(color.magenta[100], color.magenta[900])
206
+ "color-display-magenta-surface": displaySurface("muted-magenta")
168
207
  };
169
208
  //#endregion
170
209
  export { primitive, semanticTokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/core",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "author": {
5
5
  "name": "Ikuma Yamashita",
6
6
  "url": "https://www.ikuma.cloud/"
@@ -44,7 +44,9 @@
44
44
  "default": "./dist/stylelint.cjs"
45
45
  }
46
46
  },
47
- "./tokens.css": "./dist/tokens.css"
47
+ "./tokens.css": "./dist/tokens.css",
48
+ "./design/light/DESIGN.md": "./dist/design/light/DESIGN.md",
49
+ "./design/dark/DESIGN.md": "./dist/design/dark/DESIGN.md"
48
50
  },
49
51
  "files": [
50
52
  "dist"
@@ -57,45 +59,47 @@
57
59
  ],
58
60
  "peerDependencies": {
59
61
  "@a2ui/web_core": ">=0.10.0",
60
- "zod": "^3"
62
+ "zod": "^3.25.76"
61
63
  },
62
64
  "dependencies": {
63
65
  "stylelint-config-css-modules": "^4.6.0",
64
- "stylelint-config-standard": "^40.0.0",
66
+ "stylelint-config-standard": "^41.1.0",
65
67
  "stylelint-value-no-unknown-custom-properties": "^6.1.1",
66
68
  "zod-to-json-schema": "^3.25.2"
67
69
  },
68
70
  "devDependencies": {
69
- "@a2ui/web_core": "^0.10.5",
70
- "@eslint/js": "latest",
71
- "@types/node": "26.1.2",
72
- "@vanilla-extract/css": "^1.21.2",
71
+ "@a2ui/web_core": "^0.14.0",
72
+ "@google/design.md": "0.4.0",
73
+ "@types/node": "26.6.5",
74
+ "@vanilla-extract/css": "^1.21.3",
73
75
  "@vanilla-extract/esbuild-plugin": "^2.3.22",
74
- "@vitest/coverage-v8": "^4.1.10",
76
+ "@vitest/coverage-v8": "^5.1.1",
75
77
  "ajv": "^8.17.1",
76
78
  "ajv-formats": "^3.0.1",
77
- "concurrently": "^10.0.4",
78
- "esbuild": "^0.28.1",
79
- "eslint": "^10.8.0",
80
- "globals": "^17.8.0",
81
- "prettier": "3.9.6",
82
- "tsdown": "^0.22.14",
83
- "tsx": "^4.23.1",
79
+ "concurrently": "^10.0.6",
80
+ "esbuild": "^0.28.2",
81
+ "oxfmt": "0.80.0",
82
+ "oxlint": "1.95.0",
83
+ "oxlint-tsgolint": "7.0.2008",
84
+ "tsdown": "^0.23.0",
85
+ "tsx": "^4.23.15",
84
86
  "typescript": "5.9.3",
85
- "typescript-eslint": "^8.65.0",
86
- "vitest": "^4.1.10",
87
- "zod": "^3"
87
+ "vitest": "^5.1.1",
88
+ "yaml": "2.9.1",
89
+ "zod": "^3.25.76"
88
90
  },
89
91
  "scripts": {
90
- "build": "tsdown && tsx scripts/emit-catalog.ts && tsx scripts/build-tokens.ts",
92
+ "build": "tsdown && tsx scripts/emit-catalog.ts && tsx scripts/build-tokens.ts && tsx scripts/build-design-md.ts",
93
+ "build.design": "tsx scripts/build-design-md.ts",
91
94
  "build.types": "exit 0",
92
95
  "dev": "tsdown --watch",
93
- "fmt": "prettier --write ./src",
94
- "fmt.check": "prettier --check ./src",
95
- "lint": "eslint \"src/**/*.ts*\"",
96
+ "fmt": "oxfmt --write ./src",
97
+ "fmt.check": "oxfmt --check ./src",
98
+ "lint": "oxlint --type-aware --report-unused-disable-directives-severity=error --deny-warnings src",
96
99
  "test.unit": "vitest --run",
100
+ "test.package": "node --test scripts/test-package.mjs",
97
101
  "test.coverage": "vitest --run --coverage",
98
102
  "check": "concurrently -g \"pnpm:fmt.check\" \"pnpm:lint\" \"pnpm:build.types\"",
99
- "check.ci": "pnpm run check && pnpm run build && pnpm run test.coverage"
103
+ "check.ci": "pnpm run check && pnpm run build && pnpm run test.package && pnpm run test.coverage"
100
104
  }
101
105
  }