@1337exp/taoui 5.39.1 → 5.48.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.
@@ -10,8 +10,9 @@ The accent colour (amber by default) is a signal, and a signal that is on everyw
10
10
 
11
11
  1. One filled accent button (`variant="primary"`) per region. Next to it: `secondary`, or `ghost` with `tone="neutral"`, or `text`.
12
12
  2. Quiet tools (a toolbar, the actions of a row, icon buttons in a header) are `variant="ghost" tone="neutral"`. A `ghost` or `text` button without `tone` is accent-coloured: use it only for an action that really is the main one in its place.
13
- 3. Status is `tone` (`success`, `danger`, `warning`, `info`), always with words, never colour alone. A destructive action is `tone="danger"` on the button that destroys; the safe button stays quiet.
14
- 4. Colours come from roles (`var(--tao-color-…)`), never a hex or an `rgba()` in app CSS.
13
+ 3. Hover, the row under the arrows and a pressed toggle are neutral: the wash behind them is the text colour at a low alpha (`--tao-tone-wash`, `--tao-color-hover`), and the text goes up to `text-strong`. A wash or a fill is never the accent. The accent appears when a thing is chosen, not when the pointer is over it. A component must not tint its hover with the accent, and your own styles must not either.
14
+ 4. Status is `tone` (`success`, `danger`, `warning`, `info`), always with words, never colour alone. A destructive action is `tone="danger"` on the button that destroys; the safe button stays quiet.
15
+ 5. Colours come from roles (`var(--tao-color-…)`), never a hex or an `rgba()` in app CSS.
15
16
 
16
17
  ## The text ladder
17
18
 
@@ -77,7 +77,11 @@ a {
77
77
  transition: color var(--tao-duration-base) var(--tao-ease-base);
78
78
  }
79
79
 
80
- a:hover {
80
+ /* `a:where(:hover)` weighs as `a` and no more: a class on a link (a menu link, a card, a button) keeps its own colour on hover.
81
+ A bare `a:hover` (0,1,1) beat any class (0,1,0) and painted the link rose on whatever it stood on.
82
+ `a:where(:hover)` весит как `a` и не больше: класс на ссылке (пункт меню, карточка, кнопка) сохраняет свой цвет при наведении.
83
+ Голый `a:hover` (0,1,1) бил любой класс (0,1,0) и красил ссылку розовым на чём угодно. */
84
+ a:where(:hover) {
81
85
  color: var(--tao-color-link-hover);
82
86
  }
83
87
 
@@ -65,8 +65,10 @@
65
65
  --tao-tone-wash: var(--tao-color-accent-subtle-hover);
66
66
  }
67
67
 
68
- /* Neutral: the quiet action next to a primary one. Strong text, only the wash takes the theme colour.
69
- Нейтральный: тихое действие рядом с главным. Сильный текст, цвет темы — только у подложки при наведении. */
68
+ /* Neutral: the quiet action next to a primary one. Strong text, and the wash is grey too (the text colour, quiet), the same as the
69
+ pressed state: a neutral control must not turn amber under the pointer, the accent is for what is chosen or primary.
70
+ Нейтральный: тихое действие рядом с главным. Сильный текст, и подложка тоже серая (цвет текста, тихо), как у нажатого
71
+ состояния: нейтральный контрол не должен желтеть под курсором, акцент для выбранного и главного. */
70
72
  .tao-tone-neutral {
71
73
  --tao-tone: var(--tao-color-neutral);
72
74
  --tao-tone-hover: var(--tao-color-neutral-hover);
@@ -78,7 +80,7 @@
78
80
  --tao-tone-text: var(--tao-color-text);
79
81
  --tao-tone-text-hover: var(--tao-color-text-strong);
80
82
  --tao-tone-subtle: color-mix(in srgb, var(--tao-color-neutral) 15%, transparent);
81
- --tao-tone-wash: var(--tao-color-accent-subtle-hover);
83
+ --tao-tone-wash: color-mix(in srgb, var(--tao-color-text) 10%, transparent);
82
84
  }
83
85
 
84
86
  .tao-tone-success {
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #00838f;
64
64
  --tao-color-accent-hover: #007681;
65
65
  --tao-color-accent-active: #006872;
66
- --tao-color-accent-text: #007985;
67
- --tao-color-accent-text-hover: #006974;
66
+ --tao-color-accent-text: #006b75;
67
+ --tao-color-accent-text-hover: #005a63;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #ca7104;
70
70
  --tao-glow: #00838f;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #eef4fa;
75
75
  --tao-color-surface-hover: #dde4e9;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #006974;
77
+ --tao-color-link-hover: #005a63;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #ca2851;
64
64
  --tao-color-accent-hover: #ba1045;
65
65
  --tao-color-accent-active: #ab003c;
66
- --tao-color-accent-text: #ca2851;
67
- --tao-color-accent-text-hover: #b80b43;
66
+ --tao-color-accent-text: #b80b43;
67
+ --tao-color-accent-text-hover: #a10038;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #e95354;
70
70
  --tao-glow: #ca2851;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #faf1f1;
75
75
  --tao-color-surface-hover: #e9e0e1;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #b80b43;
77
+ --tao-color-link-hover: #a10038;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #0277b6;
64
64
  --tao-color-accent-hover: #0069a3;
65
65
  --tao-color-accent-active: #005f93;
66
- --tao-color-accent-text: #0072b0;
67
- --tao-color-accent-text-hover: #00639a;
66
+ --tao-color-accent-text: #00649a;
67
+ --tao-color-accent-text-hover: #005585;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #0095ab;
70
70
  --tao-glow: #0277b6;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #f0f3fa;
75
75
  --tao-color-surface-hover: #e0e3ea;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #00639a;
77
+ --tao-color-link-hover: #005585;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -7,8 +7,8 @@
7
7
  --tao-color-accent: #2e9e7e;
8
8
  --tao-color-accent-hover: #3eab8a;
9
9
  --tao-color-accent-active: #4eb998;
10
- --tao-color-accent-text: #2e9e7e;
11
- --tao-color-accent-text-hover: #42ae8d;
10
+ --tao-color-accent-text: #3aa787;
11
+ --tao-color-accent-text-hover: #4cb796;
12
12
  --tao-color-on-accent: #0d0d0d;
13
13
  --tao-color-accent-2: #2e9e7e;
14
14
  --tao-glow: #2e9e7e;
@@ -17,8 +17,8 @@
17
17
  --tao-color-surface: #021410;
18
18
  --tao-color-surface-raised: #0c201c;
19
19
  --tao-color-surface-hover: #182c28;
20
- --tao-color-link: #2e9e7e;
21
- --tao-color-link-hover: #42ae8d;
20
+ --tao-color-link: #3aa787;
21
+ --tao-color-link-hover: #4cb796;
22
22
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 8%, transparent);
23
23
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 14%, transparent);
24
24
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #008567;
64
64
  --tao-color-accent-hover: #00765b;
65
65
  --tao-color-accent-active: #006951;
66
- --tao-color-accent-text: #007d60;
67
- --tao-color-accent-text-hover: #006b52;
66
+ --tao-color-accent-text: #006e55;
67
+ --tao-color-accent-text-hover: #005e48;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #27997a;
70
70
  --tao-glow: #008567;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #edf6f3;
75
75
  --tao-color-surface-hover: #dce5e3;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #006b52;
77
+ --tao-color-link-hover: #005e48;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #ca4f00;
64
64
  --tao-color-accent-hover: #b64600;
65
65
  --tao-color-accent-active: #a43e00;
66
- --tao-color-accent-text: #bc4900;
67
- --tao-color-accent-text-hover: #a43e00;
66
+ --tao-color-accent-text: #a63f00;
67
+ --tao-color-accent-text-hover: #903500;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #ca6f00;
70
70
  --tao-glow: #ca4f00;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #faf1ee;
75
75
  --tao-color-surface-hover: #e9e1de;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #a43e00;
77
+ --tao-color-link-hover: #903500;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #c724b1;
64
64
  --tao-color-accent-hover: #b908a4;
65
65
  --tao-color-accent-active: #a60093;
66
- --tao-color-accent-text: #c21cac;
67
- --tao-color-accent-text-hover: #ad0099;
66
+ --tao-color-accent-text: #ac0099;
67
+ --tao-color-accent-text-hover: #940083;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #5b2a86;
70
70
  --tao-glow: #c724b1;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #f2f3fa;
75
75
  --tao-color-surface-hover: #e1e2ea;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #ad0099;
77
+ --tao-color-link-hover: #940083;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -7,8 +7,8 @@
7
7
  --tao-color-accent: #995679;
8
8
  --tao-color-accent-hover: #8b496c;
9
9
  --tao-color-accent-active: #803f62;
10
- --tao-color-accent-text: #b46f92;
11
- --tao-color-accent-text-hover: #c67fa3;
10
+ --tao-color-accent-text: #c0799d;
11
+ --tao-color-accent-text-hover: #d188ad;
12
12
  --tao-color-on-accent: #ffffff;
13
13
  --tao-color-accent-2: #845e8a;
14
14
  --tao-glow: #995679;
@@ -17,8 +17,8 @@
17
17
  --tao-color-surface: #160c18;
18
18
  --tao-color-surface-raised: #221723;
19
19
  --tao-color-surface-hover: #2e2330;
20
- --tao-color-link: #b46f92;
21
- --tao-color-link-hover: #c67fa3;
20
+ --tao-color-link: #c0799d;
21
+ --tao-color-link-hover: #d188ad;
22
22
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 8%, transparent);
23
23
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 14%, transparent);
24
24
  --tao-color-selection: var(--tao-color-accent);
@@ -63,8 +63,8 @@
63
63
  --tao-color-accent: #935073;
64
64
  --tao-color-accent-hover: #864567;
65
65
  --tao-color-accent-active: #7a395c;
66
- --tao-color-accent-text: #935073;
67
- --tao-color-accent-text-hover: #834265;
66
+ --tao-color-accent-text: #8b496c;
67
+ --tao-color-accent-text-hover: #7b3b5e;
68
68
  --tao-color-on-accent: #ffffff;
69
69
  --tao-color-accent-2: #502d55;
70
70
  --tao-glow: #935073;
@@ -74,7 +74,7 @@
74
74
  --tao-color-surface-raised: #f7f1f7;
75
75
  --tao-color-surface-hover: #e6e1e7;
76
76
  --tao-color-link: var(--tao-color-text-strong);
77
- --tao-color-link-hover: #834265;
77
+ --tao-color-link-hover: #7b3b5e;
78
78
  --tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
79
79
  --tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
80
80
  --tao-color-selection: var(--tao-color-accent);
@@ -31,7 +31,13 @@
31
31
  --tao-color-bg: var(--tao-gray-0);
32
32
  --tao-color-surface: var(--tao-gray-0);
33
33
  --tao-color-surface-raised: var(--tao-gray-50);
34
- --tao-color-surface-sunken: var(--tao-gray-50);
34
+ /* A tint, not a grey: on the white page it is the same #f5f5f5, on a raised panel (also #f5f5f5) it is darker, so a field,
35
+ a track or a code block sunk into a panel is still seen as sunk. As in dark.css.
36
+ Подкраска, а не серый: на белой странице тот же #f5f5f5, на поднятой панели (тоже #f5f5f5) темнее, поэтому поле, дорожка
37
+ или блок кода, вдавленные в панель, по-прежнему видны вдавленными. Как в dark.css. */
38
+ --tao-color-surface-sunken: color-mix(in srgb, var(--tao-gray-900) 4.3%, transparent);
39
+ /* a soft white over the track, not pure white: pure white shouted beside a grey track and the white page / мягкий белый поверх дорожки, а не чистый: чистый белый кричал рядом с серой дорожкой и белой страницей */
40
+ --tao-segmented-thumb: color-mix(in srgb, var(--tao-gray-0) 60%, transparent);
35
41
  --tao-color-surface-hover: var(--tao-gray-100);
36
42
  /* see dark.css / см. dark.css */
37
43
  --tao-color-hover: color-mix(in srgb, var(--tao-color-text-strong) 9%, transparent);
@@ -47,7 +53,8 @@
47
53
 
48
54
  /* Plain black links that turn rose on hover; no glow (that one is for the dark theme) */
49
55
  --tao-color-link: #000000;
50
- --tao-color-link-hover: var(--tao-pink-400);
56
+ /* a rose that reads on a grey panel too (pink-400 was 3.7:1 there) / розовый, который читается и на серой панели (pink-400 давал там 3,7:1) */
57
+ --tao-color-link-hover: var(--tao-color-accent-text-hover);
51
58
  --tao-color-link-shadow: none;
52
59
 
53
60
  --tao-color-danger: var(--tao-red-500);
@@ -101,7 +108,8 @@
101
108
  /* the same role as in the dark theme: a field is the sunken surface, like the segmented track next to it (it was pure white, so a field stood out from its neighbours)
102
109
  та же роль, что в тёмной теме: поле — «утопленная» поверхность, как дорожка сегментов рядом (раньше было чисто белым, и поле выбивалось из соседей) */
103
110
  --tao-color-input-bg: var(--tao-color-surface-sunken);
104
- --tao-color-input-text: var(--tao-gray-950);
111
+ /* the text of a field is `text`, as the ladder says (gray-950 was `text-strong`: a field read brighter than the buttons beside it) / текст поля — `text`, как говорит лестница */
112
+ --tao-color-input-text: var(--tao-color-text);
105
113
  --tao-color-input-placeholder: var(--tao-gray-300);
106
114
  /* a translucent tone, as in the dark theme: gray-50 is the field itself now, and a disabled field has to differ
107
115
  полупрозрачный тон, как в тёмной теме: gray-50 теперь сам фон поля, а выключенное должно отличаться */
@@ -181,6 +181,10 @@
181
181
  --tao-duration-base: 0.2s;
182
182
  --tao-duration-slow: 0.3s;
183
183
  --tao-ease-base: ease;
184
+ /* The tooltip: its fade is the base duration times this number (0: it appears at once), its text weight. The prop `animated` on one
185
+ tooltip wins over the number. Подсказка: плавность это базовое время на это число (0: сразу) и вес текста; проп `animated` главнее. */
186
+ --tao-tooltip-motion: 0;
187
+ --tao-tooltip-weight: 600;
184
188
 
185
189
  /* ---------- Font ---------- */
186
190
  --tao-font-family-base: "Roboto", sans-serif;