@1337exp/taoui 4.0.1 → 5.1.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +321 -220
  2. package/MIGRATION-5.md +133 -0
  3. package/README.md +828 -682
  4. package/README.ru.md +828 -687
  5. package/dist/index.d.ts +2026 -701
  6. package/dist/{index.mjs → index.js} +3908 -2844
  7. package/dist/index.js.map +1 -0
  8. package/dist/styles.css +1 -1
  9. package/package.json +100 -90
  10. package/skills/taoui/SKILL.md +131 -0
  11. package/skills/taoui/references/components.md +1106 -0
  12. package/src/styles/base.css +81 -81
  13. package/src/styles/contexts/atmosphere.css +29 -0
  14. package/src/styles/contexts/size.css +125 -0
  15. package/src/styles/{surface.css → contexts/surface.css} +68 -4
  16. package/src/styles/contexts/tone.css +118 -0
  17. package/src/styles/date-popup.css +2 -2
  18. package/src/styles/index.css +12 -5
  19. package/src/styles/palettes/index.css +11 -0
  20. package/src/styles/palettes/lagoon.css +105 -0
  21. package/src/styles/palettes/marple.css +105 -0
  22. package/src/styles/palettes/ocean-blue.css +105 -0
  23. package/src/styles/palettes/pinheiro.css +105 -0
  24. package/src/styles/palettes/sunset.css +105 -0
  25. package/src/styles/palettes/tokyo-night.css +105 -0
  26. package/src/styles/palettes/violet-dusk.css +105 -0
  27. package/src/styles/{semantic.css → themes/dark.css} +95 -93
  28. package/src/styles/themes/light.css +86 -74
  29. package/src/styles/{primitives.css → tokens/primitives.css} +162 -139
  30. package/src/styles/tokens/semantic.css +33 -0
  31. package/src/styles/typography.css +220 -0
  32. package/dist/index.cjs +0 -10572
  33. package/dist/index.cjs.map +0 -1
  34. package/dist/index.mjs.map +0 -1
  35. package/src/styles/size.css +0 -57
@@ -1,81 +1,81 @@
1
- /**
2
- * Tao UI — Global base styles
3
- *
4
- * Минимальный reset + глобальные штрихи (скроллбар, ссылки, инпуты).
5
- * Не содержит хардкод-цветов — всё через семантические токены,
6
- * поэтому переключение темы работает и здесь.
7
- */
8
-
9
- *,
10
- *::before,
11
- *::after {
12
- box-sizing: border-box;
13
- }
14
-
15
- html,
16
- body {
17
- padding: 0;
18
- margin: 0;
19
- font-family: var(--tao-font-family);
20
- background: var(--tao-color-bg);
21
- color: var(--tao-color-text);
22
- }
23
-
24
- ::selection {
25
- color: var(--tao-color-selection-text);
26
- background-color: var(--tao-color-selection);
27
- }
28
-
29
- ::-moz-selection {
30
- color: var(--tao-color-selection-text);
31
- background-color: var(--tao-color-selection);
32
- }
33
-
34
- /* Scrollbar */
35
- ::-webkit-scrollbar {
36
- max-width: 5px;
37
- max-height: 5px;
38
- }
39
-
40
- ::-webkit-scrollbar-track {
41
- background: transparent;
42
- }
43
-
44
- ::-webkit-scrollbar-thumb {
45
- background: var(--tao-color-accent);
46
- border-radius: var(--tao-radius-full);
47
- }
48
-
49
- /* Links */
50
- a {
51
- color: var(--tao-color-link);
52
- text-decoration: none;
53
- transition: color var(--tao-duration-base) var(--tao-ease-base);
54
- }
55
-
56
- a:hover {
57
- color: var(--tao-color-link-hover);
58
- }
59
-
60
- /* Number input spinners */
61
- input[type="number"]::-webkit-outer-spin-button,
62
- input[type="number"]::-webkit-inner-spin-button {
63
- -webkit-appearance: none;
64
- margin: 0;
65
- }
66
-
67
- input[type="number"] {
68
- -moz-appearance: textfield !important;
69
- }
70
-
71
- .tao-sr-only {
72
- position: absolute;
73
- width: 1px;
74
- height: 1px;
75
- padding: 0;
76
- margin: -1px;
77
- overflow: hidden;
78
- clip: rect(0, 0, 0, 0);
79
- white-space: nowrap;
80
- border: 0;
81
- }
1
+ /**
2
+ * Tao UI — Global base styles
3
+ *
4
+ * Минимальный reset + глобальные штрихи (скроллбар, ссылки, инпуты).
5
+ * Не содержит хардкод-цветов — всё через семантические токены,
6
+ * поэтому переключение темы работает и здесь.
7
+ */
8
+
9
+ *,
10
+ *::before,
11
+ *::after {
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ html,
16
+ body {
17
+ padding: 0;
18
+ margin: 0;
19
+ font-family: var(--tao-font-family);
20
+ background: var(--tao-color-bg);
21
+ color: var(--tao-color-text);
22
+ }
23
+
24
+ ::selection {
25
+ color: var(--tao-color-selection-text);
26
+ background-color: var(--tao-color-selection);
27
+ }
28
+
29
+ ::-moz-selection {
30
+ color: var(--tao-color-selection-text);
31
+ background-color: var(--tao-color-selection);
32
+ }
33
+
34
+ /* Scrollbar */
35
+ ::-webkit-scrollbar {
36
+ max-width: 5px;
37
+ max-height: 5px;
38
+ }
39
+
40
+ ::-webkit-scrollbar-track {
41
+ background: transparent;
42
+ }
43
+
44
+ ::-webkit-scrollbar-thumb {
45
+ background: var(--tao-color-accent);
46
+ border-radius: var(--tao-radius-full);
47
+ }
48
+
49
+ /* Links */
50
+ a {
51
+ color: var(--tao-color-link);
52
+ text-decoration: none;
53
+ transition: color var(--tao-duration-base) var(--tao-ease-base);
54
+ }
55
+
56
+ a:hover {
57
+ color: var(--tao-color-link-hover);
58
+ }
59
+
60
+ /* Number input spinners */
61
+ input[type="number"]::-webkit-outer-spin-button,
62
+ input[type="number"]::-webkit-inner-spin-button {
63
+ -webkit-appearance: none;
64
+ margin: 0;
65
+ }
66
+
67
+ input[type="number"] {
68
+ -moz-appearance: textfield !important;
69
+ }
70
+
71
+ .tao-sr-only {
72
+ position: absolute;
73
+ width: 1px;
74
+ height: 1px;
75
+ padding: 0;
76
+ margin: -1px;
77
+ overflow: hidden;
78
+ clip: rect(0, 0, 0, 0);
79
+ white-space: nowrap;
80
+ border: 0;
81
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Tao UI — Atmosphere / Атмосфера
3
+ *
4
+ * `.tao-atmosphere` on the page (<body> or the app root) paints the soft glow of the theme behind everything:
5
+ * `--tao-bg-atmosphere`, two radial gradients of `--tao-glow`. A palette sets the glow colour; the default themes
6
+ * use the accent. The glow is a fixed layer of the window (it does not stretch over a long page and does not scroll),
7
+ * a static background with no blur filter, so it costs nothing while you scroll. Glass panels over it pick the colour up.
8
+ * What goes behind the glow (a picture, a pattern) is yours: put it under the layer with your own `background`.
9
+ *
10
+ * `.tao-atmosphere` на странице (<body> или корень приложения) рисует за всем мягкое свечение темы. Это фиксированный
11
+ * слой окна (не растягивается на длинную страницу и не прокручивается), статичный фон без blur-фильтра, поэтому не
12
+ * стоит ничего при прокрутке. Стеклянные панели поверх него подхватывают цвет. Что лежит под свечением (картинка,
13
+ * узор) — решаете вы.
14
+ */
15
+ .tao-atmosphere {
16
+ position: relative;
17
+ isolation: isolate;
18
+ background-color: var(--tao-color-bg);
19
+ }
20
+
21
+ .tao-atmosphere::before {
22
+ content: '';
23
+ position: fixed;
24
+ inset: 0;
25
+ z-index: -1;
26
+ background-image: var(--tao-bg-atmosphere, none);
27
+ background-repeat: no-repeat;
28
+ pointer-events: none;
29
+ }
@@ -0,0 +1,125 @@
1
+ /**
2
+ * Tao UI — Size and density context / Контекст размера и плотности
3
+ *
4
+ * Controls never read the per-size primitives directly — only the "current" tokens at the bottom.
5
+ * :root is medium and default density. `.tao-size-small` / `-medium` / `-large` on any element switches its subtree;
6
+ * a control with an explicit `size` prop adds the same class to itself, without the prop it inherits.
7
+ *
8
+ * Density is the other axis: `.tao-density-compact` / `-comfortable` / `-default` on a container changes the height and
9
+ * the padding of every size in it (not the font). `comfortable` gives 34 / 44 / 52, a touch-sized row; `compact`
10
+ * 22 / 32 / 40 for dense tools and tables. `.tao-density-auto` is comfortable on a touch screen (`pointer: coarse`)
11
+ * and default with a mouse.
12
+ *
13
+ * Контролы читают только «текущие» токены внизу, не примитивы по размерам.
14
+ * :root — medium и обычная плотность. `.tao-size-*` на любом элементе переключает поддерево; контрол с явным `size`
15
+ * вешает этот же класс на себя, без prop — наследует.
16
+ * Плотность — вторая ось: `.tao-density-*` на контейнере меняет высоту и отступы любого размера в нём (не шрифт).
17
+ * `comfortable` даёт 34 / 44 / 52 (под палец), `compact` 22 / 32 / 40 (плотные инструменты, таблицы).
18
+ * `.tao-density-auto` — comfortable на сенсорном экране (`pointer: coarse`), обычная с мышью.
19
+ */
20
+
21
+ /* ---------- size: the base of each token / размер: основа каждого токена ---------- */
22
+
23
+ :root,
24
+ .tao-size-medium {
25
+ --tao-size: medium;
26
+ --_tao-height: var(--tao-control-height-medium);
27
+ --_tao-padding-x: var(--tao-control-padding-x-medium);
28
+ --_tao-padding-y: var(--tao-control-padding-y-medium);
29
+ --_tao-button-padding-x: var(--tao-button-padding-x-medium);
30
+ --tao-control-font-size: var(--tao-control-font-size-medium);
31
+ --tao-control-font-size-secondary: var(--tao-control-font-size-secondary-medium);
32
+ --tao-indicator-size: var(--tao-indicator-size-medium);
33
+ --tao-tag-height: var(--tao-tag-height-medium);
34
+ --tao-tag-padding-x: var(--tao-tag-padding-x-medium);
35
+ --tao-tag-font-size: var(--tao-tag-font-size-medium);
36
+ }
37
+
38
+ .tao-size-small {
39
+ --tao-size: small;
40
+ --_tao-height: var(--tao-control-height-small);
41
+ --_tao-padding-x: var(--tao-control-padding-x-small);
42
+ --_tao-padding-y: var(--tao-control-padding-y-small);
43
+ --_tao-button-padding-x: var(--tao-button-padding-x-small);
44
+ --tao-control-font-size: var(--tao-control-font-size-small);
45
+ --tao-control-font-size-secondary: var(--tao-control-font-size-secondary-small);
46
+ --tao-indicator-size: var(--tao-indicator-size-small);
47
+ --tao-tag-height: var(--tao-tag-height-small);
48
+ --tao-tag-padding-x: var(--tao-tag-padding-x-small);
49
+ --tao-tag-font-size: var(--tao-tag-font-size-small);
50
+ }
51
+
52
+ .tao-size-large {
53
+ --tao-size: large;
54
+ --_tao-height: var(--tao-control-height-large);
55
+ --_tao-padding-x: var(--tao-control-padding-x-large);
56
+ --_tao-padding-y: var(--tao-control-padding-y-large);
57
+ --_tao-button-padding-x: var(--tao-button-padding-x-large);
58
+ --tao-control-font-size: var(--tao-control-font-size-large);
59
+ --tao-control-font-size-secondary: var(--tao-control-font-size-secondary-large);
60
+ --tao-indicator-size: var(--tao-indicator-size-large);
61
+ --tao-tag-height: var(--tao-tag-height-large);
62
+ --tao-tag-padding-x: var(--tao-tag-padding-x-large);
63
+ --tao-tag-font-size: var(--tao-tag-font-size-large);
64
+ }
65
+
66
+ /* ---------- density: what it adds to every size / плотность: что она добавляет к любому размеру ---------- */
67
+
68
+ :root,
69
+ .tao-density-default {
70
+ --tao-density: default;
71
+ --_tao-density-height: 0px;
72
+ --_tao-density-padding-x: 0px;
73
+ --_tao-density-padding-y: 0px;
74
+ }
75
+
76
+ .tao-density-compact {
77
+ --tao-density: compact;
78
+ --_tao-density-height: var(--tao-density-height-compact);
79
+ --_tao-density-padding-x: var(--tao-density-padding-x-compact);
80
+ --_tao-density-padding-y: var(--tao-density-padding-y-compact);
81
+ }
82
+
83
+ .tao-density-comfortable {
84
+ --tao-density: comfortable;
85
+ --_tao-density-height: var(--tao-density-height-comfortable);
86
+ --_tao-density-padding-x: var(--tao-density-padding-x-comfortable);
87
+ --_tao-density-padding-y: var(--tao-density-padding-y-comfortable);
88
+ }
89
+
90
+ .tao-density-auto {
91
+ --tao-density: default;
92
+ --_tao-density-height: 0px;
93
+ --_tao-density-padding-x: 0px;
94
+ --_tao-density-padding-y: 0px;
95
+ }
96
+
97
+ @media (pointer: coarse) {
98
+ .tao-density-auto {
99
+ --tao-density: comfortable;
100
+ --_tao-density-height: var(--tao-density-height-comfortable);
101
+ --_tao-density-padding-x: var(--tao-density-padding-x-comfortable);
102
+ --_tao-density-padding-y: var(--tao-density-padding-y-comfortable);
103
+ }
104
+ }
105
+
106
+ /*
107
+ * ---------- the current tokens / текущие токены ----------
108
+ * Recomputed wherever either axis changes: a custom property is resolved where it is declared, so a density class
109
+ * deep in the tree must compute the tokens again from the inherited size base, and the other way round.
110
+ * Пересчитываются везде, где меняется любая из осей: переменная вычисляется там, где объявлена, поэтому класс
111
+ * плотности в глубине дерева заново считает токены из унаследованной основы размера, и наоборот.
112
+ */
113
+ :root,
114
+ .tao-size-small,
115
+ .tao-size-medium,
116
+ .tao-size-large,
117
+ .tao-density-default,
118
+ .tao-density-compact,
119
+ .tao-density-comfortable,
120
+ .tao-density-auto {
121
+ --tao-control-height: calc(var(--_tao-height) + var(--_tao-density-height));
122
+ --tao-control-padding-x: calc(var(--_tao-padding-x) + var(--_tao-density-padding-x));
123
+ --tao-control-padding-y: max(0px, calc(var(--_tao-padding-y) + var(--_tao-density-padding-y)));
124
+ --tao-button-padding-x: calc(var(--_tao-button-padding-x) + 2 * var(--_tao-density-padding-x));
125
+ }
@@ -39,7 +39,8 @@
39
39
 
40
40
  /* ---------- Theme tokens: dark (default) / Токены темы: тёмная ---------- */
41
41
  :root,
42
- [data-tao-theme="dark"] {
42
+ [data-tao-theme="dark"],
43
+ [data-tao-mode="dark"] {
43
44
  /* static film grain, light specks; replace with your own image / статичное зерно, светлые крапинки */
44
45
  --tao-surface-grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
45
46
  --tao-surface-grain-size: 160px;
@@ -51,13 +52,74 @@
51
52
  /* ---------- Theme tokens: light / Токены темы: светлая ----------
52
53
  After the dark block on purpose: :root and [data-tao-theme] weigh the same, the later one wins.
53
54
  Специально после тёмной: :root и [data-tao-theme] весят одинаково, побеждает поздний. */
54
- [data-tao-theme="light"] {
55
+ [data-tao-theme="light"],
56
+ [data-tao-mode="light"] {
55
57
  /* dark specks / тёмные крапинки */
56
58
  --tao-surface-grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
57
59
  --tao-glass-fill: color-mix(in srgb, var(--tao-color-surface) 60%, transparent);
58
60
  --tao-glass-border: rgb(0 0 0 / 0.08);
59
61
  }
60
62
 
63
+ /* ---------- Panel contract / Контракт панели ----------
64
+ A panel (Block, Card, or your own element with `.tao-panel`) publishes its radius and padding, and its children can
65
+ round their corners concentrically: outer radius = inner radius + padding.
66
+ Панель публикует радиус и отступ, и вложенные могут скруглять углы концентрично: внешний радиус = внутренний + отступ. */
67
+ .tao-panel {
68
+ --tao-radius: var(--tao-radius-panel);
69
+ --tao-pad: var(--tao-space-4);
70
+ --tao-radius-inner: max(0px, calc(var(--tao-radius) - var(--tao-pad)));
71
+ border-radius: var(--tao-radius);
72
+ }
73
+
74
+ /* ---------- Stripe / Полоса ----------
75
+ A coloured stripe on one side of a panel (Card / Block `stripe`). It is a layer over the whole panel with the
76
+ panel's own radius, so the corners clip it, over a picture in the media slot too, with or without overflow.
77
+ The colour is a role: the tone of the panel (accent by default) or the palette gradient, so it follows the theme.
78
+ Цветная полоса с одной стороны панели. Это слой поверх всей панели с её же радиусом: углы панели обрезают полосу,
79
+ поверх картинки в media тоже, с overflow и без. Цвет — роль: тон панели (по умолчанию акцент) или градиент палитры. */
80
+ .tao-stripe-top,
81
+ .tao-stripe-left,
82
+ .tao-stripe-bottom {
83
+ --_tao-stripe-image: linear-gradient(var(--tao-tone), var(--tao-tone));
84
+ position: relative;
85
+ }
86
+
87
+ .tao-stripe-top {
88
+ --_tao-stripe-position: top;
89
+ --_tao-stripe-size: 100% var(--tao-stripe-width);
90
+ }
91
+
92
+ .tao-stripe-left {
93
+ --_tao-stripe-position: left;
94
+ --_tao-stripe-size: var(--tao-stripe-width) 100%;
95
+ }
96
+
97
+ .tao-stripe-bottom {
98
+ --_tao-stripe-position: bottom;
99
+ --_tao-stripe-size: 100% var(--tao-stripe-width);
100
+ }
101
+
102
+ .tao-stripe-gradient {
103
+ --_tao-stripe-image: var(--tao-gradient);
104
+ }
105
+
106
+ /* the theme gradient runs across; down a left stripe it has to run along it / вдоль левой полосы — сверху вниз */
107
+ .tao-stripe-gradient.tao-stripe-left {
108
+ --_tao-stripe-image: linear-gradient(180deg, var(--tao-color-accent), var(--tao-color-accent-2));
109
+ }
110
+
111
+ .tao-stripe-top::after,
112
+ .tao-stripe-left::after,
113
+ .tao-stripe-bottom::after {
114
+ content: '';
115
+ position: absolute;
116
+ inset: 0;
117
+ z-index: 1;
118
+ border-radius: inherit;
119
+ background: var(--_tao-stripe-image) var(--_tao-stripe-position) / var(--_tao-stripe-size) no-repeat;
120
+ pointer-events: none;
121
+ }
122
+
61
123
  /* ---------- Classes / Классы ---------- */
62
124
  .tao-surface-grain {
63
125
  --tao-surface-image: var(--tao-surface-grain-image);
@@ -85,14 +147,16 @@
85
147
  Сплошным становится сам токен — за ним идут и компоненты, которые подкрашивают стекло (toast, confirm). */
86
148
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
87
149
  :root,
88
- [data-tao-theme] {
150
+ [data-tao-theme],
151
+ [data-tao-mode] {
89
152
  --tao-glass-fill: var(--tao-color-surface-raised);
90
153
  }
91
154
  }
92
155
 
93
156
  @media (prefers-reduced-transparency: reduce) {
94
157
  :root,
95
- [data-tao-theme] {
158
+ [data-tao-theme],
159
+ [data-tao-mode] {
96
160
  --tao-glass-fill: var(--tao-color-surface-raised);
97
161
  }
98
162
 
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Tao UI — Tone context / Контекст тона
3
+ *
4
+ * One mechanism for every status colour: `.tao-tone-<name>` on an element sets the tokens below, and the component
5
+ * reads ONLY them (Button, Alert, Tag, toast, confirm, Avatar dot). The accent is a tone too, and the default one.
6
+ *
7
+ * --tao-tone the solid fill
8
+ * --tao-tone-hover the fill under the pointer
9
+ * --tao-tone-on text on the fill (>= 3:1, see tests/tokens.test.ts)
10
+ * --tao-tone-text the colour as text on the page (>= 4.5:1)
11
+ * --tao-tone-text-hover the same, under the pointer
12
+ * --tao-tone-subtle a quiet tint (alert / tag background)
13
+ * --tao-tone-wash the hover wash behind a ghost / text control
14
+ *
15
+ * The tokens are not inherited (like the surface tokens): a Button inside a red Alert stays an accent button.
16
+ * To tone your own element put the class on it. A theme or a palette changes the roles in themes/dark.css and tokens/semantic.css; this file
17
+ * never needs to know.
18
+ *
19
+ * Один механизм для всех статусных цветов: `.tao-tone-<имя>` на элементе выставляет токены ниже, компонент читает
20
+ * ТОЛЬКО их. Акцент — тоже тон, и тон по умолчанию. Токены не наследуются: Button внутри красного Alert остаётся
21
+ * акцентным.
22
+ */
23
+ @property --tao-tone {
24
+ syntax: '*';
25
+ inherits: false;
26
+ }
27
+
28
+ @property --tao-tone-hover {
29
+ syntax: '*';
30
+ inherits: false;
31
+ }
32
+
33
+ @property --tao-tone-on {
34
+ syntax: '*';
35
+ inherits: false;
36
+ }
37
+
38
+ @property --tao-tone-text {
39
+ syntax: '*';
40
+ inherits: false;
41
+ }
42
+
43
+ @property --tao-tone-text-hover {
44
+ syntax: '*';
45
+ inherits: false;
46
+ }
47
+
48
+ @property --tao-tone-subtle {
49
+ syntax: '*';
50
+ inherits: false;
51
+ }
52
+
53
+ @property --tao-tone-wash {
54
+ syntax: '*';
55
+ inherits: false;
56
+ }
57
+
58
+ .tao-tone-accent {
59
+ --tao-tone: var(--tao-color-accent);
60
+ --tao-tone-hover: var(--tao-color-accent-hover);
61
+ --tao-tone-on: var(--tao-color-on-accent);
62
+ --tao-tone-text: var(--tao-color-accent-text);
63
+ --tao-tone-text-hover: var(--tao-color-accent-text-hover);
64
+ --tao-tone-subtle: var(--tao-color-accent-subtle);
65
+ --tao-tone-wash: var(--tao-color-accent-subtle-hover);
66
+ }
67
+
68
+ /* Neutral: the quiet action next to a primary one. Strong text, only the wash takes the theme colour.
69
+ Нейтральный: тихое действие рядом с главным. Сильный текст, цвет темы — только у подложки при наведении. */
70
+ .tao-tone-neutral {
71
+ --tao-tone: var(--tao-color-text-muted);
72
+ --tao-tone-hover: var(--tao-color-text);
73
+ --tao-tone-on: var(--tao-color-bg);
74
+ --tao-tone-text: var(--tao-color-text-strong);
75
+ --tao-tone-text-hover: var(--tao-color-text-strong);
76
+ --tao-tone-subtle: color-mix(in srgb, var(--tao-color-text-muted) 15%, transparent);
77
+ --tao-tone-wash: var(--tao-color-accent-subtle-hover);
78
+ }
79
+
80
+ .tao-tone-success {
81
+ --tao-tone: var(--tao-color-success);
82
+ --tao-tone-hover: var(--tao-color-success-hover);
83
+ --tao-tone-on: var(--tao-color-on-success);
84
+ --tao-tone-text: var(--tao-color-success-text);
85
+ --tao-tone-text-hover: var(--tao-color-success-text-hover);
86
+ --tao-tone-subtle: var(--tao-color-success-subtle);
87
+ --tao-tone-wash: var(--tao-color-success-subtle);
88
+ }
89
+
90
+ .tao-tone-danger {
91
+ --tao-tone: var(--tao-color-danger);
92
+ --tao-tone-hover: var(--tao-color-danger-hover);
93
+ --tao-tone-on: var(--tao-color-on-danger);
94
+ --tao-tone-text: var(--tao-color-danger-text);
95
+ --tao-tone-text-hover: var(--tao-color-danger-text-hover);
96
+ --tao-tone-subtle: var(--tao-color-danger-subtle);
97
+ --tao-tone-wash: var(--tao-color-danger-subtle);
98
+ }
99
+
100
+ .tao-tone-warning {
101
+ --tao-tone: var(--tao-color-warning);
102
+ --tao-tone-hover: var(--tao-color-warning-hover);
103
+ --tao-tone-on: var(--tao-color-on-warning);
104
+ --tao-tone-text: var(--tao-color-warning-text);
105
+ --tao-tone-text-hover: var(--tao-color-warning-text-hover);
106
+ --tao-tone-subtle: var(--tao-color-warning-subtle);
107
+ --tao-tone-wash: var(--tao-color-warning-subtle);
108
+ }
109
+
110
+ .tao-tone-info {
111
+ --tao-tone: var(--tao-color-info);
112
+ --tao-tone-hover: var(--tao-color-info-hover);
113
+ --tao-tone-on: var(--tao-color-on-info);
114
+ --tao-tone-text: var(--tao-color-info-text);
115
+ --tao-tone-text-hover: var(--tao-color-info-text-hover);
116
+ --tao-tone-subtle: var(--tao-color-info-subtle);
117
+ --tao-tone-wash: var(--tao-color-info-subtle);
118
+ }
@@ -1,5 +1,5 @@
1
1
  .tao-date__panel {
2
- z-index: 1050;
2
+ z-index: var(--tao-z-popup);
3
3
  position: fixed;
4
4
  box-sizing: border-box;
5
5
  width: 280px;
@@ -7,7 +7,7 @@
7
7
  background: var(--tao-color-surface-raised);
8
8
  color: var(--tao-color-text);
9
9
  border: 1px solid var(--tao-color-border);
10
- border-radius: var(--tao-radius-control);
10
+ border-radius: var(--tao-radius-panel);
11
11
  box-shadow: var(--tao-shadow-overlay);
12
12
  }
13
13
 
@@ -1,11 +1,18 @@
1
1
  /**
2
2
  * Tao UI — styles entry point
3
3
  *
4
- * Порядок важен: primitives -> semantic (default theme) -> optional themes -> size context -> surfaces -> base reset.
4
+ * Layers, in order: primitives -> semantic tokens -> themes (dark is the default, light is opt-in with
5
+ * data-tao-theme="light") -> contexts (size and density, tone, surface) -> typography (opt-in classes) -> base reset.
6
+ * Порядок слоёв: примитивы -> семантические токены -> темы (dark по умолчанию, light включается атрибутом) ->
7
+ * контексты (размер и плотность, тон, поверхность) -> типографика (классы по выбору) -> базовый сброс.
5
8
  */
6
- @import "./primitives.css";
7
- @import "./semantic.css";
9
+ @import "./tokens/primitives.css";
10
+ @import "./tokens/semantic.css";
11
+ @import "./themes/dark.css";
8
12
  @import "./themes/light.css";
9
- @import "./size.css";
10
- @import "./surface.css";
13
+ @import "./contexts/size.css";
14
+ @import "./contexts/tone.css";
15
+ @import "./contexts/surface.css";
16
+ @import "./contexts/atmosphere.css";
17
+ @import "./typography.css";
11
18
  @import "./base.css";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Tao UI palettes: all of them. Import this file, or only the palette you use (`./sunset.css`).
3
+ * Generated by `npm run palettes`.
4
+ */
5
+ @import "./sunset.css";
6
+ @import "./marple.css";
7
+ @import "./violet-dusk.css";
8
+ @import "./ocean-blue.css";
9
+ @import "./pinheiro.css";
10
+ @import "./tokyo-night.css";
11
+ @import "./lagoon.css";