igniteui-theming 3.2.2 → 3.3.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "3.2.2",
3
+ "version": "3.3.0-beta.2",
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": {
@@ -0,0 +1,132 @@
1
+ @use '../../../../utils/map' as *;
2
+ @use '../light/icon-button' as *;
3
+
4
+ /* stylelint-disable max-line-length */
5
+
6
+ ////
7
+ /// @package theming
8
+ /// @group schemas
9
+ /// @access public
10
+ ////
11
+
12
+ /// Generates a dark material flat icon button schema.
13
+ /// @type {Map}
14
+ /// @requires {Map} $material-flat-icon-button
15
+ $material-flat-icon-button-dark: extend($material-flat-icon-button);
16
+
17
+ /// Generates a dark material contained icon button schema.
18
+ /// @type {Map}
19
+ /// @requires {Map} $material-contained-icon-button
20
+ $material-contained-icon-button-dark: extend($material-contained-icon-button);
21
+
22
+ /// Generates a dark material outlined icon button schema.
23
+ /// @type {Map}
24
+ /// @requires {Map} $material-outlined-icon-button
25
+ $material-outlined-icon-button-dark: extend($material-outlined-icon-button);
26
+
27
+ /// Generates a dark material icon button schema.
28
+ /// @type {Map}
29
+ /// @requires {Map} $material-flat-icon-button-dark
30
+ /// @requires {Map} $material-outlined-icon-button-dark
31
+ /// @requires {Map} $material-contained-icon-button-dark
32
+ $dark-icon-button: (
33
+ flat: $material-flat-icon-button-dark,
34
+ outlined: $material-outlined-icon-button-dark,
35
+ contained: $material-contained-icon-button-dark,
36
+ );
37
+
38
+ /// Generates a dark fluent flat icon button schema.
39
+ /// @type {Map}
40
+ /// @requires {Map} $fluent-flat-icon-button
41
+ $fluent-flat-icon-button-dark: extend($fluent-flat-icon-button);
42
+
43
+ /// Generates a dark fluent contained icon button schema.
44
+ /// @type {Map}
45
+ /// @prop {Map} foreground [color: ('surface', 500)] - The idle text color of the fluent dark contained icon button.
46
+ /// @prop {Map} focus-background [color: ('primary', 300)] - The hover/focus background color of the fluent dark contained icon button.
47
+ /// @requires {Map} $fluent-contained-icon-button
48
+ $fluent-contained-icon-button-dark: extend(
49
+ $fluent-contained-icon-button,
50
+ (
51
+ foreground: (
52
+ color: (
53
+ 'surface',
54
+ 500,
55
+ ),
56
+ ),
57
+ focus-background: (
58
+ color: (
59
+ 'primary',
60
+ 300,
61
+ ),
62
+ ),
63
+ )
64
+ );
65
+
66
+ /// Generates a dark fluent outlined icon button schema.
67
+ /// @type {Map}
68
+ /// @requires {Map} $fluent-outlined-icon-button
69
+ $fluent-outlined-icon-button-dark: extend($fluent-outlined-icon-button);
70
+
71
+ /// Generates a dark fluent icon button schema.
72
+ /// @type {Map}
73
+ /// @requires {Map} $fluent-flat-icon-button-dark
74
+ /// @requires {Map} $fluent-outlined-icon-button-dark
75
+ /// @requires {Map} $fluent-contained-icon-button-dark
76
+ $dark-fluent-icon-button: (
77
+ flat: $fluent-flat-icon-button-dark,
78
+ outlined: $fluent-outlined-icon-button-dark,
79
+ contained: $fluent-contained-icon-button-dark,
80
+ );
81
+
82
+ /// Generates a dark bootstrap flat icon button schema.
83
+ /// @type {Map}
84
+ /// @requires {Map} $bootstrap-flat-icon-button
85
+ $bootstrap-flat-icon-button-dark: extend($bootstrap-flat-icon-button);
86
+
87
+ /// Generates a dark bootstrap contained icon button schema.
88
+ /// @type {Map}
89
+ /// @requires {Map} $bootstrap-contained-icon-button
90
+ $bootstrap-contained-icon-button-dark: extend($bootstrap-contained-icon-button);
91
+
92
+ /// Generates a dark bootstrap outlined icon button schema.
93
+ /// @type {Map}
94
+ /// @requires {Map} $bootstrap-outlined-icon-button
95
+ $bootstrap-outlined-icon-button-dark: extend($bootstrap-outlined-icon-button);
96
+
97
+ /// Generates a dark bootstrap icon button schema.
98
+ /// @type {Map}
99
+ /// @requires {Map} $bootstrap-flat-icon-button-dark
100
+ /// @requires {Map} $bootstrap-outlined-icon-button-dark
101
+ /// @requires {Map} $bootstrap-contained-icon-button-dark
102
+ $dark-bootstrap-icon-button: (
103
+ flat: $bootstrap-flat-icon-button-dark,
104
+ outlined: $bootstrap-outlined-icon-button-dark,
105
+ contained: $bootstrap-contained-icon-button-dark,
106
+ );
107
+
108
+ /// Generates a dark indigo flat icon button schema.
109
+ /// @type {Map}
110
+ /// @requires {Map} $indigo-flat-icon-button
111
+ $indigo-flat-icon-button-dark: extend($indigo-flat-icon-button);
112
+
113
+ /// Generates a dark indigo contained icon button schema.
114
+ /// @type {Map}
115
+ /// @requires {Map} $indigo-contained-icon-button
116
+ $indigo-contained-icon-button-dark: extend($indigo-contained-icon-button);
117
+
118
+ /// Generates a dark indigo outlined icon button schema.
119
+ /// @type {Map}
120
+ /// @requires {Map} $indigo-outlined-icon-button
121
+ $indigo-outlined-icon-button-dark: extend($indigo-outlined-icon-button);
122
+
123
+ /// Generates a dark indigo icon button schema.
124
+ /// @type {Map}
125
+ /// @requires {Map} $indigo-flat-icon-button-dark
126
+ /// @requires {Map} $indigo-outlined-icon-button-dark
127
+ /// @requires {Map} $indigo-contained-icon-button-dark
128
+ $dark-indigo-icon-button: (
129
+ flat: $indigo-flat-icon-button-dark,
130
+ outlined: $indigo-outlined-icon-button-dark,
131
+ contained: $indigo-contained-icon-button-dark,
132
+ );
@@ -13,6 +13,7 @@
13
13
  /// @prop {Map} color [color: ('gray', 800, .96)] - The text/icon color of the avatar.
14
14
  /// @prop {Number} border-radius [rem(8px)] - The border radius for rounded avatar.
15
15
  /// @prop {List} size [(rem(40px), rem(64px), rem(88px))] - The size used for the avatar width and height.
16
+ /// @prop {Number} default-size [2] - The default size used for the avatar component.
16
17
  $light-avatar: (
17
18
  background: (
18
19
  color: (
@@ -36,18 +37,26 @@ $light-avatar: (
36
37
  rem(88px),
37
38
  ),
38
39
  ),
40
+ default-size: 2,
39
41
  );
40
42
 
41
43
  /// Generates a fluent avatar schema.
42
44
  /// @type {Map}
45
+ /// @prop {Number} default-size [1] - The default size used for the avatar component.
43
46
  /// @requires {Map} $light-avatar
44
- $fluent-avatar: $light-avatar;
47
+ $fluent-avatar: extend(
48
+ $light-avatar,
49
+ (
50
+ default-size: 1,
51
+ )
52
+ );
45
53
 
46
54
  /// Generates a bootstrap avatar schema.
47
55
  /// @type {Map}
48
56
  /// @prop {Map} background [color: ('gray', 400)]- The background color of the avatar.
49
57
  /// @prop {Map} color [contrast-color: ('gray', 400)] - The text/icon color of the avatar.
50
58
  /// @prop {Number} border-radius [rem(4px)] - The border radius for rounded avatar.
59
+ /// @prop {Number} default-size [1] - The default size used for the avatar component.
51
60
  /// @requires {Map} $light-avatar
52
61
  $bootstrap-avatar: extend(
53
62
  $light-avatar,
@@ -65,10 +74,17 @@ $bootstrap-avatar: extend(
65
74
  ),
66
75
  ),
67
76
  border-radius: rem(4px),
77
+ default-size: 1,
68
78
  )
69
79
  );
70
80
 
71
81
  /// Generates an indigo avatar schema.
72
82
  /// @type {Map}
83
+ /// @prop {Number} default-size [1] - The default size used for the avatar component.
73
84
  /// @requires {Map} $light-avatar
74
- $indigo-avatar: $light-avatar;
85
+ $indigo-avatar: extend(
86
+ $light-avatar,
87
+ (
88
+ default-size: 1,
89
+ )
90
+ );
@@ -25,6 +25,7 @@
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
27
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for button-group component.
28
+ /// @prop {Number} default-size [2] - The default size used for the button-group component.
28
29
  /// @requires {Map} $default-elevation-button-group
29
30
  $light-button-group: extend(
30
31
  $default-elevation-button-group,
@@ -123,6 +124,8 @@ $light-button-group: extend(
123
124
  rem(20px),
124
125
  ),
125
126
  ),
127
+
128
+ default-size: 2,
126
129
  )
127
130
  );
128
131
 
@@ -21,6 +21,7 @@
21
21
  /// @prop {Map} disabled-background [color: ('gray', 300)] - The disabled background color of the button.
22
22
  /// @prop {Map} disabled-foreground [color: ('gray', 500)] - The disabled foreground color of the button.
23
23
  /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for the button.
24
+ /// @prop {Number} default-size [1] - The default size used for the button component.
24
25
  $material-base-button: (
25
26
  shadow-color: transparent,
26
27
  border-color: transparent,
@@ -48,6 +49,7 @@ $material-base-button: (
48
49
  rem(36px),
49
50
  ),
50
51
  ),
52
+ default-size: 1,
51
53
  );
52
54
 
53
55
  /// @type {Map}
@@ -330,6 +332,7 @@ $material-fab-button: extend(
330
332
  /// @prop {Map} active-border-color [color: ('gray', 400)] - The active border color of the button.
331
333
  /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for floating button.
332
334
  /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for icon button.
335
+ /// @prop {Number} default-size [2] - The default size used for the icon button component.
333
336
  /// @requires {Map} $material-base-button
334
337
  /// @requires {Map} $material-ib-elevation
335
338
  $material-icon-button: extend(
@@ -420,6 +423,7 @@ $material-icon-button: extend(
420
423
  rem(36px),
421
424
  ),
422
425
  ),
426
+ default-size: 2,
423
427
  )
424
428
  );
425
429
 
@@ -444,6 +448,7 @@ $light-button: (
444
448
  /// @prop {Map} disabled-background [color: ('gray', 200)] - The disabled background color of the button.
445
449
  /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of the button.
446
450
  /// @prop {List} size [(rem(24px), rem(32px), rem(38px))] - The size used for the button.
451
+ /// @prop {Number} default-size [2] - The default size used for the button component.
447
452
  $fluent-base-button: extend(
448
453
  $material-base-button,
449
454
  $flat-elevation-button,
@@ -467,6 +472,7 @@ $fluent-base-button: extend(
467
472
  rem(38px),
468
473
  ),
469
474
  ),
475
+ default-size: 2,
470
476
  )
471
477
  );
472
478
 
@@ -965,6 +971,7 @@ $fluent-button: (
965
971
  /// @prop {Map} disabled-background [color: ('primary', 50)] - The disabled background color of the button.
966
972
  /// @prop {Map} disabled-foreground [color: ('primary', 200)] - The disabled foreground color of the button.
967
973
  /// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the button.
974
+ /// @prop {Number} default-size [2] - The default size used for the button component.
968
975
  /// @requires {Map} $material-base-button
969
976
  /// @requires {Map} $flat-elevation-button
970
977
  $bootstrap-base-button: extend(
@@ -990,6 +997,7 @@ $bootstrap-base-button: extend(
990
997
  rem(48px),
991
998
  ),
992
999
  ),
1000
+ default-size: 2,
993
1001
  )
994
1002
  );
995
1003
 
@@ -57,6 +57,7 @@
57
57
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for calendar.
58
58
  /// @prop {List} date-border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for calendar date.
59
59
  /// @prop {List} month-border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for calendar month.
60
+ /// @prop {Number} default-size [2] - The default size used for the calendar component.
60
61
  $light-calendar: (
61
62
  content-background: (
62
63
  color: 'surface',
@@ -381,6 +382,7 @@ $light-calendar: (
381
382
  rem(20px),
382
383
  ),
383
384
  ),
385
+ default-size: 2,
384
386
  );
385
387
 
386
388
  /// Generates a fluent calendar schema.
@@ -19,6 +19,7 @@
19
19
  /// @prop {Number} resting-elevation [4] - The elevation level, between 0-24, to be used for the resting state.
20
20
  /// @prop {Number} hover-elevation [6] - The elevation level, between 0-24, to be used for the hover state.
21
21
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(24px))] - The border radius used for card.
22
+ /// @prop {Number} default-size [2] - The default size used for the card component.
22
23
  /// @requires {Map} $default-elevation-card
23
24
  $light-card: extend(
24
25
  $default-elevation-card,
@@ -70,6 +71,7 @@ $light-card: extend(
70
71
  rem(24px),
71
72
  ),
72
73
  ),
74
+ default-size: 2,
73
75
  )
74
76
  );
75
77
 
@@ -37,6 +37,7 @@
37
37
  /// @prop {Map} $disabled-background [color: ('gray', 200)] - The disabled chip background color.
38
38
  /// @prop {Map} $disabled-border-color [color: ('gray', 200)] - The disabled chip border color.
39
39
  /// @prop {List} size [(rem(20px), rem(24px), rem(32px))] - The size used for the chip height.
40
+ /// @prop {Number} default-size [2] - The default size used for the chip component.
40
41
  /// @prop {Map} $default-elevation-chip
41
42
  $light-chip: extend(
42
43
  $default-elevation-chip,
@@ -188,6 +189,7 @@ $light-chip: extend(
188
189
  rem(32px),
189
190
  ),
190
191
  ),
192
+ default-size: 2,
191
193
  )
192
194
  );
193
195
 
@@ -28,6 +28,7 @@
28
28
  /// @prop {Map} clear-button-foreground-focus [contrast-color: ('gray', 100)] - The combo clear button foreground color when the combo is focused.
29
29
  /// @prop {Map} case-icon-color [color: ('gray', 400)] - The case sensitive icon color in inactive state for combo search input
30
30
  /// @prop {Map} case-icon-color--active [color: ('primary', 500)] - The case sensitive icon color in active state for combo search input
31
+ /// @prop {Number} default-size [2] - The default size used for the combo component.
31
32
  $light-combo: (
32
33
  toggle-button-background-focus--border: (
33
34
  color: (
@@ -119,6 +120,7 @@ $light-combo: (
119
120
  500,
120
121
  ),
121
122
  ),
123
+ default-size: 2,
122
124
  );
123
125
 
124
126
  /// Generates a fluent combo schema.
@@ -17,6 +17,7 @@
17
17
  /// @prop {Map} backdrop [color: ('gray', 50, .54)] - The dialog backdrop color.
18
18
  /// @prop {Number} elevation [24] - The elevation level, between 0-24, to be used for the dialog.
19
19
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(36px))] - The border radius used for dialog.
20
+ /// @prop {Number} default-size [2] - The default size used for the dialog component.
20
21
  /// @requires {Map} $default-elevation-dialog
21
22
  $light-dialog: extend(
22
23
  $default-elevation-dialog,
@@ -56,6 +57,7 @@ $light-dialog: extend(
56
57
  rem(36px),
57
58
  ),
58
59
  ),
60
+ default-size: 2,
59
61
  )
60
62
  );
61
63
 
@@ -33,6 +33,7 @@
33
33
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for drop-down component.
34
34
  /// @prop {List} item-border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for the drop-down items.
35
35
  /// @prop {List} size [(rem(28px), rem(32px), rem(40px))] - The size used for the dropdown item height.
36
+ /// @prop {Number} default-size [2] - The default size used for the drop down component.
36
37
  /// @requires {Map} $default-elevation-drop-down
37
38
  $light-drop-down: extend(
38
39
  $default-elevation-drop-down,
@@ -155,6 +156,7 @@ $light-drop-down: extend(
155
156
  rem(40px),
156
157
  ),
157
158
  ),
159
+ default-size: 2,
158
160
  )
159
161
  );
160
162
 
@@ -0,0 +1,664 @@
1
+ @use '../../../../utils/map' as *;
2
+ @use '../../../../typography/functions' as *;
3
+
4
+ ////
5
+ /// @package theming
6
+ /// @group schemas
7
+ /// @access public
8
+ ////
9
+
10
+ /// Material Schemas
11
+
12
+ /// Generates a base material icon button schema.
13
+ /// @type {Map}
14
+ /// @prop {Color} background [transparent] - The background color of the material icon button.
15
+ /// @prop {Color} border-color [transparent] - The border color of the material icon button.
16
+ /// @prop {Map} foreground [color: ('gray', 900)] - The idle text color of the material icon button.
17
+ /// @prop {Map} focus-background [color: ('gray', 200)] - The focus background color of the material icon button.
18
+ /// @prop {Map} focus-border-color [color: ('gray', 400)] - The focus border color of the material icon button.
19
+ /// @prop {Map} disabled-background [color: ('gray', 100)] - The disabled background color of the material icon button.
20
+ /// @prop {Color} disabled-border-color [transparent] - The disabled border color of the material icon button.
21
+ /// @prop {Map} disabled-foreground [color: ('gray', 500)] - The disabled foreground color of the material icon button.
22
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for the material icon button.
23
+ /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for the material icon button.
24
+ $material-base-icon-button: (
25
+ background: transparent,
26
+ border-color: transparent,
27
+ foreground: (
28
+ color: (
29
+ 'gray',
30
+ 900,
31
+ ),
32
+ ),
33
+ focus-background: (
34
+ color: (
35
+ 'gray',
36
+ 200,
37
+ ),
38
+ ),
39
+ focus-border-color: (
40
+ color: (
41
+ 'gray',
42
+ 400,
43
+ ),
44
+ ),
45
+ disabled-background: (
46
+ color: (
47
+ 'gray',
48
+ 100,
49
+ ),
50
+ ),
51
+ disabled-border-color: transparent,
52
+ disabled-foreground: (
53
+ color: (
54
+ 'gray',
55
+ 500,
56
+ ),
57
+ ),
58
+ border-radius: (
59
+ border-radius: (
60
+ rem(20px),
61
+ rem(0),
62
+ rem(20px),
63
+ ),
64
+ ),
65
+ size: (
66
+ sizable: (
67
+ rem(24px),
68
+ rem(30px),
69
+ rem(36px),
70
+ ),
71
+ ),
72
+ );
73
+
74
+ /// Generates a material flat icon button schema.
75
+ /// @type {Map}
76
+ /// @prop {Color} disabled-background [transparent] - The disabled background color the material flat icon button.
77
+ /// @requires {Map} $material-base-icon-button
78
+ $material-flat-icon-button: extend(
79
+ $material-base-icon-button,
80
+ (
81
+ disabled-background: transparent,
82
+ )
83
+ );
84
+
85
+ /// Generates a material contained icon button schema.
86
+ /// @type {Map}
87
+ /// @prop {Map} background [color: ('gray', 200)] - The background color of the material contained icon button.
88
+ /// @prop {Map} focus-background [color: ('gray', 300)] - The focus background color of the material contained icon button.
89
+ /// @requires {Map} $material-base-icon-button
90
+ $material-contained-icon-button: extend(
91
+ $material-base-icon-button,
92
+ (
93
+ background: (
94
+ color: (
95
+ 'gray',
96
+ 200,
97
+ ),
98
+ ),
99
+ focus-background: (
100
+ color: (
101
+ 'gray',
102
+ 300,
103
+ ),
104
+ ),
105
+ )
106
+ );
107
+
108
+ /// Generates a material outlined icon button schema.
109
+ /// @type {Map}
110
+ /// @prop {Map} border-color [color: ('gray', 300)] - The border color of the material outlined icon button.
111
+ /// @prop {Map} disabled-border-color [color: ('gray', 100)] - The disabled border color of the material outlined icon button.
112
+ /// @requires {Map} $material-base-icon-button
113
+ $material-outlined-icon-button: extend(
114
+ $material-base-icon-button,
115
+ (
116
+ border-color: (
117
+ color: (
118
+ 'gray',
119
+ 300,
120
+ ),
121
+ ),
122
+ disabled-border-color: (
123
+ color: (
124
+ 'gray',
125
+ 100,
126
+ ),
127
+ ),
128
+ )
129
+ );
130
+
131
+ /// Generates a light material icon button schema.
132
+ /// @type {Map}
133
+ /// @requires {Map} $material-flat-icon-button
134
+ /// @requires {Map} $material-contained-icon-button
135
+ /// @requires {Map} $material-outlined-icon-button
136
+ $light-icon-button: (
137
+ flat: $material-flat-icon-button,
138
+ contained: $material-contained-icon-button,
139
+ outlined: $material-outlined-icon-button,
140
+ );
141
+
142
+ /// Fluent Schemas
143
+
144
+ /// Generates a fluent base icon button schema.
145
+ /// @type {Map}
146
+ /// @prop {Color} background [transparent] - The background color of the fluent icon button.
147
+ /// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of the fluent icon button.
148
+ /// @prop {Map} focus-background [color: ('gray', 200)] - The hover/focus background color of the fluent icon button.
149
+ /// @prop {Map} active-background [color: ('gray', 300)] - The active background color of the fluent icon button.
150
+ /// @prop {Map} focus-border-color [color: ('gray', 500)] - The focus border color of the fluent icon button.
151
+ /// @prop {Map} disabled-background [color: ('gray', 100)] - The disabled background color of the fluent icon button.
152
+ /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of the fluent icon button.
153
+ /// @prop {List} border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for the fluent flat icon button.
154
+ /// @prop {List} size [(rem(24px), rem(32px), rem(38px))] - The size used for the fluent icon button.
155
+ $fluent-base-icon-button: (
156
+ background: transparent,
157
+ foreground: (
158
+ color: (
159
+ 'primary',
160
+ 500,
161
+ ),
162
+ ),
163
+ focus-background: (
164
+ color: (
165
+ 'gray',
166
+ 200,
167
+ ),
168
+ ),
169
+ active-background: (
170
+ color: (
171
+ 'gray',
172
+ 300,
173
+ ),
174
+ ),
175
+ focus-border-color: (
176
+ color: (
177
+ 'gray',
178
+ 500,
179
+ ),
180
+ ),
181
+ disabled-background: (
182
+ color: (
183
+ 'gray',
184
+ 100,
185
+ ),
186
+ ),
187
+ disabled-foreground: (
188
+ color: (
189
+ 'gray',
190
+ 400,
191
+ ),
192
+ ),
193
+ border-radius: (
194
+ border-radius: (
195
+ rem(0),
196
+ rem(0),
197
+ rem(20px),
198
+ ),
199
+ ),
200
+ size: (
201
+ sizable: (
202
+ rem(24px),
203
+ rem(32px),
204
+ rem(38px),
205
+ ),
206
+ ),
207
+ );
208
+
209
+ /// Generates a fluent flat icon button schema.
210
+ /// @type {Map}
211
+ /// @requires {Map} $fluent-base-icon-button
212
+ $fluent-flat-icon-button: extend($fluent-base-icon-button);
213
+
214
+ /// Generates a fluent contained icon button schema.
215
+ /// @type {Map}
216
+ /// @prop {Map} background [color: ('primary', 500)] - The background color of the fluent contained icon button.
217
+ /// @prop {Map} foreground [contrast-color: ('primary', 600)] - The idle text color of the fluent contained icon button.
218
+ /// @prop {Map} focus-background [color: ('primary', 600)] - The hover/focus background color of the fluent contained icon button.
219
+ /// @prop {Map} active-background [color: ('primary', 800)] - The active background color of the fluent contained icon button.
220
+ /// @prop {Map} active-foreground [contrast-color: ('primary', 800)] - The active text color of the fluent contained icon button.
221
+ /// @prop {Map} focus-border-color [contrast-color: ('primary', 600)] - The focus border color of the fluent contained icon button.
222
+ /// @requires {Map} $fluent-base-icon-button
223
+ $fluent-contained-icon-button: extend(
224
+ $fluent-base-icon-button,
225
+ (
226
+ background: (
227
+ color: (
228
+ 'primary',
229
+ 500,
230
+ ),
231
+ ),
232
+ foreground: (
233
+ contrast-color: (
234
+ 'primary',
235
+ 600,
236
+ ),
237
+ ),
238
+ focus-background: (
239
+ color: (
240
+ 'primary',
241
+ 600,
242
+ ),
243
+ ),
244
+ active-background: (
245
+ color: (
246
+ 'primary',
247
+ 800,
248
+ ),
249
+ ),
250
+ active-foreground: (
251
+ contrast-color: (
252
+ 'primary',
253
+ 800,
254
+ ),
255
+ ),
256
+ focus-border-color: (
257
+ contrast-color: (
258
+ 'primary',
259
+ 600,
260
+ ),
261
+ ),
262
+ )
263
+ );
264
+
265
+ /// Generates a fluent outlined icon button schema.
266
+ /// @type {Map}
267
+ /// @prop {Map} foreground [color: ('gray', 900)] - The idle text color of the fluent outlined icon button.
268
+ /// @prop {Map} border-color [color: ('gray', 700)] - The border color of the fluent outlined icon button.
269
+ /// @prop {Color} focus-background [transparent] - The focus background color of the fluent outlined icon button.
270
+ /// @prop {Map} active-background [color: ('gray', 200)] - The hover/active background color of the fluent outlined icon button.
271
+ /// @prop {Map} focus-border-color [color: ('gray', 900)] - The focus border color of the fluent outlined icon button.
272
+ /// @requires {Map} $fluent-base-icon-button
273
+ $fluent-outlined-icon-button: extend(
274
+ $fluent-base-icon-button,
275
+ (
276
+ foreground: (
277
+ color: (
278
+ 'gray',
279
+ 900,
280
+ ),
281
+ ),
282
+ border-color: (
283
+ color: (
284
+ 'gray',
285
+ 700,
286
+ ),
287
+ ),
288
+ focus-background: transparent,
289
+ active-background: (
290
+ color: (
291
+ 'gray',
292
+ 200,
293
+ ),
294
+ ),
295
+ focus-border-color: (
296
+ color: (
297
+ 'gray',
298
+ 900,
299
+ ),
300
+ ),
301
+ )
302
+ );
303
+
304
+ /// Generates a light fluent icon button schema.
305
+ /// @type {Map}
306
+ /// @requires {Map} $fluent-flat-icon-button
307
+ /// @requires {Map} $fluent-contained-icon-button
308
+ /// @requires {Map} $fluent-outlined-icon-button
309
+ $fluent-icon-button: (
310
+ flat: $fluent-flat-icon-button,
311
+ contained: $fluent-contained-icon-button,
312
+ outlined: $fluent-outlined-icon-button,
313
+ );
314
+
315
+ /// Bootstrap Schemas
316
+
317
+ /// Generates a base bootstrap icon button schema.
318
+ /// @type {Map}
319
+ /// @prop {Color} background [transparent] - The background color of the bootstrap icon button.
320
+ /// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of the bootstrap icon button.
321
+ /// @prop {Map} focus-background [color: ('gray', 100)] - The focus background color of the bootstrap icon button.
322
+ /// @prop {Color} disabled-background [transparent] - The disabled background color of the bootstrap icon button.
323
+ /// @prop {Map} disabled-foreground [color: ('primary', 100)] - The disabled foreground color of the bootstrap icon button.
324
+ /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for the bootstrap icon button.
325
+ /// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the bootstrap icon button.
326
+ $bootstrap-base-icon-button: (
327
+ background: transparent,
328
+ foreground: (
329
+ color: (
330
+ 'primary',
331
+ 500,
332
+ ),
333
+ ),
334
+ focus-background: (
335
+ color: (
336
+ 'gray',
337
+ 100,
338
+ ),
339
+ ),
340
+ disabled-background: transparent,
341
+ disabled-foreground: (
342
+ color: (
343
+ 'primary',
344
+ 100,
345
+ ),
346
+ ),
347
+ border-radius: (
348
+ border-radius: (
349
+ rem(4px),
350
+ rem(0),
351
+ rem(20px),
352
+ ),
353
+ ),
354
+ size: (
355
+ sizable: (
356
+ rem(31px),
357
+ rem(38px),
358
+ rem(48px),
359
+ ),
360
+ ),
361
+ );
362
+
363
+ /// Generates a bootstrap flat icon button schema.
364
+ /// @type {Map}
365
+ /// @prop {Map} hover-foreground [color: ('primary', 800)] - The hover text color of the bootstrap icon button.
366
+ /// @prop {Map} focus-foreground [color: ('primary', 600)] - The focus text color of the bootstrap icon button.
367
+ /// @requires {Map} $bootstrap-base-icon-button
368
+ $bootstrap-flat-icon-button: extend(
369
+ $bootstrap-base-icon-button,
370
+ (
371
+ hover-foreground: (
372
+ color: (
373
+ 'primary',
374
+ 800,
375
+ ),
376
+ ),
377
+ focus-foreground: (
378
+ color: (
379
+ 'primary',
380
+ 600,
381
+ ),
382
+ ),
383
+ )
384
+ );
385
+
386
+ /// Generates a bootstrap contained icon button schema.
387
+ /// @type {Map}
388
+ /// @prop {Map} background [color: ('primary', 500)] - The background color of the bootstrap contained icon button.
389
+ /// @prop {Map} foreground [contrast-color: ('primary', 600)] - The idle text color of the bootstrap contained icon button.
390
+ /// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of the bootstrap contained icon button.
391
+ /// @prop {Map} focus-border-color [color: ('primary', 200, .5)] - The focus border color of the bootstrap contained icon button.
392
+ /// @prop {Map} disabled-background [color: ('primary', 100)] - The disabled background color of the bootstrap contained icon button.
393
+ /// @prop {Map} disabled-foreground [color: ('primary', 300)] - The disabled foreground color of the bootstrap contained icon button.
394
+ /// @requires {Map} $bootstrap-base-icon-button
395
+ $bootstrap-contained-icon-button: extend(
396
+ $bootstrap-base-icon-button,
397
+ (
398
+ background: (
399
+ color: (
400
+ 'primary',
401
+ 500,
402
+ ),
403
+ ),
404
+ foreground: (
405
+ contrast-color: (
406
+ 'primary',
407
+ 600,
408
+ ),
409
+ ),
410
+ focus-background: (
411
+ color: (
412
+ 'primary',
413
+ 600,
414
+ ),
415
+ ),
416
+ focus-border-color: (
417
+ color: (
418
+ 'primary',
419
+ 200,
420
+ 0.5,
421
+ ),
422
+ ),
423
+ disabled-background: (
424
+ color: (
425
+ 'primary',
426
+ 100,
427
+ ),
428
+ ),
429
+ disabled-foreground: (
430
+ color: (
431
+ 'primary',
432
+ 300,
433
+ ),
434
+ ),
435
+ )
436
+ );
437
+
438
+ /// Generates a bootstrap outlined icon button schema.
439
+ /// @type {Map}
440
+ /// @prop {Map} border-color [color: ('primary', 500)] - The border color of the bootstrap outlined icon button.
441
+ /// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of the bootstrap outlined icon button.
442
+ /// @prop {Map} hover-foreground [contrast-color: ('primary', 600)] - The hover text color of the bootstrap outlined icon button.
443
+ /// @prop {Map} focus-foreground [contrast-color: ('primary', 600)] - The focus text color of the bootstrap outlined icon button.
444
+ /// @prop {Map} focus-border-color [color: ('primary', 200, .5)] - The focus border color of the bootstrap outlined icon button.
445
+ /// @prop {Map} disabled-foreground [color: ('primary', 100)] - The disabled foreground color of the bootstrap outlined icon button.
446
+ /// @prop {Map} disabled-border-color [color: ('primary', 100)] - The disabled border color of the bootstrap outlined icon button.
447
+ /// @requires {Map} $bootstrap-base-icon-button
448
+ $bootstrap-outlined-icon-button: extend(
449
+ $bootstrap-base-icon-button,
450
+ (
451
+ border-color: (
452
+ color: (
453
+ 'primary',
454
+ 500,
455
+ ),
456
+ ),
457
+ hover-foreground: (
458
+ contrast-color: (
459
+ 'primary',
460
+ 600,
461
+ ),
462
+ ),
463
+ focus-foreground: (
464
+ contrast-color: (
465
+ 'primary',
466
+ 600,
467
+ ),
468
+ ),
469
+ focus-background: (
470
+ color: (
471
+ 'primary',
472
+ 600,
473
+ ),
474
+ ),
475
+ focus-border-color: (
476
+ color: (
477
+ 'primary',
478
+ 200,
479
+ 0.5,
480
+ ),
481
+ ),
482
+ disabled-border-color: (
483
+ color: (
484
+ 'primary',
485
+ 100,
486
+ ),
487
+ ),
488
+ disabled-foreground: (
489
+ color: (
490
+ 'primary',
491
+ 100,
492
+ ),
493
+ ),
494
+ )
495
+ );
496
+
497
+ /// Generates a light bootstrap icon button schema.
498
+ /// @type {Map}
499
+ /// @requires {Map} $bootstrap-flat-icon-button
500
+ /// @requires {Map} $bootstrap-contained-icon-button
501
+ /// @requires {Map} $bootstrap-outlined-icon-button
502
+ $bootstrap-icon-button: (
503
+ flat: $bootstrap-flat-icon-button,
504
+ contained: $bootstrap-contained-icon-button,
505
+ outlined: $bootstrap-outlined-icon-button,
506
+ );
507
+
508
+ /// Indigo Schemas
509
+
510
+ /// Generates a base indigo icon button schema.
511
+ /// @type {Map}
512
+ /// @prop {Color} background [transparent] - The background color of the indigo icon button.
513
+ /// @prop {Map} foreground [color: ('gray', 700)] - The idle text color of the indigo icon button.
514
+ /// @prop {Color} focus-background [transparent] - The focus background color of the indigo icon button.
515
+ /// @prop {Map} focus-border-color [color: ('gray', 300)] - The focus border color of the indigo icon button.
516
+ /// @prop {Color} disabled-background [transparent] - The disabled background color of the indigo icon button.
517
+ /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of the indigo icon button.
518
+ /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for the indigo icon button.
519
+ /// @prop {List} size [(rem(28px), rem(32px), rem(36px))] - The size used for the indigo icon button.
520
+ $indigo-base-icon-button: (
521
+ background: transparent,
522
+ foreground: (
523
+ color: (
524
+ 'gray',
525
+ 700,
526
+ ),
527
+ ),
528
+ focus-background: transparent,
529
+ focus-border-color: (
530
+ color: (
531
+ 'gray',
532
+ 300,
533
+ ),
534
+ ),
535
+ disabled-background: transparent,
536
+ disabled-foreground: (
537
+ color: (
538
+ 'gray',
539
+ 400,
540
+ ),
541
+ ),
542
+ border-radius: (
543
+ border-radius: (
544
+ rem(20px),
545
+ rem(0),
546
+ rem(20px),
547
+ ),
548
+ ),
549
+ size: (
550
+ sizable: (
551
+ rem(28px),
552
+ rem(32px),
553
+ rem(36px),
554
+ ),
555
+ ),
556
+ );
557
+
558
+ /// Generates an indigo flat icon button schema.
559
+ /// @type {Map}
560
+ /// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus text color of the indigo flat icon button.
561
+ /// @requires {Map} $indigo-base-icon-button
562
+ $indigo-flat-icon-button: extend(
563
+ $indigo-base-icon-button,
564
+ (
565
+ focus-foreground: (
566
+ color: (
567
+ 'gray',
568
+ 900,
569
+ ),
570
+ ),
571
+ )
572
+ );
573
+
574
+ /// Generates an indigo contained icon button schema.
575
+ /// @type {Map}
576
+ /// @prop {Map} background [color: ('primary', 500)] - The background color of the indigo contained icon button.
577
+ /// @prop {Map} foreground [contrast-color: ('primary', 600)] - The idle text color of the indigo contained icon button.
578
+ /// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of the indigo contained icon button.
579
+ /// @prop {Map} focus-border-color [color: ('primary', 200, .5)] - The focus border color of the indigo contained icon button.
580
+ /// @prop {Map} disabled-background [color: ('primary', 100)] - The disabled background color of the indigo contained icon button.
581
+ /// @requires {Map} $indigo-base-icon-button
582
+ $indigo-contained-icon-button: extend(
583
+ $indigo-base-icon-button,
584
+ (
585
+ background: (
586
+ color: (
587
+ 'primary',
588
+ 500,
589
+ ),
590
+ ),
591
+ foreground: (
592
+ contrast-color: (
593
+ 'primary',
594
+ 600,
595
+ ),
596
+ ),
597
+ focus-background: (
598
+ color: (
599
+ 'primary',
600
+ 400,
601
+ ),
602
+ ),
603
+ focus-border-color: (
604
+ color: (
605
+ 'primary',
606
+ 200,
607
+ ),
608
+ ),
609
+ disabled-background: (
610
+ color: (
611
+ 'gray',
612
+ 100,
613
+ ),
614
+ ),
615
+ )
616
+ );
617
+
618
+ /// Generates an indigo outlined icon button schema.
619
+ /// @type {Map}
620
+ /// @prop {Map} border-color [color: ('gray', 500)] - The border color of the indigo outlined icon button.
621
+ /// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus text color of the indigo outlined icon button.
622
+ /// @prop {Map} focus-background [color: ('gray', 100)] - The focus background color of the indigo outlined icon button.
623
+ /// @prop {Map} focus-border-color [color: ('gray', 300)] - The focus border color of the indigo outlined icon button.
624
+ /// @requires {Map} $indigo-base-icon-button
625
+ $indigo-outlined-icon-button: extend(
626
+ $indigo-base-icon-button,
627
+ (
628
+ border-color: (
629
+ color: (
630
+ 'gray',
631
+ 500,
632
+ ),
633
+ ),
634
+ focus-foreground: (
635
+ color: (
636
+ 'gray',
637
+ 900,
638
+ ),
639
+ ),
640
+ focus-background: (
641
+ color: (
642
+ 'gray',
643
+ 100,
644
+ ),
645
+ ),
646
+ focus-border-color: (
647
+ color: (
648
+ 'gray',
649
+ 300,
650
+ ),
651
+ ),
652
+ )
653
+ );
654
+
655
+ /// Generates a light indigo icon button schema.
656
+ /// @type {Map}
657
+ /// @requires {Map} $indigo-flat-icon-button
658
+ /// @requires {Map} $indigo-contained-icon-button
659
+ /// @requires {Map} $indigo-outlined-icon-button
660
+ $indigo-icon-button: (
661
+ flat: $indigo-flat-icon-button,
662
+ contained: $indigo-contained-icon-button,
663
+ outlined: $indigo-outlined-icon-button,
664
+ );
@@ -12,6 +12,7 @@
12
12
  /// @prop {Color} color ["'currentColor'"] - The icon color.
13
13
  /// @prop {Color} disabled-color ["'currentColor'"] - The disabled icon color.
14
14
  /// @prop {List} size [(rem(18px), rem(20px), rem(24px))] - The size used for the icon.
15
+ /// @prop {Number} default-size [2] - The default size used for the icon component.
15
16
  $light-icon: (
16
17
  color: "'currentColor'",
17
18
  disabled-color: "'currentColor'",
@@ -22,6 +23,7 @@ $light-icon: (
22
23
  rem(24px),
23
24
  ),
24
25
  ),
26
+ default-size: 2,
25
27
  );
26
28
 
27
29
  /// Generates a fluent icon schema.
@@ -63,6 +63,7 @@
63
63
  /// @prop {Map} input-suffix-color--focused [color: ('gray', 900)] - The input suffix color in the focused state.
64
64
  /// @prop {Color} input-suffix-background--focused [inherit] - The background color of an input suffix in the focused state.
65
65
  /// @prop {List} size [(rem(40px), rem(48px), rem(56px))] - The size used for the input group.
66
+ /// @prop {Number} default-size [2] - The default size used for the input group component.
66
67
  /// @requires {Map} $default-elevation-input-group
67
68
  $light-input-group: extend(
68
69
  $default-elevation-input-group,
@@ -323,6 +324,7 @@ $light-input-group: extend(
323
324
  rem(56px),
324
325
  ),
325
326
  ),
327
+ default-size: 2,
326
328
  )
327
329
  );
328
330
 
@@ -34,6 +34,7 @@
34
34
  /// @prop {List} item-border-radius [()] - The border radius used for list item.
35
35
  /// @prop {Number} border-color [transparent] - The list border color.
36
36
  /// @prop {Color} border-width [0] - The list border width.
37
+ /// @prop {Number} default-size [2] - The default size used for the list component.
37
38
  $light-list: (
38
39
  background: (
39
40
  color: 'surface',
@@ -131,6 +132,7 @@ $light-list: (
131
132
  rem(24px),
132
133
  ),
133
134
  ),
135
+ default-size: 2,
134
136
  );
135
137
 
136
138
  /// Generates a fluent list schema.
@@ -19,6 +19,7 @@
19
19
  /// @prop {Map} disabled-label-color [color: ('gray', 400)] - sets the color for the label in disabled state.
20
20
  /// @prop {Map} disabled-empty-symbol-color [color: ('gray', 400)] - sets the idle color for the symbol in disabled state when it is a plane text.
21
21
  /// @prop {Map} disabled-full-symbol-color [color: ('gray', 600)] - sets the color for the symbol in selected/disabled state when it is a plane text.
22
+ /// @prop {Number} default-size [2] - The default size used for the rating component.
22
23
  /// Generates a light rating schema.
23
24
  /// @type {Map}
24
25
  $light-rating: (
@@ -77,6 +78,7 @@ $light-rating: (
77
78
  200,
78
79
  ),
79
80
  ),
81
+ default-size: 2,
80
82
  );
81
83
 
82
84
  /// Generates a fluent rating schema.
@@ -19,6 +19,7 @@
19
19
  /// @prop {Map} toggle-button-background-disabled [color: ('gray', 100] - The select toggle button background color when the select is disabled.
20
20
  /// @prop {Map} toggle-button-foreground-disabled [color: ('gray', 500)] - The select toggle button foreground color when the select is disabled.
21
21
  /// @prop {Map} toggle-button-background-focus--border [color: ('gray', 300)] The select toggle button background color when the select is focused in material border and line variants.
22
+ /// @prop {Number} default-size [2] - The default size used for the select component.
22
23
  $light-select: (
23
24
  toggle-button-background-focus--border: (
24
25
  color: (
@@ -69,6 +70,7 @@ $light-select: (
69
70
  500,
70
71
  ),
71
72
  ),
73
+ default-size: 2,
72
74
  );
73
75
 
74
76
  /// Generates a fluent select schema.
@@ -25,6 +25,7 @@
25
25
  /// @prop {Map} hover-color [color: ('gray', 900, .1)] - The background color used for the tree node on hover.
26
26
  /// @prop {Map} border-color [color: ('secondary')] - The outline shadow color used for tree node in focus state.
27
27
  /// @prop {List} size [(rem(32px), rem(40px), rem(50px))] - The size used for the tree node.
28
+ /// @prop {Number} default-size [2] - The default size used for the tree component.
28
29
  $light-tree: (
29
30
  background: (
30
31
  color: (
@@ -109,6 +110,7 @@ $light-tree: (
109
110
  rem(50px),
110
111
  ),
111
112
  ),
113
+ default-size: 2,
112
114
  );
113
115
 
114
116
  /// Generates a light fluent tree schema.