@1337exp/taoui 5.38.2 → 5.44.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
 
@@ -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 {
@@ -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;