@carbon/layout 12.0.0-alpha.2 → 12.0.0-alpha.3

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,393 @@
1
+ {
2
+ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
3
+ "$description": "Layout tokens for Carbon Design System — spacing, container, icon size, fluid spacing, size, border-radius, and deprecated layout scale.",
4
+ "spacing": {
5
+ "$description": "Spacing scale based on the 8px mini-unit grid.",
6
+ "spacing-01": {
7
+ "$type": "dimension",
8
+ "$value": {
9
+ "value": 0.125,
10
+ "unit": "rem"
11
+ },
12
+ "$description": "Spacing token — 2px. Use for the smallest internal padding or gaps between tightly-packed elements."
13
+ },
14
+ "spacing-02": {
15
+ "$type": "dimension",
16
+ "$value": {
17
+ "value": 0.25,
18
+ "unit": "rem"
19
+ },
20
+ "$description": "Spacing token — 4px. Use for compact padding within dense components."
21
+ },
22
+ "spacing-03": {
23
+ "$type": "dimension",
24
+ "$value": {
25
+ "value": 0.5,
26
+ "unit": "rem"
27
+ },
28
+ "$description": "Spacing token — 8px. Default small spacing unit for inset padding and icon gaps."
29
+ },
30
+ "spacing-04": {
31
+ "$type": "dimension",
32
+ "$value": {
33
+ "value": 0.75,
34
+ "unit": "rem"
35
+ },
36
+ "$description": "Spacing token — 12px. Use for comfortable inset padding in small components."
37
+ },
38
+ "spacing-05": {
39
+ "$type": "dimension",
40
+ "$value": {
41
+ "value": 1,
42
+ "unit": "rem"
43
+ },
44
+ "$description": "Spacing token — 16px. Standard spacing unit; use for typical component padding and gutters."
45
+ },
46
+ "spacing-06": {
47
+ "$type": "dimension",
48
+ "$value": {
49
+ "value": 1.5,
50
+ "unit": "rem"
51
+ },
52
+ "$description": "Spacing token — 24px. Use for section padding and medium gaps between components."
53
+ },
54
+ "spacing-07": {
55
+ "$type": "dimension",
56
+ "$value": {
57
+ "value": 2,
58
+ "unit": "rem"
59
+ },
60
+ "$description": "Spacing token — 32px. Use for group separation and larger layout gaps."
61
+ },
62
+ "spacing-08": {
63
+ "$type": "dimension",
64
+ "$value": {
65
+ "value": 2.5,
66
+ "unit": "rem"
67
+ },
68
+ "$description": "Spacing token — 40px. Use for generous padding between distinct sections."
69
+ },
70
+ "spacing-09": {
71
+ "$type": "dimension",
72
+ "$value": {
73
+ "value": 3,
74
+ "unit": "rem"
75
+ },
76
+ "$description": "Spacing token — 48px. Use for large vertical rhythm and section separation."
77
+ },
78
+ "spacing-10": {
79
+ "$type": "dimension",
80
+ "$value": {
81
+ "value": 4,
82
+ "unit": "rem"
83
+ },
84
+ "$description": "Spacing token — 64px. Use for major page section gaps."
85
+ },
86
+ "spacing-11": {
87
+ "$type": "dimension",
88
+ "$value": {
89
+ "value": 5,
90
+ "unit": "rem"
91
+ },
92
+ "$description": "Spacing token — 80px. Use for hero and large feature-area spacing."
93
+ },
94
+ "spacing-12": {
95
+ "$type": "dimension",
96
+ "$value": {
97
+ "value": 6,
98
+ "unit": "rem"
99
+ },
100
+ "$description": "Spacing token — 96px. Use for very large layout separations."
101
+ },
102
+ "spacing-13": {
103
+ "$type": "dimension",
104
+ "$value": {
105
+ "value": 10,
106
+ "unit": "rem"
107
+ },
108
+ "$description": "Spacing token — 160px. Use for the largest page-level spacing needs."
109
+ }
110
+ },
111
+ "fluid-spacing": {
112
+ "$description": "Viewport-relative fluid spacing tokens.",
113
+ "fluid-spacing-01": {
114
+ "$type": "number",
115
+ "$value": 0,
116
+ "$description": "Fluid spacing token — 0. Use when no fluid spacing is required."
117
+ },
118
+ "fluid-spacing-02": {
119
+ "$type": "number",
120
+ "$value": 2,
121
+ "$description": "Fluid spacing token — 2vw. Use for viewport-proportional small spacing in fluid layouts.",
122
+ "$extensions": {
123
+ "com.ibm.carbon": {
124
+ "layout": {
125
+ "unit": "vw"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "fluid-spacing-03": {
131
+ "$type": "number",
132
+ "$value": 5,
133
+ "$description": "Fluid spacing token — 5vw. Use for medium fluid spacing that scales with the viewport.",
134
+ "$extensions": {
135
+ "com.ibm.carbon": {
136
+ "layout": {
137
+ "unit": "vw"
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "fluid-spacing-04": {
143
+ "$type": "number",
144
+ "$value": 10,
145
+ "$description": "Fluid spacing token — 10vw. Use for large fluid spacing in full-bleed or hero sections.",
146
+ "$extensions": {
147
+ "com.ibm.carbon": {
148
+ "layout": {
149
+ "unit": "vw"
150
+ }
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "container": {
156
+ "$description": "Interactive element container height tokens.",
157
+ "container-01": {
158
+ "$type": "dimension",
159
+ "$value": {
160
+ "value": 1.5,
161
+ "unit": "rem"
162
+ },
163
+ "$description": "Container height token — 24px. Minimum interactive target height for compact UI elements."
164
+ },
165
+ "container-02": {
166
+ "$type": "dimension",
167
+ "$value": {
168
+ "value": 2,
169
+ "unit": "rem"
170
+ },
171
+ "$description": "Container height token — 32px. Small interactive element height."
172
+ },
173
+ "container-03": {
174
+ "$type": "dimension",
175
+ "$value": {
176
+ "value": 2.5,
177
+ "unit": "rem"
178
+ },
179
+ "$description": "Container height token — 40px. Default interactive element height."
180
+ },
181
+ "container-04": {
182
+ "$type": "dimension",
183
+ "$value": {
184
+ "value": 3,
185
+ "unit": "rem"
186
+ },
187
+ "$description": "Container height token — 48px. Large interactive element height."
188
+ },
189
+ "container-05": {
190
+ "$type": "dimension",
191
+ "$value": {
192
+ "value": 4,
193
+ "unit": "rem"
194
+ },
195
+ "$description": "Container height token — 64px. Extra-large interactive element height."
196
+ }
197
+ },
198
+ "size": {
199
+ "$description": "Named component size tokens (xs–2xl).",
200
+ "size-xs": {
201
+ "$type": "dimension",
202
+ "$value": {
203
+ "value": 1.5,
204
+ "unit": "rem"
205
+ },
206
+ "$description": "Component size token — XSmall, 24px. Use for the smallest component variant."
207
+ },
208
+ "size-sm": {
209
+ "$type": "dimension",
210
+ "$value": {
211
+ "value": 2,
212
+ "unit": "rem"
213
+ },
214
+ "$description": "Component size token — Small, 32px."
215
+ },
216
+ "size-md": {
217
+ "$type": "dimension",
218
+ "$value": {
219
+ "value": 2.5,
220
+ "unit": "rem"
221
+ },
222
+ "$description": "Component size token — Medium, 40px. Default component size."
223
+ },
224
+ "size-lg": {
225
+ "$type": "dimension",
226
+ "$value": {
227
+ "value": 3,
228
+ "unit": "rem"
229
+ },
230
+ "$description": "Component size token — Large, 48px."
231
+ },
232
+ "size-xl": {
233
+ "$type": "dimension",
234
+ "$value": {
235
+ "value": 4,
236
+ "unit": "rem"
237
+ },
238
+ "$description": "Component size token — XLarge, 64px."
239
+ },
240
+ "size-2xl": {
241
+ "$type": "dimension",
242
+ "$value": {
243
+ "value": 5,
244
+ "unit": "rem"
245
+ },
246
+ "$description": "Component size token — 2XLarge, 80px."
247
+ }
248
+ },
249
+ "icon-size": {
250
+ "$description": "Icon size tokens.",
251
+ "icon-size-01": {
252
+ "$type": "dimension",
253
+ "$value": {
254
+ "value": 1,
255
+ "unit": "rem"
256
+ },
257
+ "$description": "Icon size token — 16px. Standard icon size for inline and UI icons."
258
+ },
259
+ "icon-size-02": {
260
+ "$type": "dimension",
261
+ "$value": {
262
+ "value": 1.25,
263
+ "unit": "rem"
264
+ },
265
+ "$description": "Icon size token — 20px. Use for slightly larger icons that need more visual weight."
266
+ }
267
+ },
268
+ "border-radius": {
269
+ "$description": "Border radius tokens for component rounding.",
270
+ "border-radius-00": {
271
+ "$type": "dimension",
272
+ "$value": {
273
+ "value": 0,
274
+ "unit": "px"
275
+ },
276
+ "$description": "Border radius token — 0. No rounding; use for sharp-cornered elements."
277
+ },
278
+ "border-radius-02": {
279
+ "$type": "dimension",
280
+ "$value": {
281
+ "value": 0.125,
282
+ "unit": "rem"
283
+ },
284
+ "$description": "Border radius token — 2px. Subtle rounding for small components like tags and badges."
285
+ },
286
+ "border-radius-04": {
287
+ "$type": "dimension",
288
+ "$value": {
289
+ "value": 0.25,
290
+ "unit": "rem"
291
+ },
292
+ "$description": "Border radius token — 4px. Default rounding for inputs, cards, and general components."
293
+ },
294
+ "border-radius-08": {
295
+ "$type": "dimension",
296
+ "$value": {
297
+ "value": 0.5,
298
+ "unit": "rem"
299
+ },
300
+ "$description": "Border radius token — 8px. Moderate rounding for panels, modals, and containers."
301
+ },
302
+ "border-radius-16": {
303
+ "$type": "dimension",
304
+ "$value": {
305
+ "value": 1,
306
+ "unit": "rem"
307
+ },
308
+ "$description": "Border radius token — 16px. Strong rounding for large cards or featured containers."
309
+ },
310
+ "border-radius-24": {
311
+ "$type": "dimension",
312
+ "$value": {
313
+ "value": 1.5,
314
+ "unit": "rem"
315
+ },
316
+ "$description": "Border radius token — 24px. Very rounded corners for pill-adjacent components."
317
+ },
318
+ "border-radius-max": {
319
+ "$type": "dimension",
320
+ "$value": {
321
+ "value": 999999,
322
+ "unit": "px"
323
+ },
324
+ "$description": "Border radius token — pill/fully rounded. Use for pill buttons, chips, and circular elements."
325
+ }
326
+ },
327
+ "layout": {
328
+ "$description": "Deprecated layout scale tokens. Replaced by the spacing scale — do not use in new work.",
329
+ "layout-01": {
330
+ "$type": "dimension",
331
+ "$value": {
332
+ "value": 1,
333
+ "unit": "rem"
334
+ },
335
+ "$description": "Deprecated layout token — 16px. Replaced by spacing scale. Do not use in new work.",
336
+ "$deprecated": true
337
+ },
338
+ "layout-02": {
339
+ "$type": "dimension",
340
+ "$value": {
341
+ "value": 1.5,
342
+ "unit": "rem"
343
+ },
344
+ "$description": "Deprecated layout token — 24px. Replaced by spacing scale. Do not use in new work.",
345
+ "$deprecated": true
346
+ },
347
+ "layout-03": {
348
+ "$type": "dimension",
349
+ "$value": {
350
+ "value": 2,
351
+ "unit": "rem"
352
+ },
353
+ "$description": "Deprecated layout token — 32px. Replaced by spacing scale. Do not use in new work.",
354
+ "$deprecated": true
355
+ },
356
+ "layout-04": {
357
+ "$type": "dimension",
358
+ "$value": {
359
+ "value": 3,
360
+ "unit": "rem"
361
+ },
362
+ "$description": "Deprecated layout token — 48px. Replaced by spacing scale. Do not use in new work.",
363
+ "$deprecated": true
364
+ },
365
+ "layout-05": {
366
+ "$type": "dimension",
367
+ "$value": {
368
+ "value": 4,
369
+ "unit": "rem"
370
+ },
371
+ "$description": "Deprecated layout token — 64px. Replaced by spacing scale. Do not use in new work.",
372
+ "$deprecated": true
373
+ },
374
+ "layout-06": {
375
+ "$type": "dimension",
376
+ "$value": {
377
+ "value": 6,
378
+ "unit": "rem"
379
+ },
380
+ "$description": "Deprecated layout token — 96px. Replaced by spacing scale. Do not use in new work.",
381
+ "$deprecated": true
382
+ },
383
+ "layout-07": {
384
+ "$type": "dimension",
385
+ "$value": {
386
+ "value": 10,
387
+ "unit": "rem"
388
+ },
389
+ "$description": "Deprecated layout token — 160px. Replaced by spacing scale. Do not use in new work.",
390
+ "$deprecated": true
391
+ }
392
+ }
393
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "typescript-config-carbon/tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "declaration": false,
5
+ "emitDeclarationOnly": false
6
+ },
7
+ "include": ["src/**/*"]
8
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "declarationDir": "./lib",
7
+ "rootDir": "./src"
8
+ },
9
+ "include": ["src/**/*"]
10
+ }
@@ -1 +0,0 @@
1
- export {};