@humu-tech/ui 0.1.26 → 0.2.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/README.md +258 -89
- package/dist/DateInput-HC45BUBP.css +105 -0
- package/dist/DateRangeInput-TBELV5TN.css +143 -0
- package/dist/Sidebar-RBBNUVDV.css +7 -0
- package/dist/index.d.mts +493 -57
- package/dist/index.d.ts +493 -57
- package/dist/index.js +5204 -2929
- package/dist/index.mjs +5214 -2913
- package/dist/tailwind-preset.js +122 -0
- package/dist/tailwind-preset.mjs +122 -0
- package/dist/tokens/colors.css +55 -55
- package/dist/tokens/elevation.css +10 -5
- package/dist/tokens/motion.css +23 -14
- package/dist/tokens/primitives.css +94 -0
- package/dist/tokens/primitives.d.mts +2 -0
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/semantic.css +166 -0
- package/dist/tokens/semantic.d.mts +2 -0
- package/dist/tokens/semantic.d.ts +2 -0
- package/dist/tokens/spacing.css +1 -17
- package/dist/tokens/surfaces.css +64 -98
- package/dist/tokens/typography.css +44 -23
- package/dist/tokens.css +10 -7
- package/package.json +40 -21
- package/dist/DateInput-ASNJQV43.css +0 -105
- package/dist/DateRangeInput-PC5F3TTS.css +0 -143
- package/dist/Sidebar-4ILVFQI5.css +0 -44
package/dist/tailwind-preset.js
CHANGED
|
@@ -24,11 +24,111 @@ __export(tailwind_preset_exports, {
|
|
|
24
24
|
default: () => tailwind_preset_default
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(tailwind_preset_exports);
|
|
27
|
+
var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
|
|
28
|
+
var primitiveScales = [
|
|
29
|
+
"grey",
|
|
30
|
+
"brand",
|
|
31
|
+
"turtle",
|
|
32
|
+
"purple",
|
|
33
|
+
"green",
|
|
34
|
+
"yellow",
|
|
35
|
+
"red",
|
|
36
|
+
"blue"
|
|
37
|
+
];
|
|
38
|
+
var primitiveSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
39
|
+
var statusTones = ["success", "warning", "error", "info", "turtle", "purple"];
|
|
40
|
+
var semanticTokens = [
|
|
41
|
+
...[
|
|
42
|
+
"default",
|
|
43
|
+
"inverse",
|
|
44
|
+
"base",
|
|
45
|
+
"surface",
|
|
46
|
+
"border",
|
|
47
|
+
"inactive",
|
|
48
|
+
"interaction-default",
|
|
49
|
+
"interaction-hover",
|
|
50
|
+
"interaction-hover-tabs",
|
|
51
|
+
"interaction-logo",
|
|
52
|
+
"brand-brand",
|
|
53
|
+
"brand-subtle",
|
|
54
|
+
"brand-hover",
|
|
55
|
+
"brand-inactive"
|
|
56
|
+
].map((name) => `background-${name}`),
|
|
57
|
+
...[
|
|
58
|
+
"title",
|
|
59
|
+
"subtitle",
|
|
60
|
+
"body-text",
|
|
61
|
+
"on-brand",
|
|
62
|
+
"on-brand-inactive",
|
|
63
|
+
"brand",
|
|
64
|
+
"inactive"
|
|
65
|
+
].map((name) => `content-${name}`),
|
|
66
|
+
...[
|
|
67
|
+
"default",
|
|
68
|
+
"brand",
|
|
69
|
+
"brand-subtle",
|
|
70
|
+
"success-subtle",
|
|
71
|
+
"warning-subtle",
|
|
72
|
+
"error-subtle",
|
|
73
|
+
"info-subtle",
|
|
74
|
+
"turtle",
|
|
75
|
+
"purple"
|
|
76
|
+
].map((name) => `border-${name}`),
|
|
77
|
+
...["background", "content", "hover"].flatMap((group) => [
|
|
78
|
+
`status-${group}-default`,
|
|
79
|
+
...group === "content" ? ["status-content-contrast"] : [],
|
|
80
|
+
...statusTones.map((tone) => `status-${group}-${tone}`),
|
|
81
|
+
...statusTones.map((tone) => `status-${group}-${tone}-subtle`)
|
|
82
|
+
]),
|
|
83
|
+
...[1, 2, 3, 4, 5, 6, 7, 8].map((index) => `chart-${index}`)
|
|
84
|
+
];
|
|
85
|
+
var humuTextStyles = Object.fromEntries(
|
|
86
|
+
[
|
|
87
|
+
"heading-x",
|
|
88
|
+
"heading-l",
|
|
89
|
+
"heading-xm",
|
|
90
|
+
"body-m",
|
|
91
|
+
"body-s",
|
|
92
|
+
"body-xs",
|
|
93
|
+
"body-xxs"
|
|
94
|
+
].map((style) => [
|
|
95
|
+
`humu-${style}`,
|
|
96
|
+
[
|
|
97
|
+
`var(--humu-${style}-font-size)`,
|
|
98
|
+
{
|
|
99
|
+
lineHeight: `var(--humu-${style}-line-height)`,
|
|
100
|
+
letterSpacing: `var(--humu-${style}-letter-spacing)`
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
])
|
|
104
|
+
);
|
|
105
|
+
var humuFontSizes = Object.fromEntries(
|
|
106
|
+
["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"].map(
|
|
107
|
+
(size) => [`humu-size-${size}`, `var(--humu-font-size-${size})`]
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
var humuColors = Object.fromEntries([
|
|
111
|
+
["humu-white", humuColor("color-white")],
|
|
112
|
+
["humu-black", humuColor("color-black")],
|
|
113
|
+
...primitiveScales.flatMap(
|
|
114
|
+
(scale) => primitiveSteps.map((step) => [
|
|
115
|
+
`humu-${scale}-${step}`,
|
|
116
|
+
humuColor(`color-${scale}-${step}`)
|
|
117
|
+
])
|
|
118
|
+
),
|
|
119
|
+
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)])
|
|
120
|
+
]);
|
|
27
121
|
var preset = {
|
|
28
122
|
darkMode: ["class"],
|
|
29
123
|
theme: {
|
|
30
124
|
extend: {
|
|
125
|
+
fontFamily: {
|
|
126
|
+
"humu-ibm-plex-sans": "var(--humu-font-family-ibm-plex-sans)",
|
|
127
|
+
"humu-inter": "var(--humu-font-family-inter)"
|
|
128
|
+
},
|
|
31
129
|
fontSize: {
|
|
130
|
+
...humuTextStyles,
|
|
131
|
+
...humuFontSizes,
|
|
32
132
|
"v2-xs": "var(--v2-font-size-xs)",
|
|
33
133
|
"v2-sm": "var(--v2-font-size-sm)",
|
|
34
134
|
"v2-base": "var(--v2-font-size-base)",
|
|
@@ -41,6 +141,11 @@ var preset = {
|
|
|
41
141
|
"v2-6xl": "var(--v2-font-size-6xl)"
|
|
42
142
|
},
|
|
43
143
|
colors: {
|
|
144
|
+
...humuColors,
|
|
145
|
+
"humu-auth-surface": "var(--humu-auth-surface)",
|
|
146
|
+
"humu-auth-footer": "var(--humu-auth-footer)",
|
|
147
|
+
"humu-auth-fg": "var(--humu-auth-fg)",
|
|
148
|
+
"humu-auth-fg-muted": "var(--humu-auth-fg-muted)",
|
|
44
149
|
"v2-app": "var(--v2-bg-app)",
|
|
45
150
|
"v2-shell": "var(--v2-bg-shell)",
|
|
46
151
|
"v2-canvas": "var(--v2-bg-canvas)",
|
|
@@ -104,6 +209,9 @@ var preset = {
|
|
|
104
209
|
"v2-chart-cat-8": "var(--v2-chart-cat-8)"
|
|
105
210
|
},
|
|
106
211
|
boxShadow: {
|
|
212
|
+
"humu-card": "var(--humu-shadow-card)",
|
|
213
|
+
"humu-dialog": "var(--humu-shadow-dialog)",
|
|
214
|
+
"humu-raised": "var(--humu-shadow-raised)",
|
|
107
215
|
"v2-1": "var(--v2-elevation-1)",
|
|
108
216
|
"v2-2": "var(--v2-elevation-2)",
|
|
109
217
|
"v2-3": "var(--v2-elevation-3)",
|
|
@@ -111,6 +219,12 @@ var preset = {
|
|
|
111
219
|
"v2-drawer": "var(--v2-elevation-drawer)"
|
|
112
220
|
},
|
|
113
221
|
borderRadius: {
|
|
222
|
+
"humu-none": "var(--radius-none)",
|
|
223
|
+
"humu-sm": "var(--radius-sm)",
|
|
224
|
+
"humu-md": "var(--radius-md)",
|
|
225
|
+
"humu-lg": "var(--radius-lg)",
|
|
226
|
+
"humu-xl": "var(--radius-xl)",
|
|
227
|
+
"humu-pill": "var(--radius-pill)",
|
|
114
228
|
"v2-none": "var(--radius-none)",
|
|
115
229
|
"v2-sm": "var(--radius-sm)",
|
|
116
230
|
"v2-md": "var(--radius-md)",
|
|
@@ -119,6 +233,11 @@ var preset = {
|
|
|
119
233
|
"v2-pill": "var(--radius-pill)"
|
|
120
234
|
},
|
|
121
235
|
transitionDuration: {
|
|
236
|
+
"humu-instant": "var(--humu-duration-instant)",
|
|
237
|
+
"humu-fast": "var(--humu-duration-fast)",
|
|
238
|
+
"humu-normal": "var(--humu-duration-normal)",
|
|
239
|
+
"humu-slow": "var(--humu-duration-slow)",
|
|
240
|
+
"humu-slower": "var(--humu-duration-slower)",
|
|
122
241
|
"v2-instant": "var(--v2-duration-instant)",
|
|
123
242
|
"v2-fast": "var(--v2-duration-fast)",
|
|
124
243
|
"v2-normal": "var(--v2-duration-normal)",
|
|
@@ -126,6 +245,9 @@ var preset = {
|
|
|
126
245
|
"v2-slower": "var(--v2-duration-slower)"
|
|
127
246
|
},
|
|
128
247
|
transitionTimingFunction: {
|
|
248
|
+
"humu-out": "var(--humu-easing-out)",
|
|
249
|
+
"humu-in-out": "var(--humu-easing-in-out)",
|
|
250
|
+
"humu-spring": "var(--humu-easing-spring)",
|
|
129
251
|
"v2-out": "var(--v2-easing-out)",
|
|
130
252
|
"v2-in-out": "var(--v2-easing-in-out)",
|
|
131
253
|
"v2-spring": "var(--v2-easing-spring)"
|
package/dist/tailwind-preset.mjs
CHANGED
|
@@ -1,11 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// tailwind-preset.ts
|
|
4
|
+
var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
|
|
5
|
+
var primitiveScales = [
|
|
6
|
+
"grey",
|
|
7
|
+
"brand",
|
|
8
|
+
"turtle",
|
|
9
|
+
"purple",
|
|
10
|
+
"green",
|
|
11
|
+
"yellow",
|
|
12
|
+
"red",
|
|
13
|
+
"blue"
|
|
14
|
+
];
|
|
15
|
+
var primitiveSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
16
|
+
var statusTones = ["success", "warning", "error", "info", "turtle", "purple"];
|
|
17
|
+
var semanticTokens = [
|
|
18
|
+
...[
|
|
19
|
+
"default",
|
|
20
|
+
"inverse",
|
|
21
|
+
"base",
|
|
22
|
+
"surface",
|
|
23
|
+
"border",
|
|
24
|
+
"inactive",
|
|
25
|
+
"interaction-default",
|
|
26
|
+
"interaction-hover",
|
|
27
|
+
"interaction-hover-tabs",
|
|
28
|
+
"interaction-logo",
|
|
29
|
+
"brand-brand",
|
|
30
|
+
"brand-subtle",
|
|
31
|
+
"brand-hover",
|
|
32
|
+
"brand-inactive"
|
|
33
|
+
].map((name) => `background-${name}`),
|
|
34
|
+
...[
|
|
35
|
+
"title",
|
|
36
|
+
"subtitle",
|
|
37
|
+
"body-text",
|
|
38
|
+
"on-brand",
|
|
39
|
+
"on-brand-inactive",
|
|
40
|
+
"brand",
|
|
41
|
+
"inactive"
|
|
42
|
+
].map((name) => `content-${name}`),
|
|
43
|
+
...[
|
|
44
|
+
"default",
|
|
45
|
+
"brand",
|
|
46
|
+
"brand-subtle",
|
|
47
|
+
"success-subtle",
|
|
48
|
+
"warning-subtle",
|
|
49
|
+
"error-subtle",
|
|
50
|
+
"info-subtle",
|
|
51
|
+
"turtle",
|
|
52
|
+
"purple"
|
|
53
|
+
].map((name) => `border-${name}`),
|
|
54
|
+
...["background", "content", "hover"].flatMap((group) => [
|
|
55
|
+
`status-${group}-default`,
|
|
56
|
+
...group === "content" ? ["status-content-contrast"] : [],
|
|
57
|
+
...statusTones.map((tone) => `status-${group}-${tone}`),
|
|
58
|
+
...statusTones.map((tone) => `status-${group}-${tone}-subtle`)
|
|
59
|
+
]),
|
|
60
|
+
...[1, 2, 3, 4, 5, 6, 7, 8].map((index) => `chart-${index}`)
|
|
61
|
+
];
|
|
62
|
+
var humuTextStyles = Object.fromEntries(
|
|
63
|
+
[
|
|
64
|
+
"heading-x",
|
|
65
|
+
"heading-l",
|
|
66
|
+
"heading-xm",
|
|
67
|
+
"body-m",
|
|
68
|
+
"body-s",
|
|
69
|
+
"body-xs",
|
|
70
|
+
"body-xxs"
|
|
71
|
+
].map((style) => [
|
|
72
|
+
`humu-${style}`,
|
|
73
|
+
[
|
|
74
|
+
`var(--humu-${style}-font-size)`,
|
|
75
|
+
{
|
|
76
|
+
lineHeight: `var(--humu-${style}-line-height)`,
|
|
77
|
+
letterSpacing: `var(--humu-${style}-letter-spacing)`
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
])
|
|
81
|
+
);
|
|
82
|
+
var humuFontSizes = Object.fromEntries(
|
|
83
|
+
["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"].map(
|
|
84
|
+
(size) => [`humu-size-${size}`, `var(--humu-font-size-${size})`]
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
var humuColors = Object.fromEntries([
|
|
88
|
+
["humu-white", humuColor("color-white")],
|
|
89
|
+
["humu-black", humuColor("color-black")],
|
|
90
|
+
...primitiveScales.flatMap(
|
|
91
|
+
(scale) => primitiveSteps.map((step) => [
|
|
92
|
+
`humu-${scale}-${step}`,
|
|
93
|
+
humuColor(`color-${scale}-${step}`)
|
|
94
|
+
])
|
|
95
|
+
),
|
|
96
|
+
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)])
|
|
97
|
+
]);
|
|
4
98
|
var preset = {
|
|
5
99
|
darkMode: ["class"],
|
|
6
100
|
theme: {
|
|
7
101
|
extend: {
|
|
102
|
+
fontFamily: {
|
|
103
|
+
"humu-ibm-plex-sans": "var(--humu-font-family-ibm-plex-sans)",
|
|
104
|
+
"humu-inter": "var(--humu-font-family-inter)"
|
|
105
|
+
},
|
|
8
106
|
fontSize: {
|
|
107
|
+
...humuTextStyles,
|
|
108
|
+
...humuFontSizes,
|
|
9
109
|
"v2-xs": "var(--v2-font-size-xs)",
|
|
10
110
|
"v2-sm": "var(--v2-font-size-sm)",
|
|
11
111
|
"v2-base": "var(--v2-font-size-base)",
|
|
@@ -18,6 +118,11 @@ var preset = {
|
|
|
18
118
|
"v2-6xl": "var(--v2-font-size-6xl)"
|
|
19
119
|
},
|
|
20
120
|
colors: {
|
|
121
|
+
...humuColors,
|
|
122
|
+
"humu-auth-surface": "var(--humu-auth-surface)",
|
|
123
|
+
"humu-auth-footer": "var(--humu-auth-footer)",
|
|
124
|
+
"humu-auth-fg": "var(--humu-auth-fg)",
|
|
125
|
+
"humu-auth-fg-muted": "var(--humu-auth-fg-muted)",
|
|
21
126
|
"v2-app": "var(--v2-bg-app)",
|
|
22
127
|
"v2-shell": "var(--v2-bg-shell)",
|
|
23
128
|
"v2-canvas": "var(--v2-bg-canvas)",
|
|
@@ -81,6 +186,9 @@ var preset = {
|
|
|
81
186
|
"v2-chart-cat-8": "var(--v2-chart-cat-8)"
|
|
82
187
|
},
|
|
83
188
|
boxShadow: {
|
|
189
|
+
"humu-card": "var(--humu-shadow-card)",
|
|
190
|
+
"humu-dialog": "var(--humu-shadow-dialog)",
|
|
191
|
+
"humu-raised": "var(--humu-shadow-raised)",
|
|
84
192
|
"v2-1": "var(--v2-elevation-1)",
|
|
85
193
|
"v2-2": "var(--v2-elevation-2)",
|
|
86
194
|
"v2-3": "var(--v2-elevation-3)",
|
|
@@ -88,6 +196,12 @@ var preset = {
|
|
|
88
196
|
"v2-drawer": "var(--v2-elevation-drawer)"
|
|
89
197
|
},
|
|
90
198
|
borderRadius: {
|
|
199
|
+
"humu-none": "var(--radius-none)",
|
|
200
|
+
"humu-sm": "var(--radius-sm)",
|
|
201
|
+
"humu-md": "var(--radius-md)",
|
|
202
|
+
"humu-lg": "var(--radius-lg)",
|
|
203
|
+
"humu-xl": "var(--radius-xl)",
|
|
204
|
+
"humu-pill": "var(--radius-pill)",
|
|
91
205
|
"v2-none": "var(--radius-none)",
|
|
92
206
|
"v2-sm": "var(--radius-sm)",
|
|
93
207
|
"v2-md": "var(--radius-md)",
|
|
@@ -96,6 +210,11 @@ var preset = {
|
|
|
96
210
|
"v2-pill": "var(--radius-pill)"
|
|
97
211
|
},
|
|
98
212
|
transitionDuration: {
|
|
213
|
+
"humu-instant": "var(--humu-duration-instant)",
|
|
214
|
+
"humu-fast": "var(--humu-duration-fast)",
|
|
215
|
+
"humu-normal": "var(--humu-duration-normal)",
|
|
216
|
+
"humu-slow": "var(--humu-duration-slow)",
|
|
217
|
+
"humu-slower": "var(--humu-duration-slower)",
|
|
99
218
|
"v2-instant": "var(--v2-duration-instant)",
|
|
100
219
|
"v2-fast": "var(--v2-duration-fast)",
|
|
101
220
|
"v2-normal": "var(--v2-duration-normal)",
|
|
@@ -103,6 +222,9 @@ var preset = {
|
|
|
103
222
|
"v2-slower": "var(--v2-duration-slower)"
|
|
104
223
|
},
|
|
105
224
|
transitionTimingFunction: {
|
|
225
|
+
"humu-out": "var(--humu-easing-out)",
|
|
226
|
+
"humu-in-out": "var(--humu-easing-in-out)",
|
|
227
|
+
"humu-spring": "var(--humu-easing-spring)",
|
|
106
228
|
"v2-out": "var(--v2-easing-out)",
|
|
107
229
|
"v2-in-out": "var(--v2-easing-in-out)",
|
|
108
230
|
"v2-spring": "var(--v2-easing-spring)"
|
package/dist/tokens/colors.css
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer humu {
|
|
2
2
|
:root {
|
|
3
|
-
--v2-color-lime-50:
|
|
4
|
-
--v2-color-lime-100:
|
|
5
|
-
--v2-color-lime-200:
|
|
6
|
-
--v2-color-lime-300:
|
|
7
|
-
--v2-color-lime-400:
|
|
8
|
-
--v2-color-lime-500:
|
|
9
|
-
--v2-color-lime-600:
|
|
10
|
-
--v2-color-lime-700:
|
|
11
|
-
--v2-color-lime-800:
|
|
12
|
-
--v2-color-lime-900:
|
|
3
|
+
--v2-color-lime-50: var(--humu-color-brand-50);
|
|
4
|
+
--v2-color-lime-100: var(--humu-color-brand-100);
|
|
5
|
+
--v2-color-lime-200: var(--humu-color-brand-200);
|
|
6
|
+
--v2-color-lime-300: var(--humu-color-brand-300);
|
|
7
|
+
--v2-color-lime-400: var(--humu-color-brand-400);
|
|
8
|
+
--v2-color-lime-500: var(--humu-color-brand-500);
|
|
9
|
+
--v2-color-lime-600: var(--humu-color-brand-600);
|
|
10
|
+
--v2-color-lime-700: var(--humu-color-brand-700);
|
|
11
|
+
--v2-color-lime-800: var(--humu-color-brand-800);
|
|
12
|
+
--v2-color-lime-900: var(--humu-color-brand-900);
|
|
13
13
|
|
|
14
|
-
--v2-color-neutral-50:
|
|
15
|
-
--v2-color-neutral-100:
|
|
16
|
-
--v2-color-neutral-200:
|
|
17
|
-
--v2-color-neutral-300:
|
|
18
|
-
--v2-color-neutral-400:
|
|
19
|
-
--v2-color-neutral-500:
|
|
20
|
-
--v2-color-neutral-600:
|
|
21
|
-
--v2-color-neutral-700:
|
|
22
|
-
--v2-color-neutral-800:
|
|
23
|
-
--v2-color-neutral-900:
|
|
24
|
-
--v2-color-neutral-950:
|
|
14
|
+
--v2-color-neutral-50: var(--humu-color-grey-50);
|
|
15
|
+
--v2-color-neutral-100: var(--humu-color-grey-100);
|
|
16
|
+
--v2-color-neutral-200: var(--humu-color-grey-200);
|
|
17
|
+
--v2-color-neutral-300: var(--humu-color-grey-300);
|
|
18
|
+
--v2-color-neutral-400: var(--humu-color-grey-400);
|
|
19
|
+
--v2-color-neutral-500: var(--humu-color-grey-500);
|
|
20
|
+
--v2-color-neutral-600: var(--humu-color-grey-600);
|
|
21
|
+
--v2-color-neutral-700: var(--humu-color-grey-700);
|
|
22
|
+
--v2-color-neutral-800: var(--humu-color-grey-800);
|
|
23
|
+
--v2-color-neutral-900: var(--humu-color-grey-900);
|
|
24
|
+
--v2-color-neutral-950: var(--humu-color-grey-950);
|
|
25
25
|
|
|
26
|
-
--v2-color-success-50:
|
|
27
|
-
--v2-color-success-100:
|
|
28
|
-
--v2-color-success-500:
|
|
29
|
-
--v2-color-success-600:
|
|
30
|
-
--v2-color-success-700:
|
|
26
|
+
--v2-color-success-50: var(--humu-color-green-50);
|
|
27
|
+
--v2-color-success-100: var(--humu-color-green-100);
|
|
28
|
+
--v2-color-success-500: var(--humu-color-green-500);
|
|
29
|
+
--v2-color-success-600: var(--humu-color-green-600);
|
|
30
|
+
--v2-color-success-700: var(--humu-color-green-700);
|
|
31
31
|
|
|
32
|
-
--v2-color-warn-50:
|
|
33
|
-
--v2-color-warn-100:
|
|
34
|
-
--v2-color-warn-500:
|
|
35
|
-
--v2-color-warn-600:
|
|
36
|
-
--v2-color-warn-700:
|
|
32
|
+
--v2-color-warn-50: var(--humu-color-yellow-50);
|
|
33
|
+
--v2-color-warn-100: var(--humu-color-yellow-100);
|
|
34
|
+
--v2-color-warn-500: var(--humu-color-yellow-500);
|
|
35
|
+
--v2-color-warn-600: var(--humu-color-yellow-600);
|
|
36
|
+
--v2-color-warn-700: var(--humu-color-yellow-700);
|
|
37
37
|
|
|
38
|
-
--v2-color-danger-50:
|
|
39
|
-
--v2-color-danger-100:
|
|
40
|
-
--v2-color-danger-500:
|
|
41
|
-
--v2-color-danger-600:
|
|
42
|
-
--v2-color-danger-700:
|
|
38
|
+
--v2-color-danger-50: var(--humu-color-red-50);
|
|
39
|
+
--v2-color-danger-100: var(--humu-color-red-100);
|
|
40
|
+
--v2-color-danger-500: var(--humu-color-red-500);
|
|
41
|
+
--v2-color-danger-600: var(--humu-color-red-600);
|
|
42
|
+
--v2-color-danger-700: var(--humu-color-red-700);
|
|
43
43
|
|
|
44
|
-
--v2-color-info-50:
|
|
45
|
-
--v2-color-info-100:
|
|
46
|
-
--v2-color-info-500:
|
|
47
|
-
--v2-color-info-600:
|
|
48
|
-
--v2-color-info-700:
|
|
44
|
+
--v2-color-info-50: var(--humu-color-blue-50);
|
|
45
|
+
--v2-color-info-100: var(--humu-color-blue-100);
|
|
46
|
+
--v2-color-info-500: var(--humu-color-blue-500);
|
|
47
|
+
--v2-color-info-600: var(--humu-color-blue-600);
|
|
48
|
+
--v2-color-info-700: var(--humu-color-blue-700);
|
|
49
49
|
|
|
50
|
-
--v2-color-purple-50:
|
|
51
|
-
--v2-color-purple-100:
|
|
52
|
-
--v2-color-purple-500:
|
|
53
|
-
--v2-color-purple-600:
|
|
54
|
-
--v2-color-purple-700:
|
|
50
|
+
--v2-color-purple-50: var(--humu-color-purple-50);
|
|
51
|
+
--v2-color-purple-100: var(--humu-color-purple-100);
|
|
52
|
+
--v2-color-purple-500: var(--humu-color-purple-500);
|
|
53
|
+
--v2-color-purple-600: var(--humu-color-purple-600);
|
|
54
|
+
--v2-color-purple-700: var(--humu-color-purple-700);
|
|
55
55
|
|
|
56
|
-
--v2-chart-cat-1:
|
|
57
|
-
--v2-chart-cat-2:
|
|
58
|
-
--v2-chart-cat-3:
|
|
59
|
-
--v2-chart-cat-4:
|
|
60
|
-
--v2-chart-cat-5:
|
|
61
|
-
--v2-chart-cat-6:
|
|
62
|
-
--v2-chart-cat-7:
|
|
63
|
-
--v2-chart-cat-8:
|
|
56
|
+
--v2-chart-cat-1: var(--humu-chart-1);
|
|
57
|
+
--v2-chart-cat-2: var(--humu-chart-2);
|
|
58
|
+
--v2-chart-cat-3: var(--humu-chart-3);
|
|
59
|
+
--v2-chart-cat-4: var(--humu-chart-4);
|
|
60
|
+
--v2-chart-cat-5: var(--humu-chart-5);
|
|
61
|
+
--v2-chart-cat-6: var(--humu-chart-6);
|
|
62
|
+
--v2-chart-cat-7: var(--humu-chart-7);
|
|
63
|
+
--v2-chart-cat-8: var(--humu-chart-8);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer humu {
|
|
2
2
|
:root {
|
|
3
|
-
--
|
|
3
|
+
--humu-shadow-card: 0 2px 4px rgb(10 10 10 / 0.1);
|
|
4
|
+
--humu-shadow-dialog: 0 4px 20px rgb(10 10 10 / 0.1);
|
|
5
|
+
--humu-shadow-raised: 0 1px 2px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.10);
|
|
6
|
+
|
|
4
7
|
--v2-elevation-1: 0 1px 0 oklch(0 0 0 / 0.04);
|
|
5
|
-
--v2-elevation-2:
|
|
8
|
+
--v2-elevation-2: var(--humu-shadow-raised);
|
|
6
9
|
--v2-elevation-3: 0 4px 6px oklch(0 0 0 / 0.07), 0 10px 15px oklch(0 0 0 / 0.10);
|
|
7
10
|
--v2-elevation-4: 0 10px 25px oklch(0 0 0 / 0.10), 0 20px 40px oklch(0 0 0 / 0.15);
|
|
8
11
|
--v2-elevation-drawer: -16px 0 48px oklch(0 0 0 / 0.12), 0 -4px 16px oklch(0 0 0 / 0.04);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
:root[data-theme="dark"], :root.dark {
|
|
14
|
+
:root[data-theme="dark"], :root.dark, [data-theme="dark"] {
|
|
15
|
+
--humu-shadow-raised: 0 0 0 1px oklch(1 0 0 / 0.08);
|
|
16
|
+
|
|
12
17
|
--v2-elevation-1: 0 0 0 1px oklch(1 0 0 / 0.06);
|
|
13
|
-
--v2-elevation-2:
|
|
18
|
+
--v2-elevation-2: var(--humu-shadow-raised);
|
|
14
19
|
--v2-elevation-3: 0 0 0 1px oklch(1 0 0 / 0.10);
|
|
15
20
|
--v2-elevation-4: 0 0 0 1px oklch(1 0 0 / 0.12);
|
|
16
21
|
--v2-elevation-drawer: 0 0 0 1px oklch(1 0 0 / 0.10), -16px 0 48px oklch(0 0 0 / 0.40);
|
package/dist/tokens/motion.css
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer humu {
|
|
2
2
|
:root {
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
3
|
+
--humu-duration-instant: 100ms;
|
|
4
|
+
--humu-duration-fast: 120ms;
|
|
5
|
+
--humu-duration-normal: 200ms;
|
|
6
|
+
--humu-duration-slow: 320ms;
|
|
7
|
+
--humu-duration-slower: 400ms;
|
|
8
|
+
--humu-easing-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
9
|
+
--humu-easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
10
|
+
--humu-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
11
|
+
|
|
12
|
+
--v2-duration-instant: var(--humu-duration-instant);
|
|
13
|
+
--v2-duration-fast: var(--humu-duration-fast);
|
|
14
|
+
--v2-duration-normal: var(--humu-duration-normal);
|
|
15
|
+
--v2-duration-slow: var(--humu-duration-slow);
|
|
16
|
+
--v2-duration-slower: var(--humu-duration-slower);
|
|
17
|
+
--v2-easing-out: var(--humu-easing-out);
|
|
18
|
+
--v2-easing-in-out: var(--humu-easing-in-out);
|
|
19
|
+
--v2-easing-spring: var(--humu-easing-spring);
|
|
11
20
|
}
|
|
12
21
|
|
|
13
22
|
@media (prefers-reduced-motion: reduce) {
|
|
14
23
|
:root {
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
24
|
+
--humu-duration-instant: 0ms;
|
|
25
|
+
--humu-duration-fast: 0ms;
|
|
26
|
+
--humu-duration-normal: 0ms;
|
|
27
|
+
--humu-duration-slow: 0ms;
|
|
28
|
+
--humu-duration-slower: 0ms;
|
|
20
29
|
}
|
|
21
30
|
}
|
|
22
31
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@layer humu {
|
|
2
|
+
:root {
|
|
3
|
+
--humu-color-grey-50: #fafafa;
|
|
4
|
+
--humu-color-grey-100: #f5f5f5;
|
|
5
|
+
--humu-color-grey-200: #e6e7e5;
|
|
6
|
+
--humu-color-grey-300: #bbbeb8;
|
|
7
|
+
--humu-color-grey-400: #8d9288;
|
|
8
|
+
--humu-color-grey-500: #72776d;
|
|
9
|
+
--humu-color-grey-600: #535650;
|
|
10
|
+
--humu-color-grey-700: #40433d;
|
|
11
|
+
--humu-color-grey-800: #272a24;
|
|
12
|
+
--humu-color-grey-900: #1a1c18;
|
|
13
|
+
--humu-color-grey-950: #0a0b09;
|
|
14
|
+
--humu-color-white: #ffffff;
|
|
15
|
+
--humu-color-black: #000000;
|
|
16
|
+
--humu-color-brand-50: #f8fbeb;
|
|
17
|
+
--humu-color-brand-100: #edf7cd;
|
|
18
|
+
--humu-color-brand-200: #deefa0;
|
|
19
|
+
--humu-color-brand-300: #cbe469;
|
|
20
|
+
--humu-color-brand-400: #bad83d;
|
|
21
|
+
--humu-color-brand-500: #abc928;
|
|
22
|
+
--humu-color-brand-600: #8da21d;
|
|
23
|
+
--humu-color-brand-700: #737f1a;
|
|
24
|
+
--humu-color-brand-800: #60671c;
|
|
25
|
+
--humu-color-brand-900: #55591c;
|
|
26
|
+
--humu-color-brand-950: #2f320c;
|
|
27
|
+
--humu-color-turtle-50: #f2fbfb;
|
|
28
|
+
--humu-color-turtle-100: #ddf8f9;
|
|
29
|
+
--humu-color-turtle-200: #c9f2f5;
|
|
30
|
+
--humu-color-turtle-300: #b3eaed;
|
|
31
|
+
--humu-color-turtle-400: #88d7dd;
|
|
32
|
+
--humu-color-turtle-500: #00acb5;
|
|
33
|
+
--humu-color-turtle-600: #088c96;
|
|
34
|
+
--humu-color-turtle-700: #10707a;
|
|
35
|
+
--humu-color-turtle-800: #125c67;
|
|
36
|
+
--humu-color-turtle-900: #053e47;
|
|
37
|
+
--humu-color-turtle-950: #03262b;
|
|
38
|
+
--humu-color-purple-50: #faf5ff;
|
|
39
|
+
--humu-color-purple-100: #f3e8ff;
|
|
40
|
+
--humu-color-purple-200: #e9d4ff;
|
|
41
|
+
--humu-color-purple-300: #dab2ff;
|
|
42
|
+
--humu-color-purple-400: #c27aff;
|
|
43
|
+
--humu-color-purple-500: #ad46ff;
|
|
44
|
+
--humu-color-purple-600: #9810fa;
|
|
45
|
+
--humu-color-purple-700: #8200db;
|
|
46
|
+
--humu-color-purple-800: #6e11b0;
|
|
47
|
+
--humu-color-purple-900: #59168b;
|
|
48
|
+
--humu-color-purple-950: #3c0366;
|
|
49
|
+
--humu-color-green-50: #f3fcf6;
|
|
50
|
+
--humu-color-green-100: #e2f9eb;
|
|
51
|
+
--humu-color-green-200: #cff4de;
|
|
52
|
+
--humu-color-green-300: #b8edcf;
|
|
53
|
+
--humu-color-green-400: #9ae3bb;
|
|
54
|
+
--humu-color-green-500: #00c983;
|
|
55
|
+
--humu-color-green-600: #00a46e;
|
|
56
|
+
--humu-color-green-700: #00835c;
|
|
57
|
+
--humu-color-green-800: #006748;
|
|
58
|
+
--humu-color-green-900: #00553d;
|
|
59
|
+
--humu-color-green-950: #003024;
|
|
60
|
+
--humu-color-yellow-50: #fff8e4;
|
|
61
|
+
--humu-color-yellow-100: #feefd0;
|
|
62
|
+
--humu-color-yellow-200: #fde6b7;
|
|
63
|
+
--humu-color-yellow-300: #f8da9c;
|
|
64
|
+
--humu-color-yellow-400: #edc166;
|
|
65
|
+
--humu-color-yellow-500: #e3ab12;
|
|
66
|
+
--humu-color-yellow-600: #c9880a;
|
|
67
|
+
--humu-color-yellow-700: #9a5d0e;
|
|
68
|
+
--humu-color-yellow-800: #804a13;
|
|
69
|
+
--humu-color-yellow-900: #6d3d16;
|
|
70
|
+
--humu-color-yellow-950: #3f1f09;
|
|
71
|
+
--humu-color-red-50: #fff8f7;
|
|
72
|
+
--humu-color-red-100: #ffebe7;
|
|
73
|
+
--humu-color-red-200: #ffccc3;
|
|
74
|
+
--humu-color-red-300: #ffac9e;
|
|
75
|
+
--humu-color-red-400: #f88777;
|
|
76
|
+
--humu-color-red-500: #f7493c;
|
|
77
|
+
--humu-color-red-600: #e52b1d;
|
|
78
|
+
--humu-color-red-700: #c02115;
|
|
79
|
+
--humu-color-red-800: #9f1f15;
|
|
80
|
+
--humu-color-red-900: #842018;
|
|
81
|
+
--humu-color-red-950: #480c07;
|
|
82
|
+
--humu-color-blue-50: #eff8ff;
|
|
83
|
+
--humu-color-blue-100: #daeeff;
|
|
84
|
+
--humu-color-blue-200: #bee2ff;
|
|
85
|
+
--humu-color-blue-300: #91d0ff;
|
|
86
|
+
--humu-color-blue-400: #5db5fd;
|
|
87
|
+
--humu-color-blue-500: #3795fa;
|
|
88
|
+
--humu-color-blue-600: #2177ef;
|
|
89
|
+
--humu-color-blue-700: #1960dc;
|
|
90
|
+
--humu-color-blue-800: #1b4eb2;
|
|
91
|
+
--humu-color-blue-900: #1c458c;
|
|
92
|
+
--humu-color-blue-950: #162b55;
|
|
93
|
+
}
|
|
94
|
+
}
|