@carbon/layout 10.0.0-rc.0 → 10.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.
package/docs/sass.md ADDED
@@ -0,0 +1,1681 @@
1
+ # Sass API
2
+
3
+ | Mark | Description |
4
+ | ---- | ---------------------------------------------------------- |
5
+ | ✅ | Public functions, mixins, placeholders, and variables |
6
+ | ❌ | Private items - not supported outside package's build |
7
+ | ⚠️ | Deprecated items - may not be available in future releases |
8
+
9
+ <!-- toc -->
10
+
11
+ - [@carbon/layout](#carbonlayout)
12
+ - [✅carbon--grid-gutter [variable]](#carbon--grid-gutter-variable)
13
+ - [✅carbon--grid-gutter--condensed [variable]](#carbon--grid-gutter--condensed-variable)
14
+ - [✅carbon--grid-breakpoints [variable]](#carbon--grid-breakpoints-variable)
15
+ - [✅carbon--breakpoint-next [function]](#carbon--breakpoint-next-function)
16
+ - [✅carbon--breakpoint-prev [function]](#carbon--breakpoint-prev-function)
17
+ - [✅carbon--is-smallest-breakpoint [function]](#carbon--is-smallest-breakpoint-function)
18
+ - [✅carbon--largest-breakpoint-name [function]](#carbon--largest-breakpoint-name-function)
19
+ - [✅carbon--breakpoint-infix [function]](#carbon--breakpoint-infix-function)
20
+ - [✅carbon--breakpoint-up [mixin]](#carbon--breakpoint-up-mixin)
21
+ - [✅carbon--breakpoint-down [mixin]](#carbon--breakpoint-down-mixin)
22
+ - [✅carbon--breakpoint-between [mixin]](#carbon--breakpoint-between-mixin)
23
+ - [✅carbon--largest-breakpoint [mixin]](#carbon--largest-breakpoint-mixin)
24
+ - [✅carbon--breakpoint [mixin]](#carbon--breakpoint-mixin)
25
+ - [✅carbon--base-font-size [variable]](#carbon--base-font-size-variable)
26
+ - [✅carbon--rem [function]](#carbon--rem-function)
27
+ - [✅carbon--em [function]](#carbon--em-function)
28
+ - [✅carbon--get-column-width [function]](#carbon--get-column-width-function)
29
+ - [✅carbon--key-height-scales [variable]](#carbon--key-height-scales-variable)
30
+ - [✅carbon--key-height [function]](#carbon--key-height-function)
31
+ - [✅carbon--mini-unit-size [variable]](#carbon--mini-unit-size-variable)
32
+ - [✅carbon--mini-units [function]](#carbon--mini-units-function)
33
+ - [✅carbon--spacing-01 [variable]](#carbon--spacing-01-variable)
34
+ - [✅carbon--spacing-02 [variable]](#carbon--spacing-02-variable)
35
+ - [✅carbon--spacing-03 [variable]](#carbon--spacing-03-variable)
36
+ - [✅carbon--spacing-04 [variable]](#carbon--spacing-04-variable)
37
+ - [✅carbon--spacing-05 [variable]](#carbon--spacing-05-variable)
38
+ - [✅carbon--spacing-06 [variable]](#carbon--spacing-06-variable)
39
+ - [✅carbon--spacing-07 [variable]](#carbon--spacing-07-variable)
40
+ - [✅carbon--spacing-08 [variable]](#carbon--spacing-08-variable)
41
+ - [✅carbon--spacing-09 [variable]](#carbon--spacing-09-variable)
42
+ - [✅carbon--spacing-10 [variable]](#carbon--spacing-10-variable)
43
+ - [✅carbon--spacing-11 [variable]](#carbon--spacing-11-variable)
44
+ - [✅carbon--spacing-12 [variable]](#carbon--spacing-12-variable)
45
+ - [✅carbon--spacing [variable]](#carbon--spacing-variable)
46
+ - [✅spacing-01 [variable]](#spacing-01-variable)
47
+ - [✅spacing-02 [variable]](#spacing-02-variable)
48
+ - [✅spacing-03 [variable]](#spacing-03-variable)
49
+ - [✅spacing-04 [variable]](#spacing-04-variable)
50
+ - [✅spacing-05 [variable]](#spacing-05-variable)
51
+ - [✅spacing-06 [variable]](#spacing-06-variable)
52
+ - [✅spacing-07 [variable]](#spacing-07-variable)
53
+ - [✅spacing-08 [variable]](#spacing-08-variable)
54
+ - [✅spacing-09 [variable]](#spacing-09-variable)
55
+ - [✅spacing-10 [variable]](#spacing-10-variable)
56
+ - [✅spacing-11 [variable]](#spacing-11-variable)
57
+ - [✅spacing-12 [variable]](#spacing-12-variable)
58
+ - [✅carbon--layout-01 [variable]](#carbon--layout-01-variable)
59
+ - [✅carbon--layout-02 [variable]](#carbon--layout-02-variable)
60
+ - [✅carbon--layout-03 [variable]](#carbon--layout-03-variable)
61
+ - [✅carbon--layout-04 [variable]](#carbon--layout-04-variable)
62
+ - [✅carbon--layout-05 [variable]](#carbon--layout-05-variable)
63
+ - [✅carbon--layout-06 [variable]](#carbon--layout-06-variable)
64
+ - [✅carbon--layout-07 [variable]](#carbon--layout-07-variable)
65
+ - [✅carbon--layout [variable]](#carbon--layout-variable)
66
+ - [✅layout-01 [variable]](#layout-01-variable)
67
+ - [✅layout-02 [variable]](#layout-02-variable)
68
+ - [✅layout-03 [variable]](#layout-03-variable)
69
+ - [✅layout-04 [variable]](#layout-04-variable)
70
+ - [✅layout-05 [variable]](#layout-05-variable)
71
+ - [✅layout-06 [variable]](#layout-06-variable)
72
+ - [✅layout-07 [variable]](#layout-07-variable)
73
+ - [✅carbon--fluid-spacing-01 [variable]](#carbon--fluid-spacing-01-variable)
74
+ - [✅carbon--fluid-spacing-02 [variable]](#carbon--fluid-spacing-02-variable)
75
+ - [✅carbon--fluid-spacing-03 [variable]](#carbon--fluid-spacing-03-variable)
76
+ - [✅carbon--fluid-spacing-04 [variable]](#carbon--fluid-spacing-04-variable)
77
+ - [✅carbon--fluid-spacing [variable]](#carbon--fluid-spacing-variable)
78
+ - [✅fluid-spacing-01 [variable]](#fluid-spacing-01-variable)
79
+ - [✅fluid-spacing-02 [variable]](#fluid-spacing-02-variable)
80
+ - [✅fluid-spacing-03 [variable]](#fluid-spacing-03-variable)
81
+ - [✅fluid-spacing-04 [variable]](#fluid-spacing-04-variable)
82
+ - [✅map-deep-get [function]](#map-deep-get-function)
83
+ - [✅carbon--key-by-index [function]](#carbon--key-by-index-function)
84
+ - [✅last-map-item [function]](#last-map-item-function)
85
+
86
+ <!-- tocstop -->
87
+
88
+ ## @carbon/layout
89
+
90
+ ### ✅carbon--grid-gutter [variable]
91
+
92
+ Carbon gutter size in rem
93
+
94
+ <details>
95
+ <summary>Source code</summary>
96
+
97
+ ```scss
98
+ $carbon--grid-gutter: carbon--rem(32px);
99
+ ```
100
+
101
+ </details>
102
+
103
+ - **Group**: [@carbon/layout](#carbonlayout)
104
+ - **Type**: `Number`
105
+
106
+ ### ✅carbon--grid-gutter--condensed [variable]
107
+
108
+ Carbon condensed gutter size in rem
109
+
110
+ <details>
111
+ <summary>Source code</summary>
112
+
113
+ ```scss
114
+ $carbon--grid-gutter--condensed: carbon--rem(2px);
115
+ ```
116
+
117
+ </details>
118
+
119
+ - **Group**: [@carbon/layout](#carbonlayout)
120
+ - **Type**: `Number`
121
+
122
+ ### ✅carbon--grid-breakpoints [variable]
123
+
124
+ <details>
125
+ <summary>Source code</summary>
126
+
127
+ ```scss
128
+ $carbon--grid-breakpoints: (
129
+ sm: (
130
+ columns: 4,
131
+ margin: 0,
132
+ width: carbon--rem(320px),
133
+ ),
134
+ md: (
135
+ columns: 8,
136
+ margin: carbon--rem(16px),
137
+ width: carbon--rem(672px),
138
+ ),
139
+ lg: (
140
+ columns: 16,
141
+ margin: carbon--rem(16px),
142
+ width: carbon--rem(1056px),
143
+ ),
144
+ xlg: (
145
+ columns: 16,
146
+ margin: carbon--rem(16px),
147
+ width: carbon--rem(1312px),
148
+ ),
149
+ max: (
150
+ columns: 16,
151
+ margin: carbon--rem(16px),
152
+ width: carbon--rem(1584px),
153
+ ),
154
+ );
155
+ ```
156
+
157
+ </details>
158
+
159
+ - **Group**: [@carbon/layout](#carbonlayout)
160
+ - **Type**: `Map`
161
+
162
+ ### ✅carbon--breakpoint-next [function]
163
+
164
+ Get the value of the next breakpoint, or null for the last breakpoint
165
+
166
+ <details>
167
+ <summary>Source code</summary>
168
+
169
+ ```scss
170
+ @function carbon--breakpoint-next(
171
+ $name,
172
+ $breakpoints: $carbon--grid-breakpoints,
173
+ $breakpoint-names: map-keys($breakpoints)
174
+ ) {
175
+ $n: index($breakpoint-names, $name);
176
+ @if $n != null and $n < length($breakpoint-names) {
177
+ @return nth($breakpoint-names, $n + 1);
178
+ }
179
+ @return null;
180
+ }
181
+ ```
182
+
183
+ </details>
184
+
185
+ - **Parameters**:
186
+
187
+ | Name | Description | Type | Default value |
188
+ | ------------------- | --------------------------------------------------------------------------------------------------------------- | -------- | --------------------------- |
189
+ | `$name` | The name of the brekapoint | `String` | — |
190
+ | `$breakpoints` | A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint | `Map` | `$carbon--grid-breakpoints` |
191
+ | `$breakpoint-names` | A list of names from the `$breakpoints` map | `List` | `map-keys($breakpoints)` |
192
+
193
+ - **Group**: [@carbon/layout](#carbonlayout)
194
+ - **Returns**: `String`
195
+
196
+ ### ✅carbon--breakpoint-prev [function]
197
+
198
+ Get the value of the previous breakpoint, or null for the first breakpoint
199
+
200
+ <details>
201
+ <summary>Source code</summary>
202
+
203
+ ```scss
204
+ @function carbon--breakpoint-prev(
205
+ $name,
206
+ $breakpoints: $carbon--grid-breakpoints,
207
+ $breakpoint-names: map-keys($breakpoints)
208
+ ) {
209
+ $n: index($breakpoint-names, $name);
210
+ @if $n != null and $n > 1 {
211
+ @return nth($breakpoint-names, $n - 1);
212
+ }
213
+ @return null;
214
+ }
215
+ ```
216
+
217
+ </details>
218
+
219
+ - **Parameters**:
220
+
221
+ | Name | Description | Type | Default value |
222
+ | ------------------- | --------------------------------------------------------------------------------------------------------------- | -------- | --------------------------- |
223
+ | `$name` | The name of the brekapoint | `String` | — |
224
+ | `$breakpoints` | A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint | `Map` | `$carbon--grid-breakpoints` |
225
+ | `$breakpoint-names` | A list of names from the `$breakpoints` map | `List` | `map-keys($breakpoints)` |
226
+
227
+ - **Group**: [@carbon/layout](#carbonlayout)
228
+ - **Returns**: `String`
229
+
230
+ ### ✅carbon--is-smallest-breakpoint [function]
231
+
232
+ Check to see if the given breakpoint name
233
+
234
+ <details>
235
+ <summary>Source code</summary>
236
+
237
+ ```scss
238
+ @function carbon--is-smallest-breakpoint(
239
+ $name,
240
+ $breakpoints: $carbon--grid-breakpoints
241
+ ) {
242
+ @return index(map-keys($breakpoints), $name) == 1;
243
+ }
244
+ ```
245
+
246
+ </details>
247
+
248
+ - **Parameters**:
249
+
250
+ | Name | Description | Type | Default value |
251
+ | -------------- | --------------------------------------------------------------------------------------------------------------- | -------- | --------------------------- |
252
+ | `$name` | The name of the brekapoint | `String` | — |
253
+ | `$breakpoints` | A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint | `Map` | `$carbon--grid-breakpoints` |
254
+
255
+ - **Group**: [@carbon/layout](#carbonlayout)
256
+ - **Returns**: `Bool`
257
+ - **Used by**:
258
+ - [carbon--breakpoint-up [mixin]](#carbon--breakpoint-up-mixin)
259
+ - [carbon--breakpoint-down [mixin]](#carbon--breakpoint-down-mixin)
260
+
261
+ ### ✅carbon--largest-breakpoint-name [function]
262
+
263
+ Returns the largest breakpoint name
264
+
265
+ <details>
266
+ <summary>Source code</summary>
267
+
268
+ ```scss
269
+ @function carbon--largest-breakpoint-name(
270
+ $breakpoints: $carbon--grid-breakpoints
271
+ ) {
272
+ $total-breakpoints: length($breakpoints);
273
+ @return carbon--key-by-index($breakpoints, $total-breakpoints);
274
+ }
275
+ ```
276
+
277
+ </details>
278
+
279
+ - **Parameters**:
280
+
281
+ | Name | Description | Type | Default value |
282
+ | -------------- | ---------------------------------------------- | ----- | --------------------------- |
283
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
284
+
285
+ - **Group**: [@carbon/layout](#carbonlayout)
286
+ - **Returns**: `String`
287
+ - **Requires**:
288
+ - [carbon--key-by-index [function]](#carbon--key-by-index-function)
289
+ - **Used by**:
290
+ - [carbon--largest-breakpoint [mixin]](#carbon--largest-breakpoint-mixin)
291
+
292
+ ### ✅carbon--breakpoint-infix [function]
293
+
294
+ Get the infix for a given breakpoint in a list of breakpoints. Usesful for
295
+ generate the size part in a selector, for example: `.prefix--col-sm-2`.
296
+
297
+ <details>
298
+ <summary>Source code</summary>
299
+
300
+ ```scss
301
+ @function carbon--breakpoint-infix($name) {
302
+ @return '-#{$name}';
303
+ }
304
+ ```
305
+
306
+ </details>
307
+
308
+ - **Parameters**:
309
+
310
+ | Name | Description | Type | Default value |
311
+ | ------- | -------------------------- | -------- | ------------- |
312
+ | `$name` | The name of the breakpoint | `String` | — |
313
+
314
+ - **Group**: [@carbon/layout](#carbonlayout)
315
+ - **Returns**: `String`
316
+
317
+ ### ✅carbon--breakpoint-up [mixin]
318
+
319
+ Generate a media query up to the width of the given breakpoint name
320
+
321
+ <details>
322
+ <summary>Source code</summary>
323
+
324
+ ```scss
325
+ @mixin carbon--breakpoint-up($name, $breakpoints: $carbon--grid-breakpoints) {
326
+ @if type-of($name) == 'number' {
327
+ @media (min-width: $name) {
328
+ @content;
329
+ }
330
+ } @else if map-has-key($breakpoints, $name) {
331
+ $breakpoint: map-get($breakpoints, $name);
332
+ $width: map-get($breakpoint, width);
333
+ @if carbon--is-smallest-breakpoint($name, $breakpoints) {
334
+ @content;
335
+ } @else {
336
+ @media (min-width: $width) {
337
+ @content;
338
+ }
339
+ }
340
+ } @else {
341
+ @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
342
+ }
343
+ }
344
+ ```
345
+
346
+ </details>
347
+
348
+ - **Parameters**:
349
+
350
+ | Name | Description | Type | Default value |
351
+ | -------------- | ---------------------------------------------- | ------------------ | --------------------------- |
352
+ | `$name` | — | `String \| Number` | — |
353
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
354
+
355
+ - **Group**: [@carbon/layout](#carbonlayout)
356
+ - **Requires**:
357
+ - [carbon--is-smallest-breakpoint [function]](#carbon--is-smallest-breakpoint-function)
358
+ - **Used by**:
359
+ - [carbon--breakpoint-between [mixin]](#carbon--breakpoint-between-mixin)
360
+ - [carbon--breakpoint [mixin]](#carbon--breakpoint-mixin)
361
+
362
+ ### ✅carbon--breakpoint-down [mixin]
363
+
364
+ Generate a media query for the maximum width of the given styles
365
+
366
+ <details>
367
+ <summary>Source code</summary>
368
+
369
+ ```scss
370
+ @mixin carbon--breakpoint-down($name, $breakpoints: $carbon--grid-breakpoints) {
371
+ @if type-of($name) == 'number' {
372
+ @media (max-width: $name) {
373
+ @content;
374
+ }
375
+ } @else if map-has-key($breakpoints, $name) {
376
+ $breakpoint: map-get($breakpoints, $name);
377
+ $width: map-get($breakpoint, width);
378
+ @if carbon--is-smallest-breakpoint($name, $breakpoints) {
379
+ @content;
380
+ } @else {
381
+ @media (max-width: $width) {
382
+ @content;
383
+ }
384
+ }
385
+ } @else {
386
+ @error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
387
+ }
388
+ }
389
+ ```
390
+
391
+ </details>
392
+
393
+ - **Parameters**:
394
+
395
+ | Name | Description | Type | Default value |
396
+ | -------------- | ---------------------------------------------- | ------------------ | --------------------------- |
397
+ | `$name` | — | `String \| Number` | — |
398
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
399
+
400
+ - **Group**: [@carbon/layout](#carbonlayout)
401
+ - **Requires**:
402
+ - [carbon--is-smallest-breakpoint [function]](#carbon--is-smallest-breakpoint-function)
403
+ - **Used by**:
404
+ - [carbon--breakpoint-between [mixin]](#carbon--breakpoint-between-mixin)
405
+
406
+ ### ✅carbon--breakpoint-between [mixin]
407
+
408
+ Generate a media query for the range between the lower and upper breakpoints
409
+
410
+ <details>
411
+ <summary>Source code</summary>
412
+
413
+ ```scss
414
+ @mixin carbon--breakpoint-between(
415
+ $lower,
416
+ $upper,
417
+ $breakpoints: $carbon--grid-breakpoints
418
+ ) {
419
+ $is-number-lower: type-of($lower) == 'number';
420
+ $is-number-upper: type-of($upper) == 'number';
421
+ $min: if($is-number-lower, $lower, map-get($breakpoints, $lower));
422
+ $max: if($is-number-upper, $upper, map-get($breakpoints, $upper));
423
+
424
+ @if $min and $max {
425
+ $min-width: if(not $is-number-lower and $min, map-get($min, width), $min);
426
+ $max-width: if(not $is-number-upper and $max, map-get($max, width), $max);
427
+ @media (min-width: $min-width) and (max-width: $max-width) {
428
+ @content;
429
+ }
430
+ } @else if $min != null and $max == null {
431
+ @include carbon--breakpoint-up($lower) {
432
+ @content;
433
+ }
434
+ } @else if $min == null and $max != null {
435
+ @include carbon--breakpoint-down($upper) {
436
+ @content;
437
+ }
438
+ } @else {
439
+ @error 'Unable to find a breakpoint to satisfy: (#{$lower},#{$upper}). Expected both to be one of (#{map-keys($breakpoints)}).';
440
+ }
441
+ }
442
+ ```
443
+
444
+ </details>
445
+
446
+ - **Parameters**:
447
+
448
+ | Name | Description | Type | Default value |
449
+ | -------------- | ---------------------------------------------- | ------------------ | --------------------------- |
450
+ | `$lower` | — | `String \| Number` | — |
451
+ | `$upper` | — | `String \| Number` | — |
452
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
453
+
454
+ - **Group**: [@carbon/layout](#carbonlayout)
455
+ - **Requires**:
456
+ - [carbon--breakpoint-up [mixin]](#carbon--breakpoint-up-mixin)
457
+ - [carbon--breakpoint-down [mixin]](#carbon--breakpoint-down-mixin)
458
+
459
+ ### ✅carbon--largest-breakpoint [mixin]
460
+
461
+ Generate media query for the largest breakpoint
462
+
463
+ <details>
464
+ <summary>Source code</summary>
465
+
466
+ ```scss
467
+ @mixin carbon--largest-breakpoint($breakpoints: $carbon--grid-breakpoints) {
468
+ @include carbon--breakpoint(carbon--largest-breakpoint-name()) {
469
+ @content;
470
+ }
471
+ }
472
+ ```
473
+
474
+ </details>
475
+
476
+ - **Parameters**:
477
+
478
+ | Name | Description | Type | Default value |
479
+ | -------------- | ---------------------------------------------- | ----- | --------------------------- |
480
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
481
+
482
+ - **Group**: [@carbon/layout](#carbonlayout)
483
+ - **Requires**:
484
+ - [carbon--breakpoint [mixin]](#carbon--breakpoint-mixin)
485
+ - [carbon--largest-breakpoint-name [function]](#carbon--largest-breakpoint-name-function)
486
+
487
+ ### ✅carbon--breakpoint [mixin]
488
+
489
+ Generate a media query for a given breakpoint
490
+
491
+ <details>
492
+ <summary>Source code</summary>
493
+
494
+ ```scss
495
+ @mixin carbon--breakpoint($name, $breakpoints: $carbon--grid-breakpoints) {
496
+ @include carbon--breakpoint-up($name, $breakpoints) {
497
+ @content;
498
+ }
499
+ }
500
+ ```
501
+
502
+ </details>
503
+
504
+ - **Parameters**:
505
+
506
+ | Name | Description | Type | Default value |
507
+ | -------------- | ---------------------------------------------- | ------------------ | --------------------------- |
508
+ | `$name` | — | `String \| Number` | — |
509
+ | `$breakpoints` | A map of breakpoints where the key is the name | `Map` | `$carbon--grid-breakpoints` |
510
+
511
+ - **Group**: [@carbon/layout](#carbonlayout)
512
+ - **Requires**:
513
+ - [carbon--breakpoint-up [mixin]](#carbon--breakpoint-up-mixin)
514
+ - **Used by**:
515
+ - [carbon--largest-breakpoint [mixin]](#carbon--largest-breakpoint-mixin)
516
+
517
+ ### ✅carbon--base-font-size [variable]
518
+
519
+ Default font size
520
+
521
+ <details>
522
+ <summary>Source code</summary>
523
+
524
+ ```scss
525
+ $carbon--base-font-size: 16px;
526
+ ```
527
+
528
+ </details>
529
+
530
+ - **Group**: [@carbon/layout](#carbonlayout)
531
+ - **Type**: `Number`
532
+ - **Used by**:
533
+ - [carbon--rem [function]](#carbon--rem-function)
534
+ - [carbon--em [function]](#carbon--em-function)
535
+
536
+ ### ✅carbon--rem [function]
537
+
538
+ Convert a given px unit to a rem unit
539
+
540
+ <details>
541
+ <summary>Source code</summary>
542
+
543
+ ```scss
544
+ @function carbon--rem($px) {
545
+ @return ($px / $carbon--base-font-size) * 1rem;
546
+ }
547
+ ```
548
+
549
+ </details>
550
+
551
+ - **Parameters**:
552
+
553
+ | Name | Description | Type | Default value |
554
+ | ----- | ------------------- | -------- | ------------- |
555
+ | `$px` | Number with px unit | `Number` | — |
556
+
557
+ - **Group**: [@carbon/layout](#carbonlayout)
558
+ - **Returns**: `Number` Number with rem unit
559
+ - **Requires**:
560
+ - [carbon--base-font-size [variable]](#carbon--base-font-size-variable)
561
+ - **Used by**:
562
+ - [carbon--mini-units [function]](#carbon--mini-units-function)
563
+
564
+ ### ✅carbon--em [function]
565
+
566
+ Convert a given px unit to a em unit
567
+
568
+ <details>
569
+ <summary>Source code</summary>
570
+
571
+ ```scss
572
+ @function carbon--em($px) {
573
+ @return ($px / $carbon--base-font-size) * 1em;
574
+ }
575
+ ```
576
+
577
+ </details>
578
+
579
+ - **Parameters**:
580
+
581
+ | Name | Description | Type | Default value |
582
+ | ----- | ------------------- | -------- | ------------- |
583
+ | `$px` | Number with px unit | `Number` | — |
584
+
585
+ - **Group**: [@carbon/layout](#carbonlayout)
586
+ - **Returns**: `Number` Number with em unit
587
+ - **Requires**:
588
+ - [carbon--base-font-size [variable]](#carbon--base-font-size-variable)
589
+
590
+ ### ✅carbon--get-column-width [function]
591
+
592
+ Get the column width for a given breakpoint
593
+
594
+ <details>
595
+ <summary>Source code</summary>
596
+
597
+ ```scss
598
+ @function carbon--get-column-width(
599
+ $breakpoint,
600
+ $breakpoints: $carbon--grid-breakpoints
601
+ ) {
602
+ @if map-has-key($breakpoints, $breakpoint) {
603
+ $values: map-get($breakpoints, $breakpoint);
604
+ $width: map-get($values, width);
605
+ $margin: map-get($values, margin);
606
+ $columns: map-get($values, columns);
607
+
608
+ @return ($width - (2 * $margin)) / $columns;
609
+ } @else {
610
+ @warn 'Breakpoint: `#{$breakpoint}` is not a valid breakpoint.';
611
+ }
612
+ }
613
+ ```
614
+
615
+ </details>
616
+
617
+ - **Parameters**:
618
+
619
+ | Name | Description | Type | Default value |
620
+ | -------------- | ----------- | -------- | --------------------------- |
621
+ | `$breakpoint` | — | `String` | — |
622
+ | `$breakpoints` | — | `Map` | `$carbon--grid-breakpoints` |
623
+
624
+ - **Group**: [@carbon/layout](#carbonlayout)
625
+ - **Returns**: `Number` In rem
626
+
627
+ ### ✅carbon--key-height-scales [variable]
628
+
629
+ <details>
630
+ <summary>Source code</summary>
631
+
632
+ ```scss
633
+ $carbon--key-height-scales: (
634
+ sm: (
635
+ carbon--get-column-width(sm),
636
+ carbon--get-column-width(sm) * 2,
637
+ carbon--get-column-width(sm) * 3,
638
+ carbon--get-column-width(sm) * 4,
639
+ carbon--get-column-width(sm) * 5,
640
+ carbon--get-column-width(sm) * 6,
641
+ ),
642
+ md: (
643
+ carbon--get-column-width(md),
644
+ carbon--get-column-width(md) * 2,
645
+ carbon--get-column-width(md) * 3,
646
+ carbon--get-column-width(md) * 4,
647
+ carbon--get-column-width(md) * 5,
648
+ carbon--get-column-width(md) * 6,
649
+ ),
650
+ lg: (
651
+ carbon--get-column-width(lg),
652
+ carbon--get-column-width(lg) * 2,
653
+ carbon--get-column-width(lg) * 3,
654
+ carbon--get-column-width(lg) * 4,
655
+ carbon--get-column-width(lg) * 5,
656
+ carbon--get-column-width(lg) * 6,
657
+ carbon--get-column-width(lg) * 7,
658
+ carbon--get-column-width(lg) * 8,
659
+ ),
660
+ xlg: (
661
+ carbon--get-column-width(xlg),
662
+ carbon--get-column-width(xlg) * 2,
663
+ carbon--get-column-width(xlg) * 3,
664
+ carbon--get-column-width(xlg) * 4,
665
+ carbon--get-column-width(xlg) * 5,
666
+ carbon--get-column-width(xlg) * 6,
667
+ carbon--get-column-width(xlg) * 7,
668
+ carbon--get-column-width(xlg) * 8,
669
+ ),
670
+ max: (
671
+ carbon--get-column-width(max),
672
+ carbon--get-column-width(max) * 2,
673
+ carbon--get-column-width(max) * 3,
674
+ carbon--get-column-width(max) * 4,
675
+ carbon--get-column-width(max) * 5,
676
+ carbon--get-column-width(max) * 6,
677
+ carbon--get-column-width(max) * 7,
678
+ carbon--get-column-width(max) * 8,
679
+ ),
680
+ );
681
+ ```
682
+
683
+ </details>
684
+
685
+ - **Group**: [@carbon/layout](#carbonlayout)
686
+ - **Type**: `Map`
687
+ - **Used by**:
688
+ - [carbon--key-height [function]](#carbon--key-height-function)
689
+
690
+ ### ✅carbon--key-height [function]
691
+
692
+ Get the value of a key height step at a given breakpoint
693
+
694
+ <details>
695
+ <summary>Source code</summary>
696
+
697
+ ```scss
698
+ @function carbon--key-height($breakpoint, $step) {
699
+ @if map-has-key($carbon--key-height-scales, $breakpoint) {
700
+ @return nth(map-get($carbon--key-height-scales, $breakpoint), $step);
701
+ } @else {
702
+ @warn 'Breakpoint: `#{$breakpoint}` is not a valid breakpoint.';
703
+ }
704
+ }
705
+ ```
706
+
707
+ </details>
708
+
709
+ - **Parameters**:
710
+
711
+ | Name | Description | Type | Default value |
712
+ | ------------- | ----------- | -------- | ------------- |
713
+ | `$breakpoint` | — | `String` | — |
714
+ | `$step` | — | `Number` | — |
715
+
716
+ - **Group**: [@carbon/layout](#carbonlayout)
717
+ - **Returns**: `Number` In rem
718
+ - **Requires**:
719
+ - [carbon--key-height-scales [variable]](#carbon--key-height-scales-variable)
720
+
721
+ ### ✅carbon--mini-unit-size [variable]
722
+
723
+ Default mini-unit value
724
+
725
+ <details>
726
+ <summary>Source code</summary>
727
+
728
+ ```scss
729
+ $carbon--mini-unit-size: 8px;
730
+ ```
731
+
732
+ </details>
733
+
734
+ - **Group**: [@carbon/layout](#carbonlayout)
735
+ - **Type**: `Number`
736
+ - **Used by**:
737
+ - [carbon--mini-units [function]](#carbon--mini-units-function)
738
+
739
+ ### ✅carbon--mini-units [function]
740
+
741
+ Get the value of the corresponding number of units
742
+
743
+ <details>
744
+ <summary>Source code</summary>
745
+
746
+ ```scss
747
+ @function carbon--mini-units($count) {
748
+ @return carbon--rem($carbon--mini-unit-size * $count);
749
+ }
750
+ ```
751
+
752
+ </details>
753
+
754
+ - **Parameters**:
755
+
756
+ | Name | Description | Type | Default value |
757
+ | -------- | ---------------------------------------- | -------- | ------------- |
758
+ | `$count` | The number of units to get the value for | `Number` | — |
759
+
760
+ - **Group**: [@carbon/layout](#carbonlayout)
761
+ - **Returns**: `Number` In rem units
762
+ - **Requires**:
763
+ - [carbon--rem [function]](#carbon--rem-function)
764
+ - [carbon--mini-unit-size [variable]](#carbon--mini-unit-size-variable)
765
+
766
+ ### ✅carbon--spacing-01 [variable]
767
+
768
+ 0.125rem (2px) spacing with default mini unit
769
+
770
+ <details>
771
+ <summary>Source code</summary>
772
+
773
+ ```scss
774
+ $carbon--spacing-01: carbon--mini-units(0.25);
775
+ ```
776
+
777
+ </details>
778
+
779
+ - **Group**: [@carbon/layout](#carbonlayout)
780
+ - **Type**: `Number`
781
+ - **Aliased**:
782
+ - `spacing-01`
783
+
784
+ ### ✅carbon--spacing-02 [variable]
785
+
786
+ 0.25rem (4px) spacing with default mini unit
787
+
788
+ <details>
789
+ <summary>Source code</summary>
790
+
791
+ ```scss
792
+ $carbon--spacing-02: carbon--mini-units(0.5);
793
+ ```
794
+
795
+ </details>
796
+
797
+ - **Group**: [@carbon/layout](#carbonlayout)
798
+ - **Type**: `Number`
799
+ - **Aliased**:
800
+ - `spacing-02`
801
+
802
+ ### ✅carbon--spacing-03 [variable]
803
+
804
+ 0.5rem (8px) spacing with default mini unit
805
+
806
+ <details>
807
+ <summary>Source code</summary>
808
+
809
+ ```scss
810
+ $carbon--spacing-03: carbon--mini-units(1);
811
+ ```
812
+
813
+ </details>
814
+
815
+ - **Group**: [@carbon/layout](#carbonlayout)
816
+ - **Type**: `Number`
817
+ - **Aliased**:
818
+ - `spacing-03`
819
+
820
+ ### ✅carbon--spacing-04 [variable]
821
+
822
+ 0.75rem (12px) spacing with default mini unit
823
+
824
+ <details>
825
+ <summary>Source code</summary>
826
+
827
+ ```scss
828
+ $carbon--spacing-04: carbon--mini-units(1.5);
829
+ ```
830
+
831
+ </details>
832
+
833
+ - **Group**: [@carbon/layout](#carbonlayout)
834
+ - **Type**: `Number`
835
+ - **Aliased**:
836
+ - `spacing-04`
837
+
838
+ ### ✅carbon--spacing-05 [variable]
839
+
840
+ 1rem (16px) spacing with default mini unit
841
+
842
+ <details>
843
+ <summary>Source code</summary>
844
+
845
+ ```scss
846
+ $carbon--spacing-05: carbon--mini-units(2);
847
+ ```
848
+
849
+ </details>
850
+
851
+ - **Group**: [@carbon/layout](#carbonlayout)
852
+ - **Type**: `Number`
853
+ - **Aliased**:
854
+ - `spacing-05`
855
+
856
+ ### ✅carbon--spacing-06 [variable]
857
+
858
+ 1.5rem (24px) spacing with default mini unit
859
+
860
+ <details>
861
+ <summary>Source code</summary>
862
+
863
+ ```scss
864
+ $carbon--spacing-06: carbon--mini-units(3);
865
+ ```
866
+
867
+ </details>
868
+
869
+ - **Group**: [@carbon/layout](#carbonlayout)
870
+ - **Type**: `Number`
871
+ - **Aliased**:
872
+ - `spacing-06`
873
+
874
+ ### ✅carbon--spacing-07 [variable]
875
+
876
+ 2rem (32px) spacing with default mini unit
877
+
878
+ <details>
879
+ <summary>Source code</summary>
880
+
881
+ ```scss
882
+ $carbon--spacing-07: carbon--mini-units(4);
883
+ ```
884
+
885
+ </details>
886
+
887
+ - **Group**: [@carbon/layout](#carbonlayout)
888
+ - **Type**: `Number`
889
+ - **Aliased**:
890
+ - `spacing-07`
891
+
892
+ ### ✅carbon--spacing-08 [variable]
893
+
894
+ 2.5rem (40px) spacing with default mini unit
895
+
896
+ <details>
897
+ <summary>Source code</summary>
898
+
899
+ ```scss
900
+ $carbon--spacing-08: carbon--mini-units(5);
901
+ ```
902
+
903
+ </details>
904
+
905
+ - **Group**: [@carbon/layout](#carbonlayout)
906
+ - **Type**: `Number`
907
+ - **Aliased**:
908
+ - `spacing-08`
909
+
910
+ ### ✅carbon--spacing-09 [variable]
911
+
912
+ 3rem (48px) spacing with default mini unit
913
+
914
+ <details>
915
+ <summary>Source code</summary>
916
+
917
+ ```scss
918
+ $carbon--spacing-09: carbon--mini-units(6);
919
+ ```
920
+
921
+ </details>
922
+
923
+ - **Group**: [@carbon/layout](#carbonlayout)
924
+ - **Type**: `Number`
925
+ - **Aliased**:
926
+ - `spacing-09`
927
+
928
+ ### ✅carbon--spacing-10 [variable]
929
+
930
+ 4rem (64px) spacing with default mini unit
931
+
932
+ <details>
933
+ <summary>Source code</summary>
934
+
935
+ ```scss
936
+ $carbon--spacing-10: carbon--mini-units(8);
937
+ ```
938
+
939
+ </details>
940
+
941
+ - **Group**: [@carbon/layout](#carbonlayout)
942
+ - **Type**: `Number`
943
+ - **Aliased**:
944
+ - `spacing-10`
945
+
946
+ ### ✅carbon--spacing-11 [variable]
947
+
948
+ 5rem (80px) spacing with default mini unit
949
+
950
+ <details>
951
+ <summary>Source code</summary>
952
+
953
+ ```scss
954
+ $carbon--spacing-11: carbon--mini-units(10);
955
+ ```
956
+
957
+ </details>
958
+
959
+ - **Group**: [@carbon/layout](#carbonlayout)
960
+ - **Type**: `Number`
961
+ - **Aliased**:
962
+ - `spacing-11`
963
+
964
+ ### ✅carbon--spacing-12 [variable]
965
+
966
+ 6rem (96px) spacing with default mini unit
967
+
968
+ <details>
969
+ <summary>Source code</summary>
970
+
971
+ ```scss
972
+ $carbon--spacing-12: carbon--mini-units(12);
973
+ ```
974
+
975
+ </details>
976
+
977
+ - **Group**: [@carbon/layout](#carbonlayout)
978
+ - **Type**: `Number`
979
+ - **Aliased**:
980
+ - `spacing-12`
981
+
982
+ ### ✅carbon--spacing [variable]
983
+
984
+ All spacing increments in a map
985
+
986
+ <details>
987
+ <summary>Source code</summary>
988
+
989
+ ```scss
990
+ $carbon--spacing: (
991
+ $carbon--spacing-01,
992
+ $carbon--spacing-02,
993
+ $carbon--spacing-03,
994
+ $carbon--spacing-04,
995
+ $carbon--spacing-05,
996
+ $carbon--spacing-06,
997
+ $carbon--spacing-07,
998
+ $carbon--spacing-08,
999
+ $carbon--spacing-09,
1000
+ $carbon--spacing-10,
1001
+ $carbon--spacing-11,
1002
+ $carbon--spacing-12
1003
+ );
1004
+ ```
1005
+
1006
+ </details>
1007
+
1008
+ - **Group**: [@carbon/layout](#carbonlayout)
1009
+ - **Type**: `Map`
1010
+
1011
+ ### ✅spacing-01 [variable]
1012
+
1013
+ <details>
1014
+ <summary>Source code</summary>
1015
+
1016
+ ```scss
1017
+ $spacing-01: $carbon--spacing-01;
1018
+ ```
1019
+
1020
+ </details>
1021
+
1022
+ - **Group**: [@carbon/layout](#carbonlayout)
1023
+ - **Type**: `Number`
1024
+ - **Alias**: `carbon--spacing-01`
1025
+
1026
+ ### ✅spacing-02 [variable]
1027
+
1028
+ <details>
1029
+ <summary>Source code</summary>
1030
+
1031
+ ```scss
1032
+ $spacing-02: $carbon--spacing-02;
1033
+ ```
1034
+
1035
+ </details>
1036
+
1037
+ - **Group**: [@carbon/layout](#carbonlayout)
1038
+ - **Type**: `Number`
1039
+ - **Alias**: `carbon--spacing-02`
1040
+
1041
+ ### ✅spacing-03 [variable]
1042
+
1043
+ <details>
1044
+ <summary>Source code</summary>
1045
+
1046
+ ```scss
1047
+ $spacing-03: $carbon--spacing-03;
1048
+ ```
1049
+
1050
+ </details>
1051
+
1052
+ - **Group**: [@carbon/layout](#carbonlayout)
1053
+ - **Type**: `Number`
1054
+ - **Alias**: `carbon--spacing-03`
1055
+
1056
+ ### ✅spacing-04 [variable]
1057
+
1058
+ <details>
1059
+ <summary>Source code</summary>
1060
+
1061
+ ```scss
1062
+ $spacing-04: $carbon--spacing-04;
1063
+ ```
1064
+
1065
+ </details>
1066
+
1067
+ - **Group**: [@carbon/layout](#carbonlayout)
1068
+ - **Type**: `Number`
1069
+ - **Alias**: `carbon--spacing-04`
1070
+
1071
+ ### ✅spacing-05 [variable]
1072
+
1073
+ <details>
1074
+ <summary>Source code</summary>
1075
+
1076
+ ```scss
1077
+ $spacing-05: $carbon--spacing-05;
1078
+ ```
1079
+
1080
+ </details>
1081
+
1082
+ - **Group**: [@carbon/layout](#carbonlayout)
1083
+ - **Type**: `Number`
1084
+ - **Alias**: `carbon--spacing-05`
1085
+
1086
+ ### ✅spacing-06 [variable]
1087
+
1088
+ <details>
1089
+ <summary>Source code</summary>
1090
+
1091
+ ```scss
1092
+ $spacing-06: $carbon--spacing-06;
1093
+ ```
1094
+
1095
+ </details>
1096
+
1097
+ - **Group**: [@carbon/layout](#carbonlayout)
1098
+ - **Type**: `Number`
1099
+ - **Alias**: `carbon--spacing-06`
1100
+
1101
+ ### ✅spacing-07 [variable]
1102
+
1103
+ <details>
1104
+ <summary>Source code</summary>
1105
+
1106
+ ```scss
1107
+ $spacing-07: $carbon--spacing-07;
1108
+ ```
1109
+
1110
+ </details>
1111
+
1112
+ - **Group**: [@carbon/layout](#carbonlayout)
1113
+ - **Type**: `Number`
1114
+ - **Alias**: `carbon--spacing-07`
1115
+
1116
+ ### ✅spacing-08 [variable]
1117
+
1118
+ <details>
1119
+ <summary>Source code</summary>
1120
+
1121
+ ```scss
1122
+ $spacing-08: $carbon--spacing-08;
1123
+ ```
1124
+
1125
+ </details>
1126
+
1127
+ - **Group**: [@carbon/layout](#carbonlayout)
1128
+ - **Type**: `Number`
1129
+ - **Alias**: `carbon--spacing-08`
1130
+
1131
+ ### ✅spacing-09 [variable]
1132
+
1133
+ <details>
1134
+ <summary>Source code</summary>
1135
+
1136
+ ```scss
1137
+ $spacing-09: $carbon--spacing-09;
1138
+ ```
1139
+
1140
+ </details>
1141
+
1142
+ - **Group**: [@carbon/layout](#carbonlayout)
1143
+ - **Type**: `Number`
1144
+ - **Alias**: `carbon--spacing-09`
1145
+
1146
+ ### ✅spacing-10 [variable]
1147
+
1148
+ <details>
1149
+ <summary>Source code</summary>
1150
+
1151
+ ```scss
1152
+ $spacing-10: $carbon--spacing-10;
1153
+ ```
1154
+
1155
+ </details>
1156
+
1157
+ - **Group**: [@carbon/layout](#carbonlayout)
1158
+ - **Type**: `Number`
1159
+ - **Alias**: `carbon--spacing-10`
1160
+
1161
+ ### ✅spacing-11 [variable]
1162
+
1163
+ <details>
1164
+ <summary>Source code</summary>
1165
+
1166
+ ```scss
1167
+ $spacing-11: $carbon--spacing-11;
1168
+ ```
1169
+
1170
+ </details>
1171
+
1172
+ - **Group**: [@carbon/layout](#carbonlayout)
1173
+ - **Type**: `Number`
1174
+ - **Alias**: `carbon--spacing-11`
1175
+
1176
+ ### ✅spacing-12 [variable]
1177
+
1178
+ <details>
1179
+ <summary>Source code</summary>
1180
+
1181
+ ```scss
1182
+ $spacing-12: $carbon--spacing-12;
1183
+ ```
1184
+
1185
+ </details>
1186
+
1187
+ - **Group**: [@carbon/layout](#carbonlayout)
1188
+ - **Type**: `Number`
1189
+ - **Alias**: `carbon--spacing-12`
1190
+
1191
+ ### ✅carbon--layout-01 [variable]
1192
+
1193
+ 1rem (16px) layout with default mini unit
1194
+
1195
+ <details>
1196
+ <summary>Source code</summary>
1197
+
1198
+ ```scss
1199
+ $carbon--layout-01: carbon--mini-units(2);
1200
+ ```
1201
+
1202
+ </details>
1203
+
1204
+ - **Group**: [@carbon/layout](#carbonlayout)
1205
+ - **Type**: `Number`
1206
+ - **Aliased**:
1207
+ - `layout-01`
1208
+
1209
+ ### ✅carbon--layout-02 [variable]
1210
+
1211
+ 1.5rem (24px) layout with default mini unit
1212
+
1213
+ <details>
1214
+ <summary>Source code</summary>
1215
+
1216
+ ```scss
1217
+ $carbon--layout-02: carbon--mini-units(3);
1218
+ ```
1219
+
1220
+ </details>
1221
+
1222
+ - **Group**: [@carbon/layout](#carbonlayout)
1223
+ - **Type**: `Number`
1224
+ - **Aliased**:
1225
+ - `layout-02`
1226
+
1227
+ ### ✅carbon--layout-03 [variable]
1228
+
1229
+ 2rem (32px) layout with default mini unit
1230
+
1231
+ <details>
1232
+ <summary>Source code</summary>
1233
+
1234
+ ```scss
1235
+ $carbon--layout-03: carbon--mini-units(4);
1236
+ ```
1237
+
1238
+ </details>
1239
+
1240
+ - **Group**: [@carbon/layout](#carbonlayout)
1241
+ - **Type**: `Number`
1242
+ - **Aliased**:
1243
+ - `layout-03`
1244
+
1245
+ ### ✅carbon--layout-04 [variable]
1246
+
1247
+ 3rem (48px) layout with default mini unit
1248
+
1249
+ <details>
1250
+ <summary>Source code</summary>
1251
+
1252
+ ```scss
1253
+ $carbon--layout-04: carbon--mini-units(6);
1254
+ ```
1255
+
1256
+ </details>
1257
+
1258
+ - **Group**: [@carbon/layout](#carbonlayout)
1259
+ - **Type**: `Number`
1260
+ - **Aliased**:
1261
+ - `layout-04`
1262
+
1263
+ ### ✅carbon--layout-05 [variable]
1264
+
1265
+ 4rem (64px) layout with default mini unit
1266
+
1267
+ <details>
1268
+ <summary>Source code</summary>
1269
+
1270
+ ```scss
1271
+ $carbon--layout-05: carbon--mini-units(8);
1272
+ ```
1273
+
1274
+ </details>
1275
+
1276
+ - **Group**: [@carbon/layout](#carbonlayout)
1277
+ - **Type**: `Number`
1278
+ - **Aliased**:
1279
+ - `layout-05`
1280
+
1281
+ ### ✅carbon--layout-06 [variable]
1282
+
1283
+ 4rem (96px) layout with default mini unit
1284
+
1285
+ <details>
1286
+ <summary>Source code</summary>
1287
+
1288
+ ```scss
1289
+ $carbon--layout-06: carbon--mini-units(12);
1290
+ ```
1291
+
1292
+ </details>
1293
+
1294
+ - **Group**: [@carbon/layout](#carbonlayout)
1295
+ - **Type**: `Number`
1296
+ - **Aliased**:
1297
+ - `layout-06`
1298
+
1299
+ ### ✅carbon--layout-07 [variable]
1300
+
1301
+ 10rem (160px) layout with default mini unit
1302
+
1303
+ <details>
1304
+ <summary>Source code</summary>
1305
+
1306
+ ```scss
1307
+ $carbon--layout-07: carbon--mini-units(20);
1308
+ ```
1309
+
1310
+ </details>
1311
+
1312
+ - **Group**: [@carbon/layout](#carbonlayout)
1313
+ - **Type**: `Number`
1314
+ - **Aliased**:
1315
+ - `layout-07`
1316
+
1317
+ ### ✅carbon--layout [variable]
1318
+
1319
+ All layout increments in a map
1320
+
1321
+ <details>
1322
+ <summary>Source code</summary>
1323
+
1324
+ ```scss
1325
+ $carbon--layout: (
1326
+ $carbon--layout-01,
1327
+ $carbon--layout-02,
1328
+ $carbon--layout-03,
1329
+ $carbon--layout-04,
1330
+ $carbon--layout-05,
1331
+ $carbon--layout-06,
1332
+ $carbon--layout-07
1333
+ );
1334
+ ```
1335
+
1336
+ </details>
1337
+
1338
+ - **Group**: [@carbon/layout](#carbonlayout)
1339
+ - **Type**: `Map`
1340
+
1341
+ ### ✅layout-01 [variable]
1342
+
1343
+ <details>
1344
+ <summary>Source code</summary>
1345
+
1346
+ ```scss
1347
+ $layout-01: $carbon--layout-01;
1348
+ ```
1349
+
1350
+ </details>
1351
+
1352
+ - **Group**: [@carbon/layout](#carbonlayout)
1353
+ - **Type**: `Number`
1354
+ - **Alias**: `carbon--layout-01`
1355
+
1356
+ ### ✅layout-02 [variable]
1357
+
1358
+ <details>
1359
+ <summary>Source code</summary>
1360
+
1361
+ ```scss
1362
+ $layout-02: $carbon--layout-02;
1363
+ ```
1364
+
1365
+ </details>
1366
+
1367
+ - **Group**: [@carbon/layout](#carbonlayout)
1368
+ - **Type**: `Number`
1369
+ - **Alias**: `carbon--layout-02`
1370
+
1371
+ ### ✅layout-03 [variable]
1372
+
1373
+ <details>
1374
+ <summary>Source code</summary>
1375
+
1376
+ ```scss
1377
+ $layout-03: $carbon--layout-03;
1378
+ ```
1379
+
1380
+ </details>
1381
+
1382
+ - **Group**: [@carbon/layout](#carbonlayout)
1383
+ - **Type**: `Number`
1384
+ - **Alias**: `carbon--layout-03`
1385
+
1386
+ ### ✅layout-04 [variable]
1387
+
1388
+ <details>
1389
+ <summary>Source code</summary>
1390
+
1391
+ ```scss
1392
+ $layout-04: $carbon--layout-04;
1393
+ ```
1394
+
1395
+ </details>
1396
+
1397
+ - **Group**: [@carbon/layout](#carbonlayout)
1398
+ - **Type**: `Number`
1399
+ - **Alias**: `carbon--layout-04`
1400
+
1401
+ ### ✅layout-05 [variable]
1402
+
1403
+ <details>
1404
+ <summary>Source code</summary>
1405
+
1406
+ ```scss
1407
+ $layout-05: $carbon--layout-05;
1408
+ ```
1409
+
1410
+ </details>
1411
+
1412
+ - **Group**: [@carbon/layout](#carbonlayout)
1413
+ - **Type**: `Number`
1414
+ - **Alias**: `carbon--layout-05`
1415
+
1416
+ ### ✅layout-06 [variable]
1417
+
1418
+ <details>
1419
+ <summary>Source code</summary>
1420
+
1421
+ ```scss
1422
+ $layout-06: $carbon--layout-06;
1423
+ ```
1424
+
1425
+ </details>
1426
+
1427
+ - **Group**: [@carbon/layout](#carbonlayout)
1428
+ - **Type**: `Number`
1429
+ - **Alias**: `carbon--layout-06`
1430
+
1431
+ ### ✅layout-07 [variable]
1432
+
1433
+ <details>
1434
+ <summary>Source code</summary>
1435
+
1436
+ ```scss
1437
+ $layout-07: $carbon--layout-07;
1438
+ ```
1439
+
1440
+ </details>
1441
+
1442
+ - **Group**: [@carbon/layout](#carbonlayout)
1443
+ - **Type**: `Number`
1444
+ - **Alias**: `carbon--layout-07`
1445
+
1446
+ ### ✅carbon--fluid-spacing-01 [variable]
1447
+
1448
+ 0vw fluid spacing
1449
+
1450
+ <details>
1451
+ <summary>Source code</summary>
1452
+
1453
+ ```scss
1454
+ $carbon--fluid-spacing-01: 0;
1455
+ ```
1456
+
1457
+ </details>
1458
+
1459
+ - **Group**: [@carbon/layout](#carbonlayout)
1460
+ - **Type**: `Number`
1461
+ - **Aliased**:
1462
+ - `fluid-spacing-01`
1463
+
1464
+ ### ✅carbon--fluid-spacing-02 [variable]
1465
+
1466
+ 2vw fluid spacing
1467
+
1468
+ <details>
1469
+ <summary>Source code</summary>
1470
+
1471
+ ```scss
1472
+ $carbon--fluid-spacing-02: 2vw;
1473
+ ```
1474
+
1475
+ </details>
1476
+
1477
+ - **Group**: [@carbon/layout](#carbonlayout)
1478
+ - **Type**: `Number`
1479
+ - **Aliased**:
1480
+ - `fluid-spacing-02`
1481
+
1482
+ ### ✅carbon--fluid-spacing-03 [variable]
1483
+
1484
+ 5vw fluid spacing
1485
+
1486
+ <details>
1487
+ <summary>Source code</summary>
1488
+
1489
+ ```scss
1490
+ $carbon--fluid-spacing-03: 5vw;
1491
+ ```
1492
+
1493
+ </details>
1494
+
1495
+ - **Group**: [@carbon/layout](#carbonlayout)
1496
+ - **Type**: `Number`
1497
+ - **Aliased**:
1498
+ - `fluid-spacing-03`
1499
+
1500
+ ### ✅carbon--fluid-spacing-04 [variable]
1501
+
1502
+ 10vw fluid spacing
1503
+
1504
+ <details>
1505
+ <summary>Source code</summary>
1506
+
1507
+ ```scss
1508
+ $carbon--fluid-spacing-04: 10vw;
1509
+ ```
1510
+
1511
+ </details>
1512
+
1513
+ - **Group**: [@carbon/layout](#carbonlayout)
1514
+ - **Type**: `Number`
1515
+ - **Aliased**:
1516
+ - `fluid-spacing-04`
1517
+
1518
+ ### ✅carbon--fluid-spacing [variable]
1519
+
1520
+ All fluid spacing increments in a map
1521
+
1522
+ <details>
1523
+ <summary>Source code</summary>
1524
+
1525
+ ```scss
1526
+ $carbon--fluid-spacing: (
1527
+ $carbon--fluid-spacing-01,
1528
+ $carbon--fluid-spacing-02,
1529
+ $carbon--fluid-spacing-03,
1530
+ $carbon--fluid-spacing-04
1531
+ );
1532
+ ```
1533
+
1534
+ </details>
1535
+
1536
+ - **Group**: [@carbon/layout](#carbonlayout)
1537
+ - **Type**: `Map`
1538
+
1539
+ ### ✅fluid-spacing-01 [variable]
1540
+
1541
+ <details>
1542
+ <summary>Source code</summary>
1543
+
1544
+ ```scss
1545
+ $fluid-spacing-01: $carbon--fluid-spacing-01;
1546
+ ```
1547
+
1548
+ </details>
1549
+
1550
+ - **Group**: [@carbon/layout](#carbonlayout)
1551
+ - **Type**: `Number`
1552
+ - **Alias**: `carbon--fluid-spacing-01`
1553
+
1554
+ ### ✅fluid-spacing-02 [variable]
1555
+
1556
+ <details>
1557
+ <summary>Source code</summary>
1558
+
1559
+ ```scss
1560
+ $fluid-spacing-02: $carbon--fluid-spacing-02;
1561
+ ```
1562
+
1563
+ </details>
1564
+
1565
+ - **Group**: [@carbon/layout](#carbonlayout)
1566
+ - **Type**: `Number`
1567
+ - **Alias**: `carbon--fluid-spacing-02`
1568
+
1569
+ ### ✅fluid-spacing-03 [variable]
1570
+
1571
+ <details>
1572
+ <summary>Source code</summary>
1573
+
1574
+ ```scss
1575
+ $fluid-spacing-03: $carbon--fluid-spacing-03;
1576
+ ```
1577
+
1578
+ </details>
1579
+
1580
+ - **Group**: [@carbon/layout](#carbonlayout)
1581
+ - **Type**: `Number`
1582
+ - **Alias**: `carbon--fluid-spacing-03`
1583
+
1584
+ ### ✅fluid-spacing-04 [variable]
1585
+
1586
+ <details>
1587
+ <summary>Source code</summary>
1588
+
1589
+ ```scss
1590
+ $fluid-spacing-04: $carbon--fluid-spacing-04;
1591
+ ```
1592
+
1593
+ </details>
1594
+
1595
+ - **Group**: [@carbon/layout](#carbonlayout)
1596
+ - **Type**: `Number`
1597
+ - **Alias**: `carbon--fluid-spacing-04`
1598
+
1599
+ ### ✅map-deep-get [function]
1600
+
1601
+ Map deep get
1602
+
1603
+ <details>
1604
+ <summary>Source code</summary>
1605
+
1606
+ ```scss
1607
+ @function map-deep-get($map, $keys) {
1608
+ @each $key in $keys {
1609
+ $map: map-get($map, $key);
1610
+ }
1611
+ @return $map;
1612
+ }
1613
+ ```
1614
+
1615
+ </details>
1616
+
1617
+ - **Parameters**:
1618
+
1619
+ | Name | Description | Type | Default value |
1620
+ | ------- | ----------- | --------- | ------------- |
1621
+ | `$map` | Map | `Map` | — |
1622
+ | `$keys` | Key chain | `Arglist` | — |
1623
+
1624
+ - **Group**: [@carbon/layout](#carbonlayout)
1625
+ - **Returns**: `*` Desired value
1626
+
1627
+ ### ✅carbon--key-by-index [function]
1628
+
1629
+ Provide a map and index, and get back the relevant key value
1630
+
1631
+ <details>
1632
+ <summary>Source code</summary>
1633
+
1634
+ ```scss
1635
+ @function carbon--key-by-index($map, $index) {
1636
+ $keys: map-keys($map);
1637
+ @return nth($keys, $index);
1638
+ }
1639
+ ```
1640
+
1641
+ </details>
1642
+
1643
+ - **Parameters**:
1644
+
1645
+ | Name | Description | Type | Default value |
1646
+ | -------- | ----------- | --------- | ------------- |
1647
+ | `$map` | Map | `Map` | — |
1648
+ | `$index` | Key chain | `Integer` | — |
1649
+
1650
+ - **Group**: [@carbon/layout](#carbonlayout)
1651
+ - **Returns**: `String` Desired value
1652
+ - **Used by**:
1653
+ - [carbon--largest-breakpoint-name [function]](#carbon--largest-breakpoint-name-function)
1654
+ - [last-map-item [function]](#last-map-item-function)
1655
+
1656
+ ### ✅last-map-item [function]
1657
+
1658
+ Pass in a map, and get the last one in the list back
1659
+
1660
+ <details>
1661
+ <summary>Source code</summary>
1662
+
1663
+ ```scss
1664
+ @function last-map-item($map) {
1665
+ $total-length: length($map);
1666
+ @return map-get($map, carbon--key-by-index($map, $total-length));
1667
+ }
1668
+ ```
1669
+
1670
+ </details>
1671
+
1672
+ - **Parameters**:
1673
+
1674
+ | Name | Description | Type | Default value |
1675
+ | ------ | ----------- | ----- | ------------- |
1676
+ | `$map` | Map | `Map` | — |
1677
+
1678
+ - **Group**: [@carbon/layout](#carbonlayout)
1679
+ - **Returns**: `*` Desired value
1680
+ - **Requires**:
1681
+ - [carbon--key-by-index [function]](#carbon--key-by-index-function)