baseline-ds 0.1.4
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 +330 -0
- package/dist/index.css +1970 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +743 -0
- package/dist/index.d.ts +743 -0
- package/dist/index.js +3843 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3756 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tokens/baseline/css/variables.css +278 -0
- package/dist/tokens/baseline/js/tokens.js +223 -0
- package/dist/tokens/baseline/json/tokens.json +305 -0
- package/dist/tokens/baseline/scss/_variables.scss +222 -0
- package/dist/tokens/baseline-pro/css/variables.css +278 -0
- package/dist/tokens/baseline-pro/js/tokens.js +223 -0
- package/dist/tokens/baseline-pro/json/tokens.json +305 -0
- package/dist/tokens/baseline-pro/scss/_variables.scss +222 -0
- package/dist/tokens/offset/css/variables.css +278 -0
- package/dist/tokens/offset/js/tokens.js +223 -0
- package/dist/tokens/offset/json/tokens.json +305 -0
- package/dist/tokens/offset/scss/_variables.scss +222 -0
- package/dist/tokens/primitives/css/variables.css +183 -0
- package/dist/tokens/primitives/js/tokens.js +181 -0
- package/dist/tokens/primitives/json/tokens.json +229 -0
- package/dist/tokens/primitives/scss/_variables.scss +180 -0
- package/dist/tokens/semantic/css/variables.css +48 -0
- package/dist/tokens/semantic/js/tokens.js +265 -0
- package/dist/tokens/semantic/json/tokens.json +395 -0
- package/dist/tokens/semantic/scss/_variables.scss +264 -0
- package/package.json +84 -0
- package/src/fonts.css +17 -0
- package/tokens/token_0001PrimitiveBrand_Baseline.json +204 -0
- package/tokens/token_0001PrimitiveBrand_BaselinePro.json +204 -0
- package/tokens/token_0001PrimitiveBrand_Offset.json +204 -0
- package/tokens/token_0100SemanticCore_Mode1.json +218 -0
- package/tokens/token__0000PrimitiveCore_Mode1.json +760 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
|
|
2
|
+
// Do not edit directly, this file was auto-generated.
|
|
3
|
+
|
|
4
|
+
$primitive-color-azure-100: #f1f1fc;
|
|
5
|
+
$primitive-color-azure-200: #e4e4f9;
|
|
6
|
+
$primitive-color-azure-300: #babbf0;
|
|
7
|
+
$primitive-color-azure-400: #8889e5;
|
|
8
|
+
$primitive-color-azure-500: #6568dd;
|
|
9
|
+
$primitive-color-azure-600: #5154d9;
|
|
10
|
+
$primitive-color-azure-700: #292cbd;
|
|
11
|
+
$primitive-color-azure-800: #1d2087;
|
|
12
|
+
$primitive-color-azure-900: #161865;
|
|
13
|
+
$primitive-color-blue-100: #edf2ff;
|
|
14
|
+
$primitive-color-blue-200: #dde6fe;
|
|
15
|
+
$primitive-color-blue-300: #a6befd;
|
|
16
|
+
$primitive-color-blue-400: #648dfc;
|
|
17
|
+
$primitive-color-blue-500: #3269fb;
|
|
18
|
+
$primitive-color-blue-600: #1252fb;
|
|
19
|
+
$primitive-color-blue-700: #0334b7;
|
|
20
|
+
$primitive-color-blue-800: #022683;
|
|
21
|
+
$primitive-color-blue-900: #021c62;
|
|
22
|
+
$primitive-color-brick-100: #f8f0f0;
|
|
23
|
+
$primitive-color-brick-200: #e9d1d1;
|
|
24
|
+
$primitive-color-brick-300: #ddb6b7;
|
|
25
|
+
$primitive-color-brick-400: #d29e9f;
|
|
26
|
+
$primitive-color-brick-500: #bc6f71;
|
|
27
|
+
$primitive-color-brick-600: #b35b5d;
|
|
28
|
+
$primitive-color-brick-700: #8c4143;
|
|
29
|
+
$primitive-color-brick-800: #4e2425;
|
|
30
|
+
$primitive-color-brick-900: #3a1b1b;
|
|
31
|
+
$primitive-color-emerald-100: #eaf5ea;
|
|
32
|
+
$primitive-color-emerald-200: #bce0bd;
|
|
33
|
+
$primitive-color-emerald-300: #93cd96;
|
|
34
|
+
$primitive-color-emerald-400: #6fbc72;
|
|
35
|
+
$primitive-color-emerald-500: #459549;
|
|
36
|
+
$primitive-color-emerald-600: #357238;
|
|
37
|
+
$primitive-color-emerald-700: #2e6331;
|
|
38
|
+
$primitive-color-emerald-800: #244e26;
|
|
39
|
+
$primitive-color-emerald-900: #132914;
|
|
40
|
+
$primitive-color-green-100: #daf9e9;
|
|
41
|
+
$primitive-color-green-200: #b5f4d4;
|
|
42
|
+
$primitive-color-green-300: #22da7c;
|
|
43
|
+
$primitive-color-green-400: #1aa85f;
|
|
44
|
+
$primitive-color-green-500: #15864c;
|
|
45
|
+
$primitive-color-green-600: #127442;
|
|
46
|
+
$primitive-color-green-700: #0c502d;
|
|
47
|
+
$primitive-color-green-800: #093820;
|
|
48
|
+
$primitive-color-green-900: #062a18;
|
|
49
|
+
$primitive-color-grey-100: #f6f6f6;
|
|
50
|
+
$primitive-color-grey-200: #e6e6e5;
|
|
51
|
+
$primitive-color-grey-300: #c0bfbd;
|
|
52
|
+
$primitive-color-grey-400: #acaaa8;
|
|
53
|
+
$primitive-color-grey-500: #949290;
|
|
54
|
+
$primitive-color-grey-600: #676563;
|
|
55
|
+
$primitive-color-grey-700: #595856;
|
|
56
|
+
$primitive-color-grey-800: #464543;
|
|
57
|
+
$primitive-color-grey-900: #121212;
|
|
58
|
+
$primitive-color-pink-100: #feeef8;
|
|
59
|
+
$primitive-color-pink-200: #fdc7e8;
|
|
60
|
+
$primitive-color-pink-300: #fba4da;
|
|
61
|
+
$primitive-color-pink-400: #fa81cc;
|
|
62
|
+
$primitive-color-pink-500: #f521a5;
|
|
63
|
+
$primitive-color-pink-600: #df0a8e;
|
|
64
|
+
$primitive-color-pink-700: #aa076c;
|
|
65
|
+
$primitive-color-pink-800: #62043e;
|
|
66
|
+
$primitive-color-pink-900: #4a032f;
|
|
67
|
+
$primitive-color-purple-100: #f8f0f6;
|
|
68
|
+
$primitive-color-purple-200: #e9cfe4;
|
|
69
|
+
$primitive-color-purple-300: #dcb3d4;
|
|
70
|
+
$primitive-color-purple-400: #d09ac5;
|
|
71
|
+
$primitive-color-purple-500: #c27bb4;
|
|
72
|
+
$primitive-color-purple-600: #b969a9;
|
|
73
|
+
$primitive-color-purple-700: #af539d;
|
|
74
|
+
$primitive-color-purple-800: #853e77;
|
|
75
|
+
$primitive-color-purple-900: #4a2242;
|
|
76
|
+
$primitive-color-red-100: #feefee;
|
|
77
|
+
$primitive-color-red-200: #fedfde;
|
|
78
|
+
$primitive-color-red-300: #fbaaa8;
|
|
79
|
+
$primitive-color-red-400: #f85f5b;
|
|
80
|
+
$primitive-color-red-500: #ea0f0a;
|
|
81
|
+
$primitive-color-red-600: #cc0d08;
|
|
82
|
+
$primitive-color-red-700: #8e0906;
|
|
83
|
+
$primitive-color-red-800: #670704;
|
|
84
|
+
$primitive-color-red-900: #4e0503;
|
|
85
|
+
$primitive-color-white-500: #ffffff;
|
|
86
|
+
$primitive-color-yellow-100: #fdf3c1;
|
|
87
|
+
$primitive-color-yellow-200: #fbe682;
|
|
88
|
+
$primitive-color-yellow-300: #f9d425;
|
|
89
|
+
$primitive-color-yellow-400: #e2bc06;
|
|
90
|
+
$primitive-color-yellow-500: #caa806;
|
|
91
|
+
$primitive-color-yellow-600: #8b7304;
|
|
92
|
+
$primitive-color-yellow-700: #786403;
|
|
93
|
+
$primitive-color-yellow-800: #524402;
|
|
94
|
+
$primitive-color-yellow-900: #2b2301;
|
|
95
|
+
$primitive-color-yellow-050: #f9fae1;
|
|
96
|
+
$primitive-color-yolk-100: #fef1d0;
|
|
97
|
+
$primitive-color-yolk-200: #fce4a2;
|
|
98
|
+
$primitive-color-yolk-300: #f4b407;
|
|
99
|
+
$primitive-color-yolk-400: #bb8a05;
|
|
100
|
+
$primitive-color-yolk-500: #966f04;
|
|
101
|
+
$primitive-color-yolk-600: #826004;
|
|
102
|
+
$primitive-color-yolk-700: #594102;
|
|
103
|
+
$primitive-color-yolk-800: #3f2e02;
|
|
104
|
+
$primitive-color-yolk-900: #2e2201;
|
|
105
|
+
$primitive-sizing-radius-100: 0.500rem;
|
|
106
|
+
$primitive-sizing-radius-150: 0.750rem;
|
|
107
|
+
$primitive-sizing-radius-200: 1.000rem;
|
|
108
|
+
$primitive-sizing-radius-300: 1.500rem;
|
|
109
|
+
$primitive-sizing-radius-000: 0.000rem;
|
|
110
|
+
$primitive-sizing-radius-025: 0.125rem;
|
|
111
|
+
$primitive-sizing-radius-050: 0.250rem;
|
|
112
|
+
$primitive-sizing-radius-075: 0.375rem;
|
|
113
|
+
$primitive-sizing-radius-full: 624.938rem;
|
|
114
|
+
$primitive-sizing-scale-100: 4.000rem;
|
|
115
|
+
$primitive-sizing-scale-110: 5.000rem;
|
|
116
|
+
$primitive-sizing-scale-120: 6.000rem;
|
|
117
|
+
$primitive-sizing-scale-130: 8.000rem;
|
|
118
|
+
$primitive-sizing-scale-140: 10.000rem;
|
|
119
|
+
$primitive-sizing-scale-000: 0.000rem;
|
|
120
|
+
$primitive-sizing-scale-010: 0.250rem;
|
|
121
|
+
$primitive-sizing-scale-020: 0.500rem;
|
|
122
|
+
$primitive-sizing-scale-030: 0.750rem;
|
|
123
|
+
$primitive-sizing-scale-040: 1.000rem;
|
|
124
|
+
$primitive-sizing-scale-050: 1.250rem;
|
|
125
|
+
$primitive-sizing-scale-060: 1.500rem;
|
|
126
|
+
$primitive-sizing-scale-070: 2.000rem;
|
|
127
|
+
$primitive-sizing-scale-080: 2.500rem;
|
|
128
|
+
$primitive-sizing-scale-090: 3.000rem;
|
|
129
|
+
$primitive-sizing-stroke-100: 0.125rem;
|
|
130
|
+
$primitive-sizing-stroke-200: 0.250rem;
|
|
131
|
+
$primitive-sizing-stroke-300: 0.375rem;
|
|
132
|
+
$primitive-sizing-stroke-000: 0.000rem;
|
|
133
|
+
$primitive-sizing-stroke-020: 0.016rem;
|
|
134
|
+
$primitive-sizing-stroke-050: 0.063rem;
|
|
135
|
+
$primitive-spacing-scale-100: 1.500rem;
|
|
136
|
+
$primitive-spacing-scale-110: 2.000rem;
|
|
137
|
+
$primitive-spacing-scale-120: 2.500rem;
|
|
138
|
+
$primitive-spacing-scale-130: 3.000rem;
|
|
139
|
+
$primitive-spacing-scale-140: 4.000rem;
|
|
140
|
+
$primitive-spacing-scale-150: 5.000rem;
|
|
141
|
+
$primitive-spacing-scale-160: 6.000rem;
|
|
142
|
+
$primitive-spacing-scale-000: 0.000rem;
|
|
143
|
+
$primitive-spacing-scale-010: 0.063rem;
|
|
144
|
+
$primitive-spacing-scale-020: 0.125rem;
|
|
145
|
+
$primitive-spacing-scale-030: 0.250rem;
|
|
146
|
+
$primitive-spacing-scale-040: 0.375rem;
|
|
147
|
+
$primitive-spacing-scale-050: 0.500rem;
|
|
148
|
+
$primitive-spacing-scale-060: 0.625rem;
|
|
149
|
+
$primitive-spacing-scale-070: 0.750rem;
|
|
150
|
+
$primitive-spacing-scale-080: 1.000rem;
|
|
151
|
+
$primitive-spacing-scale-090: 1.250rem;
|
|
152
|
+
$primitive-typography-font-family-dm-sans: DM Sans;
|
|
153
|
+
$primitive-typography-font-family-fustat: Fustat;
|
|
154
|
+
$primitive-typography-font-family-gabarito: Gabarito;
|
|
155
|
+
$primitive-typography-font-family-geist-mono: Geist Mono;
|
|
156
|
+
$primitive-typography-font-family-jet-brains-mono: JetBrains Mono;
|
|
157
|
+
$primitive-typography-font-size-100: 1.000rem;
|
|
158
|
+
$primitive-typography-font-size-120: 1.188rem;
|
|
159
|
+
$primitive-typography-font-size-145: 1.438rem;
|
|
160
|
+
$primitive-typography-font-size-175: 1.750rem;
|
|
161
|
+
$primitive-typography-font-size-200: 2.063rem;
|
|
162
|
+
$primitive-typography-font-size-250: 2.500rem;
|
|
163
|
+
$primitive-typography-font-size-300: 3.000rem;
|
|
164
|
+
$primitive-typography-font-size-360: 3.625rem;
|
|
165
|
+
$primitive-typography-font-size-435: 4.375rem;
|
|
166
|
+
$primitive-typography-font-size-525: 5.250rem;
|
|
167
|
+
$primitive-typography-font-size-625: 100;
|
|
168
|
+
$primitive-typography-font-size-750: 7.500rem;
|
|
169
|
+
$primitive-typography-font-size-1250: 12.500rem;
|
|
170
|
+
$primitive-typography-font-size-070: 0.688rem;
|
|
171
|
+
$primitive-typography-font-size-080: 0.813rem;
|
|
172
|
+
$primitive-typography-font-weight-bold: 43.750rem;
|
|
173
|
+
$primitive-typography-font-weight-extra-bold: 56.250rem;
|
|
174
|
+
$primitive-typography-font-weight-light: 18.750rem;
|
|
175
|
+
$primitive-typography-font-weight-normal: 31.250rem;
|
|
176
|
+
$primitive-typography-line-height-loose: 10.000rem;
|
|
177
|
+
$primitive-typography-line-height-looser: 11.250rem;
|
|
178
|
+
$primitive-typography-line-height-normal: 8.750rem;
|
|
179
|
+
$primitive-typography-line-height-tight: 7.500rem;
|
|
180
|
+
$primitive-typography-line-height-tighter: 6.250rem;
|
|
181
|
+
$brand-color-accent-100: #22da7c;
|
|
182
|
+
$brand-color-accent-150: #15864c;
|
|
183
|
+
$brand-color-accent-050: #b5f4d4;
|
|
184
|
+
$brand-color-background-primary: #feefee;
|
|
185
|
+
$brand-color-brand-100: #1252fb;
|
|
186
|
+
$brand-color-brand-150: #1d2087;
|
|
187
|
+
$brand-color-brand-050: #648dfc;
|
|
188
|
+
$brand-color-danger-100: #cc0d08;
|
|
189
|
+
$brand-color-danger-150: #8e0906;
|
|
190
|
+
$brand-color-danger-050: #fbaaa8;
|
|
191
|
+
$brand-color-highlight-100: #f4b407;
|
|
192
|
+
$brand-color-highlight-150: #bb8a05;
|
|
193
|
+
$brand-color-highlight-050: #fce4a2;
|
|
194
|
+
$brand-color-input-100: #dde6fe;
|
|
195
|
+
$brand-color-input-050: #ffffff;
|
|
196
|
+
$brand-color-neutral-100: #c0bfbd;
|
|
197
|
+
$brand-color-neutral-125: #949290;
|
|
198
|
+
$brand-color-neutral-150: #595856;
|
|
199
|
+
$brand-color-neutral-050: #f6f6f6;
|
|
200
|
+
$brand-color-neutral-075: #e6e6e5;
|
|
201
|
+
$brand-color-secondary-100: #f85f5b;
|
|
202
|
+
$brand-color-secondary-150: #cc0d08;
|
|
203
|
+
$brand-color-secondary-050: #fedfde;
|
|
204
|
+
$brand-color-success-100: #1aa85f;
|
|
205
|
+
$brand-color-success-150: #127442;
|
|
206
|
+
$brand-color-success-050: #b5f4d4;
|
|
207
|
+
$brand-color-warning-100: #bb8a05;
|
|
208
|
+
$brand-color-warning-150: #826004;
|
|
209
|
+
$brand-color-warning-050: #fce4a2;
|
|
210
|
+
$brand-sizing-radius-full: 624.938rem;
|
|
211
|
+
$brand-sizing-radius-large: 1.500rem;
|
|
212
|
+
$brand-sizing-radius-medium: 1.000rem;
|
|
213
|
+
$brand-sizing-radius-small: 0.750rem;
|
|
214
|
+
$brand-sizing-stroke-lg: 0.000rem;
|
|
215
|
+
$brand-sizing-stroke-md: 0.000rem;
|
|
216
|
+
$brand-sizing-stroke-sm: 0.000rem;
|
|
217
|
+
$brand-sizing-stroke-xl: 0.063rem;
|
|
218
|
+
$brand-typography-font-family-body: Fustat;
|
|
219
|
+
$brand-typography-font-family-code: JetBrains Mono;
|
|
220
|
+
$brand-typography-font-family-display: Gabarito;
|
|
221
|
+
$brand-typography-font-family-heading: Fustat;
|
|
222
|
+
$brand-typography-font-family-label: Fustat;
|
|
223
|
+
$semantic-color-background-code-default: #595856;
|
|
224
|
+
$semantic-color-background-disabled-default: #e6e6e5;
|
|
225
|
+
$semantic-color-background-primary-default: #f6f6f6;
|
|
226
|
+
$semantic-color-background-secondary-default: #1252fb;
|
|
227
|
+
$semantic-color-background-tertiary-default: #595856;
|
|
228
|
+
$semantic-color-border-default: #fce4a2;
|
|
229
|
+
$semantic-color-border-secondary: #e6e6e5;
|
|
230
|
+
$semantic-color-input-background-active: #ffffff;
|
|
231
|
+
$semantic-color-input-background-default: #dde6fe;
|
|
232
|
+
$semantic-color-input-background-disabled: #e6e6e5;
|
|
233
|
+
$semantic-color-typography-code-default: #f6f6f6;
|
|
234
|
+
$semantic-color-typography-code-secondary: #949290;
|
|
235
|
+
$semantic-color-typography-label-default: #949290;
|
|
236
|
+
$semantic-color-typography-primary-darker: #bb8a05;
|
|
237
|
+
$semantic-color-typography-primary-default: #1d2087;
|
|
238
|
+
$semantic-color-typography-primary-lighter: #1252fb;
|
|
239
|
+
$semantic-color-typography-secondary-darker: #f85f5b;
|
|
240
|
+
$semantic-color-typography-secondary-default: #fedfde;
|
|
241
|
+
$semantic-color-typography-secondary-lighter: #f6f6f6;
|
|
242
|
+
$semantic-sizing-typography-font-size-code-large: 1.188rem;
|
|
243
|
+
$semantic-sizing-typography-font-size-code-medium: 1.000rem;
|
|
244
|
+
$semantic-sizing-typography-font-size-code-small: 0.813rem;
|
|
245
|
+
$semantic-sizing-typography-font-size-code-xsmall: 0.688rem;
|
|
246
|
+
$semantic-sizing-typography-font-size-display-large: 7.500rem;
|
|
247
|
+
$semantic-sizing-typography-font-size-display-medium: 4.375rem;
|
|
248
|
+
$semantic-sizing-typography-font-size-display-small: 3.625rem;
|
|
249
|
+
$semantic-sizing-typography-font-size-display-x-large: 12.500rem;
|
|
250
|
+
$semantic-sizing-typography-font-size-display-x-small: 3.000rem;
|
|
251
|
+
$semantic-sizing-typography-font-size-heading-large: 2.063rem;
|
|
252
|
+
$semantic-sizing-typography-font-size-heading-medium: 1.750rem;
|
|
253
|
+
$semantic-sizing-typography-font-size-heading-small: 1.438rem;
|
|
254
|
+
$semantic-sizing-typography-font-size-heading-xlarge: 2.500rem;
|
|
255
|
+
$semantic-sizing-typography-font-size-heading-xsmall: 1.188rem;
|
|
256
|
+
$semantic-sizing-typography-font-size-heading-xxlarge: 3.625rem;
|
|
257
|
+
$semantic-sizing-typography-font-size-label-large: 1.188rem;
|
|
258
|
+
$semantic-sizing-typography-font-size-label-medium: 1.000rem;
|
|
259
|
+
$semantic-sizing-typography-font-size-label-small: 0.813rem;
|
|
260
|
+
$semantic-sizing-typography-font-size-label-xsmall: 0.688rem;
|
|
261
|
+
$semantic-sizing-typography-font-size-paragraph-large: 1.188rem;
|
|
262
|
+
$semantic-sizing-typography-font-size-paragraph-medium: 1.000rem;
|
|
263
|
+
$semantic-sizing-typography-font-size-paragraph-small: 0.813rem;
|
|
264
|
+
$semantic-sizing-typography-font-size-paragraph-xsmall: 0.688rem;
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "baseline-ds",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Baseline Design System - A comprehensive design system with tokens, components, and Storybook documentation",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"tokens",
|
|
11
|
+
"src/fonts.css"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "npm run build:components && npm run build:tokens && npm run combine:tokens",
|
|
15
|
+
"build:tokens": "node scripts/build-all-brands.js",
|
|
16
|
+
"combine:tokens": "node scripts/combine-token-css.js",
|
|
17
|
+
"build:components": "tsup",
|
|
18
|
+
"generate-icons": "node scripts/generate-icons.js",
|
|
19
|
+
"changelog": "node scripts/generate-master-changelog.js",
|
|
20
|
+
"storybook": "storybook dev -p 6006",
|
|
21
|
+
"build-storybook": "storybook build",
|
|
22
|
+
"fetch-tokens": "node scripts/fetch-tokens.js",
|
|
23
|
+
"figma:sync": "figma connect sync",
|
|
24
|
+
"figma:create": "figma connect create",
|
|
25
|
+
"prepublishOnly": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"design-system",
|
|
29
|
+
"components",
|
|
30
|
+
"tokens",
|
|
31
|
+
"react",
|
|
32
|
+
"storybook"
|
|
33
|
+
],
|
|
34
|
+
"author": "",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
38
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"style-dictionary": "^4.3.1"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@figma/code-connect": "^1.3.12",
|
|
45
|
+
"@storybook/addon-links": "^10.2.11",
|
|
46
|
+
"@storybook/addon-onboarding": "^10.2.11",
|
|
47
|
+
"@storybook/react": "^10.2.11",
|
|
48
|
+
"@storybook/react-vite": "^10.2.11",
|
|
49
|
+
"@types/node": "^22.10.2",
|
|
50
|
+
"@types/react": "^18.3.18",
|
|
51
|
+
"@types/react-dom": "^18.3.5",
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"react-dom": "^18.3.1",
|
|
54
|
+
"storybook": "^10.2.11",
|
|
55
|
+
"tsup": "^8.3.5",
|
|
56
|
+
"typescript": "^5.7.2",
|
|
57
|
+
"vite": "^6.0.5"
|
|
58
|
+
},
|
|
59
|
+
"exports": {
|
|
60
|
+
".": {
|
|
61
|
+
"import": "./dist/index.mjs",
|
|
62
|
+
"require": "./dist/index.js",
|
|
63
|
+
"types": "./dist/index.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./fonts.css": "./src/fonts.css",
|
|
66
|
+
"./dist/index.css": "./dist/index.css",
|
|
67
|
+
"./tokens/css": "./dist/tokens/baseline/css/variables.css",
|
|
68
|
+
"./tokens/scss": "./dist/tokens/baseline/scss/_variables.scss",
|
|
69
|
+
"./tokens/js": "./dist/tokens/baseline/js/tokens.js",
|
|
70
|
+
"./tokens/json": "./dist/tokens/baseline/json/tokens.json",
|
|
71
|
+
"./tokens/css/*": "./dist/tokens/*/css/variables.css",
|
|
72
|
+
"./tokens/scss/*": "./dist/tokens/*/scss/_variables.scss",
|
|
73
|
+
"./tokens/js/*": "./dist/tokens/*/js/tokens.js",
|
|
74
|
+
"./tokens/json/*": "./dist/tokens/*/json/tokens.json"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"registry": "https://registry.npmjs.org/",
|
|
78
|
+
"access": "public"
|
|
79
|
+
},
|
|
80
|
+
"repository": {
|
|
81
|
+
"type": "git",
|
|
82
|
+
"url": "https://github.com/zeroheight-demos/baseline-ds.git"
|
|
83
|
+
}
|
|
84
|
+
}
|
package/src/fonts.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Google Fonts imports for design system fonts */
|
|
2
|
+
|
|
3
|
+
/* DM Sans - Used for body, heading, label */
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..144,100..1000;1,9..144,100..1000&display=swap');
|
|
5
|
+
|
|
6
|
+
/* Fustat - Used for body, heading, label */
|
|
7
|
+
@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@400;500;600;700;800&display=swap');
|
|
8
|
+
|
|
9
|
+
/* Gabarito - Used for display */
|
|
10
|
+
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&display=swap');
|
|
11
|
+
|
|
12
|
+
/* Geist Mono - Used for code */
|
|
13
|
+
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');
|
|
14
|
+
|
|
15
|
+
/* JetBrains Mono - Used for code */
|
|
16
|
+
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
|
|
17
|
+
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"brand": {
|
|
3
|
+
"color": {
|
|
4
|
+
"accent": {
|
|
5
|
+
"050": {
|
|
6
|
+
"type": "color",
|
|
7
|
+
"value": "{primitive.color.pink.300}"
|
|
8
|
+
},
|
|
9
|
+
"100": {
|
|
10
|
+
"type": "color",
|
|
11
|
+
"value": "{primitive.color.pink.500}"
|
|
12
|
+
},
|
|
13
|
+
"150": {
|
|
14
|
+
"type": "color",
|
|
15
|
+
"value": "{primitive.color.pink.700}"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"background": {
|
|
19
|
+
"primary": {
|
|
20
|
+
"type": "color",
|
|
21
|
+
"value": "{primitive.color.yellow.050}"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"brand": {
|
|
25
|
+
"050": {
|
|
26
|
+
"type": "color",
|
|
27
|
+
"value": "{primitive.color.azure.300}"
|
|
28
|
+
},
|
|
29
|
+
"100": {
|
|
30
|
+
"type": "color",
|
|
31
|
+
"value": "{primitive.color.azure.500}"
|
|
32
|
+
},
|
|
33
|
+
"150": {
|
|
34
|
+
"type": "color",
|
|
35
|
+
"value": "{primitive.color.azure.800}"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"danger": {
|
|
39
|
+
"050": {
|
|
40
|
+
"type": "color",
|
|
41
|
+
"value": "{primitive.color.brick.400}"
|
|
42
|
+
},
|
|
43
|
+
"100": {
|
|
44
|
+
"type": "color",
|
|
45
|
+
"value": "{primitive.color.brick.600}"
|
|
46
|
+
},
|
|
47
|
+
"150": {
|
|
48
|
+
"type": "color",
|
|
49
|
+
"value": "{primitive.color.brick.700}"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"highlight": {
|
|
53
|
+
"050": {
|
|
54
|
+
"type": "color",
|
|
55
|
+
"value": "{primitive.color.azure.700}"
|
|
56
|
+
},
|
|
57
|
+
"100": {
|
|
58
|
+
"type": "color",
|
|
59
|
+
"value": "{primitive.color.azure.800}"
|
|
60
|
+
},
|
|
61
|
+
"150": {
|
|
62
|
+
"type": "color",
|
|
63
|
+
"value": "{primitive.color.azure.900}"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"input": {
|
|
67
|
+
"050": {
|
|
68
|
+
"type": "color",
|
|
69
|
+
"value": "{primitive.color.white.500}"
|
|
70
|
+
},
|
|
71
|
+
"100": {
|
|
72
|
+
"type": "color",
|
|
73
|
+
"value": "{primitive.color.azure.200}"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"neutral": {
|
|
77
|
+
"050": {
|
|
78
|
+
"type": "color",
|
|
79
|
+
"value": "{primitive.color.grey.100}"
|
|
80
|
+
},
|
|
81
|
+
"075": {
|
|
82
|
+
"type": "color",
|
|
83
|
+
"value": "{primitive.color.grey.300}"
|
|
84
|
+
},
|
|
85
|
+
"100": {
|
|
86
|
+
"type": "color",
|
|
87
|
+
"value": "{primitive.color.grey.500}"
|
|
88
|
+
},
|
|
89
|
+
"125": {
|
|
90
|
+
"type": "color",
|
|
91
|
+
"value": "{primitive.color.grey.600}"
|
|
92
|
+
},
|
|
93
|
+
"150": {
|
|
94
|
+
"type": "color",
|
|
95
|
+
"value": "{primitive.color.grey.800}"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"secondary": {
|
|
99
|
+
"050": {
|
|
100
|
+
"type": "color",
|
|
101
|
+
"value": "{primitive.color.yellow.100}"
|
|
102
|
+
},
|
|
103
|
+
"100": {
|
|
104
|
+
"type": "color",
|
|
105
|
+
"value": "{primitive.color.yellow.200}"
|
|
106
|
+
},
|
|
107
|
+
"150": {
|
|
108
|
+
"type": "color",
|
|
109
|
+
"value": "{primitive.color.yellow.400}"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"success": {
|
|
113
|
+
"050": {
|
|
114
|
+
"type": "color",
|
|
115
|
+
"value": "{primitive.color.emerald.300}"
|
|
116
|
+
},
|
|
117
|
+
"100": {
|
|
118
|
+
"type": "color",
|
|
119
|
+
"value": "{primitive.color.emerald.500}"
|
|
120
|
+
},
|
|
121
|
+
"150": {
|
|
122
|
+
"type": "color",
|
|
123
|
+
"value": "{primitive.color.emerald.600}"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"warning": {
|
|
127
|
+
"050": {
|
|
128
|
+
"type": "color",
|
|
129
|
+
"value": "{primitive.color.yellow.300}"
|
|
130
|
+
},
|
|
131
|
+
"100": {
|
|
132
|
+
"type": "color",
|
|
133
|
+
"value": "{primitive.color.yellow.500}"
|
|
134
|
+
},
|
|
135
|
+
"150": {
|
|
136
|
+
"type": "color",
|
|
137
|
+
"value": "{primitive.color.yellow.600}"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"sizing": {
|
|
142
|
+
"radius": {
|
|
143
|
+
"full": {
|
|
144
|
+
"type": "number",
|
|
145
|
+
"value": "{primitive.sizing.radius.full}"
|
|
146
|
+
},
|
|
147
|
+
"large": {
|
|
148
|
+
"type": "number",
|
|
149
|
+
"value": "{primitive.sizing.radius.150}"
|
|
150
|
+
},
|
|
151
|
+
"medium": {
|
|
152
|
+
"type": "number",
|
|
153
|
+
"value": "{primitive.sizing.radius.075}"
|
|
154
|
+
},
|
|
155
|
+
"small": {
|
|
156
|
+
"type": "number",
|
|
157
|
+
"value": "{primitive.sizing.radius.025}"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"stroke": {
|
|
161
|
+
"lg": {
|
|
162
|
+
"type": "number",
|
|
163
|
+
"value": "{primitive.sizing.stroke.100}"
|
|
164
|
+
},
|
|
165
|
+
"md": {
|
|
166
|
+
"type": "number",
|
|
167
|
+
"value": "{primitive.sizing.stroke.050}"
|
|
168
|
+
},
|
|
169
|
+
"sm": {
|
|
170
|
+
"type": "number",
|
|
171
|
+
"value": "{primitive.sizing.stroke.020}"
|
|
172
|
+
},
|
|
173
|
+
"xl": {
|
|
174
|
+
"type": "number",
|
|
175
|
+
"value": "{primitive.sizing.stroke.200}"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"typography": {
|
|
180
|
+
"font-family": {
|
|
181
|
+
"body": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"value": "{primitive.typography.font-family.DMSans}"
|
|
184
|
+
},
|
|
185
|
+
"code": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"value": "{primitive.typography.font-family.Geist Mono}"
|
|
188
|
+
},
|
|
189
|
+
"display": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"value": "{primitive.typography.font-family.DMSans}"
|
|
192
|
+
},
|
|
193
|
+
"heading": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"value": "{primitive.typography.font-family.DMSans}"
|
|
196
|
+
},
|
|
197
|
+
"label": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"value": "{primitive.typography.font-family.DMSans}"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|