igniteui-theming 1.4.14 → 2.0.1

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/sass/themes/_functions.scss +5 -2
  3. package/sass/themes/_mixins.scss +4 -1
  4. package/sass/themes/schemas/components/light/_action-strip.scss +24 -8
  5. package/sass/themes/schemas/components/light/_avatar.scss +2 -2
  6. package/sass/themes/schemas/components/light/_badge.scss +2 -2
  7. package/sass/themes/schemas/components/light/_button-group.scss +18 -7
  8. package/sass/themes/schemas/components/light/_button.scss +90 -34
  9. package/sass/themes/schemas/components/light/_calendar.scss +60 -22
  10. package/sass/themes/schemas/components/light/_card.scss +18 -7
  11. package/sass/themes/schemas/components/light/_carousel.scss +12 -6
  12. package/sass/themes/schemas/components/light/_checkbox.scss +48 -16
  13. package/sass/themes/schemas/components/light/_chip.scss +12 -6
  14. package/sass/themes/schemas/components/light/_dialog.scss +18 -7
  15. package/sass/themes/schemas/components/light/_drop-down.scss +30 -13
  16. package/sass/themes/schemas/components/light/_expansion-panel.scss +12 -5
  17. package/sass/themes/schemas/components/light/_grid.scss +20 -9
  18. package/sass/themes/schemas/components/light/_icon.scss +0 -2
  19. package/sass/themes/schemas/components/light/_input-group.scss +54 -21
  20. package/sass/themes/schemas/components/light/_list.scss +24 -10
  21. package/sass/themes/schemas/components/light/_navdrawer.scss +18 -7
  22. package/sass/themes/schemas/components/light/_progress.scss +13 -7
  23. package/sass/themes/schemas/components/light/_snackbar.scss +18 -6
  24. package/sass/themes/schemas/components/light/_splitter.scss +6 -2
  25. package/sass/themes/schemas/components/light/_stepper.scss +28 -14
  26. package/sass/themes/schemas/components/light/_switch.scss +42 -15
  27. package/sass/themes/schemas/components/light/_tabs.scss +12 -4
  28. package/sass/themes/schemas/components/light/_time-picker.scss +42 -15
  29. package/sass/themes/schemas/components/light/_toast.scss +24 -8
  30. package/sass/themes/schemas/components/light/_tooltip.scss +18 -7
  31. package/sass/themes/schemas/components/light/_watermark.scss +24 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "1.4.14",
3
+ "version": "2.0.1",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,6 +2,7 @@
2
2
  @use 'sass:list';
3
3
  @use 'sass:meta';
4
4
  @use 'sass:string';
5
+ @use 'sass:math';
5
6
  @use '../typography/functions' as *;
6
7
  @use '../elevations/functions' as *;
7
8
  @use '../color/functions' as color;
@@ -22,7 +23,7 @@
22
23
  /// foreground: (
23
24
  /// color: ('primary', 800, .5)
24
25
  /// ),
25
- /// border-radius: rem(5px)
26
+ /// border-radius: (rem(5px), rem(0), rem(8px)) // default, min and max radius
26
27
  /// );
27
28
  /// $theme: digest-schema($custom-schema);
28
29
  /// @returns {Map} - A theme map with resolved values.
@@ -116,7 +117,9 @@
116
117
  /// @param {Number} $max [$radius] - The maximum allowed value.
117
118
  /// @return {Number} - The clamped value
118
119
  @function border-radius($radius, $min: #{rem(0)}, $max: $radius) {
119
- @return clamp(#{$min}, #{calc(var(--ig-radius-factor) * #{$radius})}, #{$max});
120
+ $factor: math.div($radius, $max);
121
+
122
+ @return clamp(#{$min}, #{calc(var(--ig-radius-factor, #{$factor}) * #{$max})}, #{$max});
120
123
  }
121
124
 
122
125
  /// Used to switch between values based on the size of the component.
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:math';
2
3
  @use 'sass:meta';
3
4
  @use 'sass:string';
4
5
  @use 'sass:list';
@@ -87,7 +88,9 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', '_meta');
87
88
  /// @example scss
88
89
  /// @include border-radius(4px);
89
90
  @mixin border-radius($radius, $min: #{rem(0)}, $max: $radius) {
90
- border-radius: clamp(#{$min}, #{calc(var(--ig-radius-factor) * #{$radius})}, #{$max});
91
+ $factor: math.div($radius, $max);
92
+
93
+ border-radius: clamp(#{$min}, #{calc(var(--ig-radius-factor, #{$factor}) * #{$max})}, #{$max});
91
94
  }
92
95
 
93
96
  /// Truncates text to a specific number of lines.
@@ -13,7 +13,7 @@
13
13
  /// @prop {Map} background [color: ('gray', 100, .38)] - The color used for the action strip component content background.
14
14
  /// @prop {Map} actions-background [color: ('gray', 200)] - The color used for actions background.
15
15
  /// @prop {Map} delete-action [color: ('error')] - The color used for the delete icon in action strip component.
16
- /// @prop {Number} actions-border-radius [24px] - The border radius used for action strip actions container. Can be a fraction between 0 and 1, pixels, or percent.
16
+ /// @prop {List} actions-border-radius [(rem(24px), rem(0), rem(24px))] - The border radius used for action strip actions container.
17
17
  $light-action-strip: extend(
18
18
  (
19
19
  actions-background: (
@@ -39,29 +39,41 @@ $light-action-strip: extend(
39
39
  ),
40
40
  ),
41
41
 
42
- actions-border-radius: rem(24px),
42
+ actions-border-radius: (
43
+ rem(24px),
44
+ rem(0),
45
+ rem(24px),
46
+ ),
43
47
  )
44
48
  );
45
49
 
46
50
  /// Generates a fluent action strip schema.
47
51
  /// @type {Map}
48
- /// @prop {Number} actions-border-radius [24px] - The border radius used for action strip actions container. Can be a fraction between 0 and 1, pixels, or percent.
52
+ /// @prop {List} actions-border-radius [(rem(0), rem(0), rem(24px))] - The border radius used for action strip actions container.
49
53
  /// @requires {Map} $light-action-strip
50
54
  $fluent-action-strip: extend(
51
55
  $light-action-strip,
52
56
  (
53
- actions-border-radius: rem(0),
57
+ actions-border-radius: (
58
+ rem(0),
59
+ rem(0),
60
+ rem(24px),
61
+ ),
54
62
  )
55
63
  );
56
64
 
57
65
  /// Generates a bootstrap action strip schema.
58
66
  /// @type {Map}
59
- /// @prop {Number} actions-border-radius [4px] - The border radius used for action strip actions container. Can be a fraction between 0 and 1, pixels, or percent.
67
+ /// @prop {List} actions-border-radius [(rem(4px), rem(0), rem(24px))] - The border radius used for action strip actions container.
60
68
  /// @requires {Map} $light-action-strip
61
69
  $bootstrap-action-strip: extend(
62
70
  $light-action-strip,
63
71
  (
64
- actions-border-radius: rem(4px),
72
+ actions-border-radius: (
73
+ rem(4px),
74
+ rem(0),
75
+ rem(24px),
76
+ ),
65
77
  )
66
78
  );
67
79
 
@@ -69,7 +81,7 @@ $bootstrap-action-strip: extend(
69
81
  /// @type {Map}
70
82
  /// @prop {Map} icon-color [contrast-color: 'primary'] - The color used for the actions icons.
71
83
  /// @prop {Map} actions-background [color: ('primary')] - The color used for actions background.
72
- /// @prop {Number} actions-border-radius [3px] - The border radius used for action strip actions container. Can be a fraction between 0 and 1, pixels, or percent.
84
+ /// @prop {List} actions-border-radius [(rem(3px), rem(0), rem(24px))] - The border radius used for action strip actions container.
73
85
  /// @requires {Map} $light-action-strip
74
86
  $indigo-action-strip: extend(
75
87
  $light-action-strip,
@@ -84,6 +96,10 @@ $indigo-action-strip: extend(
84
96
  contrast-color: 'primary',
85
97
  ),
86
98
 
87
- actions-border-radius: rem(3px),
99
+ actions-border-radius: (
100
+ rem(3px),
101
+ rem(0),
102
+ rem(24px),
103
+ ),
88
104
  )
89
105
  );
@@ -11,7 +11,7 @@
11
11
  /// @type {Map}
12
12
  /// @prop {Map} background [color: ('gray', 400, .54)]- The background color of the avatar.
13
13
  /// @prop {Map} color [color: ('gray', 800, .96)] - The text/icon color of the avatar.
14
- /// @prop {Number} border-radius [0] - The border radius. Can be a fraction between 0 and 1, pixels, or percent.
14
+ /// @prop {Number} border-radius [rem(0)] - The border radius.
15
15
  /// @prop {Number} size - The size of the avatar.
16
16
  $light-avatar: (
17
17
  background: (
@@ -40,7 +40,7 @@ $fluent-avatar: $light-avatar;
40
40
  /// @type {Map}
41
41
  /// @prop {Map} background [color: ('gray', 400)]- The background color of the avatar.
42
42
  /// @prop {Map} color [contrast-color: ('gray', 400)] - The text/icon color of the avatar.
43
- /// @prop {Number} border-radius [4px] - The border radius. Can be a fraction between 0 and 1, pixels, or percent.
43
+ /// @prop {Number} border-radius [rem(4px)] - The border radius.
44
44
  /// @requires {Map} $light-avatar
45
45
  $bootstrap-avatar: extend(
46
46
  $light-avatar,
@@ -16,7 +16,7 @@
16
16
  /// @prop {Map} background-color [color: ('primary', 500)] - The background color used.
17
17
  /// @prop {Number} border-width [0] - The border width of the badge component.
18
18
  /// @prop {Number} elevation [1] - The elevation level, between 0-24, to be used for the badge shadow.
19
- /// @prop {Number} border-radius [0] - The border radius used for badge. Can be a fraction between 0 and 1, pixels, or percent.
19
+ /// @prop {Number} border-radius [0] - The border radius used for badge.
20
20
  /// @requires {Map} $default-elevation-badge
21
21
  $light-badge: extend(
22
22
  $default-elevation-badge,
@@ -63,7 +63,7 @@ $fluent-badge: $light-badge;
63
63
  /// Generates a bootstrap badge schema.
64
64
  /// @type {Map}
65
65
  /// @prop {Number} border-width [1px] - The border width of the badge component.
66
- /// @prop {Number} border-radius [4px] - The border radius used for badge. Can be a fraction between 0 and 1, pixels, or percent.
66
+ /// @prop {Number} border-radius [rem(4px)] - The border radius used for badge.
67
67
  /// @requires {Map} $light-badge
68
68
  /// @requires {Map} $bootstrap-elevation-badge
69
69
  $bootstrap-badge: extend(
@@ -24,7 +24,7 @@
24
24
  /// @prop {Map} item-selected-hover-background [color: ('gray', 500, .8)] - The background color for a selected item in hover or focus state in the button group.
25
25
  /// @prop {Map} idle-shadow-color [transparent] - The outline color of button group items.
26
26
  /// @prop {Number} elevation [2] - The elevation level, between 0-24, to be used for the button group shadow.
27
- /// @prop {Number} border-radius [4px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
27
+ /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for button-group component.
28
28
  /// @requires {Map} $default-elevation-button-group
29
29
  $light-button-group: extend(
30
30
  $default-elevation-button-group,
@@ -116,7 +116,11 @@ $light-button-group: extend(
116
116
  ),
117
117
  ),
118
118
 
119
- border-radius: rem(4px),
119
+ border-radius: (
120
+ rem(4px),
121
+ rem(0),
122
+ rem(20px),
123
+ ),
120
124
  )
121
125
  );
122
126
 
@@ -130,7 +134,7 @@ $light-button-group: extend(
130
134
  /// @prop {Map} item-selected-text-color [color: ('primary', 200)]- The text color for a selected item in the button group.
131
135
  /// @prop {Color} disabled-background-color [color: ('gray', 50)] - The background color for a disabled item in the button group.
132
136
  /// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
133
- /// @prop {Number} border-radius [2px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
137
+ /// @prop {List} border-radius [(rem(2px), rem(0), rem(20px))] - The border radius used for button-group component.
134
138
  /// @requires {Map} $light-button-group
135
139
  /// @requires {Map} $fluent-elevation-button-group
136
140
  $fluent-button-group: extend(
@@ -186,7 +190,11 @@ $fluent-button-group: extend(
186
190
  ),
187
191
  ),
188
192
 
189
- border-radius: rem(2px),
193
+ border-radius: (
194
+ rem(2px),
195
+ rem(0),
196
+ rem(20px),
197
+ ),
190
198
  )
191
199
  );
192
200
 
@@ -205,7 +213,6 @@ $fluent-button-group: extend(
205
213
  /// @prop {Map} disabled-text-color [color: ('primary', 200)]- The text/icon color for a disabled item in the button group.
206
214
  /// @prop {Map} item-disabled-border [color: ('primary', 100)] - The border color for a disabled item in the button group.
207
215
  /// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
208
- /// @prop {Number} border-radius [4px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
209
216
  /// @requires {Map} $light-button-group
210
217
  /// @requires {Map} $bootstrap-elevation-button-group
211
218
  $bootstrap-button-group: extend(
@@ -315,7 +322,7 @@ $bootstrap-button-group: extend(
315
322
  /// @prop {Map} disabled-text-color [color: ('gray', 400)]- The text/icon color for a disabled item in the button group.
316
323
  /// @prop {Map} item-disabled-border [color: ('gray', 300)] - The border color for a disabled item in the button group.
317
324
  /// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
318
- /// @prop {Number} border-radius [8px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
325
+ /// @prop {List} border-radius [(rem(8px), rem(0), rem(20px))] - The border radius used for button-group component.
319
326
  /// @requires {Map} $light-button-group
320
327
  /// @requires {Map} $indigo-elevation-button-group
321
328
  $indigo-button-group: extend(
@@ -421,6 +428,10 @@ $indigo-button-group: extend(
421
428
  ),
422
429
  ),
423
430
 
424
- border-radius: rem(8px),
431
+ border-radius: (
432
+ rem(8px),
433
+ rem(0),
434
+ rem(20px),
435
+ ),
425
436
  )
426
437
  );
@@ -54,7 +54,7 @@ $material-base-button: (
54
54
  /// @prop {Map} active-background [color: ('secondary', 400, .12)] - The active background color of a flat button.
55
55
  /// @prop {Map} active-foreground [color: ('secondary', 500)] - The active text color of a flat button.
56
56
  /// @prop {Color} disabled-background [transparent] - The disabled background color a flat button.
57
- /// @prop {Number} border-radius [4px] - The border radius used for flat button.
57
+ /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for flat button.
58
58
  /// @requires {Map} $material-base-button
59
59
  /// @requires {Map} $flat-elevation-button
60
60
  $material-flat-button: extend(
@@ -122,7 +122,11 @@ $material-flat-button: extend(
122
122
  ),
123
123
  ),
124
124
  disabled-background: transparent,
125
- border-radius: rem(4px),
125
+ border-radius: (
126
+ rem(4px),
127
+ rem(0),
128
+ rem(20px),
129
+ ),
126
130
  )
127
131
  );
128
132
 
@@ -191,7 +195,7 @@ $material-outlined-button: extend(
191
195
  /// @prop {Number} resting-elevation [2] - The elevation level, between 0-24, to be used for the resting state.
192
196
  /// @prop {Number} hover-elevation [4] - The elevation level, between 0-24, to be used for the hover state.
193
197
  /// @prop {Number} focus-elevation [8] - The elevation level, between 0-24, to be used for the focus state.
194
- /// @prop {Number} border-radius [4px] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
198
+ /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for raised button.
195
199
  /// @requires {Map} $material-base-button
196
200
  /// @requires {Map} $material-raised-elevation
197
201
  $material-raised-button: extend(
@@ -259,7 +263,11 @@ $material-raised-button: extend(
259
263
  300,
260
264
  ),
261
265
  ),
262
- border-radius: rem(4px),
266
+ border-radius: (
267
+ rem(4px),
268
+ rem(0),
269
+ rem(20px),
270
+ ),
263
271
  )
264
272
  );
265
273
 
@@ -267,7 +275,7 @@ $material-raised-button: extend(
267
275
  /// @prop {Number} resting-elevation [6] - The elevation level, between 0-24, to be used for the resting state.
268
276
  /// @prop {Number} hover-elevation [12] - The elevation level, between 0-24, to be used for the hover state.
269
277
  /// @prop {Number} focus-elevation [12] - The elevation level, between 0-24, to be used for the focus state.
270
- /// @prop {Number} border-radius [28px] - The border radius used for the floating button. Can be a fraction between 0 and 1, pixels, or percent.
278
+ /// @prop {List} border-radius [(rem(28px), rem(12px), rem(28px))] - The border radius used for floating button.
271
279
  /// @requires {Map} $material-raised-button
272
280
  /// @requires {Map} $material-fab-elevation
273
281
  $material-fab-button: extend(
@@ -275,7 +283,11 @@ $material-fab-button: extend(
275
283
  $material-fab-elevation,
276
284
  (
277
285
  selector: '[igxButton="fab"], .igx-button--fab',
278
- border-radius: rem(28px),
286
+ border-radius: (
287
+ rem(28px),
288
+ rem(12px),
289
+ rem(28px),
290
+ ),
279
291
  )
280
292
  );
281
293
 
@@ -294,7 +306,7 @@ $material-fab-button: extend(
294
306
  /// @prop {Map} focus-border-color [color: ('gray', 400)] - The focus border color of the button.
295
307
  /// @prop {Map} focus-visible-border-color [color: ('gray', 400)] - The focus-visible border color of the button.
296
308
  /// @prop {Map} active-border-color [color: ('gray', 400)] - The active border color of the button.
297
- /// @prop {Number} border-radius [20px] - The border radius used for the floating button. Can be a fraction between 0 and 1, pixels, or percent.
309
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for floating button.
298
310
  /// @requires {Map} $material-base-button
299
311
  /// @requires {Map} $material-ib-elevation
300
312
  $material-icon-button: extend(
@@ -371,7 +383,11 @@ $material-icon-button: extend(
371
383
  400,
372
384
  ),
373
385
  ),
374
- border-radius: rem(20px),
386
+ border-radius: (
387
+ rem(20px),
388
+ rem(0),
389
+ rem(20px),
390
+ ),
375
391
  )
376
392
  );
377
393
 
@@ -424,7 +440,7 @@ $fluent-base-button: extend(
424
440
  /// @prop {Map} hover-foreground [color: ('primary', 500)] - The hover text color of a flat button.
425
441
  /// @prop {Map} active-foreground [color: ('gray', 900)] - The active text color of a flat button.
426
442
  /// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
427
- /// @prop {Number} border-radius [0] - The border radius used for flat button. Can be a fraction between 0 and 1, pixels, or percent.
443
+ /// @prop {List} border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for flat button.
428
444
  /// @requires {Map} $material-flat-button
429
445
  /// @requires {Map} $fluent-base-button
430
446
  $fluent-flat-button: extend(
@@ -466,7 +482,11 @@ $fluent-flat-button: extend(
466
482
  ),
467
483
  ),
468
484
  disabled-background: transparent,
469
- border-radius: rem(0),
485
+ border-radius: (
486
+ rem(0),
487
+ rem(0),
488
+ rem(20px),
489
+ ),
470
490
  )
471
491
  );
472
492
 
@@ -487,7 +507,7 @@ $fluent-flat-button: extend(
487
507
  /// @prop {Map} active-foreground [color: ('gray', 900)] - The active text color of an outlined button.
488
508
  /// @prop {Map} disabled-background [color: ('gray', 200)] - The disabled background color of an outlined button.
489
509
  /// @prop {Map} disabled-foreground [color: ('gray', 400, .5)] - The disabled foreground color of an outlined button.
490
- /// @prop {Number} border-radius [2px] - The border radius used for outlined button.
510
+ /// @prop {List} border-radius [(rem(2px), rem(0), rem(20px))] - The border radius used for outlined button.
491
511
  /// @requires {Map} $material-outlined-button
492
512
  /// @requires {Map} $fluent-base-button
493
513
  $fluent-outlined-button: extend(
@@ -586,7 +606,11 @@ $fluent-outlined-button: extend(
586
606
  0.5,
587
607
  ),
588
608
  ),
589
- border-radius: rem(2px),
609
+ border-radius: (
610
+ rem(2px),
611
+ rem(0),
612
+ rem(20px),
613
+ ),
590
614
  )
591
615
  );
592
616
 
@@ -609,7 +633,7 @@ $fluent-outlined-button: extend(
609
633
  /// @prop {Number} resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
610
634
  /// @prop {Number} hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
611
635
  /// @prop {Number} focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
612
- /// @prop {Number} border-radius [2px] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
636
+ /// @prop {List} border-radius [(rem(2px), rem(0), rem(20px))] - The border radius used for raised button.
613
637
  /// @requires {Map} $material-raised-button
614
638
  /// @requires {Map} $fluent-base-button
615
639
  $fluent-raised-button: extend(
@@ -706,7 +730,11 @@ $fluent-raised-button: extend(
706
730
  900,
707
731
  ),
708
732
  ),
709
- border-radius: rem(2px),
733
+ border-radius: (
734
+ rem(2px),
735
+ rem(0),
736
+ rem(20px),
737
+ ),
710
738
  )
711
739
  );
712
740
 
@@ -719,7 +747,7 @@ $fluent-raised-button: extend(
719
747
  /// @prop {Number} resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
720
748
  /// @prop {Number} hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
721
749
  /// @prop {Number} focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
722
- /// @prop {Number} border-radius [14px] - The border radius used for fab button.
750
+ /// @prop {List} border-radius [(rem(14px), rem(12px), rem(28px))] - The border radius used for fab button.
723
751
  /// @requires {Map} $fluent-base-button
724
752
  /// @requires {Map} $fluent-raised-button
725
753
  $fluent-fab-button: extend(
@@ -757,7 +785,11 @@ $fluent-fab-button: extend(
757
785
  900,
758
786
  ),
759
787
  ),
760
- border-radius: rem(14px),
788
+ border-radius: (
789
+ rem(14px),
790
+ rem(12px),
791
+ rem(28px),
792
+ ),
761
793
  )
762
794
  );
763
795
 
@@ -778,7 +810,7 @@ $fluent-fab-button: extend(
778
810
  /// @prop {Map} disabled-background [color: ('gray', 100)] - The disabled background color of an icon button.
779
811
  /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of an icon button.
780
812
  /// @prop {Map} disabled-border-color [color: ('gray', 100), lighten: 35%] - The disabled focused border color of an icon button.
781
- /// @prop {Number} border-radius [0] - The border radius used for icon button. Can be a fraction between 0 and 1, pixels, or percent.
813
+ /// @prop {List} border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for icon button.
782
814
  /// @requires {Map} $material-icon-button
783
815
  /// @requires {Map} $fluent-base-button
784
816
  $fluent-icon-button: extend(
@@ -848,7 +880,11 @@ $fluent-icon-button: extend(
848
880
  100,
849
881
  ),
850
882
  ),
851
- border-radius: rem(0),
883
+ border-radius: (
884
+ rem(0),
885
+ rem(0),
886
+ rem(20px),
887
+ ),
852
888
  )
853
889
  );
854
890
 
@@ -902,7 +938,6 @@ $bootstrap-base-button: extend(
902
938
  /// @prop {Map} active-background [transparent] - The active background color of a flat button.
903
939
  /// @prop {Map} active-foreground [color: ('primary', 600)] - The active background color of a flat button.
904
940
  /// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
905
- /// @prop {Number} border-radius [4px] - The border radius used for flat button.
906
941
  /// @requires {Map} $material-flat-button
907
942
  /// @requires {Map} $bootstrap-base-button
908
943
  $bootstrap-flat-button: extend(
@@ -972,7 +1007,6 @@ $bootstrap-flat-button: extend(
972
1007
  /// @prop {Map} disabled-border-color [color: ('primary', 50), lighten: 35%] - The disabled focused border color of an outlined button.
973
1008
  /// @prop {Color} disabled-background [transparent] - The disabled background color of an outlined button.
974
1009
  /// @prop {Map} shadow-color [color: ('primary', 200, .5)] - The shadow color of an outlined button.
975
- /// @prop {Number} border-radius [4px] - The border radius used for outlined button.
976
1010
  /// @requires {Map} $material-outlined-button
977
1011
  /// @requires {Map} $bootstrap-base-button
978
1012
  $bootstrap-outlined-button: extend(
@@ -1082,7 +1116,6 @@ $bootstrap-outlined-button: extend(
1082
1116
  /// @prop {Map} active-background [color: ('primary', 700)] - The active background color of an raised button.
1083
1117
  /// @prop {Map} active-foreground [contrast-color: ('primary', 700)] - The active text color of an raised button.
1084
1118
  /// @prop {Map} shadow-color [color: ('primary', 200)] - The shadow color of a raised button.
1085
- /// @prop {Number} border-radius [4px] - The border radius used for outlined button. Can be a fraction between 0 and 1, pixels, or percent.
1086
1119
  /// @requires {Map} $material-raised-button
1087
1120
  /// @requires {Map} $bootstrap-base-button
1088
1121
  $bootstrap-raised-button: extend(
@@ -1168,7 +1201,7 @@ $bootstrap-raised-button: extend(
1168
1201
  /// @prop {Color} focus-visible-foreground [contrast-color: ('primary', 600)] - The focus-visible text color of a fab button.
1169
1202
  /// @prop {Map} active-background [color: ('primary', 700)] - The active background color of a fab button.
1170
1203
  /// @prop {Map} active-foreground [contrast-color: ('primary', 700)] - The active text color of a fab button.
1171
- /// @prop {Number} border-radius [15px] - The border radius used for outlined button.
1204
+ /// @prop {List} border-radius [(rem(15px), rem(12px), rem(28px))] - The border radius used for outlined button.
1172
1205
  /// @requires {Map} $material-fab-button
1173
1206
  /// @requires {Map} $bootstrap-base-button
1174
1207
  /// @requires {Map} $bootstrap-raised-button
@@ -1232,7 +1265,11 @@ $bootstrap-fab-button: extend(
1232
1265
  700,
1233
1266
  ),
1234
1267
  ),
1235
- border-radius: rem(15px),
1268
+ border-radius: (
1269
+ rem(15px),
1270
+ rem(12px),
1271
+ rem(28px),
1272
+ ),
1236
1273
  )
1237
1274
  );
1238
1275
 
@@ -1249,7 +1286,7 @@ $bootstrap-fab-button: extend(
1249
1286
  /// @prop {Map} active-foreground [color: ('primary', 600)] - The active text color of an icon button.
1250
1287
  /// @prop {Color} disabled-background [transparent] - The disabled background color of an outlined button.
1251
1288
  /// @prop {Map} disabled-foreground [color: ('primary', 100)] - The disabled foreground color of the button.
1252
- /// @prop {Number} border-radius [4px] - The border radius used for outlined button.
1289
+ /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for outlined button.
1253
1290
  /// @requires {Map} $material-icon-button
1254
1291
  /// @requires {Map} $bootstrap-base-button
1255
1292
  $bootstrap-icon-button: extend(
@@ -1313,7 +1350,11 @@ $bootstrap-icon-button: extend(
1313
1350
  100,
1314
1351
  ),
1315
1352
  ),
1316
- border-radius: rem(4px),
1353
+ border-radius: (
1354
+ rem(4px),
1355
+ rem(0),
1356
+ rem(20px),
1357
+ ),
1317
1358
  )
1318
1359
  );
1319
1360
 
@@ -1349,7 +1390,7 @@ $indigo-base-button: extend($material-base-button, $flat-elevation-button);
1349
1390
  /// @prop {Map} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of a flat button.
1350
1391
  /// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
1351
1392
  /// @prop {Map} shadow-color [color: ('gray', 300)] - The shadow color of a flat button.
1352
- /// @prop {Number} border-radius [20px] - The border radius used for flat button.
1393
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for flat button.
1353
1394
  /// @requires {Map} $material-flat-button
1354
1395
  /// @requires {Map} $indigo-base-button
1355
1396
  $indigo-flat-button: extend(
@@ -1397,7 +1438,11 @@ $indigo-flat-button: extend(
1397
1438
  ),
1398
1439
  ),
1399
1440
  disabled-background: transparent,
1400
- border-radius: rem(20px),
1441
+ border-radius: (
1442
+ rem(20px),
1443
+ rem(0),
1444
+ rem(20px),
1445
+ ),
1401
1446
  )
1402
1447
  );
1403
1448
 
@@ -1419,7 +1464,7 @@ $indigo-flat-button: extend(
1419
1464
  /// @prop {Color} active-foreground [color: ('gray', 900)] - The active text color of a flat button.
1420
1465
  /// @prop {Map} shadow-color [color: ('gray', 300)] - The shadow color of a outlined button.
1421
1466
  /// @prop {Color} disabled-background [transparent] - The disabled background color of a outlined button.
1422
- /// @prop {Number} border-radius [20px] - The border radius used for flat button.
1467
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for flat button.
1423
1468
  /// @requires {Map} $material-outlined-button
1424
1469
  /// @requires {Map} $indigo-base-button
1425
1470
  $indigo-outlined-button: extend(
@@ -1488,7 +1533,11 @@ $indigo-outlined-button: extend(
1488
1533
  ),
1489
1534
  ),
1490
1535
  disabled-background: transparent,
1491
- border-radius: rem(20px),
1536
+ border-radius: (
1537
+ rem(20px),
1538
+ rem(0),
1539
+ rem(20px),
1540
+ ),
1492
1541
  )
1493
1542
  );
1494
1543
 
@@ -1502,7 +1551,7 @@ $indigo-outlined-button: extend(
1502
1551
  /// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a raised button.
1503
1552
  /// @prop {Map} active-background [color: ('gray', 50)] - The active background color of a raised button.
1504
1553
  /// @prop {Map} shadow-color [color: ('primary', 200)] - The shadow color of a raised button.
1505
- /// @prop {Number} border-radius [20px] - The border radius used for flat button.
1554
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for flat button.
1506
1555
  /// @requires {Map} $material-raised-button
1507
1556
  /// @requires {Map} $indigo-base-button
1508
1557
  $indigo-raised-button: extend(
@@ -1563,7 +1612,11 @@ $indigo-raised-button: extend(
1563
1612
  200,
1564
1613
  ),
1565
1614
  ),
1566
- border-radius: rem(20px),
1615
+ border-radius: (
1616
+ rem(20px),
1617
+ rem(0),
1618
+ rem(20px),
1619
+ ),
1567
1620
  )
1568
1621
  );
1569
1622
 
@@ -1572,7 +1625,7 @@ $indigo-raised-button: extend(
1572
1625
  /// @prop {Map} hover-foreground [ color: ('gray', 50)] - The hover text color of a fab button.
1573
1626
  /// @prop {Map} focus-foreground [ color: ('gray', 50)] - The focus text color of a fab button.
1574
1627
  /// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a fab button.
1575
- /// @prop {Number} border-radius [28px] - The border radius used for flat button.
1628
+ /// @prop {List} border-radius [(rem(28px), rem(12px), rem(28px))] - The border radius used for flat button.
1576
1629
  /// @requires {Map} $material-fab-button
1577
1630
  /// @requires {Map} $indigo-base-button
1578
1631
  /// @requires {Map} $indigo-raised-button
@@ -1606,7 +1659,11 @@ $indigo-fab-button: extend(
1606
1659
  50,
1607
1660
  ),
1608
1661
  ),
1609
- border-radius: rem(28px),
1662
+ border-radius: (
1663
+ rem(28px),
1664
+ rem(12px),
1665
+ rem(28px),
1666
+ ),
1610
1667
  )
1611
1668
  );
1612
1669
 
@@ -1624,7 +1681,6 @@ $indigo-fab-button: extend(
1624
1681
  /// @prop {Map} focus-border-color [color: ('gray' 300)] - The focus border color of the button.
1625
1682
  /// @prop {Map} focus-visible-border-color [color: ('gray' 300)] - The focus-visible border color of the button.
1626
1683
  /// @prop {Map} active-border-color [color: ('gray' 300)] - The active border color of the button.
1627
- /// @prop {Number} border-radius [20px] - The border radius used for flat button.
1628
1684
  /// @requires {Map} $material-icon-button
1629
1685
  /// @requires {Map} $indigo-base-button
1630
1686
  $indigo-icon-button: extend(