@1337exp/taoui 1.0.2 → 1.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/README.md +239 -12
- package/dist/index.cjs +4646 -410
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1937 -354
- package/dist/index.mjs +4648 -412
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +2549 -443
- package/package.json +1 -1
- package/src/styles/base.css +22 -0
- package/src/styles/primitives.css +8 -0
- package/src/styles/semantic.css +10 -1
- package/src/styles/themes/light.css +10 -1
- package/src/styles/variables.css +0 -77
package/package.json
CHANGED
package/src/styles/base.css
CHANGED
|
@@ -21,6 +21,16 @@ body {
|
|
|
21
21
|
color: var(--tao-color-text);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
::selection {
|
|
25
|
+
color: var(--tao-color-selection-text);
|
|
26
|
+
background-color: var(--tao-color-selection);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::-moz-selection {
|
|
30
|
+
color: var(--tao-color-selection-text);
|
|
31
|
+
background-color: var(--tao-color-selection);
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
/* Scrollbar */
|
|
25
35
|
::-webkit-scrollbar {
|
|
26
36
|
max-width: 5px;
|
|
@@ -57,3 +67,15 @@ input[type="number"]::-webkit-inner-spin-button {
|
|
|
57
67
|
input[type="number"] {
|
|
58
68
|
-moz-appearance: textfield !important;
|
|
59
69
|
}
|
|
70
|
+
|
|
71
|
+
.tao-sr-only {
|
|
72
|
+
position: absolute;
|
|
73
|
+
width: 1px;
|
|
74
|
+
height: 1px;
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin: -1px;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
clip: rect(0, 0, 0, 0);
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
border: 0;
|
|
81
|
+
}
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
--tao-green-500: #2ea85c;
|
|
34
34
|
--tao-green-600: #24924e;
|
|
35
35
|
|
|
36
|
+
--tao-yellow-400: #e8c547;
|
|
37
|
+
--tao-yellow-500: #d4a017;
|
|
38
|
+
--tao-yellow-600: #b8860b;
|
|
39
|
+
|
|
40
|
+
--tao-blue-400: #6b9cff;
|
|
41
|
+
--tao-blue-500: #4c82f7;
|
|
42
|
+
--tao-blue-600: #3b6de0;
|
|
43
|
+
|
|
36
44
|
/* ---------- Spacing scale (4px base) ---------- */
|
|
37
45
|
--tao-space-1: 4px;
|
|
38
46
|
--tao-space-2: 8px;
|
package/src/styles/semantic.css
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
--tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 8%, transparent);
|
|
19
19
|
--tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 14%, transparent);
|
|
20
20
|
--tao-color-on-accent: var(--tao-gray-950); /* текст поверх accent-фона */
|
|
21
|
+
--tao-color-text-on-accent: var(--tao-color-on-accent);
|
|
22
|
+
--tao-color-selection: var(--tao-color-accent);
|
|
23
|
+
--tao-color-selection-text: var(--tao-color-on-accent);
|
|
21
24
|
|
|
22
25
|
/* ---------- Surfaces ---------- */
|
|
23
26
|
--tao-color-bg: var(--tao-gray-900);
|
|
@@ -34,7 +37,6 @@
|
|
|
34
37
|
--tao-color-text: var(--tao-gray-200);
|
|
35
38
|
--tao-color-text-strong: var(--tao-gray-0);
|
|
36
39
|
--tao-color-text-muted: var(--tao-gray-400);
|
|
37
|
-
--tao-color-text-on-accent: var(--tao-gray-950);
|
|
38
40
|
--tao-color-text-disabled: var(--tao-gray-300);
|
|
39
41
|
|
|
40
42
|
/* ---------- Links ---------- */
|
|
@@ -49,6 +51,13 @@
|
|
|
49
51
|
--tao-color-danger-subtle: color-mix(in srgb, var(--tao-red-500) 15%, transparent);
|
|
50
52
|
--tao-color-success: var(--tao-green-500);
|
|
51
53
|
--tao-color-success-hover: var(--tao-green-600);
|
|
54
|
+
--tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 15%, transparent);
|
|
55
|
+
--tao-color-warning: var(--tao-yellow-500);
|
|
56
|
+
--tao-color-warning-hover: var(--tao-yellow-600);
|
|
57
|
+
--tao-color-warning-subtle: color-mix(in srgb, var(--tao-color-warning) 15%, transparent);
|
|
58
|
+
--tao-color-info: var(--tao-blue-400);
|
|
59
|
+
--tao-color-info-hover: var(--tao-blue-500);
|
|
60
|
+
--tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 15%, transparent);
|
|
52
61
|
|
|
53
62
|
/* ---------- Form controls ---------- */
|
|
54
63
|
--tao-color-input-bg: var(--tao-color-surface-sunken);
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
--tao-color-accent-subtle: color-mix(in srgb, var(--tao-color-accent) 10%, transparent);
|
|
17
17
|
--tao-color-accent-subtle-hover: color-mix(in srgb, var(--tao-color-accent) 16%, transparent);
|
|
18
18
|
--tao-color-on-accent: var(--tao-gray-0);
|
|
19
|
+
--tao-color-selection: var(--tao-color-accent);
|
|
20
|
+
--tao-color-selection-text: var(--tao-color-on-accent);
|
|
19
21
|
|
|
20
22
|
--tao-color-bg: var(--tao-gray-0);
|
|
21
23
|
--tao-color-surface: var(--tao-gray-0);
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
--tao-color-text: var(--tao-gray-700);
|
|
30
32
|
--tao-color-text-strong: var(--tao-gray-950);
|
|
31
33
|
--tao-color-text-muted: var(--tao-gray-400);
|
|
32
|
-
--tao-color-text-on-accent: var(--tao-
|
|
34
|
+
--tao-color-text-on-accent: var(--tao-color-on-accent);
|
|
33
35
|
--tao-color-text-disabled: var(--tao-gray-300);
|
|
34
36
|
|
|
35
37
|
--tao-color-link: var(--tao-orange-600);
|
|
@@ -40,6 +42,13 @@
|
|
|
40
42
|
--tao-color-danger-subtle: color-mix(in srgb, var(--tao-red-500) 10%, transparent);
|
|
41
43
|
--tao-color-success: var(--tao-green-500);
|
|
42
44
|
--tao-color-success-hover: var(--tao-green-600);
|
|
45
|
+
--tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 10%, transparent);
|
|
46
|
+
--tao-color-warning: var(--tao-yellow-600);
|
|
47
|
+
--tao-color-warning-hover: var(--tao-yellow-500);
|
|
48
|
+
--tao-color-warning-subtle: color-mix(in srgb, var(--tao-color-warning) 12%, transparent);
|
|
49
|
+
--tao-color-info: var(--tao-blue-500);
|
|
50
|
+
--tao-color-info-hover: var(--tao-blue-600);
|
|
51
|
+
--tao-color-info-subtle: color-mix(in srgb, var(--tao-color-info) 12%, transparent);
|
|
43
52
|
|
|
44
53
|
--tao-color-input-bg: var(--tao-gray-0);
|
|
45
54
|
--tao-color-input-text: var(--tao-gray-950);
|
package/src/styles/variables.css
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Primary Colors */
|
|
3
|
-
--tao-primary-color: #ffb40b;
|
|
4
|
-
--tao-primary-color-fill-1: #ff9500;
|
|
5
|
-
--tao-primary-color-fill-2: #ffc04a;
|
|
6
|
-
--tao-primary-color-background: rgba(255, 180, 11, 0.02);
|
|
7
|
-
--tao-primary-color-background-hover: rgba(255, 180, 11, 0.04);
|
|
8
|
-
--tao-primary-border-color: rgba(255, 180, 11, 0.04);
|
|
9
|
-
|
|
10
|
-
/* Secondary Colors */
|
|
11
|
-
--tao-secondary-color: rgb(32, 32, 32);
|
|
12
|
-
--tao-secondary-color-background: rgba(50, 50, 50, 0.2);
|
|
13
|
-
--tao-secondary-border-color: rgba(50, 50, 50, 0.4);
|
|
14
|
-
|
|
15
|
-
/* Text Colors */
|
|
16
|
-
--tao-link-color: #ffc04a;
|
|
17
|
-
--tao-text-color: #bfbfbf;
|
|
18
|
-
--tao-text-color-dark: #151515;
|
|
19
|
-
--tao-text-color-mark: #666666;
|
|
20
|
-
|
|
21
|
-
/* Input Colors */
|
|
22
|
-
--tao-input-color: #151515;
|
|
23
|
-
--tao-input-placeholder-color: #888888;
|
|
24
|
-
--tao-input-disabled-color: #999999;
|
|
25
|
-
--tao-input-disabled-bg: rgba(50, 50, 50, 0.1);
|
|
26
|
-
|
|
27
|
-
/* Shadows */
|
|
28
|
-
--tao-link-color-shadow: 0 0 1px rgba(255, 192, 74, 0.1), 0 0 6px rgba(255, 192, 74, 0.6);
|
|
29
|
-
|
|
30
|
-
/* Backgrounds */
|
|
31
|
-
--tao-background-img-light-grid: none;
|
|
32
|
-
--tao-background-img-dark-noise: #1a1a1a;
|
|
33
|
-
|
|
34
|
-
/* Scrollbar Styles */
|
|
35
|
-
::-webkit-scrollbar {
|
|
36
|
-
max-width: 5px;
|
|
37
|
-
max-height: 5px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
::-webkit-scrollbar-track {
|
|
41
|
-
background: transparent;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
::-webkit-scrollbar-thumb {
|
|
45
|
-
background: var(--tao-primary-color);
|
|
46
|
-
border-radius: 3px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Link Styling */
|
|
50
|
-
a {
|
|
51
|
-
color: var(--tao-link-color);
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
transition: color 0.2s ease;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
a:hover {
|
|
57
|
-
color: var(--tao-primary-color-fill-2);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Input Number Styling */
|
|
61
|
-
input[type=number]::-webkit-outer-spin-button,
|
|
62
|
-
input[type=number]::-webkit-inner-spin-button {
|
|
63
|
-
-webkit-appearance: none;
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input[type=number] {
|
|
68
|
-
-moz-appearance: textfield !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Body Reset */
|
|
72
|
-
html, body {
|
|
73
|
-
padding: 0;
|
|
74
|
-
margin: 0;
|
|
75
|
-
font-family: "Roboto", sans-serif;
|
|
76
|
-
}
|
|
77
|
-
}
|