@abhir9/pd-design-system 0.1.8 → 0.1.9
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/dist/index.cjs +23 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +270 -10
- package/dist/index.d.cts +28 -25
- package/dist/index.d.ts +28 -25
- package/dist/index.js +21 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +265 -6
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -3,14 +3,212 @@
|
|
|
3
3
|
@tailwind utilities;
|
|
4
4
|
|
|
5
5
|
@layer base {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Light Mode (Default Theme)
|
|
8
|
+
* Source: src/tokens/semantic.ts -> borderTokens.light, contentTokens.light, backgroundTokens.light
|
|
9
|
+
*/
|
|
9
10
|
:root {
|
|
11
|
+
--accent: #EDEDED;
|
|
12
|
+
--accent-foreground: #17171C;
|
|
13
|
+
--background: #FFFFFF;
|
|
14
|
+
--background-green: #E0FFEC;
|
|
15
|
+
--background-green-on-hover: #BDFFD5;
|
|
16
|
+
--background-info: #EBF1FF;
|
|
17
|
+
--background-info-on-hover: #99B7FF;
|
|
18
|
+
--background-invert: #09090B;
|
|
19
|
+
--background-invert-light: #17171C;
|
|
20
|
+
--background-low: #EDEDED;
|
|
21
|
+
--background-low-on-hover: #DFDFE2;
|
|
22
|
+
--background-orange: #FFF3EB;
|
|
23
|
+
--background-orange-on-hover: #FFE1CC;
|
|
24
|
+
--background-primary: #FFFFFF;
|
|
25
|
+
--background-red: #FDF2F4;
|
|
26
|
+
--background-red-on-hover: #FADBE1;
|
|
27
|
+
--background-secondary: #EDEDED;
|
|
28
|
+
--background-system: #FAFAFA;
|
|
29
|
+
--background-tertiary: #DFDFE2;
|
|
30
|
+
--background-yellow: #FFF3EB;
|
|
31
|
+
--background-yellow-on-hover: #FFE1CC;
|
|
32
|
+
--border: #BEBEC1;
|
|
33
|
+
--border-blue: #3772FF;
|
|
34
|
+
--border-blue-on-hover: #003FD6;
|
|
35
|
+
--border-blue-subtle: #99B7FF;
|
|
36
|
+
--border-green: #00E052;
|
|
37
|
+
--border-green-on-hover: #00B241;
|
|
38
|
+
--border-green-subtle: #8AFFB5;
|
|
39
|
+
--border-invert: #09090B;
|
|
40
|
+
--border-on-color: #FFFFFF;
|
|
41
|
+
--border-orange: #D65700;
|
|
42
|
+
--border-orange-on-hover: #AD4700;
|
|
43
|
+
--border-orange-subtle: #FFC9A3;
|
|
44
|
+
--border-primary: #BEBEC1;
|
|
45
|
+
--border-red: #C41C3B;
|
|
46
|
+
--border-red-on-hover: #A11730;
|
|
47
|
+
--border-red-subtle: #F6C1CA;
|
|
48
|
+
--border-secondary: #DFDFE2;
|
|
49
|
+
--border-subtle: #DFDFE2;
|
|
50
|
+
--border-yellow: #F09700;
|
|
51
|
+
--border-yellow-on-hover: #D68700;
|
|
52
|
+
--border-yellow-subtle: #FFD999;
|
|
53
|
+
--card: #EDEDED;
|
|
54
|
+
--card-foreground: #17171C;
|
|
55
|
+
--color-black: #09090B;
|
|
56
|
+
--color-white: #FFFFFF;
|
|
57
|
+
--content-always-black: #09090B;
|
|
58
|
+
--content-always-white: #FFFFFF;
|
|
59
|
+
--content-blue: #3772FF;
|
|
60
|
+
--content-blue-disabled: #709AFF;
|
|
61
|
+
--content-blue-on-hover: #004BFF;
|
|
62
|
+
--content-green: #00B241;
|
|
63
|
+
--content-green-disabled: #5CFF98;
|
|
64
|
+
--content-green-on-hover: #00E052;
|
|
65
|
+
--content-on-color: #FFFFFF;
|
|
66
|
+
--content-on-color-inverse: #09090B;
|
|
67
|
+
--content-orange: #D65700;
|
|
68
|
+
--content-orange-disabled: #EC9C64;
|
|
69
|
+
--content-orange-on-hover: #AD4700;
|
|
70
|
+
--content-primary: #17171C;
|
|
71
|
+
--content-red: #C41C3B;
|
|
72
|
+
--content-red-disabled: #E15C5C;
|
|
73
|
+
--content-red-on-hover: #A11730;
|
|
74
|
+
--content-secondary: #60606C;
|
|
75
|
+
--content-subtle: #BEBEC1;
|
|
76
|
+
--content-yellow: #F09700;
|
|
77
|
+
--content-yellow-disabled: #FFCA70;
|
|
78
|
+
--content-yellow-on-hover: #D68700;
|
|
79
|
+
--destructive: #C41C3B;
|
|
80
|
+
--destructive-foreground: #FFFFFF;
|
|
81
|
+
--font-mono: Gist Mono, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
|
|
82
|
+
--font-sans: Gist, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
83
|
+
--font-size-2xl: 1.5rem;
|
|
84
|
+
--font-size-3xl: 1.875rem;
|
|
85
|
+
--font-size-4xl: 2.25rem;
|
|
86
|
+
--font-size-5xl: 3rem;
|
|
87
|
+
--font-size-base: 1rem;
|
|
88
|
+
--font-size-lg: 1.125rem;
|
|
89
|
+
--font-size-sm: 0.875rem;
|
|
90
|
+
--font-size-xl: 1.25rem;
|
|
91
|
+
--font-size-xs: 0.75rem;
|
|
92
|
+
--font-weight-bold: 700;
|
|
93
|
+
--font-weight-medium: 500;
|
|
94
|
+
--font-weight-normal: 400;
|
|
95
|
+
--font-weight-semibold: 600;
|
|
96
|
+
--foreground: #17171C;
|
|
97
|
+
--input: #BEBEC1;
|
|
98
|
+
--intent-danger: #C41C3B;
|
|
99
|
+
--intent-danger-active: #7D1225;
|
|
100
|
+
--intent-danger-bg: #FDF2F4;
|
|
101
|
+
--intent-danger-bg-active: #FADBE1;
|
|
102
|
+
--intent-danger-bg-hover: #FADBE1;
|
|
103
|
+
--intent-danger-border: #C41C3B;
|
|
104
|
+
--intent-danger-hover: #A11730;
|
|
105
|
+
--intent-danger-text: #C41C3B;
|
|
106
|
+
--intent-neutral: #60606C;
|
|
107
|
+
--intent-neutral-active: #2F2F37;
|
|
108
|
+
--intent-neutral-bg: #EDEDED;
|
|
109
|
+
--intent-neutral-bg-active: #DFDFE2;
|
|
110
|
+
--intent-neutral-bg-hover: #DFDFE2;
|
|
111
|
+
--intent-neutral-border: #BEBEC1;
|
|
112
|
+
--intent-neutral-hover: #4E4E5A;
|
|
113
|
+
--intent-neutral-text: #17171C;
|
|
114
|
+
--intent-primary: #60606C;
|
|
115
|
+
--intent-primary-active: #2F2F37;
|
|
116
|
+
--intent-primary-bg: #EDEDED;
|
|
117
|
+
--intent-primary-bg-active: #DFDFE2;
|
|
118
|
+
--intent-primary-bg-hover: #DFDFE2;
|
|
119
|
+
--intent-primary-border: #BEBEC1;
|
|
120
|
+
--intent-primary-hover: #4E4E5A;
|
|
121
|
+
--intent-primary-text: #17171C;
|
|
122
|
+
--intent-success: #00E052;
|
|
123
|
+
--intent-success-active: #008A32;
|
|
124
|
+
--intent-success-bg: #E0FFEC;
|
|
125
|
+
--intent-success-bg-active: #8AFFB5;
|
|
126
|
+
--intent-success-bg-hover: #BDFFD5;
|
|
127
|
+
--intent-success-border: #00E052;
|
|
128
|
+
--intent-success-hover: #00B241;
|
|
129
|
+
--intent-success-text: #00B241;
|
|
130
|
+
--intent-warning: #F09700;
|
|
131
|
+
--intent-warning-active: #7A4D00;
|
|
132
|
+
--intent-warning-bg: #FFF3EB;
|
|
133
|
+
--intent-warning-bg-active: #FFE8C2;
|
|
134
|
+
--intent-warning-bg-hover: #FFE1CC;
|
|
135
|
+
--intent-warning-border: #F09700;
|
|
136
|
+
--intent-warning-hover: #D68700;
|
|
137
|
+
--intent-warning-text: #F09700;
|
|
138
|
+
--line-height-normal: 1.5;
|
|
139
|
+
--line-height-relaxed: 1.75;
|
|
140
|
+
--line-height-tight: 1.25;
|
|
141
|
+
--muted: #EDEDED;
|
|
142
|
+
--muted-foreground: #BEBEC1;
|
|
143
|
+
--popover: #EDEDED;
|
|
144
|
+
--popover-foreground: #17171C;
|
|
145
|
+
--primary: #60606C;
|
|
146
|
+
--primary-foreground: #FFFFFF;
|
|
147
|
+
--radius: 0.375rem;
|
|
148
|
+
--radius-2xl: 1rem;
|
|
149
|
+
--radius-3xl: 1.5rem;
|
|
150
|
+
--radius-base: 0.25rem;
|
|
151
|
+
--radius-full: 9999px;
|
|
152
|
+
--radius-lg: 0.5rem;
|
|
153
|
+
--radius-md: 0.375rem;
|
|
154
|
+
--radius-none: 0;
|
|
155
|
+
--radius-sm: 0.125rem;
|
|
156
|
+
--radius-xl: 0.75rem;
|
|
157
|
+
--ring: #60606C;
|
|
158
|
+
--secondary: #EDEDED;
|
|
159
|
+
--secondary-foreground: #17171C;
|
|
160
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
161
|
+
--shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
162
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
163
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
164
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
165
|
+
--shadow-none: none;
|
|
166
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
167
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
168
|
+
--spacing-0: 0;
|
|
169
|
+
--spacing-1: 0.25rem;
|
|
170
|
+
--spacing-10: 2.5rem;
|
|
171
|
+
--spacing-12: 3rem;
|
|
172
|
+
--spacing-16: 4rem;
|
|
173
|
+
--spacing-2: 0.5rem;
|
|
174
|
+
--spacing-20: 5rem;
|
|
175
|
+
--spacing-24: 6rem;
|
|
176
|
+
--spacing-3: 0.75rem;
|
|
177
|
+
--spacing-4: 1rem;
|
|
178
|
+
--spacing-5: 1.25rem;
|
|
179
|
+
--spacing-6: 1.5rem;
|
|
180
|
+
--spacing-8: 2rem;
|
|
181
|
+
--surface-base: #FFFFFF;
|
|
182
|
+
--surface-base-border: #BEBEC1;
|
|
183
|
+
--surface-elevated: #EDEDED;
|
|
184
|
+
--surface-elevated-border: #DFDFE2;
|
|
185
|
+
--surface-overlay: rgba(0, 0, 0, 0.5);
|
|
186
|
+
--text-body: #17171C;
|
|
187
|
+
--text-disabled: #BEBEC1;
|
|
188
|
+
--text-heading: #17171C;
|
|
189
|
+
--text-muted: #BEBEC1;
|
|
190
|
+
--z-dropdown: 1000;
|
|
191
|
+
--z-fixed: 1030;
|
|
192
|
+
--z-modal: 1050;
|
|
193
|
+
--z-modal-backdrop: 1040;
|
|
194
|
+
--z-popover: 1060;
|
|
195
|
+
--z-sticky: 1020;
|
|
196
|
+
--z-tooltip: 1070;
|
|
197
|
+
|
|
198
|
+
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
199
|
+
color: var(--text-body);
|
|
200
|
+
background-color: var(--surface-base);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Dark Mode Theme
|
|
205
|
+
* Applied when .dark class is present on root element
|
|
206
|
+
* Source: src/tokens/semantic.ts -> borderTokens.dark, contentTokens.dark, backgroundTokens.dark
|
|
207
|
+
*/
|
|
208
|
+
.dark {
|
|
10
209
|
--accent: #17171C;
|
|
11
210
|
--accent-foreground: #DFDFE2;
|
|
12
211
|
--background: #09090B;
|
|
13
|
-
--background-base: #09090B;
|
|
14
212
|
--background-green: #00471A;
|
|
15
213
|
--background-green-on-hover: #006625;
|
|
16
214
|
--background-info: #00123D;
|
|
@@ -21,11 +219,11 @@
|
|
|
21
219
|
--background-low-on-hover: #2F2F37;
|
|
22
220
|
--background-orange: #331500;
|
|
23
221
|
--background-orange-on-hover: #5C2500;
|
|
24
|
-
--background-primary: #
|
|
25
|
-
--background-primary-on-hover: #001E66;
|
|
222
|
+
--background-primary: #09090B;
|
|
26
223
|
--background-red: #2D060D;
|
|
27
224
|
--background-red-on-hover: #4C0B17;
|
|
28
225
|
--background-secondary: #17171C;
|
|
226
|
+
--background-system: #09090B;
|
|
29
227
|
--background-tertiary: #2F2F37;
|
|
30
228
|
--background-yellow: #3D2600;
|
|
31
229
|
--background-yellow-on-hover: #5C3A00;
|
|
@@ -194,10 +392,6 @@
|
|
|
194
392
|
--z-popover: 1060;
|
|
195
393
|
--z-sticky: 1020;
|
|
196
394
|
--z-tooltip: 1070;
|
|
197
|
-
|
|
198
|
-
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
199
|
-
color: var(--text-body);
|
|
200
|
-
background-color: var(--surface-base);
|
|
201
395
|
}
|
|
202
396
|
|
|
203
397
|
* {
|
|
@@ -213,6 +407,54 @@
|
|
|
213
407
|
}
|
|
214
408
|
}
|
|
215
409
|
|
|
410
|
+
@layer base {
|
|
411
|
+
* {
|
|
412
|
+
border-color: var(--border-primary);
|
|
413
|
+
}
|
|
414
|
+
body {
|
|
415
|
+
background-color: var(--background-primary);
|
|
416
|
+
color: var(--content-primary);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Non-color global defaults derived from consumer app (safe subset) */
|
|
421
|
+
@layer base {
|
|
422
|
+
html {
|
|
423
|
+
font-size: 10px;
|
|
424
|
+
}
|
|
425
|
+
html, body {
|
|
426
|
+
height: 100vh;
|
|
427
|
+
min-height: 100vh;
|
|
428
|
+
width: 100vw;
|
|
429
|
+
min-width: 100vw;
|
|
430
|
+
margin: 0;
|
|
431
|
+
padding: 0;
|
|
432
|
+
}
|
|
433
|
+
body {
|
|
434
|
+
font-family: var(--font-sans);
|
|
435
|
+
-webkit-font-smoothing: antialiased;
|
|
436
|
+
-moz-osx-font-smoothing: grayscale;
|
|
437
|
+
}
|
|
438
|
+
*, ::before, ::after {
|
|
439
|
+
box-sizing: border-box;
|
|
440
|
+
border-width: 0;
|
|
441
|
+
}
|
|
442
|
+
:focus {
|
|
443
|
+
outline: 0 !important;
|
|
444
|
+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
|
|
445
|
+
}
|
|
446
|
+
/* Autofill behavior */
|
|
447
|
+
input:-webkit-autofill,
|
|
448
|
+
input:-webkit-autofill:hover,
|
|
449
|
+
input:-webkit-autofill:focus,
|
|
450
|
+
input:-webkit-autofill:active {
|
|
451
|
+
background-color: transparent;
|
|
452
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
453
|
+
-webkit-text-fill-color: var(--content-primary);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* Utilities */
|
|
216
458
|
@layer utilities {
|
|
217
459
|
/* Screen reader only utility - visually hidden but accessible to assistive technologies */
|
|
218
460
|
.sr-only {
|
|
@@ -226,4 +468,22 @@
|
|
|
226
468
|
white-space: nowrap;
|
|
227
469
|
border-width: 0;
|
|
228
470
|
}
|
|
471
|
+
/* Hide scrollbar */
|
|
472
|
+
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
473
|
+
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
|
|
474
|
+
/* Backdrop blur helpers */
|
|
475
|
+
.backdrop-blur-sm { backdrop-filter: blur(4px); }
|
|
476
|
+
.backdrop-blur { backdrop-filter: blur(8px); }
|
|
477
|
+
/* Transition helpers */
|
|
478
|
+
.transition-all { transition: all 0.15s ease-in-out; }
|
|
479
|
+
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
|
|
480
|
+
/* Opacity helpers */
|
|
481
|
+
.opacity-50 { opacity: 0.5; }
|
|
482
|
+
.opacity-60 { opacity: 0.6; }
|
|
483
|
+
.opacity-80 { opacity: 0.8; }
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/* Component-friendly defaults (non-color) */
|
|
487
|
+
@layer components {
|
|
488
|
+
button { font-family: inherit; font-size: inherit; }
|
|
229
489
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,9 @@ declare const ADAPTER_TYPES: readonly ["shadcn", "material"];
|
|
|
8
8
|
type ThemeMode = typeof THEME_MODES[number];
|
|
9
9
|
type ThemeName = typeof THEME_NAMES[number];
|
|
10
10
|
type AdapterType = typeof ADAPTER_TYPES[number];
|
|
11
|
+
declare const DEFAULT_MODE: ThemeMode;
|
|
12
|
+
declare const DEFAULT_THEME: "base";
|
|
13
|
+
declare const DEFAULT_ADAPTER: "shadcn";
|
|
11
14
|
interface DesignSystemConfig {
|
|
12
15
|
adapter: AdapterType;
|
|
13
16
|
theme: ThemeName;
|
|
@@ -132,9 +135,8 @@ declare const contentTokens: {
|
|
|
132
135
|
*/
|
|
133
136
|
declare const backgroundTokens: {
|
|
134
137
|
readonly dark: {
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly primaryOnHover: "#001E66";
|
|
138
|
+
readonly primary: "#09090B";
|
|
139
|
+
readonly system: "#09090B";
|
|
138
140
|
readonly secondary: "#17171C";
|
|
139
141
|
readonly tertiary: "#2F2F37";
|
|
140
142
|
readonly invert: "#FFFFFF";
|
|
@@ -151,11 +153,11 @@ declare const backgroundTokens: {
|
|
|
151
153
|
readonly lowOnHover: "#2F2F37";
|
|
152
154
|
readonly info: "#00123D";
|
|
153
155
|
readonly infoOnHover: "#001E66";
|
|
156
|
+
readonly base: "#09090B";
|
|
154
157
|
};
|
|
155
158
|
readonly light: {
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly primaryOnHover: "#99B7FF";
|
|
159
|
+
readonly primary: "#FFFFFF";
|
|
160
|
+
readonly system: "#FAFAFA";
|
|
159
161
|
readonly secondary: "#EDEDED";
|
|
160
162
|
readonly tertiary: "#DFDFE2";
|
|
161
163
|
readonly invert: "#09090B";
|
|
@@ -172,6 +174,7 @@ declare const backgroundTokens: {
|
|
|
172
174
|
readonly lowOnHover: "#DFDFE2";
|
|
173
175
|
readonly info: "#EBF1FF";
|
|
174
176
|
readonly infoOnHover: "#99B7FF";
|
|
177
|
+
readonly base: "#FFFFFF";
|
|
175
178
|
};
|
|
176
179
|
};
|
|
177
180
|
declare const semanticTokens: {
|
|
@@ -273,9 +276,8 @@ declare const semanticTokens: {
|
|
|
273
276
|
};
|
|
274
277
|
readonly background: {
|
|
275
278
|
readonly dark: {
|
|
276
|
-
readonly
|
|
277
|
-
readonly
|
|
278
|
-
readonly primaryOnHover: "#001E66";
|
|
279
|
+
readonly primary: "#09090B";
|
|
280
|
+
readonly system: "#09090B";
|
|
279
281
|
readonly secondary: "#17171C";
|
|
280
282
|
readonly tertiary: "#2F2F37";
|
|
281
283
|
readonly invert: "#FFFFFF";
|
|
@@ -292,11 +294,11 @@ declare const semanticTokens: {
|
|
|
292
294
|
readonly lowOnHover: "#2F2F37";
|
|
293
295
|
readonly info: "#00123D";
|
|
294
296
|
readonly infoOnHover: "#001E66";
|
|
297
|
+
readonly base: "#09090B";
|
|
295
298
|
};
|
|
296
299
|
readonly light: {
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
299
|
-
readonly primaryOnHover: "#99B7FF";
|
|
300
|
+
readonly primary: "#FFFFFF";
|
|
301
|
+
readonly system: "#FAFAFA";
|
|
300
302
|
readonly secondary: "#EDEDED";
|
|
301
303
|
readonly tertiary: "#DFDFE2";
|
|
302
304
|
readonly invert: "#09090B";
|
|
@@ -313,6 +315,7 @@ declare const semanticTokens: {
|
|
|
313
315
|
readonly lowOnHover: "#DFDFE2";
|
|
314
316
|
readonly info: "#EBF1FF";
|
|
315
317
|
readonly infoOnHover: "#99B7FF";
|
|
318
|
+
readonly base: "#FFFFFF";
|
|
316
319
|
};
|
|
317
320
|
};
|
|
318
321
|
};
|
|
@@ -1033,9 +1036,8 @@ declare const tokens: {
|
|
|
1033
1036
|
};
|
|
1034
1037
|
readonly background: {
|
|
1035
1038
|
readonly dark: {
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly
|
|
1038
|
-
readonly primaryOnHover: "#001E66";
|
|
1039
|
+
readonly primary: "#09090B";
|
|
1040
|
+
readonly system: "#09090B";
|
|
1039
1041
|
readonly secondary: "#17171C";
|
|
1040
1042
|
readonly tertiary: "#2F2F37";
|
|
1041
1043
|
readonly invert: "#FFFFFF";
|
|
@@ -1052,11 +1054,11 @@ declare const tokens: {
|
|
|
1052
1054
|
readonly lowOnHover: "#2F2F37";
|
|
1053
1055
|
readonly info: "#00123D";
|
|
1054
1056
|
readonly infoOnHover: "#001E66";
|
|
1057
|
+
readonly base: "#09090B";
|
|
1055
1058
|
};
|
|
1056
1059
|
readonly light: {
|
|
1057
|
-
readonly
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly primaryOnHover: "#99B7FF";
|
|
1060
|
+
readonly primary: "#FFFFFF";
|
|
1061
|
+
readonly system: "#FAFAFA";
|
|
1060
1062
|
readonly secondary: "#EDEDED";
|
|
1061
1063
|
readonly tertiary: "#DFDFE2";
|
|
1062
1064
|
readonly invert: "#09090B";
|
|
@@ -1073,6 +1075,7 @@ declare const tokens: {
|
|
|
1073
1075
|
readonly lowOnHover: "#DFDFE2";
|
|
1074
1076
|
readonly info: "#EBF1FF";
|
|
1075
1077
|
readonly infoOnHover: "#99B7FF";
|
|
1078
|
+
readonly base: "#FFFFFF";
|
|
1076
1079
|
};
|
|
1077
1080
|
};
|
|
1078
1081
|
readonly all: {
|
|
@@ -1174,9 +1177,8 @@ declare const tokens: {
|
|
|
1174
1177
|
};
|
|
1175
1178
|
readonly background: {
|
|
1176
1179
|
readonly dark: {
|
|
1177
|
-
readonly
|
|
1178
|
-
readonly
|
|
1179
|
-
readonly primaryOnHover: "#001E66";
|
|
1180
|
+
readonly primary: "#09090B";
|
|
1181
|
+
readonly system: "#09090B";
|
|
1180
1182
|
readonly secondary: "#17171C";
|
|
1181
1183
|
readonly tertiary: "#2F2F37";
|
|
1182
1184
|
readonly invert: "#FFFFFF";
|
|
@@ -1193,11 +1195,11 @@ declare const tokens: {
|
|
|
1193
1195
|
readonly lowOnHover: "#2F2F37";
|
|
1194
1196
|
readonly info: "#00123D";
|
|
1195
1197
|
readonly infoOnHover: "#001E66";
|
|
1198
|
+
readonly base: "#09090B";
|
|
1196
1199
|
};
|
|
1197
1200
|
readonly light: {
|
|
1198
|
-
readonly
|
|
1199
|
-
readonly
|
|
1200
|
-
readonly primaryOnHover: "#99B7FF";
|
|
1201
|
+
readonly primary: "#FFFFFF";
|
|
1202
|
+
readonly system: "#FAFAFA";
|
|
1201
1203
|
readonly secondary: "#EDEDED";
|
|
1202
1204
|
readonly tertiary: "#DFDFE2";
|
|
1203
1205
|
readonly invert: "#09090B";
|
|
@@ -1214,6 +1216,7 @@ declare const tokens: {
|
|
|
1214
1216
|
readonly lowOnHover: "#DFDFE2";
|
|
1215
1217
|
readonly info: "#EBF1FF";
|
|
1216
1218
|
readonly infoOnHover: "#99B7FF";
|
|
1219
|
+
readonly base: "#FFFFFF";
|
|
1217
1220
|
};
|
|
1218
1221
|
};
|
|
1219
1222
|
};
|
|
@@ -1474,4 +1477,4 @@ declare function validateAccessibilityProps(props: AccessibilityProps, component
|
|
|
1474
1477
|
iconOnly?: boolean;
|
|
1475
1478
|
}): void;
|
|
1476
1479
|
|
|
1477
|
-
export { ADAPTER_TYPES, type AccessibilityProps, type AdapterType, BUTTON_TYPES, type BackgroundToken, type BorderToken, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonType, COLOR_SCALES, type ColorName, type ColorPrimitives, type ColorScale, type Colors, type ContentToken, type DesignSystemConfig, INPUT_TYPES, INTENTS, type InputType, type Intent, type LucideIconName, ORIENTATIONS, type Orientation, type Radius, SIZES, SURFACE_LEVELS, type SemanticToken, type SemanticTokens, type Shadows, type Size, type Spacing, type SurfaceLevel, THEME_MODES, THEME_NAMES, type Theme, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, type Tokens, type Typography, VARIANTS, type Variant, type ZIndex, backgroundTokens, blue, borderTokens, colorPrimitives, colors, contentTokens, createSemanticTokens, createTheme, getAdapter, getAvailableIconNames, getDesignSystemConfig, getIcon, getThemeMode, getThemeName, green, iconExists, neutral, orange, radius, red, renderIcon, semanticTokens, setDesignSystemConfig, shadows, spacing, tokens, typography, useTheme, validateAccessibilityProps, yellow, zIndex };
|
|
1480
|
+
export { ADAPTER_TYPES, type AccessibilityProps, type AdapterType, BUTTON_TYPES, type BackgroundToken, type BorderToken, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonType, COLOR_SCALES, type ColorName, type ColorPrimitives, type ColorScale, type Colors, type ContentToken, DEFAULT_ADAPTER, DEFAULT_MODE, DEFAULT_THEME, type DesignSystemConfig, INPUT_TYPES, INTENTS, type InputType, type Intent, type LucideIconName, ORIENTATIONS, type Orientation, type Radius, SIZES, SURFACE_LEVELS, type SemanticToken, type SemanticTokens, type Shadows, type Size, type Spacing, type SurfaceLevel, THEME_MODES, THEME_NAMES, type Theme, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, type Tokens, type Typography, VARIANTS, type Variant, type ZIndex, backgroundTokens, blue, borderTokens, colorPrimitives, colors, contentTokens, createSemanticTokens, createTheme, getAdapter, getAvailableIconNames, getDesignSystemConfig, getIcon, getThemeMode, getThemeName, green, iconExists, neutral, orange, radius, red, renderIcon, semanticTokens, setDesignSystemConfig, shadows, spacing, tokens, typography, useTheme, validateAccessibilityProps, yellow, zIndex };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ declare const ADAPTER_TYPES: readonly ["shadcn", "material"];
|
|
|
8
8
|
type ThemeMode = typeof THEME_MODES[number];
|
|
9
9
|
type ThemeName = typeof THEME_NAMES[number];
|
|
10
10
|
type AdapterType = typeof ADAPTER_TYPES[number];
|
|
11
|
+
declare const DEFAULT_MODE: ThemeMode;
|
|
12
|
+
declare const DEFAULT_THEME: "base";
|
|
13
|
+
declare const DEFAULT_ADAPTER: "shadcn";
|
|
11
14
|
interface DesignSystemConfig {
|
|
12
15
|
adapter: AdapterType;
|
|
13
16
|
theme: ThemeName;
|
|
@@ -132,9 +135,8 @@ declare const contentTokens: {
|
|
|
132
135
|
*/
|
|
133
136
|
declare const backgroundTokens: {
|
|
134
137
|
readonly dark: {
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly primaryOnHover: "#001E66";
|
|
138
|
+
readonly primary: "#09090B";
|
|
139
|
+
readonly system: "#09090B";
|
|
138
140
|
readonly secondary: "#17171C";
|
|
139
141
|
readonly tertiary: "#2F2F37";
|
|
140
142
|
readonly invert: "#FFFFFF";
|
|
@@ -151,11 +153,11 @@ declare const backgroundTokens: {
|
|
|
151
153
|
readonly lowOnHover: "#2F2F37";
|
|
152
154
|
readonly info: "#00123D";
|
|
153
155
|
readonly infoOnHover: "#001E66";
|
|
156
|
+
readonly base: "#09090B";
|
|
154
157
|
};
|
|
155
158
|
readonly light: {
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly primaryOnHover: "#99B7FF";
|
|
159
|
+
readonly primary: "#FFFFFF";
|
|
160
|
+
readonly system: "#FAFAFA";
|
|
159
161
|
readonly secondary: "#EDEDED";
|
|
160
162
|
readonly tertiary: "#DFDFE2";
|
|
161
163
|
readonly invert: "#09090B";
|
|
@@ -172,6 +174,7 @@ declare const backgroundTokens: {
|
|
|
172
174
|
readonly lowOnHover: "#DFDFE2";
|
|
173
175
|
readonly info: "#EBF1FF";
|
|
174
176
|
readonly infoOnHover: "#99B7FF";
|
|
177
|
+
readonly base: "#FFFFFF";
|
|
175
178
|
};
|
|
176
179
|
};
|
|
177
180
|
declare const semanticTokens: {
|
|
@@ -273,9 +276,8 @@ declare const semanticTokens: {
|
|
|
273
276
|
};
|
|
274
277
|
readonly background: {
|
|
275
278
|
readonly dark: {
|
|
276
|
-
readonly
|
|
277
|
-
readonly
|
|
278
|
-
readonly primaryOnHover: "#001E66";
|
|
279
|
+
readonly primary: "#09090B";
|
|
280
|
+
readonly system: "#09090B";
|
|
279
281
|
readonly secondary: "#17171C";
|
|
280
282
|
readonly tertiary: "#2F2F37";
|
|
281
283
|
readonly invert: "#FFFFFF";
|
|
@@ -292,11 +294,11 @@ declare const semanticTokens: {
|
|
|
292
294
|
readonly lowOnHover: "#2F2F37";
|
|
293
295
|
readonly info: "#00123D";
|
|
294
296
|
readonly infoOnHover: "#001E66";
|
|
297
|
+
readonly base: "#09090B";
|
|
295
298
|
};
|
|
296
299
|
readonly light: {
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
299
|
-
readonly primaryOnHover: "#99B7FF";
|
|
300
|
+
readonly primary: "#FFFFFF";
|
|
301
|
+
readonly system: "#FAFAFA";
|
|
300
302
|
readonly secondary: "#EDEDED";
|
|
301
303
|
readonly tertiary: "#DFDFE2";
|
|
302
304
|
readonly invert: "#09090B";
|
|
@@ -313,6 +315,7 @@ declare const semanticTokens: {
|
|
|
313
315
|
readonly lowOnHover: "#DFDFE2";
|
|
314
316
|
readonly info: "#EBF1FF";
|
|
315
317
|
readonly infoOnHover: "#99B7FF";
|
|
318
|
+
readonly base: "#FFFFFF";
|
|
316
319
|
};
|
|
317
320
|
};
|
|
318
321
|
};
|
|
@@ -1033,9 +1036,8 @@ declare const tokens: {
|
|
|
1033
1036
|
};
|
|
1034
1037
|
readonly background: {
|
|
1035
1038
|
readonly dark: {
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly
|
|
1038
|
-
readonly primaryOnHover: "#001E66";
|
|
1039
|
+
readonly primary: "#09090B";
|
|
1040
|
+
readonly system: "#09090B";
|
|
1039
1041
|
readonly secondary: "#17171C";
|
|
1040
1042
|
readonly tertiary: "#2F2F37";
|
|
1041
1043
|
readonly invert: "#FFFFFF";
|
|
@@ -1052,11 +1054,11 @@ declare const tokens: {
|
|
|
1052
1054
|
readonly lowOnHover: "#2F2F37";
|
|
1053
1055
|
readonly info: "#00123D";
|
|
1054
1056
|
readonly infoOnHover: "#001E66";
|
|
1057
|
+
readonly base: "#09090B";
|
|
1055
1058
|
};
|
|
1056
1059
|
readonly light: {
|
|
1057
|
-
readonly
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly primaryOnHover: "#99B7FF";
|
|
1060
|
+
readonly primary: "#FFFFFF";
|
|
1061
|
+
readonly system: "#FAFAFA";
|
|
1060
1062
|
readonly secondary: "#EDEDED";
|
|
1061
1063
|
readonly tertiary: "#DFDFE2";
|
|
1062
1064
|
readonly invert: "#09090B";
|
|
@@ -1073,6 +1075,7 @@ declare const tokens: {
|
|
|
1073
1075
|
readonly lowOnHover: "#DFDFE2";
|
|
1074
1076
|
readonly info: "#EBF1FF";
|
|
1075
1077
|
readonly infoOnHover: "#99B7FF";
|
|
1078
|
+
readonly base: "#FFFFFF";
|
|
1076
1079
|
};
|
|
1077
1080
|
};
|
|
1078
1081
|
readonly all: {
|
|
@@ -1174,9 +1177,8 @@ declare const tokens: {
|
|
|
1174
1177
|
};
|
|
1175
1178
|
readonly background: {
|
|
1176
1179
|
readonly dark: {
|
|
1177
|
-
readonly
|
|
1178
|
-
readonly
|
|
1179
|
-
readonly primaryOnHover: "#001E66";
|
|
1180
|
+
readonly primary: "#09090B";
|
|
1181
|
+
readonly system: "#09090B";
|
|
1180
1182
|
readonly secondary: "#17171C";
|
|
1181
1183
|
readonly tertiary: "#2F2F37";
|
|
1182
1184
|
readonly invert: "#FFFFFF";
|
|
@@ -1193,11 +1195,11 @@ declare const tokens: {
|
|
|
1193
1195
|
readonly lowOnHover: "#2F2F37";
|
|
1194
1196
|
readonly info: "#00123D";
|
|
1195
1197
|
readonly infoOnHover: "#001E66";
|
|
1198
|
+
readonly base: "#09090B";
|
|
1196
1199
|
};
|
|
1197
1200
|
readonly light: {
|
|
1198
|
-
readonly
|
|
1199
|
-
readonly
|
|
1200
|
-
readonly primaryOnHover: "#99B7FF";
|
|
1201
|
+
readonly primary: "#FFFFFF";
|
|
1202
|
+
readonly system: "#FAFAFA";
|
|
1201
1203
|
readonly secondary: "#EDEDED";
|
|
1202
1204
|
readonly tertiary: "#DFDFE2";
|
|
1203
1205
|
readonly invert: "#09090B";
|
|
@@ -1214,6 +1216,7 @@ declare const tokens: {
|
|
|
1214
1216
|
readonly lowOnHover: "#DFDFE2";
|
|
1215
1217
|
readonly info: "#EBF1FF";
|
|
1216
1218
|
readonly infoOnHover: "#99B7FF";
|
|
1219
|
+
readonly base: "#FFFFFF";
|
|
1217
1220
|
};
|
|
1218
1221
|
};
|
|
1219
1222
|
};
|
|
@@ -1474,4 +1477,4 @@ declare function validateAccessibilityProps(props: AccessibilityProps, component
|
|
|
1474
1477
|
iconOnly?: boolean;
|
|
1475
1478
|
}): void;
|
|
1476
1479
|
|
|
1477
|
-
export { ADAPTER_TYPES, type AccessibilityProps, type AdapterType, BUTTON_TYPES, type BackgroundToken, type BorderToken, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonType, COLOR_SCALES, type ColorName, type ColorPrimitives, type ColorScale, type Colors, type ContentToken, type DesignSystemConfig, INPUT_TYPES, INTENTS, type InputType, type Intent, type LucideIconName, ORIENTATIONS, type Orientation, type Radius, SIZES, SURFACE_LEVELS, type SemanticToken, type SemanticTokens, type Shadows, type Size, type Spacing, type SurfaceLevel, THEME_MODES, THEME_NAMES, type Theme, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, type Tokens, type Typography, VARIANTS, type Variant, type ZIndex, backgroundTokens, blue, borderTokens, colorPrimitives, colors, contentTokens, createSemanticTokens, createTheme, getAdapter, getAvailableIconNames, getDesignSystemConfig, getIcon, getThemeMode, getThemeName, green, iconExists, neutral, orange, radius, red, renderIcon, semanticTokens, setDesignSystemConfig, shadows, spacing, tokens, typography, useTheme, validateAccessibilityProps, yellow, zIndex };
|
|
1480
|
+
export { ADAPTER_TYPES, type AccessibilityProps, type AdapterType, BUTTON_TYPES, type BackgroundToken, type BorderToken, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonType, COLOR_SCALES, type ColorName, type ColorPrimitives, type ColorScale, type Colors, type ContentToken, DEFAULT_ADAPTER, DEFAULT_MODE, DEFAULT_THEME, type DesignSystemConfig, INPUT_TYPES, INTENTS, type InputType, type Intent, type LucideIconName, ORIENTATIONS, type Orientation, type Radius, SIZES, SURFACE_LEVELS, type SemanticToken, type SemanticTokens, type Shadows, type Size, type Spacing, type SurfaceLevel, THEME_MODES, THEME_NAMES, type Theme, type ThemeMode, type ThemeName, ThemeProvider, type ThemeProviderProps, type Tokens, type Typography, VARIANTS, type Variant, type ZIndex, backgroundTokens, blue, borderTokens, colorPrimitives, colors, contentTokens, createSemanticTokens, createTheme, getAdapter, getAvailableIconNames, getDesignSystemConfig, getIcon, getThemeMode, getThemeName, green, iconExists, neutral, orange, radius, red, renderIcon, semanticTokens, setDesignSystemConfig, shadows, spacing, tokens, typography, useTheme, validateAccessibilityProps, yellow, zIndex };
|