mtrl 0.0.2 → 0.1.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 (52) hide show
  1. package/package.json +2 -2
  2. package/src/components/button/styles.scss +198 -161
  3. package/src/components/checkbox/checkbox.js +4 -3
  4. package/src/components/checkbox/styles.scss +105 -55
  5. package/src/components/container/styles.scss +65 -58
  6. package/src/components/list/styles.scss +240 -11
  7. package/src/components/menu/features/items-manager.js +5 -1
  8. package/src/components/menu/styles.scss +37 -30
  9. package/src/components/navigation/constants.js +19 -54
  10. package/src/components/navigation/styles.scss +406 -6
  11. package/src/components/snackbar/styles.scss +46 -17
  12. package/src/components/switch/styles.scss +104 -40
  13. package/src/components/switch/switch.js +1 -1
  14. package/src/components/textfield/styles.scss +351 -5
  15. package/src/core/build/_ripple.scss +79 -0
  16. package/src/core/compose/features/disabled.js +27 -7
  17. package/src/core/compose/features/input.js +9 -1
  18. package/src/core/compose/features/textinput.js +16 -20
  19. package/src/core/dom/create.js +0 -1
  20. package/src/styles/abstract/_mixins.scss +9 -7
  21. package/src/styles/abstract/_theme.scss +157 -0
  22. package/src/styles/abstract/_variables.scss +72 -6
  23. package/src/styles/base/_reset.scss +86 -0
  24. package/src/styles/base/_typography.scss +155 -0
  25. package/src/styles/main.scss +104 -57
  26. package/src/styles/themes/_base-theme.scss +2 -27
  27. package/src/styles/themes/_baseline.scss +64 -39
  28. package/src/styles/utilities/_color.scss +154 -0
  29. package/src/styles/utilities/_flexbox.scss +194 -0
  30. package/src/styles/utilities/_spacing.scss +139 -0
  31. package/src/styles/utilities/_typography.scss +178 -0
  32. package/src/styles/utilities/_visibility.scss +142 -0
  33. package/test/components/button.test.js +46 -34
  34. package/test/components/checkbox.test.js +238 -0
  35. package/test/components/list.test.js +105 -0
  36. package/test/components/menu.test.js +385 -0
  37. package/test/components/navigation.test.js +227 -0
  38. package/test/components/snackbar.test.js +234 -0
  39. package/test/components/switch.test.js +186 -0
  40. package/test/components/textfield.test.js +314 -0
  41. package/test/core/ripple.test.js +21 -120
  42. package/test/setup.js +152 -239
  43. package/src/components/list/styles/_list-item.scss +0 -142
  44. package/src/components/list/styles/_list.scss +0 -89
  45. package/src/components/list/styles/_variables.scss +0 -13
  46. package/src/components/navigation/styles/_bar.scss +0 -51
  47. package/src/components/navigation/styles/_base.scss +0 -129
  48. package/src/components/navigation/styles/_drawer.scss +0 -169
  49. package/src/components/navigation/styles/_rail.scss +0 -65
  50. package/src/components/textfield/styles/base.scss +0 -107
  51. package/src/components/textfield/styles/filled.scss +0 -58
  52. package/src/components/textfield/styles/outlined.scss +0 -66
@@ -1,7 +1,6 @@
1
- // src/styles/themes/_default.scss
1
+ // src/styles/themes/_base-theme.scss
2
2
  @use '../abstract/base' as *;
3
3
 
4
-
5
4
  // Base theme definition with common properties and structure
6
5
  @mixin create-theme($name) {
7
6
  [data-theme="#{$name}"] {
@@ -22,28 +21,4 @@
22
21
  --#{$prefix}-sys-shape-corner-medium: 12px;
23
22
  --#{$prefix}-sys-shape-corner-large: 16px;
24
23
  --#{$prefix}-sys-shape-corner-extra-large: 28px;
25
- }
26
-
27
- :root {
28
- // Color scheme
29
- --#{$prefix}-sys-color-primary: #6750A4;
30
- --#{$prefix}-sys-color-primary-rgb: 103, 80, 164;
31
- --#{$prefix}-sys-color-on-primary: #FFFFFF;
32
- --#{$prefix}-sys-color-primary-container: #EADDFF;
33
- --#{$prefix}-sys-color-on-primary-container: #21005D;
34
-
35
- --#{$prefix}-sys-color-secondary: #625B71;
36
- --#{$prefix}-sys-color-on-secondary: #FFFFFF;
37
- --#{$prefix}-sys-color-secondary-container: #E8DEF8;
38
- --#{$prefix}-sys-color-on-secondary-container: #1D192B;
39
-
40
- --#{$prefix}-sys-color-surface: #FFFBFE;
41
- --#{$prefix}-sys-color-on-surface: #1C1B1F;
42
- --#{$prefix}-sys-color-on-surface-rgb: 28, 27, 31;
43
-
44
- --#{$prefix}-sys-color-outline: #79747E;
45
- }
46
-
47
- // [data-theme="dark"] {
48
- // @include dark-theme;
49
- // }
24
+ }
@@ -2,8 +2,8 @@
2
2
  @use '../abstract/base' as *;
3
3
  @use 'base-theme' as *;
4
4
 
5
- // Material Design 3 Baseline Theme
6
- @include create-theme('baseline') {
5
+ // Variables for light theme (default)
6
+ @mixin baseline-light-variables {
7
7
  // Key colors
8
8
  --#{$prefix}-sys-color-primary: #6750A4;
9
9
  --#{$prefix}-sys-color-on-primary: #FFFFFF;
@@ -47,44 +47,69 @@
47
47
  --#{$prefix}-sys-state-focus-state-layer-opacity: 0.12;
48
48
  --#{$prefix}-sys-state-pressed-state-layer-opacity: 0.12;
49
49
  --#{$prefix}-sys-state-dragged-state-layer-opacity: 0.16;
50
+ }
50
51
 
51
- &[data-theme-mode="dark"] {
52
- // Key colors
53
- --#{$prefix}-sys-color-primary: #D0BCFF;
54
- --#{$prefix}-sys-color-on-primary: #381E72;
55
- --#{$prefix}-sys-color-primary-container: #4F378B;
56
- --#{$prefix}-sys-color-on-primary-container: #EADDFF;
57
-
58
- --#{$prefix}-sys-color-secondary: #CCC2DC;
59
- --#{$prefix}-sys-color-on-secondary: #332D41;
60
- --#{$prefix}-sys-color-secondary-container: #4A4458;
61
- --#{$prefix}-sys-color-on-secondary-container: #E8DEF8;
62
-
63
- --#{$prefix}-sys-color-tertiary: #EFB8C8;
64
- --#{$prefix}-sys-color-on-tertiary: #492532;
65
- --#{$prefix}-sys-color-tertiary-container: #633B48;
66
- --#{$prefix}-sys-color-on-tertiary-container: #FFD8E4;
52
+ // Variables for dark theme
53
+ @mixin baseline-dark-variables {
54
+ // Key colors
55
+ --#{$prefix}-sys-color-primary: #D0BCFF;
56
+ --#{$prefix}-sys-color-on-primary: #381E72;
57
+ --#{$prefix}-sys-color-primary-container: #4F378B;
58
+ --#{$prefix}-sys-color-on-primary-container: #EADDFF;
59
+
60
+ --#{$prefix}-sys-color-secondary: #CCC2DC;
61
+ --#{$prefix}-sys-color-on-secondary: #332D41;
62
+ --#{$prefix}-sys-color-secondary-container: #4A4458;
63
+ --#{$prefix}-sys-color-on-secondary-container: #E8DEF8;
64
+
65
+ --#{$prefix}-sys-color-tertiary: #EFB8C8;
66
+ --#{$prefix}-sys-color-on-tertiary: #492532;
67
+ --#{$prefix}-sys-color-tertiary-container: #633B48;
68
+ --#{$prefix}-sys-color-on-tertiary-container: #FFD8E4;
67
69
 
68
- // Neutral colors
69
- --#{$prefix}-sys-color-surface: #1C1B1F;
70
- --#{$prefix}-sys-color-surface-dim: #141218;
71
- --#{$prefix}-sys-color-surface-bright: #3B383D;
72
- --#{$prefix}-sys-color-surface-container-lowest: #0F0D13;
73
- --#{$prefix}-sys-color-surface-container-low: #1D1B20;
74
- --#{$prefix}-sys-color-surface-container: #211F26;
75
- --#{$prefix}-sys-color-surface-container-high: #2B2930;
76
- --#{$prefix}-sys-color-surface-container-highest: #36343B;
77
-
78
- --#{$prefix}-sys-color-on-surface: #E6E1E5;
79
- --#{$prefix}-sys-color-on-surface-variant: #CAC4D0;
80
-
81
- // Additional colors
82
- --#{$prefix}-sys-color-outline: #938F99;
83
- --#{$prefix}-sys-color-outline-variant: #444746;
84
- --#{$prefix}-sys-color-shadow: #000000;
85
- --#{$prefix}-sys-color-scrim: #000000;
86
- --#{$prefix}-sys-color-inverse-surface: #E6E1E5;
87
- --#{$prefix}-sys-color-inverse-on-surface: #313033;
88
- --#{$prefix}-sys-color-inverse-primary: #6750A4;
70
+ // Neutral colors
71
+ --#{$prefix}-sys-color-surface: #1C1B1F;
72
+ --#{$prefix}-sys-color-surface-dim: #141218;
73
+ --#{$prefix}-sys-color-surface-bright: #3B383D;
74
+ --#{$prefix}-sys-color-surface-container-lowest: #0F0D13;
75
+ --#{$prefix}-sys-color-surface-container-low: #1D1B20;
76
+ --#{$prefix}-sys-color-surface-container: #211F26;
77
+ --#{$prefix}-sys-color-surface-container-high: #2B2930;
78
+ --#{$prefix}-sys-color-surface-container-highest: #36343B;
79
+
80
+ --#{$prefix}-sys-color-on-surface: #E6E1E5;
81
+ --#{$prefix}-sys-color-on-surface-variant: #CAC4D0;
82
+
83
+ // Additional colors
84
+ --#{$prefix}-sys-color-outline: #938F99;
85
+ --#{$prefix}-sys-color-outline-variant: #444746;
86
+ --#{$prefix}-sys-color-shadow: #000000;
87
+ --#{$prefix}-sys-color-scrim: #000000;
88
+ --#{$prefix}-sys-color-inverse-surface: #E6E1E5;
89
+ --#{$prefix}-sys-color-inverse-on-surface: #313033;
90
+ --#{$prefix}-sys-color-inverse-primary: #6750A4;
91
+ }
92
+
93
+ // Apply baseline light theme to :root by default
94
+ :root {
95
+ @include baseline-light-variables;
96
+
97
+ // Apply dark theme based on system preference
98
+ @media (prefers-color-scheme: dark) {
99
+ @include baseline-dark-variables;
100
+ }
101
+ }
102
+
103
+ // Dark theme class for manual switching
104
+ .dark-theme {
105
+ @include baseline-dark-variables;
106
+ }
107
+
108
+ // Make it available as a selectable theme
109
+ @include create-theme('baseline') {
110
+ @include baseline-light-variables;
111
+
112
+ &[data-theme-mode="dark"] {
113
+ @include baseline-dark-variables;
89
114
  }
90
115
  }
@@ -0,0 +1,154 @@
1
+ // src/styles/utilities/_colors.scss
2
+ @use '../abstract/base' as base;
3
+ @use '../abstract/theme' as t;
4
+
5
+ $prefix: base.$prefix;
6
+
7
+ // Text colors
8
+ .#{$prefix}-text-primary {
9
+ color: t.color('primary');
10
+ }
11
+
12
+ .#{$prefix}-text-on-primary {
13
+ color: t.color('on-primary');
14
+ }
15
+
16
+ .#{$prefix}-text-secondary {
17
+ color: t.color('secondary');
18
+ }
19
+
20
+ .#{$prefix}-text-on-secondary {
21
+ color: t.color('on-secondary');
22
+ }
23
+
24
+ .#{$prefix}-text-tertiary {
25
+ color: t.color('tertiary');
26
+ }
27
+
28
+ .#{$prefix}-text-on-tertiary {
29
+ color: t.color('on-tertiary');
30
+ }
31
+
32
+ .#{$prefix}-text-surface {
33
+ color: t.color('on-surface');
34
+ }
35
+
36
+ .#{$prefix}-text-surface-variant {
37
+ color: t.color('on-surface-variant');
38
+ }
39
+
40
+ .#{$prefix}-text-error {
41
+ color: t.color('error');
42
+ }
43
+
44
+ .#{$prefix}-text-outline {
45
+ color: t.color('outline');
46
+ }
47
+
48
+ // Background colors
49
+ .#{$prefix}-bg-primary {
50
+ background-color: t.color('primary');
51
+ }
52
+
53
+ .#{$prefix}-bg-primary-container {
54
+ background-color: t.color('primary-container');
55
+ }
56
+
57
+ .#{$prefix}-bg-secondary {
58
+ background-color: t.color('secondary');
59
+ }
60
+
61
+ .#{$prefix}-bg-secondary-container {
62
+ background-color: t.color('secondary-container');
63
+ }
64
+
65
+ .#{$prefix}-bg-tertiary {
66
+ background-color: t.color('tertiary');
67
+ }
68
+
69
+ .#{$prefix}-bg-tertiary-container {
70
+ background-color: t.color('tertiary-container');
71
+ }
72
+
73
+ .#{$prefix}-bg-surface {
74
+ background-color: t.color('surface');
75
+ }
76
+
77
+ .#{$prefix}-bg-surface-dim {
78
+ background-color: t.color('surface-dim');
79
+ }
80
+
81
+ .#{$prefix}-bg-surface-bright {
82
+ background-color: t.color('surface-bright');
83
+ }
84
+
85
+ .#{$prefix}-bg-surface-container {
86
+ background-color: t.color('surface-container');
87
+ }
88
+
89
+ .#{$prefix}-bg-surface-container-low {
90
+ background-color: t.color('surface-container-low');
91
+ }
92
+
93
+ .#{$prefix}-bg-surface-container-high {
94
+ background-color: t.color('surface-container-high');
95
+ }
96
+
97
+ .#{$prefix}-bg-surface-container-highest {
98
+ background-color: t.color('surface-container-highest');
99
+ }
100
+
101
+ .#{$prefix}-bg-error {
102
+ background-color: t.color('error');
103
+ }
104
+
105
+ .#{$prefix}-bg-error-container {
106
+ background-color: t.color('error-container');
107
+ }
108
+
109
+ // Opacity variants for surface colors
110
+ @for $i from 1 through 9 {
111
+ $opacity: $i * 0.1;
112
+
113
+ .#{$prefix}-bg-primary-opacity-#{$i} {
114
+ background-color: t.alpha('primary', $opacity);
115
+ }
116
+
117
+ .#{$prefix}-bg-on-surface-opacity-#{$i} {
118
+ background-color: t.alpha('on-surface', $opacity);
119
+ }
120
+ }
121
+
122
+ // Border colors
123
+ .#{$prefix}-border-primary {
124
+ border-color: t.color('primary');
125
+ }
126
+
127
+ .#{$prefix}-border-outline {
128
+ border-color: t.color('outline');
129
+ }
130
+
131
+ .#{$prefix}-border-outline-variant {
132
+ border-color: t.color('outline-variant');
133
+ }
134
+
135
+ // Common border utilities
136
+ .#{$prefix}-border {
137
+ border: 1px solid t.color('outline-variant');
138
+ }
139
+
140
+ .#{$prefix}-border-t {
141
+ border-top: 1px solid t.color('outline-variant');
142
+ }
143
+
144
+ .#{$prefix}-border-r {
145
+ border-right: 1px solid t.color('outline-variant');
146
+ }
147
+
148
+ .#{$prefix}-border-b {
149
+ border-bottom: 1px solid t.color('outline-variant');
150
+ }
151
+
152
+ .#{$prefix}-border-l {
153
+ border-left: 1px solid t.color('outline-variant');
154
+ }
@@ -0,0 +1,194 @@
1
+ // src/styles/utilities/_flexbox.scss
2
+ @use '../abstract/base' as base;
3
+
4
+ $prefix: base.$prefix;
5
+
6
+ // Display flex
7
+ .#{$prefix}-flex {
8
+ display: flex;
9
+ }
10
+
11
+ .#{$prefix}-inline-flex {
12
+ display: inline-flex;
13
+ }
14
+
15
+ // Flex direction
16
+ .#{$prefix}-flex-row {
17
+ flex-direction: row;
18
+ }
19
+
20
+ .#{$prefix}-flex-row-reverse {
21
+ flex-direction: row-reverse;
22
+ }
23
+
24
+ .#{$prefix}-flex-col {
25
+ flex-direction: column;
26
+ }
27
+
28
+ .#{$prefix}-flex-col-reverse {
29
+ flex-direction: column-reverse;
30
+ }
31
+
32
+ // Flex wrap
33
+ .#{$prefix}-flex-wrap {
34
+ flex-wrap: wrap;
35
+ }
36
+
37
+ .#{$prefix}-flex-nowrap {
38
+ flex-wrap: nowrap;
39
+ }
40
+
41
+ .#{$prefix}-flex-wrap-reverse {
42
+ flex-wrap: wrap-reverse;
43
+ }
44
+
45
+ // Flex grow / shrink
46
+ .#{$prefix}-flex-1 {
47
+ flex: 1 1 0%;
48
+ }
49
+
50
+ .#{$prefix}-flex-auto {
51
+ flex: 1 1 auto;
52
+ }
53
+
54
+ .#{$prefix}-flex-initial {
55
+ flex: 0 1 auto;
56
+ }
57
+
58
+ .#{$prefix}-flex-none {
59
+ flex: none;
60
+ }
61
+
62
+ .#{$prefix}-grow-0 {
63
+ flex-grow: 0;
64
+ }
65
+
66
+ .#{$prefix}-grow {
67
+ flex-grow: 1;
68
+ }
69
+
70
+ .#{$prefix}-shrink-0 {
71
+ flex-shrink: 0;
72
+ }
73
+
74
+ .#{$prefix}-shrink {
75
+ flex-shrink: 1;
76
+ }
77
+
78
+ // Justify content
79
+ .#{$prefix}-justify-start {
80
+ justify-content: flex-start;
81
+ }
82
+
83
+ .#{$prefix}-justify-end {
84
+ justify-content: flex-end;
85
+ }
86
+
87
+ .#{$prefix}-justify-center {
88
+ justify-content: center;
89
+ }
90
+
91
+ .#{$prefix}-justify-between {
92
+ justify-content: space-between;
93
+ }
94
+
95
+ .#{$prefix}-justify-around {
96
+ justify-content: space-around;
97
+ }
98
+
99
+ .#{$prefix}-justify-evenly {
100
+ justify-content: space-evenly;
101
+ }
102
+
103
+ // Align items
104
+ .#{$prefix}-items-start {
105
+ align-items: flex-start;
106
+ }
107
+
108
+ .#{$prefix}-items-end {
109
+ align-items: flex-end;
110
+ }
111
+
112
+ .#{$prefix}-items-center {
113
+ align-items: center;
114
+ }
115
+
116
+ .#{$prefix}-items-baseline {
117
+ align-items: baseline;
118
+ }
119
+
120
+ .#{$prefix}-items-stretch {
121
+ align-items: stretch;
122
+ }
123
+
124
+ // Align content
125
+ .#{$prefix}-content-center {
126
+ align-content: center;
127
+ }
128
+
129
+ .#{$prefix}-content-start {
130
+ align-content: flex-start;
131
+ }
132
+
133
+ .#{$prefix}-content-end {
134
+ align-content: flex-end;
135
+ }
136
+
137
+ .#{$prefix}-content-between {
138
+ align-content: space-between;
139
+ }
140
+
141
+ .#{$prefix}-content-around {
142
+ align-content: space-around;
143
+ }
144
+
145
+ .#{$prefix}-content-stretch {
146
+ align-content: stretch;
147
+ }
148
+
149
+ // Align self
150
+ .#{$prefix}-self-auto {
151
+ align-self: auto;
152
+ }
153
+
154
+ .#{$prefix}-self-start {
155
+ align-self: flex-start;
156
+ }
157
+
158
+ .#{$prefix}-self-end {
159
+ align-self: flex-end;
160
+ }
161
+
162
+ .#{$prefix}-self-center {
163
+ align-self: center;
164
+ }
165
+
166
+ .#{$prefix}-self-stretch {
167
+ align-self: stretch;
168
+ }
169
+
170
+ // Order
171
+ .#{$prefix}-order-first {
172
+ order: -9999;
173
+ }
174
+
175
+ .#{$prefix}-order-last {
176
+ order: 9999;
177
+ }
178
+
179
+ .#{$prefix}-order-none {
180
+ order: 0;
181
+ }
182
+
183
+ // Common flex layouts
184
+ .#{$prefix}-flex-center {
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+ }
189
+
190
+ .#{$prefix}-flex-between {
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: space-between;
194
+ }
@@ -0,0 +1,139 @@
1
+ // src/styles/utilities/_spacing.scss
2
+ @use '../abstract/base' as base;
3
+ @use 'sass:map';
4
+
5
+ $prefix: base.$prefix;
6
+
7
+ // Spacing scale
8
+ $spacing-scale: (
9
+ '0': 0,
10
+ '1': 4px,
11
+ '2': 8px,
12
+ '3': 12px,
13
+ '4': 16px,
14
+ '5': 20px,
15
+ '6': 24px,
16
+ '8': 32px,
17
+ '10': 40px,
18
+ '12': 48px,
19
+ '14': 56px,
20
+ '16': 64px,
21
+ '20': 80px,
22
+ '24': 96px,
23
+ '32': 128px,
24
+ 'auto': auto
25
+ );
26
+
27
+ // Generate spacing utilities
28
+ @each $key, $value in $spacing-scale {
29
+ // Margin utilities
30
+ .#{$prefix}-m-#{$key} {
31
+ margin: $value;
32
+ }
33
+
34
+ .#{$prefix}-mx-#{$key} {
35
+ margin-left: $value;
36
+ margin-right: $value;
37
+ }
38
+
39
+ .#{$prefix}-my-#{$key} {
40
+ margin-top: $value;
41
+ margin-bottom: $value;
42
+ }
43
+
44
+ .#{$prefix}-mt-#{$key} {
45
+ margin-top: $value;
46
+ }
47
+
48
+ .#{$prefix}-mb-#{$key} {
49
+ margin-bottom: $value;
50
+ }
51
+
52
+ .#{$prefix}-ml-#{$key} {
53
+ margin-left: $value;
54
+ }
55
+
56
+ .#{$prefix}-mr-#{$key} {
57
+ margin-right: $value;
58
+ }
59
+
60
+ // Padding utilities
61
+ .#{$prefix}-p-#{$key} {
62
+ padding: $value;
63
+ }
64
+
65
+ .#{$prefix}-px-#{$key} {
66
+ padding-left: $value;
67
+ padding-right: $value;
68
+ }
69
+
70
+ .#{$prefix}-py-#{$key} {
71
+ padding-top: $value;
72
+ padding-bottom: $value;
73
+ }
74
+
75
+ .#{$prefix}-pt-#{$key} {
76
+ padding-top: $value;
77
+ }
78
+
79
+ .#{$prefix}-pb-#{$key} {
80
+ padding-bottom: $value;
81
+ }
82
+
83
+ .#{$prefix}-pl-#{$key} {
84
+ padding-left: $value;
85
+ }
86
+
87
+ .#{$prefix}-pr-#{$key} {
88
+ padding-right: $value;
89
+ }
90
+ }
91
+
92
+ // Gap utilities
93
+ @each $key, $value in $spacing-scale {
94
+ .#{$prefix}-gap-#{$key} {
95
+ gap: $value;
96
+ }
97
+
98
+ .#{$prefix}-gap-x-#{$key} {
99
+ column-gap: $value;
100
+ }
101
+
102
+ .#{$prefix}-gap-y-#{$key} {
103
+ row-gap: $value;
104
+ }
105
+ }
106
+
107
+ // Responsive margin utilities for common breakpoints
108
+ @each $breakpoint in (sm, md, lg, xl) {
109
+ @media (min-width: map.get((
110
+ sm: 600px,
111
+ md: 960px,
112
+ lg: 1280px,
113
+ xl: 1920px
114
+ ), $breakpoint)) {
115
+ @each $key, $value in (
116
+ '0': 0,
117
+ '4': 16px,
118
+ '6': 24px,
119
+ '8': 32px,
120
+ '10': 40px,
121
+ '12': 48px,
122
+ 'auto': auto
123
+ ) {
124
+ .#{$prefix}-#{$breakpoint}:m-#{$key} {
125
+ margin: $value;
126
+ }
127
+
128
+ .#{$prefix}-#{$breakpoint}:mx-#{$key} {
129
+ margin-left: $value;
130
+ margin-right: $value;
131
+ }
132
+
133
+ .#{$prefix}-#{$breakpoint}:my-#{$key} {
134
+ margin-top: $value;
135
+ margin-bottom: $value;
136
+ }
137
+ }
138
+ }
139
+ }