@matteusan/himig 1.0.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.
Files changed (82) hide show
  1. package/README.md +29 -0
  2. package/_index.scss +219 -0
  3. package/_init-font-pack.scss +809 -0
  4. package/ms-badge/_badge-base.scss +45 -0
  5. package/ms-badge/_badge-extend.scss +53 -0
  6. package/ms-badge/_badge-styles.scss +43 -0
  7. package/ms-badge/_badge-theme.scss +47 -0
  8. package/ms-badge/_index.scss +24 -0
  9. package/ms-button/_button-base.scss +76 -0
  10. package/ms-button/_button-extend.scss +53 -0
  11. package/ms-button/_button-mixins.scss +191 -0
  12. package/ms-button/_button-styles.scss +210 -0
  13. package/ms-button/_button-theme.scss +67 -0
  14. package/ms-button/_index.scss +24 -0
  15. package/ms-core/_index.scss +76 -0
  16. package/ms-core/breakpoint/_breakpoint-sentro.scss +53 -0
  17. package/ms-core/breakpoint/_index.scss +23 -0
  18. package/ms-core/color/_color-constants.scss +33 -0
  19. package/ms-core/color/_color-setters.scss +75 -0
  20. package/ms-core/color/_color-utils.scss +62 -0
  21. package/ms-core/color/_color-validators.scss +59 -0
  22. package/ms-core/color/_index.scss +25 -0
  23. package/ms-core/component/component-base.ts +81 -0
  24. package/ms-core/component/component-properties.ts +25 -0
  25. package/ms-core/component/index.ts +29 -0
  26. package/ms-core/component/types/ms-component.d.ts +24 -0
  27. package/ms-core/index.ts +29 -0
  28. package/ms-core/sprite/_index.scss +23 -0
  29. package/ms-core/sprite/_sprite-mixins.scss +29 -0
  30. package/ms-core/struct/_index.scss +24 -0
  31. package/ms-core/struct/_struct-setters.scss +98 -0
  32. package/ms-core/struct/_struct-utils.scss +222 -0
  33. package/ms-core/struct/_struct-validators.scss +57 -0
  34. package/ms-core/theme/_index.scss +30 -0
  35. package/ms-core/theme/_theme-get.scss +41 -0
  36. package/ms-core/theme/_theme-keys.scss +43 -0
  37. package/ms-core/theme/_theme-merge.scss +46 -0
  38. package/ms-core/theme/_theme-properties.scss +52 -0
  39. package/ms-core/theme/_theme-setters.scss +139 -0
  40. package/ms-core/theme/_theme-tokens.scss +57 -0
  41. package/ms-core/tokens/_index.scss +23 -0
  42. package/ms-core/tokens/_token-data.scss +242 -0
  43. package/ms-core/tokens/_token-methods.scss +98 -0
  44. package/ms-core/tools/_index.scss +26 -0
  45. package/ms-core/tools/_tools-color.scss +79 -0
  46. package/ms-core/tools/_tools-sentro.scss +52 -0
  47. package/ms-core/tools/_tools-string.scss +45 -0
  48. package/ms-core/tools/_tools-validation.scss +71 -0
  49. package/ms-core/typography/_index.scss +24 -0
  50. package/ms-core/typography/_typography-setters.scss +78 -0
  51. package/ms-core/typography/_typography-utils.scss +76 -0
  52. package/ms-core/typography/_typography-validators.scss +47 -0
  53. package/ms-form-field/_form-field-base.scss +113 -0
  54. package/ms-form-field/_form-field-extend.scss +53 -0
  55. package/ms-form-field/_form-field-styles.scss +212 -0
  56. package/ms-form-field/_form-field-theme.scss +63 -0
  57. package/ms-form-field/_index.scss +24 -0
  58. package/ms-item-card/_index.scss +24 -0
  59. package/ms-item-card/_item-card-base.scss +96 -0
  60. package/ms-item-card/_item-card-extend.scss +53 -0
  61. package/ms-item-card/_item-card-styles.scss +64 -0
  62. package/ms-item-card/_item-card-theme.scss +66 -0
  63. package/ms-list/_index.scss +24 -0
  64. package/ms-list/_list-base.scss +62 -0
  65. package/ms-list/_list-extend.scss +53 -0
  66. package/ms-list/_list-styles.scss +77 -0
  67. package/ms-list/_list-theme.scss +59 -0
  68. package/ms-sprite/_index.scss +23 -0
  69. package/ms-sprite/_sprite-styles.scss +57 -0
  70. package/ms-surface/_index.scss +24 -0
  71. package/ms-surface/_surface-base.scss +111 -0
  72. package/ms-surface/_surface-extend.scss +53 -0
  73. package/ms-surface/_surface-styles.scss +88 -0
  74. package/ms-surface/_surface-theme.scss +55 -0
  75. package/ms-utils/_color-utils.scss +99 -0
  76. package/ms-utils/_consts.scss +25 -0
  77. package/ms-utils/_index.scss +26 -0
  78. package/ms-utils/_layout-utils.scss +307 -0
  79. package/ms-utils/_struct-utils.scss +322 -0
  80. package/ms-utils/_typography-utils.scss +167 -0
  81. package/ms-utils/_util-helpers.scss +54 -0
  82. package/package.json +15 -0
@@ -0,0 +1,307 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @use '../ms-core';
24
+ @use 'sass:string';
25
+ @use 'sass:list';
26
+ @use 'consts';
27
+ @use 'util-helpers' as helpers;
28
+
29
+ $_breakpoints: consts.$breakpoints;
30
+ $_displays: ('none', 'block', 'inline', 'inline-block', 'flex', 'inline-flex', 'grid', 'inline-grid');
31
+ $_positions: ('static', 'relative', 'absolute', 'fixed', 'sticky');
32
+ $_alignments: ('start', 'center', 'end', 'stretch', 'baseline', 'space-between', 'space-around', 'space-evenly');
33
+ $_flows: ('row', 'column', 'row-reverse', 'column-reverse');
34
+ $_wraps: ('none': 'nowrap', 'default': 'wrap','reverse': 'wrap-reverse');
35
+ $_max-columns: 12;
36
+
37
+ $_gaps: (
38
+ 'none',
39
+ 'xs',
40
+ 'sm',
41
+ 'md',
42
+ 'lg',
43
+ 'xl',
44
+ '2xl',
45
+ '3xl',
46
+ '4xl',
47
+ '5xl',
48
+ '6xl'
49
+ );
50
+
51
+ @mixin layout($include: (), $exclude: ()) {
52
+ $utils-to-render: helpers.handle-include-exclude((
53
+ 'display',
54
+ 'position',
55
+ 'flow',
56
+ 'wrap',
57
+ 'jc',
58
+ 'ji',
59
+ 'ai',
60
+ 'ac',
61
+ 'pi',
62
+ 'pc',
63
+ 'cols',
64
+ 'rows',
65
+ 'start',
66
+ 'end',
67
+ 'gap',
68
+ ), $include, $exclude);
69
+
70
+ @if list.index($utils-to-render, 'display') {
71
+ @each $display in $_displays {
72
+ .#{$display} {
73
+ display: string.unquote($display);
74
+ }
75
+
76
+ @each $breakpoint in $_breakpoints {
77
+ .\@#{$breakpoint}\:#{$display} {
78
+ @include ms-core.breakpoint-create($breakpoint) {
79
+ display: string.unquote($display) !important;
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ @if list.index($utils-to-render, 'position') {
87
+ @each $position in $_positions {
88
+ .#{$position} {
89
+ position: string.unquote($position);
90
+ }
91
+
92
+ @each $breakpoint in $_breakpoints {
93
+ .\@#{$breakpoint}\:#{$position} {
94
+ @include ms-core.breakpoint-create($breakpoint) {
95
+ position: string.unquote($position) !important;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ @if list.index($utils-to-render, 'flow') {
103
+ @each $flow in $_flows {
104
+ .flow-#{$flow} {
105
+ flex-flow: string.unquote($flow);
106
+ }
107
+
108
+ @each $breakpoint in $_breakpoints {
109
+ .\@#{$breakpoint}\:flow-#{$flow} {
110
+ @include ms-core.breakpoint-create($breakpoint) {
111
+ flex-flow: string.unquote($flow) !important;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ @if list.index($utils-to-render, 'wrap') {
119
+ @each $wrap, $value in $_wraps {
120
+ @if $wrap == 'default' {
121
+ .wrap {
122
+ flex-wrap: string.unquote($value);
123
+ }
124
+ } @else {
125
+ .wrap-#{$wrap} {
126
+ flex-wrap: string.unquote($value);
127
+ }
128
+ }
129
+
130
+ @each $breakpoint in $_breakpoints {
131
+ @if $wrap == 'default' {
132
+ .\@#{$breakpoint}\:wrap {
133
+ @include ms-core.breakpoint-create($breakpoint) {
134
+ flex-wrap: string.unquote($value) !important;
135
+ }
136
+ }
137
+ } @else {
138
+ .\@#{$breakpoint}\:wrap-#{$wrap} {
139
+ @include ms-core.breakpoint-create($breakpoint) {
140
+ flex-wrap: string.unquote($value) !important;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+
148
+ @each $alignment in $_alignments {
149
+ @if list.index($utils-to-render, 'jc') {
150
+ .jc-#{$alignment} {
151
+ justify-content: string.unquote($alignment);
152
+ }
153
+
154
+ @each $breakpoint in $_breakpoints {
155
+ .\@#{$breakpoint}\:jc-#{$alignment} {
156
+ @include ms-core.breakpoint-create($breakpoint) {
157
+ justify-content: string.unquote($alignment) !important;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ @if list.index($utils-to-render, 'ji') {
164
+ .ji-#{$alignment} {
165
+ justify-items: string.unquote($alignment);
166
+ }
167
+
168
+ @each $breakpoint in $_breakpoints {
169
+ .\@#{$breakpoint}\:ji-#{$alignment} {
170
+ @include ms-core.breakpoint-create($breakpoint) {
171
+ justify-items: string.unquote($alignment) !important;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ @if list.index($utils-to-render, 'ac') {
178
+ .ac-#{$alignment} {
179
+ align-content: string.unquote($alignment);
180
+ }
181
+
182
+ @each $breakpoint in $_breakpoints {
183
+ .\@#{$breakpoint}\:ac-#{$alignment} {
184
+ @include ms-core.breakpoint-create($breakpoint) {
185
+ align-content: string.unquote($alignment) !important;
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ @if list.index($utils-to-render, 'ai') {
192
+ .ai-#{$alignment} {
193
+ align-items: string.unquote($alignment);
194
+ }
195
+
196
+ @each $breakpoint in $_breakpoints {
197
+ .\@#{$breakpoint}\:ai-#{$alignment} {
198
+ @include ms-core.breakpoint-create($breakpoint) {
199
+ align-items: string.unquote($alignment) !important;
200
+ }
201
+ }
202
+ }
203
+ }
204
+
205
+ @if list.index($utils-to-render, 'pc') {
206
+ .pc-#{$alignment} {
207
+ place-content: string.unquote($alignment);
208
+ }
209
+
210
+ @each $breakpoint in $_breakpoints {
211
+ .\@#{$breakpoint}\:pc-#{$alignment} {
212
+ @include ms-core.breakpoint-create($breakpoint) {
213
+ place-content: string.unquote($alignment) !important;
214
+ }
215
+ }
216
+ }
217
+ }
218
+
219
+ @if list.index($utils-to-render, 'pi') {
220
+ .pi-#{$alignment} {
221
+ place-items: string.unquote($alignment);
222
+ }
223
+
224
+ @each $breakpoint in $_breakpoints {
225
+ .\@#{$breakpoint}\:pi-#{$alignment} {
226
+ @include ms-core.breakpoint-create($breakpoint) {
227
+ place-items: string.unquote($alignment) !important;
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+
234
+ @for $i from 1 through $_max-columns {
235
+ @if list.index($utils-to-render, 'cols') {
236
+ .cols-#{$i} {
237
+ grid-template-columns: repeat($i, 1fr);
238
+ }
239
+
240
+ @each $breakpoint in $_breakpoints {
241
+ .\@#{$breakpoint}\:cols-#{$i} {
242
+ @include ms-core.breakpoint-create($breakpoint) {
243
+ grid-template-columns: repeat($i, 1fr) !important;
244
+ }
245
+ }
246
+ }
247
+ }
248
+
249
+ @if list.index($utils-to-render, 'rows') {
250
+ .rows-#{$i} {
251
+ grid-template-rows: repeat($i, 1fr);
252
+ }
253
+
254
+ @each $breakpoint in $_breakpoints {
255
+ .\@#{$breakpoint}\:rows-#{$i} {
256
+ @include ms-core.breakpoint-create($breakpoint) {
257
+ grid-template-rows: repeat($i, 1fr) !important;
258
+ }
259
+ }
260
+ }
261
+ }
262
+
263
+ @if list.index($utils-to-render, 'start') {
264
+ .start-#{$i} {
265
+ grid-column-start: $i;
266
+ }
267
+
268
+ @each $breakpoint in $_breakpoints {
269
+ .\@#{$breakpoint}\:start-#{$i} {
270
+ @include ms-core.breakpoint-create($breakpoint) {
271
+ grid-column-start: $i !important;
272
+ }
273
+ }
274
+ }
275
+ }
276
+
277
+ @if list.index($utils-to-render, 'end') {
278
+ .end-#{$i} {
279
+ grid-column-end: $i + 1;
280
+ }
281
+
282
+ @each $breakpoint in $_breakpoints {
283
+ .\@#{$breakpoint}\:end-#{$i} {
284
+ @include ms-core.breakpoint-create($breakpoint) {
285
+ grid-column-end: $i + 1 !important;
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+
292
+ @if list.index($utils-to-render, 'gap') {
293
+ @each $gap in $_gaps {
294
+ .gap-#{$gap} {
295
+ gap: ms-core.primitive-token-get('gap.#{$gap}');
296
+ }
297
+
298
+ @each $breakpoint in $_breakpoints {
299
+ .\@#{$breakpoint}\:gap-#{$gap} {
300
+ @include ms-core.breakpoint-create($breakpoint) {
301
+ gap: ms-core.primitive-token-get('gap.#{$gap}') !important;
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
@@ -0,0 +1,322 @@
1
+ //---------------------------------------------------
2
+ // Copyright (c) 2024 MatteuSan
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ //---------------------------------------------------
22
+
23
+ @use '../ms-core';
24
+ @use 'sass:map';
25
+ @use 'sass:meta';
26
+ @use 'sass:list';
27
+ @use 'consts';
28
+ @use 'util-helpers' as helpers;
29
+
30
+ $_breakpoints: consts.$breakpoints;
31
+ $_variants: (
32
+ 'none',
33
+ 'auto',
34
+ 'xs',
35
+ 'sm',
36
+ 'md',
37
+ 'lg',
38
+ 'xl',
39
+ '2xl',
40
+ '3xl',
41
+ '4xl',
42
+ '5xl',
43
+ '6xl',
44
+ );
45
+ $_directions: (
46
+ 't': top,
47
+ 'l': left,
48
+ 'b': bottom,
49
+ 'r': right,
50
+ 'x': (left, right),
51
+ 'y': (top, bottom)
52
+ );
53
+ $_r-directions: (
54
+ 'tl': top-left,
55
+ 'tr': top-right,
56
+ 'br': bottom-right,
57
+ 'bl': bottom-left,
58
+ 't': (top-left, top-right),
59
+ 'l': (top-left, bottom-left),
60
+ 'b': (bottom-left, bottom-right),
61
+ 'r': (top-right, bottom-right),
62
+ );
63
+ $_dimensions: (
64
+ 'none',
65
+ 'full',
66
+ 'xs',
67
+ 'sm',
68
+ 'md',
69
+ 'lg',
70
+ 'xl',
71
+ 'sprite',
72
+ );
73
+ $_stroke-size: (
74
+ 'none',
75
+ 'xs',
76
+ 'sm',
77
+ 'md',
78
+ 'lg',
79
+ 'xl'
80
+ );
81
+ $_stroke-style: (
82
+ 'none',
83
+ 'solid',
84
+ 'dashed',
85
+ 'dotted',
86
+ 'double'
87
+ );
88
+
89
+ @mixin struct($include: (), $exclude: ()) {
90
+ $utils-to-render: helpers.handle-include-exclude((
91
+ 'w',
92
+ 'h',
93
+ 'p',
94
+ 'm',
95
+ 'r',
96
+ 'border-width',
97
+ 'border-style'
98
+ ), $include, $exclude);
99
+
100
+ @each $dimension in $_dimensions {
101
+ @if list.index($utils-to-render, 'w') {
102
+ // Width
103
+ .w-#{$dimension} {
104
+ width: ms-core.primitive-token-get('width.#{$dimension}');
105
+ }
106
+
107
+ @each $breakpoint in $_breakpoints {
108
+ .\@#{$breakpoint}\:w-#{$dimension} {
109
+ @include ms-core.breakpoint-create($breakpoint) {
110
+ width: ms-core.primitive-token-get('width.#{$dimension}') !important;
111
+ }
112
+ }
113
+ }
114
+
115
+ // Min Width
116
+ .min-w-#{$dimension} {
117
+ min-width: ms-core.primitive-token-get('width.#{$dimension}');
118
+ }
119
+
120
+ @each $breakpoint in $_breakpoints {
121
+ .\@#{$breakpoint}\:min-w-#{$dimension} {
122
+ @include ms-core.breakpoint-create($breakpoint) {
123
+ min-width: ms-core.primitive-token-get('width.#{$dimension}') !important;
124
+ }
125
+ }
126
+ }
127
+
128
+ // Max Width
129
+ .max-w-#{$dimension} {
130
+ max-width: ms-core.primitive-token-get('width.#{$dimension}');
131
+ }
132
+
133
+ @each $breakpoint in $_breakpoints {
134
+ .\@#{$breakpoint}\:max-w-#{$dimension} {
135
+ @include ms-core.breakpoint-create($breakpoint) {
136
+ max-width: ms-core.primitive-token-get('width.#{$dimension}') !important;
137
+ }
138
+ }
139
+ }
140
+ }
141
+
142
+ @if list.index($utils-to-render, 'h') {
143
+ // Height
144
+ .h-#{$dimension} {
145
+ height: ms-core.primitive-token-get('height.#{$dimension}');
146
+ }
147
+
148
+ @each $breakpoint in $_breakpoints {
149
+ .\@#{$breakpoint}\:h-#{$dimension} {
150
+ @include ms-core.breakpoint-create($breakpoint) {
151
+ height: ms-core.primitive-token-get('height.#{$dimension}') !important;
152
+ }
153
+ }
154
+ }
155
+
156
+ // Min Height
157
+ .min-h-#{$dimension} {
158
+ min-height: ms-core.primitive-token-get('height.#{$dimension}');
159
+ }
160
+
161
+ @each $breakpoint in $_breakpoints {
162
+ .\@#{$breakpoint}\:min-h-#{$dimension} {
163
+ @include ms-core.breakpoint-create($breakpoint) {
164
+ min-height: ms-core.primitive-token-get('height.#{$dimension}') !important;
165
+ }
166
+ }
167
+ }
168
+
169
+ // Max Height
170
+ .max-h-#{$dimension} {
171
+ max-height: ms-core.primitive-token-get('height.#{$dimension}');
172
+ }
173
+
174
+ @each $breakpoint in $_breakpoints {
175
+ .\@#{$breakpoint}\:max-h-#{$dimension} {
176
+ @include ms-core.breakpoint-create($breakpoint) {
177
+ max-height: ms-core.primitive-token-get('height.#{$dimension}') !important;
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ @each $variant in $_variants {
185
+ @if list.index($utils-to-render, 'p') {
186
+ // Padding
187
+ .p-#{$variant} {
188
+ padding: ms-core.primitive-token-get('padding.#{$variant}');
189
+ }
190
+
191
+ @each $breakpoint in $_breakpoints {
192
+ .\@#{$breakpoint}\:p-#{$variant} {
193
+ @include ms-core.breakpoint-create($breakpoint) {
194
+ padding: ms-core.primitive-token-get('padding.#{$variant}') !important;
195
+ }
196
+ }
197
+ }
198
+
199
+ @each $direction, $direction-val in $_directions {
200
+ .p#{$direction}-#{$variant} {
201
+ @each $sub-direction in $direction-val {
202
+ padding-#{$sub-direction}: ms-core.primitive-token-get('padding.#{$variant}');
203
+ }
204
+ }
205
+
206
+ @each $breakpoint in $_breakpoints {
207
+ .\@#{$breakpoint}\:p#{$direction}-#{$variant} {
208
+ @include ms-core.breakpoint-create($breakpoint) {
209
+ @each $sub-direction in $direction-val {
210
+ padding-#{$sub-direction}: ms-core.primitive-token-get('padding.#{$variant}') !important;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+
218
+ @if list.index($utils-to-render, 'm') {
219
+ // Margin
220
+ .m-#{$variant} {
221
+ margin: ms-core.primitive-token-get('margin.#{$variant}');
222
+ }
223
+
224
+ @each $breakpoint in $_breakpoints {
225
+ .\@#{$breakpoint}\:m-#{$variant} {
226
+ @include ms-core.breakpoint-create($breakpoint) {
227
+ margin: ms-core.primitive-token-get('margin.#{$variant}') !important;
228
+ }
229
+ }
230
+ }
231
+
232
+ @each $direction, $direction-val in $_directions {
233
+ .m#{$direction}-#{$variant} {
234
+ @each $sub-direction in $direction-val {
235
+ margin-#{$sub-direction}: ms-core.primitive-token-get('margin.#{$variant}');
236
+ }
237
+ }
238
+
239
+ @each $breakpoint in $_breakpoints {
240
+ .\@#{$breakpoint}\:m#{$direction}-#{$variant} {
241
+ @include ms-core.breakpoint-create($breakpoint) {
242
+ @each $sub-direction in $direction-val {
243
+ margin-#{$sub-direction}: ms-core.primitive-token-get('margin.#{$variant}') !important;
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+
251
+ @if list.index($utils-to-render, 'r') {
252
+ // Border Radius
253
+ @if $variant == 'auto' {
254
+ // Do nothing
255
+ } @else {
256
+ .r-#{$variant} {
257
+ border-radius: ms-core.primitive-token-get('radius.#{$variant}');
258
+ }
259
+
260
+ @each $breakpoint in $_breakpoints {
261
+ .\@#{$breakpoint}\:r-#{$variant} {
262
+ @include ms-core.breakpoint-create($breakpoint) {
263
+ border-radius: ms-core.primitive-token-get('radius.#{$variant}') !important;
264
+ }
265
+ }
266
+ }
267
+
268
+ @each $direction, $direction-val in $_r-directions {
269
+ .r#{$direction}-#{$variant} {
270
+ @each $sub-direction in $direction-val {
271
+ border-#{$sub-direction}-radius: ms-core.primitive-token-get('radius.#{$variant}');
272
+ }
273
+ }
274
+
275
+ @each $breakpoint in $_breakpoints {
276
+ .\@#{$breakpoint}\:r#{$direction}-#{$variant} {
277
+ @include ms-core.breakpoint-create($breakpoint) {
278
+ @each $sub-direction in $direction-val {
279
+ border-#{$sub-direction}-radius: ms-core.primitive-token-get('radius.#{$variant}') !important;
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+
289
+ @if list.index($utils-to-render, 'border-width') {
290
+ @each $variant in $_stroke-size {
291
+ // Border Width
292
+ .border-#{$variant} {
293
+ border-width: ms-core.primitive-token-get('border.#{$variant}');
294
+ }
295
+
296
+ @each $breakpoint in $_breakpoints {
297
+ .\@#{$breakpoint}\:border-#{$variant} {
298
+ @include ms-core.breakpoint-create($breakpoint) {
299
+ border-width: ms-core.primitive-token-get('border.#{$variant}') !important;
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+
306
+ @if list.index($utils-to-render, 'border-style') {
307
+ @each $variant in $_stroke-style {
308
+ // Border Style
309
+ .border-#{$variant} {
310
+ border-style: $variant;
311
+ }
312
+
313
+ @each $breakpoint in $_breakpoints {
314
+ .\@#{$breakpoint}\:border-#{$variant} {
315
+ @include ms-core.breakpoint-create($breakpoint) {
316
+ border-style: $variant !important;
317
+ }
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }