@1337exp/taoui 5.1.1 → 5.4.1

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,100 +1,105 @@
1
- {
2
- "name": "@1337exp/taoui",
3
- "version": "5.1.1",
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
- ],
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",
33
- "type": "module",
34
- "types": "./dist/index.d.ts",
35
- "exports": {
36
- ".": {
37
- "types": "./dist/index.d.ts",
38
- "default": "./dist/index.js"
39
- },
40
- "./styles.css": "./dist/styles.css",
41
- "./palettes.css": "./src/styles/palettes/index.css",
42
- "./styles/*": "./src/styles/*",
43
- "./package.json": "./package.json"
44
- },
45
- "sideEffects": [
46
- "**/*.css"
47
- ],
48
- "files": [
49
- "dist",
50
- "src/styles",
51
- "CHANGELOG.md",
52
- "MIGRATION-5.md",
53
- "skills"
54
- ],
55
- "browserslist": [
56
- "chrome >= 111",
57
- "edge >= 111",
58
- "safari >= 16.4",
59
- "firefox >= 128"
60
- ],
61
- "engines": {
62
- "node": ">=18"
63
- },
64
- "publishConfig": {
65
- "access": "public"
66
- },
67
- "scripts": {
68
- "build": "vite build",
69
- "dev": "vite build --watch",
70
- "type-check": "vue-tsc --noEmit",
71
- "test": "vitest run",
72
- "test:watch": "vitest",
73
- "showcase": "npm --prefix showcase run dev",
74
- "showcase:build": "npm --prefix showcase run build",
75
- "media": "node scripts/media.mjs",
76
- "smoke": "node scripts/consumer-smoke.mjs",
77
- "prepublishOnly": "npm run type-check && npm run test && npm run build && npm run lint:package",
78
- "lint:package": "publint && attw --pack . --profile esm-only --exclude-entrypoints styles.css palettes.css",
79
- "palettes": "node scripts/generate-palettes.mjs",
80
- "skill": "node scripts/generate-skill.mjs"
81
- },
82
- "peerDependencies": {
83
- "vue": "^3.4.0"
84
- },
85
- "devDependencies": {
86
- "@arethetypeswrong/cli": "^0.18.5",
87
- "@types/node": "^20.19.43",
88
- "@vitejs/plugin-vue": "^5.0.0",
89
- "@vue/test-utils": "^2.5.1",
90
- "happy-dom": "^15.11.7",
91
- "playwright-core": "^1.64.1",
92
- "publint": "^0.3.25",
93
- "typescript": "^5.3.0",
94
- "vite": "^5.0.0",
95
- "vite-plugin-dts": "^3.7.0",
96
- "vitest": "^2.1.9",
97
- "vue": "^3.4.0",
98
- "vue-tsc": "^2.0.0"
99
- }
100
- }
1
+ {
2
+ "name": "@1337exp/taoui",
3
+ "version": "5.4.1",
4
+ "description": "Design-token driven Vue 3 / Nuxt component library: palettes with tested contrast, accessible menus and toolbars, navigation that adapts without JS, small charts, 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
+ "a11y",
20
+ "palette",
21
+ "toolbar",
22
+ "navigation",
23
+ "sparkline",
24
+ "color-picker",
25
+ "slider",
26
+ "toast"
27
+ ],
28
+ "homepage": "https://666.io",
29
+ "bugs": {
30
+ "url": "https://github.com/1337exp/taoui/issues"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/1337exp/taoui.git"
35
+ },
36
+ "author": "1337exp",
37
+ "license": "MIT",
38
+ "type": "module",
39
+ "types": "./dist/index.d.ts",
40
+ "exports": {
41
+ ".": {
42
+ "types": "./dist/index.d.ts",
43
+ "default": "./dist/index.js"
44
+ },
45
+ "./styles.css": "./dist/styles.css",
46
+ "./palettes.css": "./src/styles/palettes/index.css",
47
+ "./styles/*": "./src/styles/*",
48
+ "./package.json": "./package.json"
49
+ },
50
+ "sideEffects": [
51
+ "**/*.css"
52
+ ],
53
+ "files": [
54
+ "dist",
55
+ "src/styles",
56
+ "CHANGELOG.md",
57
+ "MIGRATION-5.md",
58
+ "skills"
59
+ ],
60
+ "browserslist": [
61
+ "chrome >= 111",
62
+ "edge >= 111",
63
+ "safari >= 16.4",
64
+ "firefox >= 128"
65
+ ],
66
+ "engines": {
67
+ "node": ">=18"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "scripts": {
73
+ "build": "vite build",
74
+ "dev": "vite build --watch",
75
+ "type-check": "vue-tsc --noEmit",
76
+ "test": "vitest run",
77
+ "test:watch": "vitest",
78
+ "showcase": "npm --prefix showcase run dev",
79
+ "showcase:build": "npm --prefix showcase run build",
80
+ "media": "node scripts/media.mjs",
81
+ "smoke": "node scripts/consumer-smoke.mjs",
82
+ "prepublishOnly": "npm run type-check && npm run test && npm run build && npm run lint:package",
83
+ "lint:package": "publint && attw --pack . --profile esm-only --exclude-entrypoints styles.css palettes.css",
84
+ "palettes": "node scripts/generate-palettes.mjs",
85
+ "skill": "node scripts/generate-skill.mjs"
86
+ },
87
+ "peerDependencies": {
88
+ "vue": "^3.4.0"
89
+ },
90
+ "devDependencies": {
91
+ "@arethetypeswrong/cli": "^0.18.5",
92
+ "@types/node": "^20.19.43",
93
+ "@vitejs/plugin-vue": "^5.0.0",
94
+ "@vue/test-utils": "^2.5.1",
95
+ "happy-dom": "^15.11.7",
96
+ "playwright-core": "^1.64.1",
97
+ "publint": "^0.3.25",
98
+ "typescript": "^5.3.0",
99
+ "vite": "^5.0.0",
100
+ "vite-plugin-dts": "^3.7.0",
101
+ "vitest": "^2.1.9",
102
+ "vue": "^3.4.0",
103
+ "vue-tsc": "^2.0.0"
104
+ }
105
+ }
@@ -69,7 +69,8 @@ choose a text colour, WCAG 2 to promise a number.
69
69
  `:cols="{ compact: 3, expanded: 6 }"`, `:col="{ compact: 'full', expanded: 4 }"`, `:order="{ compact: 9 }"`. A plain
70
70
  number is one column on compact. `rowHeight` is the exact row height (a mosaic: pictures are cropped).
71
71
  - `TaoNav` — app navigation from one list: a bottom bar, a rail or a drawer, `layout="auto"` by its own width; put the page
72
- in its default slot and it lays it out. `select(id, event)` + `event.preventDefault()` to route with a router.
72
+ in its default slot and it lays it out. `floating` makes the bar a detached pill (the FAB is your own button beside
73
+ it). `select(id, event)` + `event.preventDefault()` to route with a router.
73
74
 
74
75
  ## Forms
75
76
 
@@ -88,6 +89,8 @@ choose a text colour, WCAG 2 to promise a number.
88
89
  Items are a data tree `TaoMenuItem[]`: `{ id, label, icon?, shortcut?, disabled?, items? }`,
89
90
  `{ type: 'checkbox' | 'radio', checked }`, `{ type: 'label' | 'separator' }`. `@select="id => …"`. `closeOnScroll`.
90
91
  With TaoUX, `createCommands().toMenu(layout)` builds this tree and binds the same shortcuts.
92
+ - `TaoToolbar` (one tab stop, arrows walk it) with `TaoToolbarGroup` and `TaoToolbarSeparator`; toggles are
93
+ `TaoButton v-model:pressed`, a one-of-many choice inside it is `TaoSegmented`.
91
94
  - `toast().success().message('Saved')`, `toast().danger().title('Network').timeout(5000).message('…')`,
92
95
  `.action('Undo', fn)`. `await confirm().title('Delete?').message('…').danger()` resolves to a boolean.
93
96
  Their hosts `TaoToastViewport` / `TaoConfirmHost` mount themselves on the first call; place them yourself only to control
@@ -104,6 +107,10 @@ choose a text colour, WCAG 2 to promise a number.
104
107
  `TaoCopy`, `TaoMarquee` (one line that runs round only when it does not fit), `TaoScrubber` (play / pause + time),
105
108
  `TaoScrollTop`, `TaoAnimatedBorder`, `TaoIcon`.
106
109
 
110
+ Small charts only: `TaoSparkline` (a trend), `TaoMeter` (a value in a range, `low` / `high` / `optimum`), `TaoDonut`
111
+ (`segments` or `value` of `max`). Series colours `--tao-color-chart-1…6`. For a real chart (axes, tooltips) use a chart
112
+ library and feed it `taoChartTheme()` / `watchTaoChartTheme(apply)`; do not build axes by hand.
113
+
107
114
  ## Icons
108
115
 
109
116
  `<TaoIcon name="tao-check" />`: 29 built-in SVG icons under the `tao-` prefix (`taoIconNames`). Your own:
@@ -35,6 +35,7 @@ Showcase section: `#button`
35
35
  | `minWidth` | `number \| string` | — | Minimum width (number = px); the --tao-button-min-width variable |
36
36
  | `icon` | `string` | '' | An icon before the text: a name for TaoIcon (tao-plus, your own or a font one). Without text and slot the button is a square of the control height and needs aria-label |
37
37
  | `iconEnd` | `string` | '' | An icon after the text |
38
+ | `v-model:pressed` | `boolean` | — | A toggle button (Bold, a filter): aria-pressed and the tone tint while pressed. Without it the button is an ordinary one |
38
39
 
39
40
  **Slots, events, notes.** default — the button caption.
40
41
 
@@ -523,6 +524,53 @@ Showcase section: `#filedrop`
523
524
 
524
525
  **Slots, events, notes.** default — the zone text. The change event — files were added or removed. clear-request: the parent decides whether to reset at once or after confirm().
525
526
 
527
+ ## TaoSparkline
528
+
529
+ Showcase section: `#charts`
530
+
531
+ | Prop | Type | Default | Notes |
532
+ |---|---|---|---|
533
+ | `values` | `(number \| null)[]` | — | The series; null is a gap that splits the line |
534
+ | `label` | `string` | — | What it shows, for a screen reader («Visits, 12 weeks, growing»). Without it the line is decoration (aria-hidden) |
535
+ | `tone` | `'accent' \| 'neutral' \| 'success' \| 'danger' \| 'warning' \| 'info'` | 'accent' | The colour |
536
+ | `area` | `boolean` | false | A soft fill under the line |
537
+ | `dot` | `boolean` | false | A dot on the last value |
538
+ | `min / max` | `number` | the data | A fixed range (values outside are clamped): to compare several sparklines |
539
+ | `height` | `number \| string` | 32 | Height (number = px). The width is the width of the container |
540
+
541
+ **Slots, events, notes.** A trend without axes or a tooltip: for a card, a table cell, a line of text.
542
+
543
+ ## TaoMeter
544
+
545
+ Showcase section: `#charts`
546
+
547
+ | Prop | Type | Default | Notes |
548
+ |---|---|---|---|
549
+ | `value` | `number` | — | The measured value |
550
+ | `min / max` | `number` | 0 / 100 | The range |
551
+ | `low / high` | `number` | — | The bounds of the low and the high region. Without them the meter is the accent colour |
552
+ | `optimum` | `number` | the middle | The best value. Its region is success, the next one warning, the far one danger, as the HTML <meter>: optimum 0 for disk space used, max for a battery |
553
+ | `label` | `string` | — | Shown above the bar, the accessible name |
554
+ | `valueText` | `string \| boolean` | false | The value right of the label: true is the number, a string your own text (read as aria-valuetext) |
555
+ | `tone` | `TaoToneName` | — | A fixed colour instead of low / high |
556
+
557
+ **Slots, events, notes.** role="meter". A measured value in a range (disk, battery, a score), not the progress of a task: that is TaoProgress.
558
+
559
+ ## TaoDonut
560
+
561
+ Showcase section: `#charts`
562
+
563
+ | Prop | Type | Default | Notes |
564
+ |---|---|---|---|
565
+ | `segments` | `TaoDonutSegment[]` | — | { label, value, tone?, color? }. The parts take --tao-color-chart-1…6 in order; a tone or a CSS colour wins. 3–5 parts read well |
566
+ | `value / max` | `number` | 0 / 100 | Without segments: a single ring, value of max |
567
+ | `tone` | `TaoToneName` | 'accent' | The colour of the single ring |
568
+ | `label` | `string` | — | The accessible name; the parts and their shares are read after it |
569
+ | `size / thickness` | `number` | 120 / 12 | The outer size and the ring width, px |
570
+ | `legend` | `boolean` | false | A list of the parts with their shares next to the ring |
571
+
572
+ **Slots, events, notes.** default — the middle of the ring (a number, a word). taoChartTheme(el?) returns the theme colours as rgb() for a chart library: colors (6 series), text, textMuted, grid, axis, background, tooltip, tooltipText, danger / success / warning, fontFamily; watchTaoChartTheme(apply, el?) calls it now and on every theme, mode or palette change, and returns stop().
573
+
526
574
  ## TaoTable
527
575
 
528
576
  Showcase section: `#table`
@@ -893,6 +941,36 @@ Showcase section: `#dropdown`
893
941
 
894
942
  **Slots, events, notes.** Event select — the item id, close(reason) — the menu asks to be closed (escape / select / outside / tab). The panel for your own shells: a button, a context menu, a menu bar.
895
943
 
944
+ ## TaoToolbar
945
+
946
+ Showcase section: `#toolbar`
947
+
948
+ | Prop | Type | Default | Notes |
949
+ |---|---|---|---|
950
+ | `label` | `string` | — | Accessible name of the bar: Formatting, Tools |
951
+ | `size` | `'small' \| 'medium' \| 'large'` | inherited | The size of the controls inside |
952
+ | `orientation` | `'horizontal' \| 'vertical'` | 'horizontal' | Which arrows walk it (← → or ↑ ↓); the separators lie across |
953
+ | `variant` | `'panel' \| 'plain'` | 'panel' | panel — a raised bar of its own with concentric corners; plain — only the layout, for a toolbar inside a header |
954
+
955
+ **Slots, events, notes.** default — any controls: TaoButton (toggles with v-model:pressed), TaoSegmented, a select, TaoToolbarGroup, TaoToolbarSeparator. Keys: the bar is one Tab stop and remembers the last item; ← → (↑ ↓ when vertical) walk it and wrap, Home / End go to the ends, disabled items are skipped. Inside a radio group (TaoSegmented) the arrows pick the option and go on from its edge; a text field keeps its arrows. The items wrap onto a new line on a narrow screen.
956
+
957
+ ## TaoToolbarGroup
958
+
959
+ Showcase section: `#toolbar`
960
+
961
+ | Prop | Type | Default | Notes |
962
+ |---|---|---|---|
963
+ | `label` | `string` | — | Accessible name of the group: Text style, Alignment |
964
+ | `inset` | `boolean` | false | A sunken pill behind the group: its buttons read as one set |
965
+
966
+ **Slots, events, notes.** default — the tools of one kind. role="group".
967
+
968
+ ## TaoToolbarSeparator
969
+
970
+ Showcase section: `#toolbar`
971
+
972
+ **Slots, events, notes.** A thin line between the groups, across the bar: vertical in a horizontal toolbar. role="separator".
973
+
896
974
  ## TaoMenubar
897
975
 
898
976
  Showcase section: `#menubar`
@@ -955,8 +1033,9 @@ Showcase section: `#tao-nav`
955
1033
  | `maxBarItems` | `number` | 5 | How many fit the bar. With more items maxBarItems − 1 stay, the rest go into «More» with a menu |
956
1034
  | `ariaLabel` | `string` | 'Navigation' | Accessible name of the navigation |
957
1035
  | `moreLabel` | `string` | 'More' | The label of «More» |
1036
+ | `floating` | `boolean` | false | In the bar look, a detached pill above the page: inset from the edges and above the safe area, round, with a shadow; the active item is a pill too. The rail and the side panel do not change. The main action of the screen goes beside it as your own round button, not into the bar |
958
1037
 
959
- **Slots, events, notes.** default — the page: TaoNav lays it out next to the navigation (the bar sticks to the bottom, on the side the list sticks to the top; env(safe-area-inset-bottom) is kept). Without the slot it is a standalone panel with a border. #label — your own item label ({ item, active }). Events: update:modelValue, select(id, event) — event.preventDefault() keeps a link from navigating, to route it yourself.
1038
+ **Slots, events, notes.** default — the page: TaoNav lays it out next to the navigation (the bar sticks to the bottom, on the side the list sticks to the top; env(safe-area-inset-bottom) is kept). Without the slot it is a standalone panel with a border. #label — your own item label ({ item, active }). #action — the main action of the screen: a TaoButton with icon and its text in <span class="tao-nav__action-label">; the bar puts it round above itself at the end side (above the pill with floating), the rail round at the top, the side panel extended with the text at the top; in the round looks the text is hidden but stays the name of the button. Events: update:modelValue, select(id, event) — event.preventDefault() keeps a link from navigating, to route it yourself.
960
1039
 
961
1040
  ## TaoTabs
962
1041
 
@@ -63,12 +63,18 @@
63
63
  /* ---------- Panel contract / Контракт панели ----------
64
64
  A panel (Block, Card, or your own element with `.tao-panel`) publishes its radius and padding, and its children can
65
65
  round their corners concentrically: outer radius = inner radius + padding.
66
- Панель публикует радиус и отступ, и вложенные могут скруглять углы концентрично: внешний радиус = внутренний + отступ. */
66
+ Панель публикует радиус и отступ, и вложенные могут скруглять углы концентрично: внешний радиус = внутренний + отступ.
67
+
68
+ A panel is also a stacking context: the stripe layer and the Card corner use `z-index: 1`, and without isolation
69
+ they would join the page's layer and paint over any sticky bar with the same `z-index` (TaoNav's bottom bar).
70
+ Панель — ещё и контекст наложения: слой полосы и угол Card имеют `z-index: 1`, и без изоляции они попадали бы в слой
71
+ страницы и рисовались бы поверх любой закреплённой панели с тем же `z-index` (нижняя панель TaoNav). */
67
72
  .tao-panel {
68
73
  --tao-radius: var(--tao-radius-panel);
69
74
  --tao-pad: var(--tao-space-4);
70
75
  --tao-radius-inner: max(0px, calc(var(--tao-radius) - var(--tao-pad)));
71
76
  border-radius: var(--tao-radius);
77
+ isolation: isolate;
72
78
  }
73
79
 
74
80
  /* ---------- Stripe / Полоса ----------
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #63a3f6;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #0c6cd1;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #7d97ff;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #4c61de;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #8aa1fd;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #3a46c7;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #5c99e7;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #2a6ec2;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #839dff;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #4e63d7;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #87a0ff;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #4b5fe4;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -46,6 +46,11 @@
46
46
  --tao-color-on-info: #0d0d0d;
47
47
  --tao-color-info-text: #7288db;
48
48
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
49
+ --tao-color-chart-1: var(--tao-color-accent);
50
+ --tao-color-chart-2: var(--tao-color-info);
51
+ --tao-color-chart-3: var(--tao-color-success);
52
+ --tao-color-chart-4: var(--tao-color-accent-2);
53
+ --tao-color-chart-5: var(--tao-color-warning);
49
54
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
50
55
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
51
56
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -97,6 +102,11 @@
97
102
  --tao-color-on-info: #ffffff;
98
103
  --tao-color-info-text: #5267c1;
99
104
  --tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
105
+ --tao-color-chart-1: var(--tao-color-accent);
106
+ --tao-color-chart-2: var(--tao-color-info);
107
+ --tao-color-chart-3: var(--tao-color-success);
108
+ --tao-color-chart-4: var(--tao-color-accent-2);
109
+ --tao-color-chart-5: var(--tao-color-warning);
100
110
  --tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
101
111
  --tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
102
112
  --tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
@@ -89,6 +89,19 @@
89
89
  --tao-color-info-text: var(--tao-blue-300);
90
90
  --tao-color-info-text-hover: color-mix(in srgb, var(--tao-color-info-text) 85%, var(--tao-color-text-strong));
91
91
 
92
+ /* ---------- Charts ----------
93
+ The series colours, in order (TaoDonut, TaoSparkline, taoChartTheme). The first is the accent; the status roles
94
+ follow, so a palette moves them away from its accent; violet and the last one are fixed (pink in the dark theme, teal in the light one: away from each accent). Red is left out on purpose: it reads
95
+ as «bad». A palette re-declares the ones built on roles.
96
+ Цвета серий по порядку. Первый — акцент; дальше роли статусов, поэтому палитра отодвигает их от своего акцента;
97
+ фиолетовый и последний постоянны. Красный нарочно не берём: он читается как «плохо». */
98
+ --tao-color-chart-1: var(--tao-color-accent);
99
+ --tao-color-chart-2: var(--tao-color-info);
100
+ --tao-color-chart-3: var(--tao-color-success);
101
+ --tao-color-chart-4: var(--tao-violet-400);
102
+ --tao-color-chart-5: var(--tao-color-warning);
103
+ --tao-color-chart-6: var(--tao-pink-400);
104
+
92
105
  /* ---------- Form controls ---------- */
93
106
  --tao-color-input-bg: var(--tao-color-surface-sunken);
94
107
  --tao-color-input-text: var(--tao-gray-200);
@@ -77,6 +77,20 @@
77
77
  --tao-color-info-text: var(--tao-blue-700);
78
78
  --tao-color-info-text-hover: color-mix(in srgb, var(--tao-color-info-text) 85%, var(--tao-color-text-strong));
79
79
 
80
+ /* ---------- Charts ----------
81
+ The series colours, in order (TaoDonut, TaoSparkline, taoChartTheme). The first is the accent; the status roles
82
+ follow, so a palette moves them away from its accent; violet and the last one are fixed (pink in the dark theme, teal in the light one: away from each accent). Red is left out on purpose: it reads
83
+ as «bad». A palette re-declares the ones built on roles.
84
+ Цвета серий по порядку. Первый — акцент; дальше роли статусов, поэтому палитра отодвигает их от своего акцента;
85
+ фиолетовый и последний постоянны. Красный нарочно не берём: он читается как «плохо». */
86
+ --tao-color-chart-1: var(--tao-color-accent);
87
+ --tao-color-chart-2: var(--tao-color-info);
88
+ --tao-color-chart-3: var(--tao-color-success);
89
+ --tao-color-chart-4: var(--tao-violet-600);
90
+ --tao-color-chart-5: var(--tao-color-warning);
91
+ /* the light accent is pink already: the last series is teal / светлый акцент уже розовый: последняя серия бирюзовая */
92
+ --tao-color-chart-6: var(--tao-teal-600);
93
+
80
94
  --tao-color-input-bg: var(--tao-gray-0);
81
95
  --tao-color-input-text: var(--tao-gray-950);
82
96
  --tao-color-input-placeholder: var(--tao-gray-300);
@@ -35,6 +35,12 @@
35
35
  --tao-pink-700: #c70a55;
36
36
  --tao-pink-800: #a8083f;
37
37
 
38
+ /* violet: only a chart series colour / фиолетовый: только цвет серии графика */
39
+ --tao-violet-400: #a78bfa;
40
+ --tao-violet-600: #7c4ddb;
41
+ /* teal: the last series of the light theme, whose accent is pink / бирюзовый: последняя серия светлой темы с розовым акцентом */
42
+ --tao-teal-600: #0e8a80;
43
+
38
44
  --tao-red-400: #e35766;
39
45
  --tao-red-500: #dc3545;
40
46
  --tao-red-600: #c82333;