@humu-tech/ui 0.1.26 → 0.3.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.
@@ -1,8 +1,10 @@
1
1
  "use client";
2
2
  "use strict";
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all)
@@ -16,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
16
18
  }
17
19
  return to;
18
20
  };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
19
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
30
 
21
31
  // tailwind-preset.ts
@@ -24,11 +34,114 @@ __export(tailwind_preset_exports, {
24
34
  default: () => tailwind_preset_default
25
35
  });
26
36
  module.exports = __toCommonJS(tailwind_preset_exports);
37
+ var import_tailwindcss_animate = __toESM(require("tailwindcss-animate"));
38
+ var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
39
+ var primitiveScales = [
40
+ "grey",
41
+ "brand",
42
+ "turtle",
43
+ "purple",
44
+ "green",
45
+ "yellow",
46
+ "red",
47
+ "blue"
48
+ ];
49
+ var primitiveSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
50
+ var statusTones = ["success", "warning", "error", "info", "turtle", "purple"];
51
+ var semanticTokens = [
52
+ ...[
53
+ "default",
54
+ "inverse",
55
+ "base",
56
+ "surface",
57
+ "border",
58
+ "inactive",
59
+ "interaction-default",
60
+ "interaction-hover",
61
+ "interaction-hover-tabs",
62
+ "interaction-logo",
63
+ "brand-brand",
64
+ "brand-subtle",
65
+ "brand-hover",
66
+ "brand-inactive"
67
+ ].map((name) => `background-${name}`),
68
+ ...[
69
+ "title",
70
+ "subtitle",
71
+ "body-text",
72
+ "on-brand",
73
+ "on-brand-inactive",
74
+ "brand",
75
+ "brand-strong",
76
+ "inactive"
77
+ ].map((name) => `content-${name}`),
78
+ ...[
79
+ "default",
80
+ "brand",
81
+ "brand-subtle",
82
+ "success-subtle",
83
+ "warning-subtle",
84
+ "error-subtle",
85
+ "info-subtle",
86
+ "turtle",
87
+ "purple"
88
+ ].map((name) => `border-${name}`),
89
+ ...["background", "content", "hover"].flatMap((group) => [
90
+ `status-${group}-default`,
91
+ ...group === "content" ? ["status-content-contrast"] : [],
92
+ ...statusTones.map((tone) => `status-${group}-${tone}`),
93
+ ...statusTones.map((tone) => `status-${group}-${tone}-subtle`)
94
+ ]),
95
+ ...[1, 2, 3, 4, 5, 6, 7, 8].map((index) => `chart-${index}`)
96
+ ];
97
+ var humuTextStyles = Object.fromEntries(
98
+ [
99
+ "heading-x",
100
+ "heading-l",
101
+ "heading-xm",
102
+ "body-m",
103
+ "body-s",
104
+ "body-xs",
105
+ "body-xxs"
106
+ ].map((style) => [
107
+ `humu-${style}`,
108
+ [
109
+ `var(--humu-${style}-font-size)`,
110
+ {
111
+ lineHeight: `var(--humu-${style}-line-height)`,
112
+ letterSpacing: `var(--humu-${style}-letter-spacing)`
113
+ }
114
+ ]
115
+ ])
116
+ );
117
+ var humuFontSizes = Object.fromEntries(
118
+ ["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"].map(
119
+ (size) => [`humu-size-${size}`, `var(--humu-font-size-${size})`]
120
+ )
121
+ );
122
+ var humuColors = Object.fromEntries([
123
+ ["humu-white", humuColor("color-white")],
124
+ ["humu-black", humuColor("color-black")],
125
+ ...primitiveScales.flatMap(
126
+ (scale) => primitiveSteps.map((step) => [
127
+ `humu-${scale}-${step}`,
128
+ humuColor(`color-${scale}-${step}`)
129
+ ])
130
+ ),
131
+ ...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)]),
132
+ ["humu-focus", humuColor("focus-ring")]
133
+ ]);
27
134
  var preset = {
28
135
  darkMode: ["class"],
29
136
  theme: {
30
137
  extend: {
138
+ fontFamily: {
139
+ "humu-ibm-plex-sans": "var(--humu-font-family-ibm-plex-sans)",
140
+ "humu-inter": "var(--humu-font-family-inter)"
141
+ },
31
142
  fontSize: {
143
+ ...humuTextStyles,
144
+ ...humuFontSizes,
32
145
  "v2-xs": "var(--v2-font-size-xs)",
33
146
  "v2-sm": "var(--v2-font-size-sm)",
34
147
  "v2-base": "var(--v2-font-size-base)",
@@ -41,6 +154,11 @@ var preset = {
41
154
  "v2-6xl": "var(--v2-font-size-6xl)"
42
155
  },
43
156
  colors: {
157
+ ...humuColors,
158
+ "humu-auth-surface": "var(--humu-auth-surface)",
159
+ "humu-auth-footer": "var(--humu-auth-footer)",
160
+ "humu-auth-fg": "var(--humu-auth-fg)",
161
+ "humu-auth-fg-muted": "var(--humu-auth-fg-muted)",
44
162
  "v2-app": "var(--v2-bg-app)",
45
163
  "v2-shell": "var(--v2-bg-shell)",
46
164
  "v2-canvas": "var(--v2-bg-canvas)",
@@ -104,6 +222,9 @@ var preset = {
104
222
  "v2-chart-cat-8": "var(--v2-chart-cat-8)"
105
223
  },
106
224
  boxShadow: {
225
+ "humu-card": "var(--humu-shadow-card)",
226
+ "humu-dialog": "var(--humu-shadow-dialog)",
227
+ "humu-raised": "var(--humu-shadow-raised)",
107
228
  "v2-1": "var(--v2-elevation-1)",
108
229
  "v2-2": "var(--v2-elevation-2)",
109
230
  "v2-3": "var(--v2-elevation-3)",
@@ -111,6 +232,12 @@ var preset = {
111
232
  "v2-drawer": "var(--v2-elevation-drawer)"
112
233
  },
113
234
  borderRadius: {
235
+ "humu-none": "var(--radius-none)",
236
+ "humu-sm": "var(--radius-sm)",
237
+ "humu-md": "var(--radius-md)",
238
+ "humu-lg": "var(--radius-lg)",
239
+ "humu-xl": "var(--radius-xl)",
240
+ "humu-pill": "var(--radius-pill)",
114
241
  "v2-none": "var(--radius-none)",
115
242
  "v2-sm": "var(--radius-sm)",
116
243
  "v2-md": "var(--radius-md)",
@@ -119,6 +246,11 @@ var preset = {
119
246
  "v2-pill": "var(--radius-pill)"
120
247
  },
121
248
  transitionDuration: {
249
+ "humu-instant": "var(--humu-duration-instant)",
250
+ "humu-fast": "var(--humu-duration-fast)",
251
+ "humu-normal": "var(--humu-duration-normal)",
252
+ "humu-slow": "var(--humu-duration-slow)",
253
+ "humu-slower": "var(--humu-duration-slower)",
122
254
  "v2-instant": "var(--v2-duration-instant)",
123
255
  "v2-fast": "var(--v2-duration-fast)",
124
256
  "v2-normal": "var(--v2-duration-normal)",
@@ -126,10 +258,16 @@ var preset = {
126
258
  "v2-slower": "var(--v2-duration-slower)"
127
259
  },
128
260
  transitionTimingFunction: {
261
+ "humu-out": "var(--humu-easing-out)",
262
+ "humu-in-out": "var(--humu-easing-in-out)",
263
+ "humu-spring": "var(--humu-easing-spring)",
129
264
  "v2-out": "var(--v2-easing-out)",
130
265
  "v2-in-out": "var(--v2-easing-in-out)",
131
266
  "v2-spring": "var(--v2-easing-spring)"
132
267
  },
268
+ animationDuration: {
269
+ DEFAULT: "var(--humu-duration-normal)"
270
+ },
133
271
  keyframes: {
134
272
  "accordion-down": {
135
273
  from: { height: "0" },
@@ -138,43 +276,14 @@ var preset = {
138
276
  "accordion-up": {
139
277
  from: { height: "var(--radix-accordion-content-height)" },
140
278
  to: { height: "0" }
141
- },
142
- slideDownAndFade: {
143
- from: { opacity: "0", transform: "translateY(-2px)" },
144
- to: { opacity: "1", transform: "translateY(0)" }
145
- },
146
- slideLeftAndFade: {
147
- from: { opacity: "0", transform: "translateX(20px)" },
148
- to: { opacity: "1", transform: "translateX(0)" }
149
- },
150
- slideUpAndFade: {
151
- from: { opacity: "0", transform: "translateY(20px)" },
152
- to: { opacity: "1", transform: "translateY(0)" }
153
- },
154
- slideRightAndFade: {
155
- from: { opacity: "0", transform: "translateX(-20px)" },
156
- to: { opacity: "1", transform: "translateX(0)" }
157
- },
158
- slideIn: {
159
- from: { transform: "translateY(-100%)" },
160
- to: { transform: "translateY(0)" }
161
- },
162
- slideOut: {
163
- from: { transform: "translateY(0)" },
164
- to: { transform: "translateY(-100%)" }
165
279
  }
166
280
  },
167
281
  animation: {
168
- "accordion-down": "accordion-down 0.2s ease-out",
169
- "accordion-up": "accordion-up 0.2s ease-out",
170
- slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
171
- slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
172
- slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
173
- slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
174
- slideIn: "slideIn 400ms cubic-bezier(0.16, 1, 0.3, 1)",
175
- slideOut: "slideOut 400ms cubic-bezier(0.16, 1, 0.3, 1)"
282
+ "accordion-down": "accordion-down var(--humu-duration-normal) var(--humu-easing-out)",
283
+ "accordion-up": "accordion-up var(--humu-duration-normal) var(--humu-easing-out)"
176
284
  }
177
285
  }
178
- }
286
+ },
287
+ plugins: [import_tailwindcss_animate.default]
179
288
  };
180
289
  var tailwind_preset_default = preset;
@@ -1,11 +1,114 @@
1
1
  "use client";
2
2
 
3
3
  // tailwind-preset.ts
4
+ import animate from "tailwindcss-animate";
5
+ var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
6
+ var primitiveScales = [
7
+ "grey",
8
+ "brand",
9
+ "turtle",
10
+ "purple",
11
+ "green",
12
+ "yellow",
13
+ "red",
14
+ "blue"
15
+ ];
16
+ var primitiveSteps = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
17
+ var statusTones = ["success", "warning", "error", "info", "turtle", "purple"];
18
+ var semanticTokens = [
19
+ ...[
20
+ "default",
21
+ "inverse",
22
+ "base",
23
+ "surface",
24
+ "border",
25
+ "inactive",
26
+ "interaction-default",
27
+ "interaction-hover",
28
+ "interaction-hover-tabs",
29
+ "interaction-logo",
30
+ "brand-brand",
31
+ "brand-subtle",
32
+ "brand-hover",
33
+ "brand-inactive"
34
+ ].map((name) => `background-${name}`),
35
+ ...[
36
+ "title",
37
+ "subtitle",
38
+ "body-text",
39
+ "on-brand",
40
+ "on-brand-inactive",
41
+ "brand",
42
+ "brand-strong",
43
+ "inactive"
44
+ ].map((name) => `content-${name}`),
45
+ ...[
46
+ "default",
47
+ "brand",
48
+ "brand-subtle",
49
+ "success-subtle",
50
+ "warning-subtle",
51
+ "error-subtle",
52
+ "info-subtle",
53
+ "turtle",
54
+ "purple"
55
+ ].map((name) => `border-${name}`),
56
+ ...["background", "content", "hover"].flatMap((group) => [
57
+ `status-${group}-default`,
58
+ ...group === "content" ? ["status-content-contrast"] : [],
59
+ ...statusTones.map((tone) => `status-${group}-${tone}`),
60
+ ...statusTones.map((tone) => `status-${group}-${tone}-subtle`)
61
+ ]),
62
+ ...[1, 2, 3, 4, 5, 6, 7, 8].map((index) => `chart-${index}`)
63
+ ];
64
+ var humuTextStyles = Object.fromEntries(
65
+ [
66
+ "heading-x",
67
+ "heading-l",
68
+ "heading-xm",
69
+ "body-m",
70
+ "body-s",
71
+ "body-xs",
72
+ "body-xxs"
73
+ ].map((style) => [
74
+ `humu-${style}`,
75
+ [
76
+ `var(--humu-${style}-font-size)`,
77
+ {
78
+ lineHeight: `var(--humu-${style}-line-height)`,
79
+ letterSpacing: `var(--humu-${style}-letter-spacing)`
80
+ }
81
+ ]
82
+ ])
83
+ );
84
+ var humuFontSizes = Object.fromEntries(
85
+ ["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"].map(
86
+ (size) => [`humu-size-${size}`, `var(--humu-font-size-${size})`]
87
+ )
88
+ );
89
+ var humuColors = Object.fromEntries([
90
+ ["humu-white", humuColor("color-white")],
91
+ ["humu-black", humuColor("color-black")],
92
+ ...primitiveScales.flatMap(
93
+ (scale) => primitiveSteps.map((step) => [
94
+ `humu-${scale}-${step}`,
95
+ humuColor(`color-${scale}-${step}`)
96
+ ])
97
+ ),
98
+ ...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)]),
99
+ ["humu-focus", humuColor("focus-ring")]
100
+ ]);
4
101
  var preset = {
5
102
  darkMode: ["class"],
6
103
  theme: {
7
104
  extend: {
105
+ fontFamily: {
106
+ "humu-ibm-plex-sans": "var(--humu-font-family-ibm-plex-sans)",
107
+ "humu-inter": "var(--humu-font-family-inter)"
108
+ },
8
109
  fontSize: {
110
+ ...humuTextStyles,
111
+ ...humuFontSizes,
9
112
  "v2-xs": "var(--v2-font-size-xs)",
10
113
  "v2-sm": "var(--v2-font-size-sm)",
11
114
  "v2-base": "var(--v2-font-size-base)",
@@ -18,6 +121,11 @@ var preset = {
18
121
  "v2-6xl": "var(--v2-font-size-6xl)"
19
122
  },
20
123
  colors: {
124
+ ...humuColors,
125
+ "humu-auth-surface": "var(--humu-auth-surface)",
126
+ "humu-auth-footer": "var(--humu-auth-footer)",
127
+ "humu-auth-fg": "var(--humu-auth-fg)",
128
+ "humu-auth-fg-muted": "var(--humu-auth-fg-muted)",
21
129
  "v2-app": "var(--v2-bg-app)",
22
130
  "v2-shell": "var(--v2-bg-shell)",
23
131
  "v2-canvas": "var(--v2-bg-canvas)",
@@ -81,6 +189,9 @@ var preset = {
81
189
  "v2-chart-cat-8": "var(--v2-chart-cat-8)"
82
190
  },
83
191
  boxShadow: {
192
+ "humu-card": "var(--humu-shadow-card)",
193
+ "humu-dialog": "var(--humu-shadow-dialog)",
194
+ "humu-raised": "var(--humu-shadow-raised)",
84
195
  "v2-1": "var(--v2-elevation-1)",
85
196
  "v2-2": "var(--v2-elevation-2)",
86
197
  "v2-3": "var(--v2-elevation-3)",
@@ -88,6 +199,12 @@ var preset = {
88
199
  "v2-drawer": "var(--v2-elevation-drawer)"
89
200
  },
90
201
  borderRadius: {
202
+ "humu-none": "var(--radius-none)",
203
+ "humu-sm": "var(--radius-sm)",
204
+ "humu-md": "var(--radius-md)",
205
+ "humu-lg": "var(--radius-lg)",
206
+ "humu-xl": "var(--radius-xl)",
207
+ "humu-pill": "var(--radius-pill)",
91
208
  "v2-none": "var(--radius-none)",
92
209
  "v2-sm": "var(--radius-sm)",
93
210
  "v2-md": "var(--radius-md)",
@@ -96,6 +213,11 @@ var preset = {
96
213
  "v2-pill": "var(--radius-pill)"
97
214
  },
98
215
  transitionDuration: {
216
+ "humu-instant": "var(--humu-duration-instant)",
217
+ "humu-fast": "var(--humu-duration-fast)",
218
+ "humu-normal": "var(--humu-duration-normal)",
219
+ "humu-slow": "var(--humu-duration-slow)",
220
+ "humu-slower": "var(--humu-duration-slower)",
99
221
  "v2-instant": "var(--v2-duration-instant)",
100
222
  "v2-fast": "var(--v2-duration-fast)",
101
223
  "v2-normal": "var(--v2-duration-normal)",
@@ -103,10 +225,16 @@ var preset = {
103
225
  "v2-slower": "var(--v2-duration-slower)"
104
226
  },
105
227
  transitionTimingFunction: {
228
+ "humu-out": "var(--humu-easing-out)",
229
+ "humu-in-out": "var(--humu-easing-in-out)",
230
+ "humu-spring": "var(--humu-easing-spring)",
106
231
  "v2-out": "var(--v2-easing-out)",
107
232
  "v2-in-out": "var(--v2-easing-in-out)",
108
233
  "v2-spring": "var(--v2-easing-spring)"
109
234
  },
235
+ animationDuration: {
236
+ DEFAULT: "var(--humu-duration-normal)"
237
+ },
110
238
  keyframes: {
111
239
  "accordion-down": {
112
240
  from: { height: "0" },
@@ -115,44 +243,15 @@ var preset = {
115
243
  "accordion-up": {
116
244
  from: { height: "var(--radix-accordion-content-height)" },
117
245
  to: { height: "0" }
118
- },
119
- slideDownAndFade: {
120
- from: { opacity: "0", transform: "translateY(-2px)" },
121
- to: { opacity: "1", transform: "translateY(0)" }
122
- },
123
- slideLeftAndFade: {
124
- from: { opacity: "0", transform: "translateX(20px)" },
125
- to: { opacity: "1", transform: "translateX(0)" }
126
- },
127
- slideUpAndFade: {
128
- from: { opacity: "0", transform: "translateY(20px)" },
129
- to: { opacity: "1", transform: "translateY(0)" }
130
- },
131
- slideRightAndFade: {
132
- from: { opacity: "0", transform: "translateX(-20px)" },
133
- to: { opacity: "1", transform: "translateX(0)" }
134
- },
135
- slideIn: {
136
- from: { transform: "translateY(-100%)" },
137
- to: { transform: "translateY(0)" }
138
- },
139
- slideOut: {
140
- from: { transform: "translateY(0)" },
141
- to: { transform: "translateY(-100%)" }
142
246
  }
143
247
  },
144
248
  animation: {
145
- "accordion-down": "accordion-down 0.2s ease-out",
146
- "accordion-up": "accordion-up 0.2s ease-out",
147
- slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
148
- slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
149
- slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
150
- slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
151
- slideIn: "slideIn 400ms cubic-bezier(0.16, 1, 0.3, 1)",
152
- slideOut: "slideOut 400ms cubic-bezier(0.16, 1, 0.3, 1)"
249
+ "accordion-down": "accordion-down var(--humu-duration-normal) var(--humu-easing-out)",
250
+ "accordion-up": "accordion-up var(--humu-duration-normal) var(--humu-easing-out)"
153
251
  }
154
252
  }
155
- }
253
+ },
254
+ plugins: [animate]
156
255
  };
157
256
  var tailwind_preset_default = preset;
158
257
  export {
@@ -1,65 +1,65 @@
1
- @layer ds-v2 {
1
+ @layer humu {
2
2
  :root {
3
- --v2-color-lime-50: oklch(0.97 0.04 130);
4
- --v2-color-lime-100: oklch(0.93 0.07 130);
5
- --v2-color-lime-200: oklch(0.88 0.11 130);
6
- --v2-color-lime-300: oklch(0.83 0.14 130);
7
- --v2-color-lime-400: oklch(0.80 0.17 130);
8
- --v2-color-lime-500: oklch(0.78 0.18 130);
9
- --v2-color-lime-600: oklch(0.70 0.18 130);
10
- --v2-color-lime-700: oklch(0.62 0.16 130);
11
- --v2-color-lime-800: oklch(0.52 0.14 130);
12
- --v2-color-lime-900: oklch(0.42 0.12 130);
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: oklch(0.99 0.002 270);
15
- --v2-color-neutral-100: oklch(0.97 0.003 270);
16
- --v2-color-neutral-200: oklch(0.92 0.005 270);
17
- --v2-color-neutral-300: oklch(0.85 0.006 270);
18
- --v2-color-neutral-400: oklch(0.72 0.008 270);
19
- --v2-color-neutral-500: oklch(0.55 0.010 270);
20
- --v2-color-neutral-600: oklch(0.40 0.010 270);
21
- --v2-color-neutral-700: oklch(0.28 0.008 270);
22
- --v2-color-neutral-800: oklch(0.18 0.006 270);
23
- --v2-color-neutral-900: oklch(0.13 0.005 270);
24
- --v2-color-neutral-950: oklch(0.08 0.004 270);
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: oklch(0.97 0.04 150);
27
- --v2-color-success-100: oklch(0.93 0.07 150);
28
- --v2-color-success-500: oklch(0.65 0.16 150);
29
- --v2-color-success-600: oklch(0.55 0.18 150);
30
- --v2-color-success-700: oklch(0.45 0.18 150);
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: oklch(0.97 0.04 80);
33
- --v2-color-warn-100: oklch(0.93 0.07 80);
34
- --v2-color-warn-500: oklch(0.78 0.16 80);
35
- --v2-color-warn-600: oklch(0.65 0.18 80);
36
- --v2-color-warn-700: oklch(0.50 0.18 80);
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: oklch(0.97 0.04 27);
39
- --v2-color-danger-100: oklch(0.93 0.07 27);
40
- --v2-color-danger-500: oklch(0.62 0.20 27);
41
- --v2-color-danger-600: oklch(0.52 0.22 27);
42
- --v2-color-danger-700: oklch(0.42 0.22 27);
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: oklch(0.97 0.04 240);
45
- --v2-color-info-100: oklch(0.93 0.07 240);
46
- --v2-color-info-500: oklch(0.65 0.15 240);
47
- --v2-color-info-600: oklch(0.55 0.18 240);
48
- --v2-color-info-700: oklch(0.45 0.18 240);
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: oklch(0.97 0.04 290);
51
- --v2-color-purple-100: oklch(0.93 0.07 290);
52
- --v2-color-purple-500: oklch(0.65 0.18 290);
53
- --v2-color-purple-600: oklch(0.55 0.18 290);
54
- --v2-color-purple-700: oklch(0.45 0.18 290);
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: oklch(0.65 0.18 240);
57
- --v2-chart-cat-2: oklch(0.65 0.18 150);
58
- --v2-chart-cat-3: oklch(0.78 0.16 80);
59
- --v2-chart-cat-4: oklch(0.65 0.18 290);
60
- --v2-chart-cat-5: oklch(0.62 0.20 27);
61
- --v2-chart-cat-6: oklch(0.65 0.15 200);
62
- --v2-chart-cat-7: oklch(0.62 0.18 340);
63
- --v2-chart-cat-8: oklch(0.65 0.18 50);
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 ds-v2 {
1
+ @layer humu {
2
2
  :root {
3
- --v2-elevation-0: none;
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: 0 1px 2px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.10);
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: 0 0 0 1px oklch(1 0 0 / 0.08);
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);
@@ -1,22 +1,31 @@
1
- @layer ds-v2 {
1
+ @layer humu {
2
2
  :root {
3
- --v2-duration-instant: 100ms;
4
- --v2-duration-fast: 120ms;
5
- --v2-duration-normal: 200ms;
6
- --v2-duration-slow: 320ms;
7
- --v2-duration-slower: 400ms;
8
- --v2-easing-out: cubic-bezier(0.16, 1, 0.3, 1);
9
- --v2-easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
10
- --v2-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
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
- --v2-duration-instant: 0ms;
16
- --v2-duration-fast: 0ms;
17
- --v2-duration-normal: 0ms;
18
- --v2-duration-slow: 0ms;
19
- --v2-duration-slower: 0ms;
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
  }