@humu-tech/ui 0.1.25 → 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.
@@ -0,0 +1,166 @@
1
+ @layer humu {
2
+ :root {
3
+ --humu-background-default: var(--humu-color-grey-200);
4
+ --humu-background-inverse: var(--humu-color-white);
5
+ --humu-background-base: var(--humu-color-grey-100);
6
+ --humu-background-surface: var(--humu-color-white);
7
+ --humu-background-border: var(--humu-color-grey-200);
8
+ --humu-background-inactive: var(--humu-color-grey-200);
9
+ --humu-background-interaction-default: var(--humu-color-white);
10
+ --humu-background-interaction-hover: var(--humu-color-grey-100);
11
+ --humu-background-interaction-hover-tabs: var(--humu-color-grey-200);
12
+ --humu-background-interaction-logo: var(--humu-color-grey-950);
13
+ --humu-background-brand-brand: var(--humu-color-brand-500);
14
+ --humu-background-brand-subtle: var(--humu-color-brand-100);
15
+ --humu-background-brand-hover: var(--humu-color-brand-400);
16
+ --humu-background-brand-inactive: color-mix(in srgb, var(--humu-color-brand-500) 30%, transparent);
17
+
18
+ --humu-content-title: var(--humu-color-grey-900);
19
+ --humu-content-subtitle: var(--humu-color-grey-600);
20
+ --humu-content-body-text: var(--humu-color-grey-400);
21
+ --humu-content-on-brand: var(--humu-color-grey-950);
22
+ --humu-content-on-brand-inactive: color-mix(in srgb, var(--humu-color-grey-950) 30%, transparent);
23
+ --humu-content-brand: var(--humu-color-brand-600);
24
+ --humu-content-inactive: var(--humu-color-grey-400);
25
+
26
+ --humu-border-default: var(--humu-color-grey-300);
27
+ --humu-border-brand: var(--humu-color-brand-600);
28
+ --humu-border-brand-subtle: var(--humu-color-brand-200);
29
+ --humu-border-success-subtle: var(--humu-color-green-300);
30
+ --humu-border-warning-subtle: var(--humu-color-yellow-300);
31
+ --humu-border-error-subtle: var(--humu-color-red-300);
32
+ --humu-border-info-subtle: var(--humu-color-blue-300);
33
+ --humu-border-turtle: var(--humu-color-turtle-300);
34
+ --humu-border-purple: var(--humu-color-purple-300);
35
+
36
+ --humu-status-background-default: var(--humu-color-white);
37
+ --humu-status-background-success: var(--humu-color-green-500);
38
+ --humu-status-background-warning: var(--humu-color-yellow-500);
39
+ --humu-status-background-error: var(--humu-color-red-500);
40
+ --humu-status-background-info: var(--humu-color-blue-500);
41
+ --humu-status-background-turtle: var(--humu-color-turtle-500);
42
+ --humu-status-background-purple: var(--humu-color-purple-400);
43
+ --humu-status-background-success-subtle: var(--humu-color-green-200);
44
+ --humu-status-background-warning-subtle: var(--humu-color-yellow-200);
45
+ --humu-status-background-error-subtle: var(--humu-color-red-200);
46
+ --humu-status-background-info-subtle: var(--humu-color-blue-200);
47
+ --humu-status-background-turtle-subtle: var(--humu-color-turtle-200);
48
+ --humu-status-background-purple-subtle: var(--humu-color-purple-200);
49
+
50
+ --humu-status-content-default: var(--humu-color-grey-950);
51
+ --humu-status-content-contrast: var(--humu-color-white);
52
+ --humu-status-content-success: var(--humu-color-green-600);
53
+ --humu-status-content-warning: var(--humu-color-yellow-600);
54
+ --humu-status-content-error: var(--humu-color-red-600);
55
+ --humu-status-content-info: var(--humu-color-blue-600);
56
+ --humu-status-content-turtle: var(--humu-color-turtle-600);
57
+ --humu-status-content-purple: var(--humu-color-purple-600);
58
+ --humu-status-content-success-subtle: var(--humu-color-green-900);
59
+ --humu-status-content-warning-subtle: var(--humu-color-yellow-900);
60
+ --humu-status-content-error-subtle: var(--humu-color-red-900);
61
+ --humu-status-content-info-subtle: var(--humu-color-blue-900);
62
+ --humu-status-content-turtle-subtle: var(--humu-color-turtle-900);
63
+ --humu-status-content-purple-subtle: var(--humu-color-purple-900);
64
+
65
+ --humu-status-hover-default: var(--humu-color-grey-200);
66
+ --humu-status-hover-success: var(--humu-color-green-600);
67
+ --humu-status-hover-warning: var(--humu-color-yellow-600);
68
+ --humu-status-hover-error: var(--humu-color-red-600);
69
+ --humu-status-hover-info: var(--humu-color-blue-600);
70
+ --humu-status-hover-turtle: var(--humu-color-turtle-600);
71
+ --humu-status-hover-purple: var(--humu-color-purple-600);
72
+ --humu-status-hover-success-subtle: var(--humu-color-green-200);
73
+ --humu-status-hover-warning-subtle: var(--humu-color-yellow-200);
74
+ --humu-status-hover-error-subtle: var(--humu-color-red-200);
75
+ --humu-status-hover-info-subtle: var(--humu-color-blue-200);
76
+ --humu-status-hover-turtle-subtle: var(--humu-color-turtle-200);
77
+ --humu-status-hover-purple-subtle: var(--humu-color-purple-200);
78
+
79
+ --humu-chart-1: var(--humu-color-blue-500);
80
+ --humu-chart-2: var(--humu-color-green-500);
81
+ --humu-chart-3: var(--humu-color-yellow-500);
82
+ --humu-chart-4: var(--humu-color-purple-400);
83
+ --humu-chart-5: var(--humu-color-red-500);
84
+ --humu-chart-6: var(--humu-color-turtle-500);
85
+ --humu-chart-7: var(--humu-color-brand-500);
86
+ --humu-chart-8: var(--humu-color-purple-600);
87
+ }
88
+
89
+ :root[data-theme="dark"], :root.dark, [data-theme="dark"] {
90
+ --humu-background-default: var(--humu-color-grey-950);
91
+ --humu-background-inverse: var(--humu-color-grey-950);
92
+ --humu-background-base: var(--humu-color-grey-900);
93
+ --humu-background-surface: var(--humu-color-grey-800);
94
+ --humu-background-border: var(--humu-color-grey-700);
95
+ --humu-background-inactive: var(--humu-color-grey-700);
96
+ --humu-background-interaction-default: var(--humu-color-grey-700);
97
+ --humu-background-interaction-hover: var(--humu-color-grey-600);
98
+ --humu-background-interaction-hover-tabs: var(--humu-color-grey-700);
99
+ --humu-background-interaction-logo: var(--humu-color-grey-50);
100
+ --humu-background-brand-brand: var(--humu-color-brand-500);
101
+ --humu-background-brand-subtle: var(--humu-color-brand-700);
102
+ --humu-background-brand-hover: var(--humu-color-brand-300);
103
+ --humu-background-brand-inactive: color-mix(in srgb, var(--humu-color-brand-500) 30%, transparent);
104
+
105
+ --humu-content-title: var(--humu-color-grey-50);
106
+ --humu-content-subtitle: var(--humu-color-grey-200);
107
+ --humu-content-body-text: var(--humu-color-grey-300);
108
+ --humu-content-on-brand: var(--humu-color-grey-950);
109
+ --humu-content-on-brand-inactive: color-mix(in srgb, var(--humu-color-grey-950) 50%, transparent);
110
+ --humu-content-brand: var(--humu-color-brand-300);
111
+ --humu-content-inactive: var(--humu-color-grey-500);
112
+
113
+ --humu-border-default: var(--humu-color-grey-700);
114
+ --humu-border-brand: var(--humu-color-brand-600);
115
+ --humu-border-brand-subtle: var(--humu-color-brand-700);
116
+ --humu-border-success-subtle: var(--humu-color-green-600);
117
+ --humu-border-warning-subtle: var(--humu-color-yellow-600);
118
+ --humu-border-error-subtle: var(--humu-color-red-700);
119
+ --humu-border-info-subtle: var(--humu-color-blue-600);
120
+ --humu-border-turtle: var(--humu-color-turtle-600);
121
+ --humu-border-purple: var(--humu-color-purple-700);
122
+
123
+ --humu-status-background-default: var(--humu-color-grey-700);
124
+ --humu-status-background-success: var(--humu-color-green-500);
125
+ --humu-status-background-warning: var(--humu-color-yellow-500);
126
+ --humu-status-background-error: var(--humu-color-red-500);
127
+ --humu-status-background-info: var(--humu-color-blue-500);
128
+ --humu-status-background-turtle: var(--humu-color-turtle-500);
129
+ --humu-status-background-purple: var(--humu-color-purple-400);
130
+ --humu-status-background-success-subtle: var(--humu-color-green-900);
131
+ --humu-status-background-warning-subtle: var(--humu-color-yellow-900);
132
+ --humu-status-background-error-subtle: var(--humu-color-red-900);
133
+ --humu-status-background-info-subtle: var(--humu-color-blue-900);
134
+ --humu-status-background-turtle-subtle: var(--humu-color-turtle-900);
135
+ --humu-status-background-purple-subtle: var(--humu-color-purple-900);
136
+
137
+ --humu-status-content-default: var(--humu-color-grey-950);
138
+ --humu-status-content-contrast: var(--humu-color-white);
139
+ --humu-status-content-success: var(--humu-color-green-500);
140
+ --humu-status-content-warning: var(--humu-color-yellow-500);
141
+ --humu-status-content-error: var(--humu-color-red-500);
142
+ --humu-status-content-info: var(--humu-color-blue-500);
143
+ --humu-status-content-turtle: var(--humu-color-turtle-500);
144
+ --humu-status-content-purple: var(--humu-color-purple-500);
145
+ --humu-status-content-success-subtle: var(--humu-color-green-100);
146
+ --humu-status-content-warning-subtle: var(--humu-color-yellow-100);
147
+ --humu-status-content-error-subtle: var(--humu-color-red-100);
148
+ --humu-status-content-info-subtle: var(--humu-color-blue-100);
149
+ --humu-status-content-turtle-subtle: var(--humu-color-turtle-100);
150
+ --humu-status-content-purple-subtle: var(--humu-color-purple-100);
151
+
152
+ --humu-status-hover-default: var(--humu-color-grey-500);
153
+ --humu-status-hover-success: var(--humu-color-green-600);
154
+ --humu-status-hover-warning: var(--humu-color-yellow-600);
155
+ --humu-status-hover-error: var(--humu-color-red-600);
156
+ --humu-status-hover-info: var(--humu-color-blue-600);
157
+ --humu-status-hover-turtle: var(--humu-color-turtle-600);
158
+ --humu-status-hover-purple: var(--humu-color-purple-600);
159
+ --humu-status-hover-success-subtle: var(--humu-color-green-800);
160
+ --humu-status-hover-warning-subtle: var(--humu-color-yellow-800);
161
+ --humu-status-hover-error-subtle: var(--humu-color-red-800);
162
+ --humu-status-hover-info-subtle: var(--humu-color-blue-800);
163
+ --humu-status-hover-turtle-subtle: var(--humu-color-turtle-800);
164
+ --humu-status-hover-purple-subtle: var(--humu-color-purple-800);
165
+ }
166
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -1,17 +1 @@
1
- @layer ds-v2 {
2
- :root {
3
- --v2-spacing-0: 0;
4
- --v2-spacing-1: 0.25rem;
5
- --v2-spacing-2: 0.5rem;
6
- --v2-spacing-3: 0.75rem;
7
- --v2-spacing-4: 1rem;
8
- --v2-spacing-5: 1.25rem;
9
- --v2-spacing-6: 1.5rem;
10
- --v2-spacing-8: 2rem;
11
- --v2-spacing-10: 2.5rem;
12
- --v2-spacing-12: 3rem;
13
- --v2-spacing-16: 4rem;
14
- --v2-spacing-20: 5rem;
15
- --v2-spacing-24: 6rem;
16
- }
17
- }
1
+ @layer humu;
@@ -1,22 +1,22 @@
1
- @layer ds-v2 {
1
+ @layer humu {
2
2
  :root {
3
- --v2-bg-app: #E3E4E8;
4
- --v2-bg-shell: oklch(0.96 0.004 270);
5
- --v2-bg-canvas: var(--v2-color-neutral-100);
6
- --v2-bg-panel: var(--v2-color-neutral-50);
7
- --v2-bg-raised: var(--v2-color-neutral-50);
8
- --v2-fg-default: var(--v2-color-neutral-900);
9
- --v2-fg-muted: var(--v2-color-neutral-600);
10
- --v2-fg-subtle: var(--v2-color-neutral-500);
11
- --v2-fg-on-primary: var(--v2-color-neutral-900);
12
- --v2-fg-on-danger: var(--v2-color-neutral-50);
13
- --v2-border-subtle: var(--v2-color-neutral-200);
14
- --v2-border-default: var(--v2-color-neutral-300);
15
- --v2-border-strong: var(--v2-color-neutral-700);
16
- --v2-brand-primary-channels: 72 67% 47%;
17
- --v2-brand-primary: hsl(var(--v2-brand-primary-channels));
18
- --v2-brand-primary-hover: hsl(72 67% 41%);
19
- --v2-brand-on-primary: hsl(0 0% 13%);
3
+ --v2-bg-app: var(--humu-background-default);
4
+ --v2-bg-shell: var(--humu-background-base);
5
+ --v2-bg-canvas: var(--humu-background-base);
6
+ --v2-bg-panel: var(--humu-background-surface);
7
+ --v2-bg-raised: var(--humu-background-surface);
8
+ --v2-fg-default: var(--humu-content-title);
9
+ --v2-fg-muted: var(--humu-content-subtitle);
10
+ --v2-fg-subtle: var(--humu-content-body-text);
11
+ --v2-fg-on-primary: var(--humu-content-on-brand);
12
+ --v2-fg-on-danger: var(--humu-status-content-default);
13
+ --v2-border-subtle: var(--humu-background-border);
14
+ --v2-border-default: var(--humu-border-default);
15
+ --v2-border-strong: var(--humu-color-grey-700);
16
+ --v2-brand-primary-channels: 71 67% 47%;
17
+ --v2-brand-primary: var(--humu-background-brand-brand);
18
+ --v2-brand-primary-hover: var(--humu-background-brand-hover);
19
+ --v2-brand-on-primary: var(--humu-content-on-brand);
20
20
  --v2-action-primary: var(--v2-brand-primary);
21
21
  --v2-action-primary-channels: var(--v2-brand-primary-channels);
22
22
  --v2-action-primary-hover: var(--v2-brand-primary-hover);
@@ -24,36 +24,36 @@
24
24
  --v2-focus-ring: var(--v2-brand-primary);
25
25
  --v2-focus-ring-channels: var(--v2-brand-primary-channels);
26
26
 
27
- --v2-color-danger-500-channels: 8 78% 49%;
28
- --v2-color-warn-500-channels: 40 87% 60%;
29
- --v2-color-info-500-channels: 220 60% 55%;
30
- --v2-color-success-500-channels: 150 50% 45%;
27
+ --v2-color-danger-500-channels: 4 79% 51%;
28
+ --v2-color-warn-500-channels: 40 91% 41%;
29
+ --v2-color-info-500-channels: 215 87% 53%;
30
+ --v2-color-success-500-channels: 160 100% 32%;
31
31
 
32
- --v2-bg-subtle: var(--v2-color-neutral-200);
32
+ --v2-bg-subtle: var(--humu-background-inactive);
33
33
 
34
- --v2-success-soft: var(--v2-color-success-50);
35
- --v2-success-bg: var(--v2-color-success-100);
36
- --v2-success-fg: var(--v2-color-success-700);
34
+ --v2-success-soft: var(--humu-color-green-50);
35
+ --v2-success-bg: var(--humu-status-background-success-subtle);
36
+ --v2-success-fg: var(--humu-status-content-success-subtle);
37
37
 
38
- --v2-warn-soft: var(--v2-color-warn-50);
39
- --v2-warn-bg: var(--v2-color-warn-100);
40
- --v2-warn-fg: var(--v2-color-warn-700);
38
+ --v2-warn-soft: var(--humu-color-yellow-50);
39
+ --v2-warn-bg: var(--humu-status-background-warning-subtle);
40
+ --v2-warn-fg: var(--humu-status-content-warning-subtle);
41
41
 
42
- --v2-danger-soft: var(--v2-color-danger-50);
43
- --v2-danger-bg: var(--v2-color-danger-100);
44
- --v2-danger-fg: var(--v2-color-danger-700);
42
+ --v2-danger-soft: var(--humu-color-red-50);
43
+ --v2-danger-bg: var(--humu-status-background-error-subtle);
44
+ --v2-danger-fg: var(--humu-status-content-error-subtle);
45
45
 
46
- --v2-info-soft: var(--v2-color-info-50);
47
- --v2-info-bg: var(--v2-color-info-100);
48
- --v2-info-fg: var(--v2-color-info-700);
46
+ --v2-info-soft: var(--humu-color-blue-50);
47
+ --v2-info-bg: var(--humu-status-background-info-subtle);
48
+ --v2-info-fg: var(--humu-status-content-info-subtle);
49
49
 
50
- --v2-purple-soft: var(--v2-color-purple-50);
51
- --v2-purple-bg: var(--v2-color-purple-100);
52
- --v2-purple-fg: var(--v2-color-purple-700);
50
+ --v2-purple-soft: var(--humu-color-purple-50);
51
+ --v2-purple-bg: var(--humu-status-background-purple-subtle);
52
+ --v2-purple-fg: var(--humu-status-content-purple-subtle);
53
53
 
54
- --v2-neutral-soft: var(--v2-color-neutral-50);
55
- --v2-neutral-bg: var(--v2-color-neutral-100);
56
- --v2-neutral-fg: var(--v2-color-neutral-700);
54
+ --v2-neutral-soft: var(--humu-color-grey-50);
55
+ --v2-neutral-bg: var(--humu-color-grey-100);
56
+ --v2-neutral-fg: var(--humu-color-grey-700);
57
57
 
58
58
  --v2-brand-bg-soft: var(--v2-brand-primary);
59
59
  --v2-brand-text-dark: var(--v2-brand-on-primary);
@@ -61,68 +61,34 @@
61
61
  --v2-row-hover: #F2F6E7;
62
62
  --v2-row-hover-strong: #E6EDD3;
63
63
 
64
- --v2-auth-surface: #1f1f1f;
65
- --v2-auth-footer: #262626;
66
- --v2-auth-fg: #ffffff;
67
- --v2-auth-fg-muted: #a1a1aa;
68
- }
69
-
70
- :root[data-theme="dark"], :root.dark {
71
- --v2-bg-app: #3B3B3B;
72
- --v2-bg-shell: hsl(0 0% 11%);
73
- --v2-bg-canvas: hsl(0 0% 11%);
74
- --v2-bg-panel: hsl(0 0% 17%);
75
- --v2-bg-raised: hsl(0 0% 23%);
76
- --v2-fg-default: hsl(0 0% 96%);
77
- --v2-fg-muted: hsl(0 0% 70%);
78
- --v2-fg-subtle: hsl(0 0% 55%);
79
- --v2-border-subtle: hsl(0 0% 23%);
80
- --v2-border-default: hsl(0 0% 28%);
81
- --v2-border-strong: hsl(0 0% 42%);
82
- --v2-brand-primary-channels: 72 67% 47%;
83
- --v2-brand-primary: hsl(var(--v2-brand-primary-channels));
84
- --v2-brand-primary-hover: hsl(72 67% 54%);
85
- --v2-brand-on-primary: hsl(0 0% 13%);
86
- --v2-action-primary: var(--v2-brand-primary);
87
- --v2-action-primary-channels: var(--v2-brand-primary-channels);
88
- --v2-action-primary-hover: var(--v2-brand-primary-hover);
89
- --v2-action-on-primary: var(--v2-brand-on-primary);
90
- --v2-focus-ring: var(--v2-brand-primary);
91
- --v2-focus-ring-channels: var(--v2-brand-primary-channels);
64
+ --humu-auth-surface: #1f1f1f;
65
+ --humu-auth-footer: #262626;
66
+ --humu-auth-fg: #ffffff;
67
+ --humu-auth-fg-muted: #a1a1aa;
92
68
 
93
- --v2-color-danger-500-channels: 8 78% 56%;
94
- --v2-color-warn-500-channels: 40 87% 65%;
95
- --v2-color-info-500-channels: 220 60% 65%;
96
- --v2-color-success-500-channels: 150 50% 55%;
97
-
98
- --v2-bg-subtle: hsl(0 0% 23%);
99
-
100
- --v2-success-soft: oklch(0.18 0.04 150);
101
- --v2-success-bg: oklch(0.25 0.08 150);
102
- --v2-success-fg: oklch(0.85 0.12 150);
103
-
104
- --v2-warn-soft: oklch(0.18 0.04 80);
105
- --v2-warn-bg: oklch(0.25 0.08 80);
106
- --v2-warn-fg: oklch(0.85 0.12 80);
107
-
108
- --v2-danger-soft: oklch(0.18 0.04 27);
109
- --v2-danger-bg: oklch(0.25 0.10 27);
110
- --v2-danger-fg: oklch(0.85 0.14 27);
69
+ --v2-auth-surface: var(--humu-auth-surface);
70
+ --v2-auth-footer: var(--humu-auth-footer);
71
+ --v2-auth-fg: var(--humu-auth-fg);
72
+ --v2-auth-fg-muted: var(--humu-auth-fg-muted);
73
+ }
111
74
 
112
- --v2-info-soft: oklch(0.18 0.04 240);
113
- --v2-info-bg: oklch(0.25 0.08 240);
114
- --v2-info-fg: oklch(0.85 0.12 240);
75
+ :root[data-theme="dark"], :root.dark, [data-theme="dark"] {
76
+ --v2-border-strong: var(--humu-color-grey-500);
115
77
 
116
- --v2-purple-soft: oklch(0.18 0.04 290);
117
- --v2-purple-bg: oklch(0.25 0.08 290);
118
- --v2-purple-fg: oklch(0.85 0.12 290);
78
+ --v2-color-danger-500-channels: 4 92% 60%;
79
+ --v2-color-warn-500-channels: 44 85% 48%;
80
+ --v2-color-info-500-channels: 211 95% 60%;
81
+ --v2-color-success-500-channels: 159 100% 39%;
119
82
 
120
- --v2-neutral-soft: var(--v2-color-neutral-900);
121
- --v2-neutral-bg: var(--v2-color-neutral-800);
122
- --v2-neutral-fg: var(--v2-color-neutral-200);
83
+ --v2-success-soft: var(--humu-color-green-950);
84
+ --v2-warn-soft: var(--humu-color-yellow-950);
85
+ --v2-danger-soft: var(--humu-color-red-950);
86
+ --v2-info-soft: var(--humu-color-blue-950);
87
+ --v2-purple-soft: var(--humu-color-purple-950);
123
88
 
124
- --v2-brand-bg-soft: var(--v2-brand-primary);
125
- --v2-brand-text-dark: var(--v2-brand-on-primary);
89
+ --v2-neutral-soft: var(--humu-color-grey-900);
90
+ --v2-neutral-bg: var(--humu-color-grey-800);
91
+ --v2-neutral-fg: var(--humu-color-grey-200);
126
92
 
127
93
  --v2-row-hover: #373A2A;
128
94
  --v2-row-hover-strong: #4A5036;
@@ -1,30 +1,51 @@
1
- @layer ds-v2 {
1
+ @layer humu {
2
2
  :root {
3
- --v2-font-family-sans: 'Inter Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
4
- --v2-font-family-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
3
+ --humu-font-family-ibm-plex-sans: 'IBM Plex Sans Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
4
+ --humu-font-family-inter: 'Inter Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
5
5
 
6
- --v2-font-size-xs: 0.75rem;
7
- --v2-font-size-sm: 0.875rem;
8
- --v2-font-size-base: 1rem;
9
- --v2-font-size-lg: 1.125rem;
10
- --v2-font-size-xl: 1.25rem;
11
- --v2-font-size-2xl: 1.5rem;
12
- --v2-font-size-3xl: 1.875rem;
13
- --v2-font-size-4xl: 2.25rem;
14
- --v2-font-size-5xl: 3rem;
15
- --v2-font-size-6xl: 3.75rem;
6
+ --humu-heading-x-font-size: 3rem;
7
+ --humu-heading-x-line-height: 3.25rem;
8
+ --humu-heading-x-letter-spacing: -0.01em;
9
+ --humu-heading-l-font-size: 2rem;
10
+ --humu-heading-l-line-height: 2.75rem;
11
+ --humu-heading-l-letter-spacing: -0.01em;
12
+ --humu-heading-xm-font-size: 1.5rem;
13
+ --humu-heading-xm-line-height: 1.75rem;
14
+ --humu-heading-xm-letter-spacing: 0;
16
15
 
17
- --v2-font-weight-normal: 400;
18
- --v2-font-weight-medium: 500;
19
- --v2-font-weight-semibold: 600;
20
- --v2-font-weight-bold: 700;
16
+ --humu-body-m-font-size: 1.25rem;
17
+ --humu-body-m-line-height: 2rem;
18
+ --humu-body-m-letter-spacing: 0;
19
+ --humu-body-s-font-size: 1rem;
20
+ --humu-body-s-line-height: 1.5rem;
21
+ --humu-body-s-letter-spacing: 0;
22
+ --humu-body-xs-font-size: 0.875rem;
23
+ --humu-body-xs-line-height: 1rem;
24
+ --humu-body-xs-letter-spacing: 0.01em;
25
+ --humu-body-xxs-font-size: 0.75rem;
26
+ --humu-body-xxs-line-height: 0.875rem;
27
+ --humu-body-xxs-letter-spacing: 0.04em;
21
28
 
22
- --v2-line-height-tight: 1.2;
23
- --v2-line-height-normal: 1.5;
24
- --v2-line-height-relaxed: 1.7;
29
+ --humu-font-size-xs: 0.75rem;
30
+ --humu-font-size-sm: 0.875rem;
31
+ --humu-font-size-base: 1rem;
32
+ --humu-font-size-lg: 1.125rem;
33
+ --humu-font-size-xl: 1.25rem;
34
+ --humu-font-size-2xl: 1.5rem;
35
+ --humu-font-size-3xl: 1.875rem;
36
+ --humu-font-size-4xl: 2.25rem;
37
+ --humu-font-size-5xl: 3rem;
38
+ --humu-font-size-6xl: 3.75rem;
25
39
 
26
- --v2-letter-spacing-tight: -0.02em;
27
- --v2-letter-spacing-normal: 0;
28
- --v2-letter-spacing-wide: 0.02em;
40
+ --v2-font-size-xs: var(--humu-font-size-xs);
41
+ --v2-font-size-sm: var(--humu-font-size-sm);
42
+ --v2-font-size-base: var(--humu-font-size-base);
43
+ --v2-font-size-lg: var(--humu-font-size-lg);
44
+ --v2-font-size-xl: var(--humu-font-size-xl);
45
+ --v2-font-size-2xl: var(--humu-font-size-2xl);
46
+ --v2-font-size-3xl: var(--humu-font-size-3xl);
47
+ --v2-font-size-4xl: var(--humu-font-size-4xl);
48
+ --v2-font-size-5xl: var(--humu-font-size-5xl);
49
+ --v2-font-size-6xl: var(--humu-font-size-6xl);
29
50
  }
30
51
  }
package/dist/tokens.css CHANGED
@@ -1,12 +1,15 @@
1
+ @import '@fontsource-variable/ibm-plex-sans';
1
2
  @import '@fontsource-variable/inter';
2
3
  @import '@fontsource-variable/jetbrains-mono';
3
- @import './tokens/colors.css' layer(ds-v2);
4
- @import './tokens/typography.css' layer(ds-v2);
5
- @import './tokens/spacing.css' layer(ds-v2);
6
- @import './tokens/motion.css' layer(ds-v2);
7
- @import './tokens/elevation.css' layer(ds-v2);
8
- @import './tokens/surfaces.css' layer(ds-v2);
9
- @import './tokens/radii.css' layer(ds-v2);
4
+ @import './tokens/primitives.css' layer(humu);
5
+ @import './tokens/semantic.css' layer(humu);
6
+ @import './tokens/colors.css' layer(humu);
7
+ @import './tokens/typography.css' layer(humu);
8
+ @import './tokens/spacing.css' layer(humu);
9
+ @import './tokens/motion.css' layer(humu);
10
+ @import './tokens/elevation.css' layer(humu);
11
+ @import './tokens/surfaces.css' layer(humu);
12
+ @import './tokens/radii.css' layer(humu);
10
13
 
11
14
  html:has(body[data-scroll-locked]) {
12
15
  overflow: hidden;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@humu-tech/ui",
3
- "version": "0.1.25",
4
- "description": "Design System V2 da Humu — 51 primitives e 32 patterns em React 18, com tema claro/escuro, preset Tailwind e TypeScript.",
3
+ "version": "0.2.0",
4
+ "description": "Design System da Humu: primitives e patterns em React 18 e 19, com tema claro/escuro, preset Tailwind e TypeScript.",
5
5
  "keywords": [
6
6
  "design-system",
7
7
  "react",
@@ -12,6 +12,7 @@
12
12
  "humu"
13
13
  ],
14
14
  "license": "MIT",
15
+ "type": "commonjs",
15
16
  "homepage": "https://inovanti-bank.github.io/humu-ui/",
16
17
  "repository": {
17
18
  "type": "git",
@@ -26,12 +27,26 @@
26
27
  "types": "./dist/index.d.ts",
27
28
  "exports": {
28
29
  ".": {
29
- "import": "./dist/index.mjs",
30
- "require": "./dist/index.js",
31
- "types": "./dist/index.d.ts"
30
+ "import": {
31
+ "types": "./dist/index.d.mts",
32
+ "default": "./dist/index.mjs"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ }
32
38
  },
33
39
  "./tokens.css": "./dist/tokens.css",
34
- "./tailwind-preset": "./dist/tailwind-preset.js"
40
+ "./tailwind-preset": {
41
+ "import": {
42
+ "types": "./dist/tailwind-preset.d.mts",
43
+ "default": "./dist/tailwind-preset.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./dist/tailwind-preset.d.ts",
47
+ "default": "./dist/tailwind-preset.js"
48
+ }
49
+ }
35
50
  },
36
51
  "files": [
37
52
  "dist/**",
@@ -49,40 +64,43 @@
49
64
  "dev": "tsup --watch",
50
65
  "lint": "eslint src --max-warnings 0",
51
66
  "typecheck": "tsc -p tsconfig.typecheck.json",
52
- "test": "vitest run"
67
+ "test": "vitest run",
68
+ "check-package": "publint --strict && attw --pack . --profile node16 --exclude-entrypoints ./tokens.css"
53
69
  },
54
70
  "peerDependencies": {
55
- "react": "^18",
56
- "react-dom": "^18"
71
+ "react": "^18 || ^19",
72
+ "react-dom": "^18 || ^19"
57
73
  },
58
74
  "devDependencies": {
75
+ "@arethetypeswrong/cli": "0.18.5",
59
76
  "@humu/eslint-config": "*",
60
77
  "@humu/ts-config": "*",
61
- "@storybook/react-vite": "10.6.0",
78
+ "@storybook/react-vite": "10.6.5",
62
79
  "@testing-library/jest-dom": "7.0.1",
63
80
  "@testing-library/react": "16.3.3",
64
- "@testing-library/user-event": "14.6.7",
81
+ "@testing-library/user-event": "14.6.8",
65
82
  "@types/culori": "4.0.1",
66
83
  "@types/react": "^18",
67
84
  "@types/react-dom": "^18",
68
- "@vitest/browser": "4.1.11",
69
- "@vitest/browser-playwright": "4.1.11",
70
- "eslint": "^8.57.1",
71
- "eslint-plugin-prettier": "^5.1.3",
85
+ "@vitest/browser": "4.1.12",
86
+ "@vitest/browser-playwright": "4.1.12",
87
+ "eslint": "10.14.0",
88
+ "eslint-plugin-prettier": "5.5.7",
72
89
  "jsdom": "29.1.1",
73
- "playwright": "1.63.0",
90
+ "playwright": "1.64.1",
91
+ "publint": "0.3.25",
74
92
  "react": "^18",
75
93
  "react-dom": "^18",
76
- "storybook": "10.6.0",
94
+ "storybook": "10.6.5",
77
95
  "tailwindcss": "^3.4.19",
78
96
  "tsup": "^8.0.0",
79
97
  "typescript": "^5",
80
- "vitest": "4.1.11"
98
+ "vitest": "4.1.12"
81
99
  },
82
100
  "dependencies": {
101
+ "@fontsource-variable/ibm-plex-sans": "5.3.0",
83
102
  "@fontsource-variable/inter": "5.3.0",
84
103
  "@fontsource-variable/jetbrains-mono": "5.3.0",
85
- "@phosphor-icons/react": "^2.1.8",
86
104
  "@radix-ui/react-accordion": "1.2.20",
87
105
  "@radix-ui/react-checkbox": "1.3.11",
88
106
  "@radix-ui/react-context-menu": "2.3.7",
@@ -101,8 +119,9 @@
101
119
  "culori": "^4.0.2",
102
120
  "date-fns": "4.4.0",
103
121
  "input-otp": "1.5.0",
104
- "react-colorful": "^5.6.1",
105
- "react-day-picker": "10.0.1",
122
+ "lucide-react": "1.56.0",
123
+ "react-colorful": "5.8.1",
124
+ "react-day-picker": "10.0.2",
106
125
  "react-image-zooom": "^1.6.0",
107
126
  "react-markdown": "10.1.0",
108
127
  "recharts": "3.10.1",