1010
1111/// Generates a light badge schema.
1212/// @type {Map}
13- /// @prop {Map} icon-color [contrast-color: ('primary', 900)] - The icon color used.
14- /// @prop {Map} text-color [contrast-color: ('primary', 900)] - The text color used.
15- /// @prop {Map} border-color [color: ('gray', 50 )] - The border color used.
16- /// @prop {Map} background-color [color: ('primary', 500)] - The background color used.
13+ /// @prop {Map} icon-color [contrast-color: ('primary', 900)] - The icon color used for the badge component .
14+ /// @prop {Map} text-color [contrast-color: ('primary', 900)] - The text color used for the badge component .
15+ /// @prop {Map} border-color [contrast- color: ('gray', 900 )] - The border color used for the badge component .
16+ /// @prop {Map} background-color [color: ('primary', 500)] - The background color used for the badge component .
1717/// @prop {Number} elevation [1] - The elevation level, between 0-24, to be used for the badge shadow.
18- /// @prop {Number} border-radius [0] - The border radius used for badge.
18+ /// @prop {Number} border-radius [0] - The border-radius used for the badge component.
19+ /// @prop {List} size [(rem(16px), rem(22px), rem(26px))] - The size used for the badge.
20+ /// @prop {Number} default-size [2] - The default size used for the badge component (medium).
1921/// @prop {Map} typography [text: (value: 'caption')] - The typography styles used for the component.
2022/// @requires {Map} $default-elevation-badge
2123$light-badge : extend (
@@ -36,9 +38,9 @@ $light-badge: extend(
3638 ),
3739
3840 border-color : (
39- color : (
41+ contrast - color: (
4042 ' gray' ,
41- 50 ,
43+ 900 ,
4244 ),
4345 ),
4446
@@ -51,6 +53,16 @@ $light-badge: extend(
5153
5254 border-radius : 0 ,
5355
56+ size : (
57+ sizable: (
58+ rem (16px ),
59+ rem (22px ),
60+ rem (26px ),
61+ ),
62+ ),
63+
64+ default- size: 2 ,
65+
5466 typography: (
5567 text : (
5668 value: ' caption' ,
@@ -61,10 +73,27 @@ $light-badge: extend(
6173
6274/// Generates a material badge schema.
6375/// @type {Map}
76+ /// @prop {Map} background-color [color: ('primary', 800)] - The background color used for the badge component.
77+ /// @prop {List} dot-size [(rem(8px), rem(10px), rem(12px))] - The size used for the dot type badge.
6478/// @requires {Map} $light-badge
6579$material-badge : extend (
6680 $light-badge ,
6781 (
82+ background-color : (
83+ color : (
84+ ' primary' ,
85+ 800 ,
86+ ),
87+ ),
88+
89+ dot- size: (
90+ sizable: (
91+ rem (8px ),
92+ rem (10px ),
93+ rem (12px ),
94+ ),
95+ ),
96+
6897 _meta: (
6998 theme: ' material' ,
7099 variant : ' light' ,
@@ -74,10 +103,19 @@ $material-badge: extend(
74103
75104/// Generates a fluent badge schema.
76105/// @type {Map}
106+ /// @prop {List} dot-size [(rem(6px), rem(10px), rem(12px))] - The size used for the dot type badge.
77107/// @requires {Map} $light-badge
78108$fluent-badge : extend (
79109 $light-badge ,
80110 (
111+ dot- size: (
112+ sizable: (
113+ rem (6px ),
114+ rem (10px ),
115+ rem (12px ),
116+ ),
117+ ),
118+
81119 _meta: (
82120 theme: ' fluent' ,
83121 variant : ' light' ,
@@ -89,7 +127,8 @@ $fluent-badge: extend(
89127/// @type {Map}
90128/// @prop {Map} icon-color [contrast-color: ('primary', 100)] - The icon color used.
91129/// @prop {Map} text-color [contrast-color: ('primary', 100)] - The text color used.
92- /// @prop {Number} border-radius [rem(4px)] - The border radius used for badge.
130+ /// @prop {List} border-radius [(rem(2px), rem(4px), rem(4px))] - The border radius used for badge.
131+ /// @prop {List} dot-size [(rem(6px), rem(10px), rem(14px))] - The size used for the dot type badge.
93132/// @requires {Map} $light-badge
94133$bootstrap-badge : extend (
95134 $light-badge ,
@@ -108,7 +147,22 @@ $bootstrap-badge: extend(
108147 ),
109148 ),
110149
111- border-radius : rem (4px ),
150+ border-radius : (
151+ sizable: (
152+ rem (2px ),
153+ rem (4px ),
154+ rem (4px ),
155+ ),
156+ ),
157+
158+ dot- size: (
159+ sizable: (
160+ rem (6px ),
161+ rem (10px ),
162+ rem (14px ),
163+ ),
164+ ),
165+
112166 _meta: (
113167 theme: ' bootstrap' ,
114168 variant : ' light' ,
@@ -118,21 +172,42 @@ $bootstrap-badge: extend(
118172
119173/// Generates an indigo badge schema.
120174/// @type {Map}
121- /// @prop {Map} background-color [color: ('primary', 400)] - The background color used.
175+ /// @prop {Map} border-color [color: ('gray', 100)] - The border color used for the badge component.
176+ /// @prop {List} size [(rem(14px), rem(18px), rem(22px))] - The size used for the badge.
177+ /// @prop {List} dot-size [(rem(6px), rem(8px), rem(10px))] - The size used for the dot type badge.
122178/// @prop {Map} typography [text: (value: 'button')] - The typography styles used for the component.
179+ /// @prop {Number} default-size [3] - The default size used for the badge component (large).
123180/// @requires {Map} $light-badge
124181/// @requires {Map} $indigo-elevation-badge
125182$indigo-badge : extend (
126183 $light-badge ,
127184 $indigo-elevation-badge ,
128185 (
129- background -color : (
186+ border -color : (
130187 color : (
131- ' primary' ,
132- 400 ,
188+ ' gray' ,
189+ 100 ,
190+ ),
191+ ),
192+
193+ size : (
194+ sizable: (
195+ rem (14px ),
196+ rem (18px ),
197+ rem (22px ),
133198 ),
134199 ),
135200
201+ dot- size: (
202+ sizable: (
203+ rem (6px ),
204+ rem (8px ),
205+ rem (10px ),
206+ ),
207+ ),
208+
209+ default- size: 3 ,
210+
136211 typography: (
137212 text : (
138213 value: ' button' ,
0 commit comments