@1337exp/taoui 5.50.0 → 5.51.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.
@@ -0,0 +1,435 @@
1
+ # TaoUI starters: whole screens to begin a project from
2
+
3
+ Generated from the Guide of the showcase (`showcase/guide/starters/`) by `npm run skill`; do not edit by hand.
4
+ Start a new app from the starter that fits instead of composing the shell from scratch, and keep its decisions unless
5
+ the app has a reason not to. Each starter is live on its own page of the showcase, `#starter-<id>` (the Guide book).
6
+ A starter uses the public API only: no `:deep(.tao-…)`, no private `--_…` variables of a component.
7
+
8
+ ## App shell with a side menu
9
+
10
+ **When.** An app of a few sections that people keep open: notes, a tracker, a planner, an admin. The model is Axis and NextUp.
11
+
12
+ **Why it is built this way:**
13
+
14
+ 1. One `TaoNav` with `layout="auto"` (the default) makes three looks from one list: a side panel with labels from 840px, a rail of icons below, a bar at the bottom under 600px. It measures its own width, not the window: a split view or an embedded frame gets the right look too.
15
+ 2. `fill`: the app takes the window and the page scrolls inside its own box, not as a document. The navigation never moves, a list and an editor side by side can each scroll on their own, and no page scrollbar comes and goes between a short section and a long one, so nothing shifts sideways.
16
+ 3. The main action (`#action`) is one filled button above the items: it follows the navigation, round above the bar on a phone, round on the rail, wide with its text on the side panel. Its text is in `tao-nav__action-label`, so it stays the name of the round button. One accent action per screen: the rest of the shell is quiet.
17
+ 4. The project the app works in (a workspace, a portfolio, an account) is a chip under the main action: the folder, the name, a chevron, and a menu of the projects with the current one checked and «New project». The whole chip is the button of a `TaoDropdownMenu block`, so the hover and the focus ring go round it; on the rail it folds to a round icon by `--tao-nav-compact`, on a phone it moves up into the header. Its name for a screen reader is «Project: Home», with the word hidden (`tao-sr-only`).
18
+ 5. Counters are `badge-tone="neutral"`: grey on every item, the accent only on the current one, so the eye is not pulled round the menu.
19
+ 6. The language and the theme are quiet tools in `#footer`, at the bottom of the side panel (`fill` puts it there). The language shows its name on the side panel and folds to the globe on the rail by itself (it reads `--tao-nav-compact`), so no `icon-only` there. The bar has no room for a footer, so on a phone the same tools go up into a thin header, shown by a container query on `tao-nav`, the same 600px as the bar: no JavaScript, no second breakpoint to keep in step.
20
+ 7. Settings are a section of the menu with their own page, in a column one can read (560px), not a modal and not a drawer from the far edge: on a wide screen the menu is where the eye already is.
21
+ 8. An empty section says what lands in it and offers the action (`TaoEmpty`), instead of a blank page.
22
+
23
+ **The file.** Copy it as `App.vue` and give its parent the height of the window: `html, body, #app { height: 100%; margin: 0; }`.
24
+
25
+ ```vue
26
+ <script setup>
27
+ // The shell of an app: a side panel with labels on a wide window, a rail of icons on a narrower one, a bar at the bottom
28
+ // on a phone. Copy it as App.vue and give its parent the height of the window:
29
+ // html, body, #app { height: 100%; margin: 0; }
30
+ // Оболочка приложения: боковая панель с подписями на широком окне, рейка иконок на узком, панель снизу на телефоне.
31
+ // Скопируйте её как App.vue и дайте родителю высоту окна (html, body, #app { height: 100%; margin: 0; }).
32
+ import { computed, ref } from 'vue'
33
+ import { TaoButton, TaoDropdownMenu, TaoEmpty, TaoIcon, TaoLanguageSwitch, TaoNav, TaoSwitch, TaoThemeToggle } from '@1337exp/taoui'
34
+
35
+ const section = ref('inbox')
36
+ const lang = ref('en')
37
+ const compactList = ref(false)
38
+
39
+ const items = computed(() => [
40
+ { id: 'inbox', label: 'Inbox', icon: 'tao-file', badge: 3 },
41
+ { id: 'projects', label: 'Projects', icon: 'tao-folder' },
42
+ { id: 'calendar', label: 'Calendar', icon: 'tao-calendar' },
43
+ { id: 'settings', label: 'Settings', icon: 'tao-settings' },
44
+ ])
45
+
46
+ const title = computed(() => items.value.find((item) => item.id === section.value)?.label ?? '')
47
+
48
+ // the project the app works in: a menu of the projects, the current one checked, and a way to make one
49
+ const projects = ref([
50
+ { id: 'home', title: 'Home' },
51
+ { id: 'work', title: 'Work' },
52
+ ])
53
+ const projectId = ref('home')
54
+ const project = computed(() => projects.value.find((p) => p.id === projectId.value))
55
+ const projectItems = computed(() => [
56
+ ...projects.value.map((p) => ({ type: 'radio', id: p.id, group: 'project', label: p.title, checked: p.id === projectId.value })),
57
+ { type: 'separator' },
58
+ { id: 'new-project', label: 'New project', icon: 'tao-plus' },
59
+ ])
60
+
61
+ function onProject(id) {
62
+ if (id !== 'new-project') projectId.value = id
63
+ }
64
+
65
+ function create() {
66
+ section.value = 'inbox'
67
+ }
68
+ </script>
69
+
70
+ <template>
71
+ <TaoNav v-model="section" fill badge-tone="neutral" :items="items" aria-label="Sections">
72
+ <!-- the main action, then the project under it: on the rail both are round icons -->
73
+ <template #action>
74
+ <TaoButton icon="tao-plus" shortcut="N" @click="create"><span class="tao-nav__action-label">New</span></TaoButton>
75
+ <TaoDropdownMenu class="shell-project" block :items="projectItems" menu-label="Projects" placement="bottom-start" @select="onProject">
76
+ <template #button>
77
+ <span class="shell-chip" :title="project.title">
78
+ <TaoIcon name="tao-folder" />
79
+ <span class="tao-sr-only">Project: </span>
80
+ <span class="shell-chip__text">{{ project.title }}</span>
81
+ <TaoIcon class="shell-chip__more" name="tao-chevron-down" />
82
+ </span>
83
+ </template>
84
+ </TaoDropdownMenu>
85
+ </template>
86
+
87
+ <template #footer>
88
+ <div class="shell-tools">
89
+ <TaoLanguageSwitch v-model="lang" :languages="['en', 'ru']" placement="top-start" />
90
+ <TaoThemeToggle />
91
+ </div>
92
+ </template>
93
+
94
+ <div class="shell-page">
95
+ <!-- a phone: the bar has no room for the project and no footer, so they go up into a thin header -->
96
+ <header class="shell-top">
97
+ <TaoDropdownMenu block :items="projectItems" menu-label="Projects" placement="bottom-start" @select="onProject">
98
+ <template #button>
99
+ <span class="shell-chip">
100
+ <TaoIcon name="tao-folder" />
101
+ <span class="tao-sr-only">Project: </span>
102
+ <span class="shell-chip__text">{{ project.title }}</span>
103
+ <TaoIcon class="shell-chip__more" name="tao-chevron-down" />
104
+ </span>
105
+ </template>
106
+ </TaoDropdownMenu>
107
+ <div class="shell-tools">
108
+ <TaoLanguageSwitch v-model="lang" :languages="['en', 'ru']" icon-only />
109
+ <TaoThemeToggle />
110
+ </div>
111
+ </header>
112
+
113
+ <main class="shell-main">
114
+ <section v-if="section === 'settings'" class="shell-settings">
115
+ <h1 class="tao-heading-4">Settings</h1>
116
+ <TaoSwitch v-model="compactList" label="Compact list" />
117
+ </section>
118
+ <template v-else>
119
+ <h1 class="tao-heading-4">{{ title }}</h1>
120
+ <TaoEmpty :title="`Nothing in ${title.toLowerCase()} yet`">
121
+ New things land here.
122
+ <template #action>
123
+ <TaoButton icon="tao-plus" @click="create">New</TaoButton>
124
+ </template>
125
+ </TaoEmpty>
126
+ </template>
127
+ </main>
128
+ </div>
129
+ </TaoNav>
130
+ </template>
131
+
132
+ <style scoped>
133
+ /* the page beside the navigation: a header for the phone, then the content that scrolls by itself */
134
+ .shell-page {
135
+ display: flex;
136
+ flex-direction: column;
137
+ height: 100%;
138
+ }
139
+
140
+ .shell-top {
141
+ display: none;
142
+ align-items: center;
143
+ justify-content: space-between;
144
+ gap: var(--tao-space-2);
145
+ padding: var(--tao-space-2) var(--tao-space-4);
146
+ border-bottom: 1px solid var(--tao-color-border);
147
+ background: var(--tao-color-surface);
148
+ }
149
+
150
+ /* the same breakpoint as the bar of TaoNav: the container is TaoNav itself, so it follows its width, not the window */
151
+ @container tao-nav (width < 600px) {
152
+ .shell-top {
153
+ display: flex;
154
+ }
155
+
156
+ /* doubled: the menu sets display: block with the same weight */
157
+ .shell-project.shell-project {
158
+ display: none;
159
+ }
160
+ }
161
+
162
+ /*
163
+ * The project chip: the whole of it is the button of a block TaoDropdownMenu. --tao-nav-compact is 1 on the rail and 0
164
+ * on the side panel (and in the page), so on the rail the text and the chevron shrink to nothing and a round icon stays.
165
+ * Фишка проекта: она вся — кнопка блочного TaoDropdownMenu. --tao-nav-compact 1 на рейке и 0 в боковой панели (и на
166
+ * странице), поэтому на рейке текст и стрелка сжимаются в ничто и остаётся круглая иконка.
167
+ */
168
+ .shell-chip {
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: center;
172
+ gap: calc((1 - var(--tao-nav-compact)) * var(--tao-space-2));
173
+ box-sizing: border-box;
174
+ min-height: var(--tao-control-height);
175
+ padding-inline: calc((1 - var(--tao-nav-compact)) * var(--tao-space-3));
176
+ border: calc((1 - var(--tao-nav-compact)) * 1px) solid var(--tao-color-border-strong);
177
+ border-radius: inherit;
178
+ /* on the rail no frame (a round box would cut its arcs), a faint fill instead */
179
+ background: color-mix(in srgb, var(--tao-color-text) calc(var(--tao-nav-compact) * 8%), transparent);
180
+ color: var(--tao-color-text);
181
+ font-size: var(--tao-control-font-size);
182
+ }
183
+
184
+ .shell-chip__text {
185
+ flex: 1;
186
+ min-width: 0;
187
+ max-width: calc((1 - var(--tao-nav-compact)) * 600px);
188
+ overflow: hidden;
189
+ text-overflow: ellipsis;
190
+ white-space: nowrap;
191
+ }
192
+
193
+ .shell-chip__more {
194
+ flex: none;
195
+ max-width: calc((1 - var(--tao-nav-compact)) * 24px);
196
+ overflow: hidden;
197
+ color: var(--tao-color-text-muted);
198
+ }
199
+
200
+ .shell-top .shell-chip {
201
+ max-width: 220px;
202
+ }
203
+
204
+ .shell-main {
205
+ flex: 1;
206
+ min-height: 0;
207
+ overflow: auto;
208
+ padding: var(--tao-space-6);
209
+ }
210
+
211
+ .shell-main h1 {
212
+ margin: 0 0 var(--tao-space-5);
213
+ }
214
+
215
+ /* settings are a section: a column of a width one can read, not a form across the whole screen */
216
+ .shell-settings {
217
+ display: grid;
218
+ gap: var(--tao-space-4);
219
+ max-width: 560px;
220
+ }
221
+
222
+ .shell-tools {
223
+ display: flex;
224
+ flex-wrap: wrap;
225
+ align-items: center;
226
+ justify-content: center;
227
+ gap: var(--tao-space-1);
228
+ }
229
+ </style>
230
+ ```
231
+
232
+ ## A list and the open item
233
+
234
+ **When.** A section of records people go through one by one: notes, mail, tasks, clients. The model is the notes of NextUp.
235
+
236
+ **Why it is built this way:**
237
+
238
+ 1. Side by side when there is room, one at a time when there is not: the list, then the item with a back button. The width is the room of the starter, measured on an outer box by a container query (`list-detail`), not the window: in the shell beside a side panel it switches later than the window would say. A container query cannot ask an element about its own width, so the outer box measures and the inner grid lays out.
239
+ 2. Each pane scrolls by itself (`overflow: auto` on both, `min-height: 0` so a grid row can be shorter than its content): the list keeps its place while the item is read.
240
+ 3. The list is `TaoList roving` with `clickable` rows: one Tab stop, the arrows move between the rows, Tab comes back to the open one. The open row is `selected` (a tint and `aria-current`), not an accent text.
241
+ 4. The focus follows the eye in the single pane: opening an item moves it to the item heading (`tabindex="-1"`), Back and Escape bring it to the row it came from. Side by side the focus stays in the list, so the arrows keep walking it.
242
+ 5. The actions of the item are quiet icon buttons (`variant="ghost" tone="neutral"`, each with an `aria-label`); the one that destroys is `tone="danger"`. The accent of the screen stays for the main action of the shell.
243
+ 6. Nothing open on a wide screen is a `TaoEmpty` that says what opens there; a search with no match says so in the `#empty` slot of the list, with the query.
244
+ 7. The text of the item is a column one can read (640px), not a line across a wide screen.
245
+
246
+ **The file.** Put it in the page of the app shell (or any box with a height): it fills its parent and lays itself out by the room it gets.
247
+
248
+ ```vue
249
+ <script setup>
250
+ // A list and the open item: side by side when there is room, one at a time when there is not (the list, then the item
251
+ // with a way back). Put it in the page of the app shell, or anywhere with a height: it fills its parent.
252
+ // Список и открытая запись: рядом, когда есть место, по одному, когда нет (список, потом запись с возвратом). Кладите
253
+ // в страницу оболочки приложения или в любой блок с высотой: каркас занимает родителя.
254
+ import { computed, nextTick, ref } from 'vue'
255
+ import { TaoButton, TaoEmpty, TaoIcon, TaoInput, TaoList, TaoListItem } from '@1337exp/taoui'
256
+
257
+ const notes = ref([
258
+ { id: 1, title: 'Plan the week', date: 'Mon', text: 'Three things that matter, the rest can wait.' },
259
+ { id: 2, title: 'Call the bank', date: 'Tue', text: 'Ask about the rate of the deposit and the fee for an early close.' },
260
+ { id: 3, title: 'Ideas for the trip', date: 'Wed', text: 'A train instead of a plane; two nights by the lake.' },
261
+ { id: 4, title: 'Books to read', date: 'Thu', text: 'One novel, one book about design, one about money.' },
262
+ { id: 5, title: 'Fix the bike', date: 'Fri', text: 'The back brake squeaks; new pads, check the chain.' },
263
+ ])
264
+
265
+ const query = ref('')
266
+ const openId = ref(null)
267
+ const list = ref(null)
268
+ const heading = ref(null)
269
+ const back = ref(null)
270
+
271
+ const shown = computed(() => {
272
+ const q = query.value.trim().toLowerCase()
273
+ return q ? notes.value.filter((n) => n.title.toLowerCase().includes(q)) : notes.value
274
+ })
275
+ const open = computed(() => notes.value.find((n) => n.id === openId.value) ?? null)
276
+
277
+ // one pane at a time when the back button is shown (the container query below decides, not the window)
278
+ const single = () => back.value?.$el && getComputedStyle(back.value.$el).display !== 'none'
279
+
280
+ async function choose(id) {
281
+ openId.value = id
282
+ await nextTick()
283
+ // the list is gone in the single pane: the focus goes to the item, so a screen reader hears where it is
284
+ if (single()) heading.value?.focus()
285
+ }
286
+
287
+ async function close() {
288
+ const from = openId.value
289
+ openId.value = null
290
+ await nextTick()
291
+ // back to the row it came from (its button is the stop of the row)
292
+ list.value?.querySelector(`[data-note="${from}"] button`)?.focus()
293
+ }
294
+
295
+ function remove() {
296
+ notes.value = notes.value.filter((n) => n.id !== openId.value)
297
+ openId.value = null
298
+ }
299
+ </script>
300
+
301
+ <template>
302
+ <div class="ld-room">
303
+ <div class="ld" :class="{ 'ld--open': open }" @keydown.esc="open && single() && close()">
304
+ <section ref="list" class="ld__list" aria-label="Notes">
305
+ <TaoInput v-model="query" placeholder="Search" aria-label="Search notes">
306
+ <template #prefix><TaoIcon name="tao-search" /></template>
307
+ </TaoInput>
308
+ <TaoList :bordered="false" roving aria-label="Notes" :empty="shown.length === 0">
309
+ <TaoListItem
310
+ v-for="note in shown"
311
+ :key="note.id"
312
+ :data-note="note.id"
313
+ clickable
314
+ :selected="note.id === openId"
315
+ :title="note.title"
316
+ :description="note.text"
317
+ @click="choose(note.id)"
318
+ >
319
+ <template #suffix><span class="ld__date">{{ note.date }}</span></template>
320
+ </TaoListItem>
321
+ <template #empty>Nothing found for “{{ query }}”.</template>
322
+ </TaoList>
323
+ </section>
324
+
325
+ <section class="ld__item">
326
+ <template v-if="open">
327
+ <header class="ld__head">
328
+ <TaoButton ref="back" class="ld__back" variant="ghost" tone="neutral" icon="tao-chevron-left" aria-label="Back to the list" @click="close" />
329
+ <h2 ref="heading" class="tao-heading-5" tabindex="-1">{{ open.title }}</h2>
330
+ <TaoButton variant="ghost" tone="neutral" icon="tao-edit" aria-label="Edit" />
331
+ <TaoButton variant="ghost" tone="danger" icon="tao-trash" aria-label="Delete" @click="remove" />
332
+ </header>
333
+ <p class="ld__meta">{{ open.date }}</p>
334
+ <p>{{ open.text }}</p>
335
+ </template>
336
+ <TaoEmpty v-else class="ld__none" title="Pick a note">Its text opens here.</TaoEmpty>
337
+ </section>
338
+ </div>
339
+ </div>
340
+ </template>
341
+
342
+ <style scoped>
343
+ /* the room is measured on the outer box and the layout is done on the inner one (a container query cannot ask an
344
+ element about its own width): the layout follows the room it is given, not the window */
345
+ .ld-room {
346
+ container: list-detail / inline-size;
347
+ height: 100%;
348
+ }
349
+
350
+ .ld {
351
+ display: grid;
352
+ grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
353
+ height: 100%;
354
+ min-height: 0;
355
+ }
356
+
357
+ /* each pane scrolls by itself: the list keeps its place while the item is read */
358
+ .ld__list,
359
+ .ld__item {
360
+ min-height: 0;
361
+ overflow: auto;
362
+ }
363
+
364
+ .ld__list {
365
+ display: flex;
366
+ flex-direction: column;
367
+ gap: var(--tao-space-3);
368
+ padding: var(--tao-space-4);
369
+ border-inline-end: 1px solid var(--tao-color-border);
370
+ }
371
+
372
+ .ld__item {
373
+ padding: var(--tao-space-4) var(--tao-space-6);
374
+ }
375
+
376
+ .ld__head {
377
+ display: flex;
378
+ align-items: center;
379
+ gap: var(--tao-space-1);
380
+ }
381
+
382
+ .ld__head h2 {
383
+ flex: 1;
384
+ min-width: 0;
385
+ margin: 0;
386
+ }
387
+
388
+ .ld__head h2:focus {
389
+ outline: none;
390
+ }
391
+
392
+ /* the item is a column one can read, not a line across a wide screen */
393
+ .ld__item p {
394
+ max-width: 640px;
395
+ }
396
+
397
+ .ld__meta,
398
+ .ld__date {
399
+ color: var(--tao-color-text-muted);
400
+ font-size: var(--tao-font-size-xs);
401
+ }
402
+
403
+ .ld__back {
404
+ display: none;
405
+ }
406
+
407
+ .ld__none {
408
+ height: 100%;
409
+ }
410
+
411
+ /* no room for two: the list, or the open item with a way back */
412
+ @container list-detail (width < 640px) {
413
+ .ld {
414
+ grid-template-columns: minmax(0, 1fr);
415
+ }
416
+
417
+ .ld__list {
418
+ border-inline-end: 0;
419
+ }
420
+
421
+ .ld__item {
422
+ padding: var(--tao-space-3) var(--tao-space-4);
423
+ }
424
+
425
+ .ld--open .ld__list,
426
+ .ld:not(.ld--open) .ld__item {
427
+ display: none;
428
+ }
429
+
430
+ .ld__back {
431
+ display: inline-flex;
432
+ }
433
+ }
434
+ </style>
435
+ ```
@@ -38,17 +38,17 @@ html {
38
38
  }
39
39
 
40
40
  /* Scrollbar: thin, the accent for the thumb. Four hooks set on the page, a block or a component, nothing else to override:
41
- --tao-scrollbar-size (px, 5px), --tao-scrollbar-thumb (the accent), --tao-scrollbar-track (transparent),
41
+ --tao-scrollbar-size (px, 6px), --tao-scrollbar-thumb (the accent), --tao-scrollbar-track (transparent),
42
42
  --tao-scrollbar-width (Firefox, which has no pixels: thin | auto | none). The class tao-native-scrollbars on <html>, or on any
43
43
  block, gives the browser's own scrollbars back for everything inside it. The colours are read where the scroll is, so a block
44
44
  with another theme gets its own accent.
45
45
  Полоса прокрутки: тонкая, бегунок акцентный. Четыре крючка на странице, блоке или компоненте, больше ничего переопределять
46
- не нужно: --tao-scrollbar-size (px, 5px), --tao-scrollbar-thumb (акцент), --tao-scrollbar-track (прозрачная),
46
+ не нужно: --tao-scrollbar-size (px, 6px), --tao-scrollbar-thumb (акцент), --tao-scrollbar-track (прозрачная),
47
47
  --tao-scrollbar-width (Firefox, у него нет пикселей: thin | auto | none). Класс tao-native-scrollbars на <html> или на любом блоке
48
48
  возвращает родные полосы всему внутри. Цвета читаются там, где прокрутка, поэтому блок с другой темой получает свой акцент. */
49
49
  :not(.tao-native-scrollbars, .tao-native-scrollbars *)::-webkit-scrollbar {
50
- width: var(--tao-scrollbar-size, 5px);
51
- height: var(--tao-scrollbar-size, 5px);
50
+ width: var(--tao-scrollbar-size, 6px);
51
+ height: var(--tao-scrollbar-size, 6px);
52
52
  }
53
53
 
54
54
  :not(.tao-native-scrollbars, .tao-native-scrollbars *)::-webkit-scrollbar-track {
@@ -128,10 +128,13 @@
128
128
  --tao-space-8: 32px;
129
129
  --tao-space-10: 40px;
130
130
 
131
- /* ---------- Radius scale ---------- */
132
- --tao-radius-sm: 4px;
133
- --tao-radius-md: 8px;
134
- --tao-radius-lg: 12px;
131
+ /* ---------- Radius scale ----------
132
+ Soft corners since 5.51.0 (they were 4 / 8 / 12): every app of ours set these same values over the kit.
133
+ Мягкие углы с 5.51.0 (были 4 / 8 / 12): все наши приложения ставили поверх набора ровно эти значения. */
134
+ --tao-radius-sm: 6px;
135
+ --tao-radius-md: 10px;
136
+ --tao-radius-lg: 14px;
137
+ --tao-radius-xl: 18px;
135
138
  --tao-radius-full: 999px;
136
139
 
137
140
  /* ---------- Font size scale ---------- */
@@ -161,7 +164,7 @@
161
164
  --tao-scrollbar-track: <colour>; the track, transparent by default
162
165
  Тонкая полоса из base.css. Размер и ширина для Firefox заданы здесь; цвета — крючки, которые не заданы (читаются с запасным
163
166
  значением там, где прокрутка, поэтому блок с другой темой получает свой акцент). */
164
- --tao-scrollbar-size: 5px;
167
+ --tao-scrollbar-size: 6px;
165
168
  --tao-scrollbar-width: thin; /* Firefox has no pixels: thin | auto | none */
166
169
 
167
170
  /* ---------- Layers / Слои ----------
@@ -9,8 +9,9 @@
9
9
  */
10
10
  :root {
11
11
  /* ---------- Radii / spacing / shadows (aliasable per-theme too) ---------- */
12
- --tao-radius-control: var(--tao-radius-sm);
13
- --tao-radius-panel: var(--tao-radius-md);
12
+ /* a control 10px, a panel 18px (5.51.0; they were 4px and 8px) / поле 10px, панель 18px (5.51.0; было 4px и 8px) */
13
+ --tao-radius-control: var(--tao-radius-md);
14
+ --tao-radius-panel: var(--tao-radius-xl);
14
15
  /* The coloured stripe of a panel (Card / Block `stripe`). / Цветная полоса панели. */
15
16
  --tao-stripe-width: 4px;
16
17
  --tao-shadow-panel: var(--tao-shadow-md);
@@ -44,4 +45,9 @@
44
45
  --tao-nav-rail-width: 80px;
45
46
  --tao-nav-drawer-width: 240px;
46
47
  --tao-nav-action-radius: var(--tao-radius-control);
48
+ /* Read, not set: TaoNav sets it to 1 on the bar and the rail and to 0 on the side panel, for your own pieces in its
49
+ slots (a chip that shows only its icon on the rail). 0 outside a TaoNav.
50
+ Читается, а не задаётся: TaoNav ставит 1 в нижней панели и рейке и 0 в боковой, для своих вещей в его слотах
51
+ (фишка, у которой на рейке видна только иконка). Вне TaoNav — 0. */
52
+ --tao-nav-compact: 0;
47
53
  }