@autional-cn/tokens 0.1.0-rc.1 → 0.1.0-rc.3

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.
@@ -1,4 +1,4 @@
1
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1 */
1
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc */
2
2
  declare const antdTheme: {
3
3
  light: { token: Record<string, string | number> };
4
4
  dark: { token: Record<string, string | number> };
@@ -1,4 +1,4 @@
1
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1 */
1
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc */
2
2
  declare const antdTheme: {
3
3
  light: { token: Record<string, string | number> };
4
4
  dark: { token: Record<string, string | number> };
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
2
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
3
3
  *
4
4
  * antd v5/v6 ThemeConfig bridge. Usage:
5
5
  * const antdToken = require('@autional-cn/tokens/antd-theme');
@@ -16,6 +16,8 @@ module.exports = {
16
16
  colorBgContainer: '#ffffff',
17
17
  colorBgElevated: '#ffffff',
18
18
  colorText: '#041d31',
19
+ colorTextSecondary: '#004565',
20
+ colorTextDescription: '#64748d',
19
21
  borderRadius: 8,
20
22
  fontFamily: "Inter, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif"
21
23
  } },
@@ -28,6 +30,8 @@ module.exports = {
28
30
  colorBgContainer: '#0a2940',
29
31
  colorBgElevated: '#0f3348',
30
32
  colorText: '#f8fbfe',
33
+ colorTextSecondary: '#87ceeb',
34
+ colorTextDescription: '#8896a6',
31
35
  borderRadius: 8,
32
36
  fontFamily: "Inter, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif"
33
37
  } },
@@ -1,4 +1,4 @@
1
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
1
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
2
2
  *
3
3
  * antd v5/v6 ThemeConfig bridge (ESM). Usage:
4
4
  * import antdTheme from '@autional-cn/tailwind-preset/antd-theme.mjs';
@@ -18,6 +18,8 @@ const antdTheme = {
18
18
  colorBgContainer: '#ffffff',
19
19
  colorBgElevated: '#ffffff',
20
20
  colorText: '#041d31',
21
+ colorTextSecondary: '#004565',
22
+ colorTextDescription: '#64748d',
21
23
  borderRadius: 8,
22
24
  fontFamily: "Inter, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif"
23
25
  } },
@@ -30,6 +32,8 @@ const antdTheme = {
30
32
  colorBgContainer: '#0a2940',
31
33
  colorBgElevated: '#0f3348',
32
34
  colorText: '#f8fbfe',
35
+ colorTextSecondary: '#87ceeb',
36
+ colorTextDescription: '#8896a6',
33
37
  borderRadius: 8,
34
38
  fontFamily: "Inter, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif"
35
39
  } },
package/dist/chart.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1 */
1
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc */
2
2
  declare const chart: {
3
3
  chart: Record<string, string>;
4
4
  method: Record<string, string>;
package/dist/chart.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
2
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
3
3
  *
4
4
  * Literal color values for chart libraries that need real hex strings.
5
5
  * Status-like series should use the semantic group, not the chart group.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1 */
1
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc */
2
2
  declare const tokens: {
3
3
  $meta: {
4
4
  name: string;
@@ -72,6 +72,8 @@ declare const tokens: {
72
72
  "success-soft": string;
73
73
  "warning-soft": string;
74
74
  "danger-soft": string;
75
+ "info-text": string;
76
+ "info-soft": string;
75
77
  "$soft-note": string;
76
78
  "warning-text": string;
77
79
  "text-disabled": string;
@@ -336,6 +338,8 @@ declare const tokens: {
336
338
  "success-soft": string;
337
339
  "warning-soft": string;
338
340
  "danger-soft": string;
341
+ "info-text": string;
342
+ "info-soft": string;
339
343
  "warning-text": string;
340
344
  "text-disabled": string;
341
345
  brand: string;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  'use strict';
2
- /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1 */
2
+ /** GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc */
3
3
  module.exports = require('./tokens.json');
package/dist/tokens.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$meta": {
3
3
  "name": "Autional Design Tokens",
4
4
  "package": "@autional-cn/tokens",
5
- "version": "0.1.0-rc.1",
5
+ "version": "0.1.0-rc",
6
6
  "spec": 1,
7
7
  "description": "Single source of truth for the Autional design system (canonical repo: autional-cn/ui). Edit this file, then run `pnpm gen`. Generated artifacts are committed.",
8
8
  "conventions": {
@@ -71,7 +71,9 @@
71
71
  "success-soft": "#ebfbe5",
72
72
  "warning-soft": "#fef4e1",
73
73
  "danger-soft": "#fce4e4",
74
- "$soft-note": "语义色的**柔和容器档**(浅底色)。U66 第⑤项:原来只有实心值,于是各站被迫写 bg-emerald-50 text-emerald-600 这类非设计系统色的组合。取值不是随手调的淡色——每一档都与对应的 -text 令牌配对,保证其上正文达到 4.5:1:success 5.51 / warning 4.85 / danger 4.65。暗色下换成深色调(见 modes.dark),在深色下 -text 解析为实心色,配深色调同样 ≥4.5。info 暂不提供柔和档:设计系统没有 info-text 令牌,补齐它属于另一个决定,不在这批里顺手加。",
74
+ "info-text": "#0050b3",
75
+ "info-soft": "#e6f4ff",
76
+ "$soft-note": "语义色的**柔和容器档**(浅底色)。U66 第⑤项:原来只有实心值,于是各站被迫写 bg-emerald-50 text-emerald-600 这类非设计系统色的组合。取值不是随手调的淡色——每一档都与对应的 -text 令牌配对,保证其上正文达到 4.5:1:success 5.51 / warning 4.85 / danger 4.65。暗色下换成深色调(见 modes.dark),在深色下 -text 解析为实心色,配深色调同样 ≥4.5。info 原先**刻意**不提供柔和档,因为缺 info-text 配对。2026-10-03 补齐:理由不是「顺手加」,而是实测出了真缺陷 —— ① StatusBadge 等组件写 bg-info/10,而 preset 的颜色是裸 var()、没有 <alpha-value> 槽,Tailwind **生成不出**透明度变体,底色是空的(同一份产物 CSS 里 .bg-black/30 有、.bg-info/10 没有);② 即便底色出来,text-info #1890ff 铺浅底只有 3.24:1,本身就不到 AA。现在补齐配对并实测:info-text #0050b3 铺 info-soft #e6f4ff = 6.70:1;暗色 info-text 复用填充色 #1890ff 铺 info-soft #0a2540 = 4.79:1。取值规则与其余三档一致(同色相压暗 / 深色调),不引入外来色。",
75
77
  "warning-text": "#966003",
76
78
  "text-disabled": "{color.neutral.400}",
77
79
  "$semantic-text-note": "语义色分「填充」与「文本」两档,因为同一个色不可能既是好填充又是好文本。success #52c41a 对白底只有 2.27:1、warning #faad14 只有 1.90:1 —— 当填充没问题,当文字不可读。原设计只有 danger-text,缺 success/warning 的文本档,结果舰队各自发明:#3f8600(antd green-7,对页底 4.39,仍不达 AA)、#d97706(3.07)。现在补齐,且新值不是外来色:success-text 是 DS success 同色相(hsl 103)压暗到 26% 明度(5.94:1),warning-text 是 DS warning 同色相(hsl 38)压暗到 30%(5.29:1)。暗色下规则更简单——直接复用填充色:success-text = success、warning-text = warning(对深底 7.57 / 9.02)。text-disabled 是禁用态,WCAG 对禁用控件豁免对比度要求,但仍登记为令牌,免得每个站点自己发明一个灰。",
@@ -352,6 +354,8 @@
352
354
  "success-soft": "#1c460b",
353
355
  "warning-soft": "#503302",
354
356
  "danger-soft": "#490909",
357
+ "info-text": "{color.info}",
358
+ "info-soft": "#0a2540",
355
359
  "warning-text": "{color.warning}",
356
360
  "text-disabled": "{color.neutral.500}",
357
361
  "brand": "{color.brand-dark}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autional-cn/tokens",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.3",
4
4
  "description": "Autional canonical design tokens — CSS variables, Tailwind values, antd theme bridge, chart colors",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./dist/index.js",
@@ -34,4 +34,4 @@
34
34
  "sideEffects": [
35
35
  "**/*.css"
36
36
  ]
37
- }
37
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Autional profile: developer — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
2
+ * Autional profile: developer — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
3
3
  * Load AFTER @autional-cn/tokens/tokens.css.
4
4
  */
5
5
 
package/profiles/docs.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Autional profile: docs — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
2
+ * Autional profile: docs — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
3
3
  * Load AFTER @autional-cn/tokens/tokens.css.
4
4
  */
5
5
 
package/tokens.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Autional Design Tokens — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc.1
2
+ * Autional Design Tokens — GENERATED FILE — DO NOT EDIT. Source: tokens/tokens.json · Regenerate: pnpm gen · v0.1.0-rc
3
3
  */
4
4
 
5
5
  @font-face {
@@ -61,6 +61,8 @@
61
61
  --color-success-soft: #ebfbe5;
62
62
  --color-warning-soft: #fef4e1;
63
63
  --color-danger-soft: #fce4e4;
64
+ --color-info-text: #0050b3;
65
+ --color-info-soft: #e6f4ff;
64
66
  --color-warning-text: #966003;
65
67
  --color-text-disabled: var(--color-neutral-400);
66
68
  --color-info: #1890ff;
@@ -304,6 +306,8 @@
304
306
  --color-success-soft: #1c460b;
305
307
  --color-warning-soft: #503302;
306
308
  --color-danger-soft: #490909;
309
+ --color-info-text: var(--color-info);
310
+ --color-info-soft: #0a2540;
307
311
  --color-warning-text: var(--color-warning);
308
312
  --color-text-disabled: var(--color-neutral-500);
309
313
  --color-brand: var(--color-brand-dark);
@@ -353,6 +357,8 @@
353
357
  --color-success-soft: #1c460b;
354
358
  --color-warning-soft: #503302;
355
359
  --color-danger-soft: #490909;
360
+ --color-info-text: var(--color-info);
361
+ --color-info-soft: #0a2540;
356
362
  --color-warning-text: var(--color-warning);
357
363
  --color-text-disabled: var(--color-neutral-500);
358
364
  --color-brand: var(--color-primary-500);