@xenosystem/elements 0.0.10 → 0.0.12
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/elements/activity.d.ts +11 -0
- package/dist/elements/activity.js +22 -0
- package/dist/elements/contact.d.ts +12 -0
- package/dist/elements/contact.js +26 -0
- package/dist/elements/film.d.ts +11 -0
- package/dist/elements/film.js +25 -0
- package/dist/elements/hash.d.ts +10 -0
- package/dist/elements/hash.js +22 -0
- package/dist/elements/mail.d.ts +11 -0
- package/dist/elements/mail.js +23 -0
- package/dist/tokens/dtcg.d.ts +74 -0
- package/dist/tokens/dtcg.js +136 -0
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/index.js +3 -0
- package/dist/tokens/oklch.d.ts +73 -0
- package/dist/tokens/oklch.js +206 -0
- package/dist/tokens/platform-theme.d.ts +71 -0
- package/dist/tokens/platform-theme.js +164 -0
- package/dist/tokens.dtcg.json +393 -0
- package/package.json +4 -2
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": {
|
|
3
|
+
"$value": "https://www.designtokens.org/tr/2025.10/format/",
|
|
4
|
+
"$type": "fontFamily",
|
|
5
|
+
"$description": "W3C DTCG 2025.10 format marker"
|
|
6
|
+
},
|
|
7
|
+
"color": {
|
|
8
|
+
"industrialDark": {
|
|
9
|
+
"canvas": {
|
|
10
|
+
"$value": "#141312",
|
|
11
|
+
"$type": "color",
|
|
12
|
+
"$description": "Industrial warm dark canvas"
|
|
13
|
+
},
|
|
14
|
+
"surface": {
|
|
15
|
+
"$value": "#1c1b19",
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$description": "Industrial warm dark surface"
|
|
18
|
+
},
|
|
19
|
+
"viewport": {
|
|
20
|
+
"$value": "#232220",
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$description": "Industrial warm dark viewport"
|
|
23
|
+
},
|
|
24
|
+
"elevated": {
|
|
25
|
+
"$value": "#282724",
|
|
26
|
+
"$type": "color",
|
|
27
|
+
"$description": "Industrial warm dark elevated"
|
|
28
|
+
},
|
|
29
|
+
"control": {
|
|
30
|
+
"$value": "#2e2d2a",
|
|
31
|
+
"$type": "color",
|
|
32
|
+
"$description": "Industrial warm dark control"
|
|
33
|
+
},
|
|
34
|
+
"border": {
|
|
35
|
+
"$value": "#33312e",
|
|
36
|
+
"$type": "color",
|
|
37
|
+
"$description": "Industrial warm dark border"
|
|
38
|
+
},
|
|
39
|
+
"borderSubtle": {
|
|
40
|
+
"$value": "#2e2c29",
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$description": "Industrial warm dark borderSubtle"
|
|
43
|
+
},
|
|
44
|
+
"text": {
|
|
45
|
+
"$value": "#edebe7",
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$description": "Industrial warm dark text"
|
|
48
|
+
},
|
|
49
|
+
"active": {
|
|
50
|
+
"$value": "#d6d2cb",
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$description": "Industrial warm dark active"
|
|
53
|
+
},
|
|
54
|
+
"mutedText": {
|
|
55
|
+
"$value": "#aaa59d",
|
|
56
|
+
"$type": "color",
|
|
57
|
+
"$description": "Industrial warm dark mutedText"
|
|
58
|
+
},
|
|
59
|
+
"muted": {
|
|
60
|
+
"$value": "#7f7a72",
|
|
61
|
+
"$type": "color",
|
|
62
|
+
"$description": "Industrial warm dark muted"
|
|
63
|
+
},
|
|
64
|
+
"onAccent": {
|
|
65
|
+
"$value": "#1c1b19",
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"$description": "Industrial warm dark onAccent"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"industrialLight": {
|
|
71
|
+
"canvas": {
|
|
72
|
+
"$value": "#e9e6e1",
|
|
73
|
+
"$type": "color",
|
|
74
|
+
"$description": "Industrial warm light canvas"
|
|
75
|
+
},
|
|
76
|
+
"surface": {
|
|
77
|
+
"$value": "#f6f4f1",
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$description": "Industrial warm light surface"
|
|
80
|
+
},
|
|
81
|
+
"viewport": {
|
|
82
|
+
"$value": "#ffffff",
|
|
83
|
+
"$type": "color",
|
|
84
|
+
"$description": "Industrial warm light viewport"
|
|
85
|
+
},
|
|
86
|
+
"elevated": {
|
|
87
|
+
"$value": "#ffffff",
|
|
88
|
+
"$type": "color",
|
|
89
|
+
"$description": "Industrial warm light elevated"
|
|
90
|
+
},
|
|
91
|
+
"control": {
|
|
92
|
+
"$value": "#eae7e2",
|
|
93
|
+
"$type": "color",
|
|
94
|
+
"$description": "Industrial warm light control"
|
|
95
|
+
},
|
|
96
|
+
"border": {
|
|
97
|
+
"$value": "#dedad4",
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$description": "Industrial warm light border"
|
|
100
|
+
},
|
|
101
|
+
"borderSubtle": {
|
|
102
|
+
"$value": "#e4e0da",
|
|
103
|
+
"$type": "color",
|
|
104
|
+
"$description": "Industrial warm light borderSubtle"
|
|
105
|
+
},
|
|
106
|
+
"text": {
|
|
107
|
+
"$value": "#1f1f1f",
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$description": "Industrial warm light text"
|
|
110
|
+
},
|
|
111
|
+
"active": {
|
|
112
|
+
"$value": "#2e2c29",
|
|
113
|
+
"$type": "color",
|
|
114
|
+
"$description": "Industrial warm light active"
|
|
115
|
+
},
|
|
116
|
+
"mutedText": {
|
|
117
|
+
"$value": "#4e4a45",
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$description": "Industrial warm light mutedText"
|
|
120
|
+
},
|
|
121
|
+
"muted": {
|
|
122
|
+
"$value": "#6e6a64",
|
|
123
|
+
"$type": "color",
|
|
124
|
+
"$description": "Industrial warm light muted"
|
|
125
|
+
},
|
|
126
|
+
"onAccent": {
|
|
127
|
+
"$value": "#faf9f7",
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$description": "Industrial warm light onAccent"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"softDark": {
|
|
133
|
+
"canvas": {
|
|
134
|
+
"$value": "#08080a",
|
|
135
|
+
"$type": "color",
|
|
136
|
+
"$description": "Soft dark canvas"
|
|
137
|
+
},
|
|
138
|
+
"surface": {
|
|
139
|
+
"$value": "#161618",
|
|
140
|
+
"$type": "color",
|
|
141
|
+
"$description": "Soft dark surface"
|
|
142
|
+
},
|
|
143
|
+
"viewport": {
|
|
144
|
+
"$value": "#111111",
|
|
145
|
+
"$type": "color",
|
|
146
|
+
"$description": "Soft dark viewport"
|
|
147
|
+
},
|
|
148
|
+
"elevated": {
|
|
149
|
+
"$value": "#111115",
|
|
150
|
+
"$type": "color",
|
|
151
|
+
"$description": "Soft dark elevated"
|
|
152
|
+
},
|
|
153
|
+
"control": {
|
|
154
|
+
"$value": "#2b2b2b",
|
|
155
|
+
"$type": "color",
|
|
156
|
+
"$description": "Soft dark control"
|
|
157
|
+
},
|
|
158
|
+
"text": {
|
|
159
|
+
"$value": "#d8d8de",
|
|
160
|
+
"$type": "color",
|
|
161
|
+
"$description": "Soft dark text"
|
|
162
|
+
},
|
|
163
|
+
"mutedText": {
|
|
164
|
+
"$value": "#9a9aa1",
|
|
165
|
+
"$type": "color",
|
|
166
|
+
"$description": "Soft dark mutedText"
|
|
167
|
+
},
|
|
168
|
+
"muted": {
|
|
169
|
+
"$value": "#7f7f86",
|
|
170
|
+
"$type": "color",
|
|
171
|
+
"$description": "Soft dark muted"
|
|
172
|
+
},
|
|
173
|
+
"onAccent": {
|
|
174
|
+
"$value": "#08080a",
|
|
175
|
+
"$type": "color",
|
|
176
|
+
"$description": "Soft dark onAccent"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"status": {
|
|
180
|
+
"danger": {
|
|
181
|
+
"$value": "#ef4444",
|
|
182
|
+
"$type": "color",
|
|
183
|
+
"$description": "Semantic status danger"
|
|
184
|
+
},
|
|
185
|
+
"dangerHover": {
|
|
186
|
+
"$value": "#dc2626",
|
|
187
|
+
"$type": "color",
|
|
188
|
+
"$description": "Semantic status dangerHover"
|
|
189
|
+
},
|
|
190
|
+
"success": {
|
|
191
|
+
"$value": "#3fb950",
|
|
192
|
+
"$type": "color",
|
|
193
|
+
"$description": "Semantic status success"
|
|
194
|
+
},
|
|
195
|
+
"warning": {
|
|
196
|
+
"$value": "#d29922",
|
|
197
|
+
"$type": "color",
|
|
198
|
+
"$description": "Semantic status warning"
|
|
199
|
+
},
|
|
200
|
+
"dangerText": {
|
|
201
|
+
"$value": "#f27a7a",
|
|
202
|
+
"$type": "color",
|
|
203
|
+
"$description": "Semantic status dangerText"
|
|
204
|
+
},
|
|
205
|
+
"successText": {
|
|
206
|
+
"$value": "#6fae7f",
|
|
207
|
+
"$type": "color",
|
|
208
|
+
"$description": "Semantic status successText"
|
|
209
|
+
},
|
|
210
|
+
"warningText": {
|
|
211
|
+
"$value": "#c98d2a",
|
|
212
|
+
"$type": "color",
|
|
213
|
+
"$description": "Semantic status warningText"
|
|
214
|
+
},
|
|
215
|
+
"infoText": {
|
|
216
|
+
"$value": "#7aa2c4",
|
|
217
|
+
"$type": "color",
|
|
218
|
+
"$description": "Semantic status infoText"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"radius": {
|
|
223
|
+
"hair": {
|
|
224
|
+
"$value": "1.5px",
|
|
225
|
+
"$type": "dimension",
|
|
226
|
+
"$description": "Corner radius hair (rounded squares, never circles)"
|
|
227
|
+
},
|
|
228
|
+
"xs": {
|
|
229
|
+
"$value": "3px",
|
|
230
|
+
"$type": "dimension",
|
|
231
|
+
"$description": "Corner radius xs (rounded squares, never circles)"
|
|
232
|
+
},
|
|
233
|
+
"sm": {
|
|
234
|
+
"$value": "5px",
|
|
235
|
+
"$type": "dimension",
|
|
236
|
+
"$description": "Corner radius sm (rounded squares, never circles)"
|
|
237
|
+
},
|
|
238
|
+
"md": {
|
|
239
|
+
"$value": "6px",
|
|
240
|
+
"$type": "dimension",
|
|
241
|
+
"$description": "Corner radius md (rounded squares, never circles)"
|
|
242
|
+
},
|
|
243
|
+
"control": {
|
|
244
|
+
"$value": "8px",
|
|
245
|
+
"$type": "dimension",
|
|
246
|
+
"$description": "Corner radius control (rounded squares, never circles)"
|
|
247
|
+
},
|
|
248
|
+
"card": {
|
|
249
|
+
"$value": "12px",
|
|
250
|
+
"$type": "dimension",
|
|
251
|
+
"$description": "Corner radius card (rounded squares, never circles)"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"controlSize": {
|
|
255
|
+
"xs": {
|
|
256
|
+
"height": {
|
|
257
|
+
"$value": "24px",
|
|
258
|
+
"$type": "dimension"
|
|
259
|
+
},
|
|
260
|
+
"padX": {
|
|
261
|
+
"$value": "8px",
|
|
262
|
+
"$type": "dimension"
|
|
263
|
+
},
|
|
264
|
+
"gap": {
|
|
265
|
+
"$value": "5px",
|
|
266
|
+
"$type": "dimension"
|
|
267
|
+
},
|
|
268
|
+
"icon": {
|
|
269
|
+
"$value": "15px",
|
|
270
|
+
"$type": "dimension"
|
|
271
|
+
},
|
|
272
|
+
"font": {
|
|
273
|
+
"$value": "12px",
|
|
274
|
+
"$type": "dimension"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"sm": {
|
|
278
|
+
"height": {
|
|
279
|
+
"$value": "28px",
|
|
280
|
+
"$type": "dimension"
|
|
281
|
+
},
|
|
282
|
+
"padX": {
|
|
283
|
+
"$value": "10px",
|
|
284
|
+
"$type": "dimension"
|
|
285
|
+
},
|
|
286
|
+
"gap": {
|
|
287
|
+
"$value": "6px",
|
|
288
|
+
"$type": "dimension"
|
|
289
|
+
},
|
|
290
|
+
"icon": {
|
|
291
|
+
"$value": "16px",
|
|
292
|
+
"$type": "dimension"
|
|
293
|
+
},
|
|
294
|
+
"font": {
|
|
295
|
+
"$value": "13px",
|
|
296
|
+
"$type": "dimension"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"md": {
|
|
300
|
+
"height": {
|
|
301
|
+
"$value": "32px",
|
|
302
|
+
"$type": "dimension"
|
|
303
|
+
},
|
|
304
|
+
"padX": {
|
|
305
|
+
"$value": "12px",
|
|
306
|
+
"$type": "dimension"
|
|
307
|
+
},
|
|
308
|
+
"gap": {
|
|
309
|
+
"$value": "6px",
|
|
310
|
+
"$type": "dimension"
|
|
311
|
+
},
|
|
312
|
+
"icon": {
|
|
313
|
+
"$value": "16px",
|
|
314
|
+
"$type": "dimension"
|
|
315
|
+
},
|
|
316
|
+
"font": {
|
|
317
|
+
"$value": "14px",
|
|
318
|
+
"$type": "dimension"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"lg": {
|
|
322
|
+
"height": {
|
|
323
|
+
"$value": "36px",
|
|
324
|
+
"$type": "dimension"
|
|
325
|
+
},
|
|
326
|
+
"padX": {
|
|
327
|
+
"$value": "14px",
|
|
328
|
+
"$type": "dimension"
|
|
329
|
+
},
|
|
330
|
+
"gap": {
|
|
331
|
+
"$value": "7px",
|
|
332
|
+
"$type": "dimension"
|
|
333
|
+
},
|
|
334
|
+
"icon": {
|
|
335
|
+
"$value": "18px",
|
|
336
|
+
"$type": "dimension"
|
|
337
|
+
},
|
|
338
|
+
"font": {
|
|
339
|
+
"$value": "14px",
|
|
340
|
+
"$type": "dimension"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"motion": {
|
|
345
|
+
"duration": {
|
|
346
|
+
"fast": {
|
|
347
|
+
"$value": "120ms",
|
|
348
|
+
"$type": "duration"
|
|
349
|
+
},
|
|
350
|
+
"base": {
|
|
351
|
+
"$value": "140ms",
|
|
352
|
+
"$type": "duration"
|
|
353
|
+
},
|
|
354
|
+
"entrance": {
|
|
355
|
+
"$value": "240ms",
|
|
356
|
+
"$type": "duration"
|
|
357
|
+
},
|
|
358
|
+
"modal": {
|
|
359
|
+
"$value": "420ms",
|
|
360
|
+
"$type": "duration"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"easing": {
|
|
364
|
+
"base": {
|
|
365
|
+
"$value": "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
366
|
+
"$type": "cubicBezier"
|
|
367
|
+
},
|
|
368
|
+
"stagger": {
|
|
369
|
+
"$value": "cubic-bezier(0.22, 0.7, 0.2, 1)",
|
|
370
|
+
"$type": "cubicBezier"
|
|
371
|
+
},
|
|
372
|
+
"drawer": {
|
|
373
|
+
"$value": "cubic-bezier(0.32, 0.72, 0, 1)",
|
|
374
|
+
"$type": "cubicBezier"
|
|
375
|
+
},
|
|
376
|
+
"expo": {
|
|
377
|
+
"$value": "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
378
|
+
"$type": "cubicBezier"
|
|
379
|
+
},
|
|
380
|
+
"overshoot": {
|
|
381
|
+
"$value": "cubic-bezier(0.34, 1.4, 0.5, 1)",
|
|
382
|
+
"$type": "cubicBezier"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"$extensions": {
|
|
387
|
+
"ai.xeno.contrast": {
|
|
388
|
+
"standard": "WCAG 2.2 AA",
|
|
389
|
+
"pairsChecked": 21,
|
|
390
|
+
"allPass": true
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/elements",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "The XENO element contract — declarations, schema, state model. Framework-free, platform-free.",
|
|
6
6
|
"author": "XENO Corporation <emilian@bnkrsys.com>",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"types": "./dist/tokens/index.d.ts",
|
|
26
26
|
"default": "./dist/tokens/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./tokens.dtcg.json": "./dist/tokens.dtcg.json",
|
|
28
29
|
"./elements/*": {
|
|
29
30
|
"types": "./dist/elements/*.d.ts",
|
|
30
31
|
"default": "./dist/elements/*.js"
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
"LICENSE"
|
|
36
37
|
],
|
|
37
38
|
"scripts": {
|
|
38
|
-
"
|
|
39
|
+
"prepublishOnly": "node --no-warnings ../../scripts/require-githead.mjs",
|
|
40
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && node scripts/emit-dtcg.mjs",
|
|
39
41
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
40
42
|
"test": "vitest run",
|
|
41
43
|
"import-glyphs": "node --no-warnings scripts/import-glyphs.mjs",
|