@1337exp/taoui 3.2.0 → 3.3.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/package.json CHANGED
@@ -1,8 +1,35 @@
1
1
  {
2
2
  "name": "@1337exp/taoui",
3
- "version": "3.2.0",
4
- "description": "Modern UI component library for Nuxt/Vue",
3
+ "version": "3.3.0",
4
+ "description": "Design-token driven Vue 3 / Nuxt component library: one size scale, dark and light themes, built-in locales.",
5
+ "keywords": [
6
+ "vue",
7
+ "vue3",
8
+ "nuxt",
9
+ "ui",
10
+ "ui-library",
11
+ "components",
12
+ "component-library",
13
+ "design-system",
14
+ "design-tokens",
15
+ "theming",
16
+ "dark-mode",
17
+ "typescript",
18
+ "accessible",
19
+ "color-picker",
20
+ "slider",
21
+ "toast"
22
+ ],
5
23
  "homepage": "https://666.io",
24
+ "bugs": {
25
+ "url": "https://github.com/1337exp/taoui/issues"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/1337exp/taoui.git"
30
+ },
31
+ "author": "1337exp",
32
+ "license": "MIT",
6
33
  "type": "module",
7
34
  "main": "./dist/index.cjs",
8
35
  "module": "./dist/index.mjs",
@@ -19,33 +46,29 @@
19
46
  },
20
47
  "files": [
21
48
  "dist",
22
- "src/styles"
49
+ "src/styles",
50
+ "CHANGELOG.md"
23
51
  ],
52
+ "engines": {
53
+ "node": ">=18"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
24
58
  "scripts": {
25
59
  "build": "vite build",
26
60
  "dev": "vite build --watch",
27
61
  "type-check": "vue-tsc --noEmit",
28
62
  "test": "vitest run",
29
63
  "test:watch": "vitest",
64
+ "showcase": "npm --prefix showcase run dev",
65
+ "showcase:build": "npm --prefix showcase run build",
66
+ "media": "node scripts/media.mjs",
30
67
  "prepublishOnly": "npm run type-check && npm run test && npm run build"
31
68
  },
32
- "repository": {
33
- "type": "git",
34
- "url": "git://github.com/1337exp/taoui"
35
- },
36
- "keywords": [
37
- "vue",
38
- "nuxt",
39
- "ui",
40
- "components",
41
- "library",
42
- "design-tokens"
43
- ],
44
- "author": "",
45
- "license": "MIT",
46
69
  "peerDependencies": {
47
- "vue": "^3.4.0",
48
- "nuxt": "^3.0.0"
70
+ "nuxt": "^3.0.0",
71
+ "vue": "^3.4.0"
49
72
  },
50
73
  "peerDependenciesMeta": {
51
74
  "nuxt": {
@@ -56,6 +79,7 @@
56
79
  "@vitejs/plugin-vue": "^5.0.0",
57
80
  "@vue/test-utils": "^2.5.1",
58
81
  "happy-dom": "^15.11.7",
82
+ "playwright-core": "^1.64.1",
59
83
  "typescript": "^5.3.0",
60
84
  "vite": "^5.0.0",
61
85
  "vite-plugin-dts": "^3.7.0",
@@ -1,130 +1,139 @@
1
- /**
2
- * Tao UI — Primitive tokens
3
- *
4
- * Сырые значения без смысловой привязки. Ничего отсюда не используется
5
- * напрямую в компонентах — только через семантический слой (semantic.css).
6
- * Пользователи библиотеки обычно НЕ трогают этот файл.
7
- */
8
- :root {
9
- /* ---------- Color ramps ---------- */
10
- --tao-gray-0: #ffffff;
11
- --tao-gray-50: #f5f5f5;
12
- --tao-gray-100: #e0e0e0;
13
- --tao-gray-200: #bfbfbf;
14
- --tao-gray-300: #999999;
15
- --tao-gray-400: #666666;
16
- --tao-gray-500: #444444;
17
- --tao-gray-600: #333333;
18
- --tao-gray-700: #262626;
19
- --tao-gray-800: #1f1f1f;
20
- --tao-gray-900: #151515;
21
- --tao-gray-950: #0d0d0d;
22
-
23
- --tao-orange-300: #ffc04a;
24
- --tao-orange-400: #ffb40b;
25
- --tao-orange-500: #ff9500;
26
- --tao-orange-600: #db8000;
27
-
28
- --tao-red-400: #e35766;
29
- --tao-red-500: #dc3545;
30
- --tao-red-600: #c82333;
31
-
32
- --tao-green-400: #3ac16e;
33
- --tao-green-500: #2ea85c;
34
- --tao-green-600: #24924e;
35
-
36
- --tao-yellow-400: #e8c547;
37
- --tao-yellow-500: #d4a017;
38
- --tao-yellow-600: #b8860b;
39
-
40
- --tao-blue-400: #6b9cff;
41
- --tao-blue-500: #4c82f7;
42
- --tao-blue-600: #3b6de0;
43
-
44
- /* ---------- Control size scale / Шкала размеров контролов ----------
45
- One scale (small / medium / large) for every control with `size`. Components read the current values
46
- from size.css (--tao-control-height etc.), never these directly.
47
- Единая шкала для всех контролов с `size`. Компоненты читают текущие значения из size.css, не эти. */
48
- --tao-control-height-small: 26px;
49
- --tao-control-height-medium: 36px;
50
- --tao-control-height-large: 44px;
51
-
52
- --tao-control-padding-x-small: var(--tao-space-2);
53
- --tao-control-padding-x-medium: var(--tao-space-3);
54
- --tao-control-padding-x-large: var(--tao-space-4);
55
-
56
- --tao-control-padding-y-small: var(--tao-space-1);
57
- --tao-control-padding-y-medium: var(--tao-space-2);
58
- --tao-control-padding-y-large: var(--tao-space-3);
59
-
60
- --tao-control-font-size-small: var(--tao-font-size-xs);
61
- --tao-control-font-size-medium: var(--tao-font-size-md);
62
- --tao-control-font-size-large: var(--tao-font-size-lg);
63
-
64
- /* Secondary text inside controls: affixes, segmented labels, service rows / Вторичный текст в контролах */
65
- --tao-control-font-size-secondary-small: var(--tao-font-size-xs);
66
- --tao-control-font-size-secondary-medium: var(--tao-font-size-sm);
67
- --tao-control-font-size-secondary-large: var(--tao-font-size-md);
68
-
69
- --tao-button-padding-x-small: var(--tao-space-3);
70
- --tao-button-padding-x-medium: var(--tao-space-4);
71
- --tao-button-padding-x-large: var(--tao-space-6);
72
-
73
- /* Choice indicators: Checkbox box, Radio circle; Switch track is 2px taller.
74
- Индикаторы выбора: квадрат Checkbox, круг Radio; дорожка Switch на 2px выше. */
75
- --tao-indicator-size-small: 14px;
76
- --tao-indicator-size-medium: 18px;
77
- --tao-indicator-size-large: 22px;
78
-
79
- /* Tag / Тег */
80
- --tao-tag-height-small: 18px;
81
- --tao-tag-height-medium: 20px;
82
- --tao-tag-height-large: 24px;
83
- --tao-tag-padding-x-small: 6px;
84
- --tao-tag-padding-x-medium: var(--tao-space-2);
85
- --tao-tag-padding-x-large: 10px;
86
- --tao-tag-font-size-small: var(--tao-font-size-xs);
87
- --tao-tag-font-size-medium: var(--tao-font-size-xs);
88
- --tao-tag-font-size-large: var(--tao-font-size-sm);
89
-
90
- /* ---------- Spacing scale (4px base) ---------- */
91
- --tao-space-1: 4px;
92
- --tao-space-2: 8px;
93
- --tao-space-3: 12px;
94
- --tao-space-4: 16px;
95
- --tao-space-5: 20px;
96
- --tao-space-6: 24px;
97
- --tao-space-8: 32px;
98
- --tao-space-10: 40px;
99
-
100
- /* ---------- Radius scale ---------- */
101
- --tao-radius-sm: 4px;
102
- --tao-radius-md: 8px;
103
- --tao-radius-lg: 12px;
104
- --tao-radius-full: 999px;
105
-
106
- /* ---------- Font size scale ---------- */
107
- --tao-font-size-xs: 12px;
108
- --tao-font-size-sm: 13px;
109
- --tao-font-size-md: 14px;
110
- --tao-font-size-lg: 16px;
111
- --tao-font-size-xl: 18px;
112
- --tao-font-size-2xl: 24px;
113
- --tao-font-size-3xl: 32px;
114
- --tao-font-size-4xl: 36px;
115
-
116
- /* ---------- Shadow scale (color-agnostic, opacity baked in) ---------- */
117
- --tao-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
118
- --tao-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
119
- --tao-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
120
- --tao-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
121
-
122
- /* ---------- Motion ---------- */
123
- --tao-duration-fast: 0.15s;
124
- --tao-duration-base: 0.2s;
125
- --tao-duration-slow: 0.3s;
126
- --tao-ease-base: ease;
127
-
128
- /* ---------- Font ---------- */
129
- --tao-font-family-base: "Roboto", sans-serif;
130
- }
1
+ /**
2
+ * Tao UI — Primitive tokens
3
+ *
4
+ * Сырые значения без смысловой привязки. Ничего отсюда не используется
5
+ * напрямую в компонентах — только через семантический слой (semantic.css).
6
+ * Пользователи библиотеки обычно НЕ трогают этот файл.
7
+ */
8
+ :root {
9
+ /* ---------- Color ramps ---------- */
10
+ --tao-gray-0: #ffffff;
11
+ --tao-gray-50: #f5f5f5;
12
+ --tao-gray-100: #e0e0e0;
13
+ --tao-gray-200: #bfbfbf;
14
+ --tao-gray-300: #999999;
15
+ --tao-gray-400: #666666;
16
+ --tao-gray-500: #444444;
17
+ --tao-gray-600: #333333;
18
+ --tao-gray-700: #262626;
19
+ --tao-gray-800: #1f1f1f;
20
+ --tao-gray-900: #151515;
21
+ --tao-gray-950: #0d0d0d;
22
+
23
+ --tao-orange-300: #ffc04a;
24
+ --tao-orange-400: #ffb40b;
25
+ --tao-orange-500: #ff9500;
26
+ --tao-orange-600: #db8000;
27
+
28
+ /* Rose: the light theme's brand colour (from the original 666.io palette) */
29
+ --tao-pink-400: #dc4679;
30
+ --tao-pink-500: #ff227a;
31
+ --tao-pink-600: #e60f66;
32
+ --tao-pink-700: #c70a55;
33
+
34
+ --tao-red-400: #e35766;
35
+ --tao-red-500: #dc3545;
36
+ --tao-red-600: #c82333;
37
+
38
+ --tao-green-400: #3ac16e;
39
+ --tao-green-500: #2ea85c;
40
+ --tao-green-600: #24924e;
41
+ --tao-green-700: #1b7a3f;
42
+
43
+ --tao-yellow-400: #e8c547;
44
+ --tao-yellow-500: #d4a017;
45
+ --tao-yellow-600: #b8860b;
46
+ --tao-yellow-700: #8a6508;
47
+
48
+ --tao-blue-400: #6b9cff;
49
+ --tao-blue-500: #4c82f7;
50
+ --tao-blue-600: #3b6de0;
51
+ --tao-blue-700: #2f58c0;
52
+
53
+ /* ---------- Control size scale / Шкала размеров контролов ----------
54
+ One scale (small / medium / large) for every control with `size`. Components read the current values
55
+ from size.css (--tao-control-height etc.), never these directly.
56
+ Единая шкала для всех контролов с `size`. Компоненты читают текущие значения из size.css, не эти. */
57
+ --tao-control-height-small: 26px;
58
+ --tao-control-height-medium: 36px;
59
+ --tao-control-height-large: 44px;
60
+
61
+ --tao-control-padding-x-small: var(--tao-space-2);
62
+ --tao-control-padding-x-medium: var(--tao-space-3);
63
+ --tao-control-padding-x-large: var(--tao-space-4);
64
+
65
+ --tao-control-padding-y-small: var(--tao-space-1);
66
+ --tao-control-padding-y-medium: var(--tao-space-2);
67
+ --tao-control-padding-y-large: var(--tao-space-3);
68
+
69
+ --tao-control-font-size-small: var(--tao-font-size-xs);
70
+ --tao-control-font-size-medium: var(--tao-font-size-md);
71
+ --tao-control-font-size-large: var(--tao-font-size-lg);
72
+
73
+ /* Secondary text inside controls: affixes, segmented labels, service rows / Вторичный текст в контролах */
74
+ --tao-control-font-size-secondary-small: var(--tao-font-size-xs);
75
+ --tao-control-font-size-secondary-medium: var(--tao-font-size-sm);
76
+ --tao-control-font-size-secondary-large: var(--tao-font-size-md);
77
+
78
+ --tao-button-padding-x-small: var(--tao-space-3);
79
+ --tao-button-padding-x-medium: var(--tao-space-4);
80
+ --tao-button-padding-x-large: var(--tao-space-6);
81
+
82
+ /* Choice indicators: Checkbox box, Radio circle; Switch track is 2px taller.
83
+ Индикаторы выбора: квадрат Checkbox, круг Radio; дорожка Switch на 2px выше. */
84
+ --tao-indicator-size-small: 14px;
85
+ --tao-indicator-size-medium: 18px;
86
+ --tao-indicator-size-large: 22px;
87
+
88
+ /* Tag / Тег */
89
+ --tao-tag-height-small: 18px;
90
+ --tao-tag-height-medium: 20px;
91
+ --tao-tag-height-large: 24px;
92
+ --tao-tag-padding-x-small: 6px;
93
+ --tao-tag-padding-x-medium: var(--tao-space-2);
94
+ --tao-tag-padding-x-large: 10px;
95
+ --tao-tag-font-size-small: var(--tao-font-size-xs);
96
+ --tao-tag-font-size-medium: var(--tao-font-size-xs);
97
+ --tao-tag-font-size-large: var(--tao-font-size-sm);
98
+
99
+ /* ---------- Spacing scale (4px base) ---------- */
100
+ --tao-space-1: 4px;
101
+ --tao-space-2: 8px;
102
+ --tao-space-3: 12px;
103
+ --tao-space-4: 16px;
104
+ --tao-space-5: 20px;
105
+ --tao-space-6: 24px;
106
+ --tao-space-8: 32px;
107
+ --tao-space-10: 40px;
108
+
109
+ /* ---------- Radius scale ---------- */
110
+ --tao-radius-sm: 4px;
111
+ --tao-radius-md: 8px;
112
+ --tao-radius-lg: 12px;
113
+ --tao-radius-full: 999px;
114
+
115
+ /* ---------- Font size scale ---------- */
116
+ --tao-font-size-xs: 12px;
117
+ --tao-font-size-sm: 13px;
118
+ --tao-font-size-md: 14px;
119
+ --tao-font-size-lg: 16px;
120
+ --tao-font-size-xl: 18px;
121
+ --tao-font-size-2xl: 24px;
122
+ --tao-font-size-3xl: 32px;
123
+ --tao-font-size-4xl: 36px;
124
+
125
+ /* ---------- Shadow scale (color-agnostic, opacity baked in) ---------- */
126
+ --tao-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
127
+ --tao-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
128
+ --tao-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
129
+ --tao-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
130
+
131
+ /* ---------- Motion ---------- */
132
+ --tao-duration-fast: 0.15s;
133
+ --tao-duration-base: 0.2s;
134
+ --tao-duration-slow: 0.3s;
135
+ --tao-ease-base: ease;
136
+
137
+ /* ---------- Font ---------- */
138
+ --tao-font-family-base: "Roboto", sans-serif;
139
+ }
@@ -1,82 +1,93 @@
1
- /**
2
- * Tao UI — Semantic tokens (default / dark theme)
3
- *
4
- * Это и есть публичный API темизации библиотеки. Компоненты используют
5
- * ТОЛЬКО эти переменные, никогда — primitives напрямую.
6
- *
7
- * Чтобы сделать свою тему — переопредели этот набор в своём CSS
8
- * (глобально, или через [data-tao-theme="имя"], см. themes/*.css).
9
- */
10
- :root,
11
- [data-tao-theme="dark"] {
12
- color-scheme: dark;
13
-
14
- /* ---------- Brand / accent ---------- */
15
- --tao-color-accent: var(--tao-orange-300);
16
- --tao-color-accent-hover: var(--tao-orange-400);
17
- --tao-color-accent-active: var(--tao-orange-500);
18
- --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 8%, transparent);
19
- --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 14%, transparent);
20
- --tao-color-on-accent: var(--tao-gray-950); /* текст поверх accent-фона */
21
- --tao-color-text-on-accent: var(--tao-color-on-accent);
22
- --tao-color-selection: var(--tao-color-accent);
23
- --tao-color-selection-text: var(--tao-color-on-accent);
24
-
25
- /* ---------- Surfaces ---------- */
26
- --tao-color-bg: var(--tao-gray-900);
27
- --tao-color-surface: var(--tao-gray-900);
28
- --tao-color-surface-raised: var(--tao-gray-800);
29
- --tao-color-surface-sunken: color-mix(in srgb, var(--tao-gray-600) 20%, transparent);
30
- --tao-color-surface-hover: var(--tao-gray-700);
31
-
32
- /* ---------- Borders ---------- */
33
- --tao-color-border: color-mix(in srgb, var(--tao-gray-600) 40%, transparent);
34
- --tao-color-border-strong: var(--tao-gray-500);
35
-
36
- /* ---------- Text ---------- */
37
- --tao-color-text: var(--tao-gray-200);
38
- --tao-color-text-strong: var(--tao-gray-0);
39
- --tao-color-text-subtle: var(--tao-gray-300); /* idle-контролы: segmented, tabs. Подписи остаются muted */
40
- --tao-color-text-muted: var(--tao-gray-400);
41
- --tao-color-text-disabled: var(--tao-gray-300);
42
-
43
- /* ---------- Links ---------- */
44
- --tao-color-link: var(--tao-orange-300);
45
- --tao-color-link-hover: var(--tao-orange-500);
46
- --tao-color-link-shadow: 0 0 1px color-mix(in srgb, var(--tao-orange-300) 10%, transparent),
47
- 0 0 6px color-mix(in srgb, var(--tao-orange-300) 60%, transparent);
48
-
49
- /* ---------- Status ---------- */
50
- --tao-color-danger: var(--tao-red-500);
51
- --tao-color-danger-hover: var(--tao-red-600);
52
- --tao-color-danger-subtle: color-mix(in srgb, var(--tao-red-500) 15%, transparent);
53
- --tao-color-success: var(--tao-green-500);
54
- --tao-color-success-hover: var(--tao-green-600);
55
- --tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 15%, transparent);
56
- --tao-color-warning: var(--tao-yellow-500);
57
- --tao-color-warning-hover: var(--tao-yellow-600);
58
- --tao-color-warning-subtle: color-mix(in srgb, var(--tao-color-warning) 15%, transparent);
59
- --tao-color-info: var(--tao-blue-400);
60
- --tao-color-info-hover: var(--tao-blue-500);
61
- --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
62
-
63
- /* ---------- Form controls ---------- */
64
- --tao-color-input-bg: var(--tao-color-surface-sunken);
65
- --tao-color-input-text: var(--tao-gray-200);
66
- --tao-color-input-placeholder: var(--tao-gray-300);
67
- --tao-color-input-disabled-bg: color-mix(in srgb, var(--tao-gray-600) 10%, transparent);
68
- --tao-color-input-disabled-text: var(--tao-gray-300);
69
-
70
- /* ---------- Overlay ---------- */
71
- --tao-color-overlay: rgba(0, 0, 0, 0.7);
72
-
73
- /* ---------- Radii / spacing / shadows (aliasable per-theme too) ---------- */
74
- --tao-radius-control: var(--tao-radius-sm);
75
- --tao-radius-panel: var(--tao-radius-md);
76
- --tao-shadow-panel: var(--tao-shadow-md);
77
- --tao-shadow-overlay: var(--tao-shadow-xl);
78
-
79
- /* ---------- Typography / motion passthrough ---------- */
80
- --tao-font-family: var(--tao-font-family-base);
81
- --tao-transition-base: all var(--tao-duration-base) var(--tao-ease-base);
82
- }
1
+ /**
2
+ * Tao UI — Semantic tokens (default / dark theme)
3
+ *
4
+ * Это и есть публичный API темизации библиотеки. Компоненты используют
5
+ * ТОЛЬКО эти переменные, никогда — primitives напрямую.
6
+ *
7
+ * Чтобы сделать свою тему — переопредели этот набор в своём CSS
8
+ * (глобально, или через [data-tao-theme="имя"], см. themes/*.css).
9
+ */
10
+ :root,
11
+ [data-tao-theme="dark"] {
12
+ color-scheme: dark;
13
+
14
+ /* ---------- Brand / accent ---------- */
15
+ --tao-color-accent: var(--tao-orange-300);
16
+ --tao-color-accent-hover: var(--tao-orange-400);
17
+ --tao-color-accent-active: var(--tao-orange-500);
18
+ --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 8%, transparent);
19
+ --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 14%, transparent);
20
+ --tao-color-on-accent: var(--tao-gray-950); /* текст поверх accent-фона */
21
+ --tao-color-text-on-accent: var(--tao-color-on-accent);
22
+ --tao-color-selection: var(--tao-color-accent);
23
+ --tao-color-selection-text: var(--tao-color-on-accent);
24
+
25
+ /* ---------- Surfaces ---------- */
26
+ --tao-color-bg: var(--tao-gray-900);
27
+ --tao-color-surface: var(--tao-gray-900);
28
+ --tao-color-surface-raised: var(--tao-gray-800);
29
+ --tao-color-surface-sunken: color-mix(in srgb, var(--tao-gray-600) 20%, transparent);
30
+ --tao-color-surface-hover: var(--tao-gray-700);
31
+
32
+ /* ---------- Borders ---------- */
33
+ --tao-color-border: color-mix(in srgb, var(--tao-gray-600) 40%, transparent);
34
+ --tao-color-border-strong: var(--tao-gray-500);
35
+
36
+ /* ---------- Text ---------- */
37
+ --tao-color-text: var(--tao-gray-200);
38
+ --tao-color-text-strong: var(--tao-gray-0);
39
+ --tao-color-text-subtle: var(--tao-gray-300); /* idle-контролы: segmented, tabs. Подписи остаются muted */
40
+ --tao-color-text-muted: var(--tao-gray-400);
41
+ --tao-color-text-disabled: var(--tao-gray-300);
42
+
43
+ /* ---------- Links ---------- */
44
+ --tao-color-link: var(--tao-orange-300);
45
+ --tao-color-link-hover: var(--tao-orange-500);
46
+ --tao-color-link-shadow: 0 0 1px color-mix(in srgb, var(--tao-orange-300) 10%, transparent),
47
+ 0 0 6px color-mix(in srgb, var(--tao-orange-300) 60%, transparent);
48
+
49
+ /* ---------- Status ---------- */
50
+ --tao-color-danger: var(--tao-red-500);
51
+ --tao-color-danger-hover: var(--tao-red-600);
52
+ --tao-color-on-danger: var(--tao-gray-0); /* текст поверх danger-фона */
53
+ --tao-color-danger-subtle: color-mix(in srgb, var(--tao-red-500) 15%, transparent);
54
+ --tao-color-success: var(--tao-green-500);
55
+ --tao-color-success-hover: var(--tao-green-600);
56
+ --tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 15%, transparent);
57
+ --tao-color-warning: var(--tao-yellow-500);
58
+ --tao-color-warning-hover: var(--tao-yellow-600);
59
+ --tao-color-warning-subtle: color-mix(in srgb, var(--tao-color-warning) 15%, transparent);
60
+ --tao-color-info: var(--tao-blue-400);
61
+ --tao-color-info-hover: var(--tao-blue-500);
62
+ --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
63
+
64
+ /* Status colours as TEXT on the page / a raised surface (>= 4.5:1). The plain tokens above are for solid fills. */
65
+ --tao-color-danger-text: var(--tao-red-400);
66
+ --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
67
+ --tao-color-success-text: var(--tao-green-400);
68
+ --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
69
+ --tao-color-warning-text: var(--tao-yellow-400);
70
+ --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
71
+ --tao-color-info-text: var(--tao-blue-400);
72
+ --tao-color-info-text-hover: color-mix(in srgb, var(--tao-color-info-text) 85%, var(--tao-color-text-strong));
73
+
74
+ /* ---------- Form controls ---------- */
75
+ --tao-color-input-bg: var(--tao-color-surface-sunken);
76
+ --tao-color-input-text: var(--tao-gray-200);
77
+ --tao-color-input-placeholder: var(--tao-gray-300);
78
+ --tao-color-input-disabled-bg: color-mix(in srgb, var(--tao-gray-600) 10%, transparent);
79
+ --tao-color-input-disabled-text: var(--tao-gray-300);
80
+
81
+ /* ---------- Overlay ---------- */
82
+ --tao-color-overlay: rgba(0, 0, 0, 0.7);
83
+
84
+ /* ---------- Radii / spacing / shadows (aliasable per-theme too) ---------- */
85
+ --tao-radius-control: var(--tao-radius-sm);
86
+ --tao-radius-panel: var(--tao-radius-md);
87
+ --tao-shadow-panel: var(--tao-shadow-md);
88
+ --tao-shadow-overlay: var(--tao-shadow-xl);
89
+
90
+ /* ---------- Typography / motion passthrough ---------- */
91
+ --tao-font-family: var(--tao-font-family-base);
92
+ --tao-transition-base: all var(--tao-duration-base) var(--tao-ease-base);
93
+ }