@1337exp/taoui 5.1.0 → 5.1.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/CHANGELOG.md +329 -321
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/contexts/tone.css +3 -1
- package/src/styles/themes/dark.css +14 -8
- package/src/styles/themes/light.css +1 -0
- package/src/styles/tokens/primitives.css +7 -0
- package/src/styles/tokens/semantic.css +9 -9
package/package.json
CHANGED
|
@@ -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);
|
|
@@ -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,9 +84,9 @@
|
|
|
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
|
|
|
86
92
|
/* ---------- Form controls ---------- */
|
|
@@ -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);
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
--tao-orange-400: #ffb40b;
|
|
25
25
|
--tao-orange-500: #ff9500;
|
|
26
26
|
--tao-orange-600: #db8000;
|
|
27
|
+
/* the dark theme's warning: an orange clearly apart from the amber accent / warning тёмной темы: апельсиновый, отличный от янтарного акцента */
|
|
28
|
+
--tao-tangerine-400: #ff8f3d;
|
|
29
|
+
--tao-tangerine-500: #f07a2a;
|
|
27
30
|
|
|
28
31
|
/* Rose: the light theme's brand colour (from the original 666.io palette) */
|
|
29
32
|
--tao-pink-400: #dc4679;
|
|
@@ -46,6 +49,7 @@
|
|
|
46
49
|
--tao-yellow-600: #b8860b;
|
|
47
50
|
--tao-yellow-700: #8a6508;
|
|
48
51
|
|
|
52
|
+
--tao-blue-300: #82adff;
|
|
49
53
|
--tao-blue-400: #6b9cff;
|
|
50
54
|
--tao-blue-500: #4c82f7;
|
|
51
55
|
--tao-blue-600: #3b6de0;
|
|
@@ -152,6 +156,9 @@
|
|
|
152
156
|
--tao-z-confirm: 1200; /* above toasts: it asks for an answer */
|
|
153
157
|
|
|
154
158
|
/* ---------- Motion ---------- */
|
|
159
|
+
/* A hover state: short, so the change follows the pointer instead of trailing behind it.
|
|
160
|
+
Наведение: коротко, чтобы смена шла за указателем, а не тянулась за ним. */
|
|
161
|
+
--tao-duration-hover: 0.1s;
|
|
155
162
|
--tao-duration-fast: 0.15s;
|
|
156
163
|
--tao-duration-base: 0.2s;
|
|
157
164
|
--tao-duration-slow: 0.3s;
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
/* Colours, shadow, opacity and transform only: `all` would also animate size, padding and the glass backdrop.
|
|
22
22
|
Только цвета, тень, прозрачность и transform: `all` анимировал бы ещё размеры, отступы и размытие стекла. */
|
|
23
23
|
--tao-transition-base:
|
|
24
|
-
color var(--tao-duration-
|
|
25
|
-
background-color var(--tao-duration-
|
|
26
|
-
border-color var(--tao-duration-
|
|
27
|
-
outline-color var(--tao-duration-
|
|
28
|
-
box-shadow var(--tao-duration-
|
|
29
|
-
opacity var(--tao-duration-
|
|
30
|
-
transform var(--tao-duration-
|
|
31
|
-
fill var(--tao-duration-
|
|
32
|
-
stroke var(--tao-duration-
|
|
24
|
+
color var(--tao-duration-hover) var(--tao-ease-base),
|
|
25
|
+
background-color var(--tao-duration-hover) var(--tao-ease-base),
|
|
26
|
+
border-color var(--tao-duration-hover) var(--tao-ease-base),
|
|
27
|
+
outline-color var(--tao-duration-hover) var(--tao-ease-base),
|
|
28
|
+
box-shadow var(--tao-duration-hover) var(--tao-ease-base),
|
|
29
|
+
opacity var(--tao-duration-hover) var(--tao-ease-base),
|
|
30
|
+
transform var(--tao-duration-hover) var(--tao-ease-base),
|
|
31
|
+
fill var(--tao-duration-hover) var(--tao-ease-base),
|
|
32
|
+
stroke var(--tao-duration-hover) var(--tao-ease-base);
|
|
33
33
|
}
|