@1337exp/taoui 5.1.0 → 5.4.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.
- package/CHANGELOG.md +33 -0
- package/README.md +833 -828
- package/README.ru.md +833 -828
- package/dist/index.d.ts +782 -284
- package/dist/index.js +992 -383
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +105 -100
- package/skills/taoui/SKILL.md +8 -1
- package/skills/taoui/references/components.md +80 -1
- package/src/styles/contexts/tone.css +3 -1
- package/src/styles/palettes/lagoon.css +10 -0
- package/src/styles/palettes/marple.css +10 -0
- package/src/styles/palettes/ocean-blue.css +10 -0
- package/src/styles/palettes/pinheiro.css +10 -0
- package/src/styles/palettes/sunset.css +10 -0
- package/src/styles/palettes/tokyo-night.css +10 -0
- package/src/styles/palettes/violet-dusk.css +10 -0
- package/src/styles/themes/dark.css +27 -8
- package/src/styles/themes/light.css +15 -0
- package/src/styles/tokens/primitives.css +13 -0
- package/src/styles/tokens/semantic.css +9 -9
package/package.json
CHANGED
|
@@ -1,100 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@1337exp/taoui",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "Design-token driven Vue 3 / Nuxt component library:
|
|
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
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@1337exp/taoui",
|
|
3
|
+
"version": "5.4.0",
|
|
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
|
+
}
|
package/skills/taoui/SKILL.md
CHANGED
|
@@ -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. `
|
|
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
|
|
|
@@ -70,7 +70,9 @@
|
|
|
70
70
|
.tao-tone-neutral {
|
|
71
71
|
--tao-tone: var(--tao-color-text-muted);
|
|
72
72
|
--tao-tone-hover: var(--tao-color-text);
|
|
73
|
-
|
|
73
|
+
/* white on the mid grey in both themes (5.7:1); the page colour was dark on dark in the dark theme (3.4:1)
|
|
74
|
+
белое на среднем сером в обеих темах; цвет страницы в тёмной теме давал тёмное на тёмном */
|
|
75
|
+
--tao-tone-on: var(--tao-color-on-neutral);
|
|
74
76
|
--tao-tone-text: var(--tao-color-text-strong);
|
|
75
77
|
--tao-tone-text-hover: var(--tao-color-text-strong);
|
|
76
78
|
--tao-tone-subtle: color-mix(in srgb, var(--tao-color-text-muted) 15%, transparent);
|
|
@@ -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));
|
|
@@ -63,14 +63,20 @@
|
|
|
63
63
|
--tao-color-on-success: var(--tao-gray-950);
|
|
64
64
|
--tao-color-on-warning: var(--tao-gray-950);
|
|
65
65
|
--tao-color-on-info: var(--tao-gray-950);
|
|
66
|
-
|
|
67
|
-
--tao-color-
|
|
66
|
+
/* the neutral fill is the muted text grey: a white label on it / нейтральная заливка — серый muted, подпись белая */
|
|
67
|
+
--tao-color-on-neutral: var(--tao-gray-0);
|
|
68
|
+
/* light fills with a dark label, as the amber accent: bright enough to read as a button on a dark page
|
|
69
|
+
светлые заливки с тёмной подписью, как у янтарного акцента: достаточно яркие, чтобы читаться кнопкой на тёмной странице */
|
|
70
|
+
--tao-color-success: var(--tao-green-400);
|
|
71
|
+
--tao-color-success-hover: var(--tao-green-500);
|
|
68
72
|
--tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 15%, transparent);
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
/* warning leans to orange: the amber accent keeps yellow, so the two are not mistaken for each other
|
|
74
|
+
warning уходит в апельсиновый: жёлтый остаётся янтарному акценту, и их не спутать */
|
|
75
|
+
--tao-color-warning: var(--tao-tangerine-400);
|
|
76
|
+
--tao-color-warning-hover: var(--tao-tangerine-500);
|
|
71
77
|
--tao-color-warning-subtle: color-mix(in srgb, var(--tao-color-warning) 15%, transparent);
|
|
72
|
-
--tao-color-info: var(--tao-blue-
|
|
73
|
-
--tao-color-info-hover: var(--tao-blue-
|
|
78
|
+
--tao-color-info: var(--tao-blue-300);
|
|
79
|
+
--tao-color-info-hover: var(--tao-blue-400);
|
|
74
80
|
--tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
|
|
75
81
|
|
|
76
82
|
/* Status colours as TEXT on the page / a raised surface (>= 4.5:1). The plain tokens above are for solid fills. */
|
|
@@ -78,11 +84,24 @@
|
|
|
78
84
|
--tao-color-danger-text-hover: color-mix(in srgb, var(--tao-color-danger-text) 85%, var(--tao-color-text-strong));
|
|
79
85
|
--tao-color-success-text: var(--tao-green-400);
|
|
80
86
|
--tao-color-success-text-hover: color-mix(in srgb, var(--tao-color-success-text) 85%, var(--tao-color-text-strong));
|
|
81
|
-
--tao-color-warning-text: var(--tao-
|
|
87
|
+
--tao-color-warning-text: var(--tao-tangerine-400);
|
|
82
88
|
--tao-color-warning-text-hover: color-mix(in srgb, var(--tao-color-warning-text) 85%, var(--tao-color-text-strong));
|
|
83
|
-
--tao-color-info-text: var(--tao-blue-
|
|
89
|
+
--tao-color-info-text: var(--tao-blue-300);
|
|
84
90
|
--tao-color-info-text-hover: color-mix(in srgb, var(--tao-color-info-text) 85%, var(--tao-color-text-strong));
|
|
85
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
|
+
|
|
86
105
|
/* ---------- Form controls ---------- */
|
|
87
106
|
--tao-color-input-bg: var(--tao-color-surface-sunken);
|
|
88
107
|
--tao-color-input-text: var(--tao-gray-200);
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
--tao-color-on-success: #ffffff;
|
|
58
58
|
--tao-color-on-warning: #ffffff;
|
|
59
59
|
--tao-color-on-info: #ffffff;
|
|
60
|
+
--tao-color-on-neutral: #ffffff;
|
|
60
61
|
--tao-color-success: var(--tao-green-700);
|
|
61
62
|
--tao-color-success-hover: color-mix(in srgb, var(--tao-green-700) 85%, #000000);
|
|
62
63
|
--tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 10%, transparent);
|
|
@@ -76,6 +77,20 @@
|
|
|
76
77
|
--tao-color-info-text: var(--tao-blue-700);
|
|
77
78
|
--tao-color-info-text-hover: color-mix(in srgb, var(--tao-color-info-text) 85%, var(--tao-color-text-strong));
|
|
78
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
|
+
|
|
79
94
|
--tao-color-input-bg: var(--tao-gray-0);
|
|
80
95
|
--tao-color-input-text: var(--tao-gray-950);
|
|
81
96
|
--tao-color-input-placeholder: var(--tao-gray-300);
|