@carbon/layout 11.61.0-rc.0 → 11.62.0-rc.0

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