mtrl 0.0.3 → 0.1.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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/components/button/styles.scss +198 -161
  3. package/src/components/checkbox/checkbox.js +3 -2
  4. package/src/components/checkbox/styles.scss +105 -55
  5. package/src/components/container/styles.scss +65 -58
  6. package/src/components/list/constants.js +0 -5
  7. package/src/components/list/list-item.js +12 -4
  8. package/src/components/list/list.js +11 -19
  9. package/src/components/list/styles.scss +240 -11
  10. package/src/components/menu/styles.scss +37 -30
  11. package/src/components/navigation/styles.scss +406 -6
  12. package/src/components/snackbar/styles.scss +46 -17
  13. package/src/components/switch/styles.scss +93 -46
  14. package/src/components/textfield/styles.scss +351 -5
  15. package/src/core/build/_ripple.scss +79 -0
  16. package/src/core/dom/create.js +0 -1
  17. package/src/core/layout/index.js +3 -1
  18. package/src/styles/abstract/_mixins.scss +9 -7
  19. package/src/styles/abstract/_theme.scss +157 -0
  20. package/src/styles/abstract/_variables.scss +72 -6
  21. package/src/styles/base/_reset.scss +86 -0
  22. package/src/styles/base/_typography.scss +155 -0
  23. package/src/styles/main.scss +104 -57
  24. package/src/styles/themes/_autumn.scss +81 -0
  25. package/src/styles/themes/_base-theme.scss +2 -27
  26. package/src/styles/themes/_baseline.scss +64 -39
  27. package/src/styles/themes/_forest.scss +46 -46
  28. package/src/styles/themes/_spring.scss +71 -0
  29. package/src/styles/themes/_summer.scss +82 -0
  30. package/src/styles/themes/_winter.scss +71 -0
  31. package/src/styles/utilities/_color.scss +154 -0
  32. package/src/styles/utilities/_flexbox.scss +194 -0
  33. package/src/styles/utilities/_spacing.scss +139 -0
  34. package/src/styles/utilities/_typography.scss +178 -0
  35. package/src/styles/utilities/_visibility.scss +142 -0
  36. package/src/components/list/styles/_list-item.scss +0 -142
  37. package/src/components/list/styles/_list.scss +0 -89
  38. package/src/components/list/styles/_variables.scss +0 -13
  39. package/src/components/navigation/styles/_bar.scss +0 -51
  40. package/src/components/navigation/styles/_base.scss +0 -129
  41. package/src/components/navigation/styles/_drawer.scss +0 -169
  42. package/src/components/navigation/styles/_rail.scss +0 -65
  43. package/src/components/textfield/styles/base.scss +0 -107
  44. package/src/components/textfield/styles/filled.scss +0 -58
  45. package/src/components/textfield/styles/outlined.scss +0 -66
@@ -0,0 +1,82 @@
1
+ // src/styles/themes/_summer.scss
2
+ @use '../abstract/base' as *;
3
+ @use 'base-theme' as *;
4
+
5
+ @include create-theme('summer') {
6
+ // Key colors inspired by Chuck Jones' Road Runner desert palette
7
+ --#{$prefix}-sys-color-primary: #4196CB; // Bright desert sky blue
8
+ --#{$prefix}-sys-color-on-primary: #FFFFFF;
9
+ --#{$prefix}-sys-color-primary-container: #D1E4FF;
10
+ --#{$prefix}-sys-color-on-primary-container: #001D36;
11
+
12
+ --#{$prefix}-sys-color-secondary: #F3C649; // Desert sand/yellow
13
+ --#{$prefix}-sys-color-on-secondary: #3E2E00;
14
+ --#{$prefix}-sys-color-secondary-container: #FFF4D5;
15
+ --#{$prefix}-sys-color-on-secondary-container: #291F00;
16
+
17
+ --#{$prefix}-sys-color-tertiary: #A75B39; // Mesa rock orange-brown
18
+ --#{$prefix}-sys-color-on-tertiary: #FFFFFF;
19
+ --#{$prefix}-sys-color-tertiary-container: #FFDBC8;
20
+ --#{$prefix}-sys-color-on-tertiary-container: #3A1600;
21
+
22
+ // Accent colors for more variety
23
+ --#{$prefix}-sys-color-accent: #6B4596; // Road Runner purple
24
+ --#{$prefix}-sys-color-on-accent: #FFFFFF;
25
+ --#{$prefix}-sys-color-accent-container: #EBDCFF;
26
+ --#{$prefix}-sys-color-on-accent-container: #25005C;
27
+
28
+ // Neutral colors with desert warmth
29
+ --#{$prefix}-sys-color-surface: #FFFBF8;
30
+ --#{$prefix}-sys-color-surface-dim: #EAE2D9;
31
+ --#{$prefix}-sys-color-surface-bright: #FFFBF8;
32
+ --#{$prefix}-sys-color-surface-container-lowest: #FFFFFF;
33
+ --#{$prefix}-sys-color-surface-container-low: #FEF5ED;
34
+ --#{$prefix}-sys-color-surface-container: #F7EFE7;
35
+ --#{$prefix}-sys-color-surface-container-high: #F1E9E1;
36
+ --#{$prefix}-sys-color-surface-container-highest: #EBE3DB;
37
+
38
+ --#{$prefix}-sys-color-on-surface: #1F1B16;
39
+ --#{$prefix}-sys-color-on-surface-variant: #50453B;
40
+
41
+ --#{$prefix}-sys-color-outline: #827568;
42
+ --#{$prefix}-sys-color-outline-variant: #D5C8B9;
43
+
44
+ &[data-theme-mode="dark"] {
45
+ // Key colors - darker but still vibrant
46
+ --#{$prefix}-sys-color-primary: #9ECAFF;
47
+ --#{$prefix}-sys-color-on-primary: #003258;
48
+ --#{$prefix}-sys-color-primary-container: #00497D;
49
+ --#{$prefix}-sys-color-on-primary-container: #D1E4FF;
50
+
51
+ --#{$prefix}-sys-color-secondary: #DBC054;
52
+ --#{$prefix}-sys-color-on-secondary: #3E2E00;
53
+ --#{$prefix}-sys-color-secondary-container: #584400;
54
+ --#{$prefix}-sys-color-on-secondary-container: #FFF4D5;
55
+
56
+ --#{$prefix}-sys-color-tertiary: #FFB694;
57
+ --#{$prefix}-sys-color-on-tertiary: #5C2900;
58
+ --#{$prefix}-sys-color-tertiary-container: #803D15;
59
+ --#{$prefix}-sys-color-on-tertiary-container: #FFDBC8;
60
+
61
+ --#{$prefix}-sys-color-accent: #D0BCFF;
62
+ --#{$prefix}-sys-color-on-accent: #381E72;
63
+ --#{$prefix}-sys-color-accent-container: #503396;
64
+ --#{$prefix}-sys-color-on-accent-container: #EBDCFF;
65
+
66
+ // Neutral colors
67
+ --#{$prefix}-sys-color-surface: #1F1B16;
68
+ --#{$prefix}-sys-color-surface-dim: #16130F;
69
+ --#{$prefix}-sys-color-surface-bright: #3B362F;
70
+ --#{$prefix}-sys-color-surface-container-lowest: #130F0B;
71
+ --#{$prefix}-sys-color-surface-container-low: #1F1B16;
72
+ --#{$prefix}-sys-color-surface-container: #231F19;
73
+ --#{$prefix}-sys-color-surface-container-high: #2D2921;
74
+ --#{$prefix}-sys-color-surface-container-highest: #38332B;
75
+
76
+ --#{$prefix}-sys-color-on-surface: #EAE1D9;
77
+ --#{$prefix}-sys-color-on-surface-variant: #D5C8B9;
78
+
79
+ --#{$prefix}-sys-color-outline: #9E8F80;
80
+ --#{$prefix}-sys-color-outline-variant: #50453B;
81
+ }
82
+ }
@@ -0,0 +1,71 @@
1
+ // src/styles/themes/_winter.scss
2
+ @use '../abstract/base' as *;
3
+ @use 'base-theme' as *;
4
+
5
+ @include create-theme('winter') {
6
+ // Key colors generated from seed color #546E7A (winter blue-gray)
7
+ --#{$prefix}-sys-color-primary: #406374;
8
+ --#{$prefix}-sys-color-on-primary: #FFFFFF;
9
+ --#{$prefix}-sys-color-primary-container: #C1E8FC;
10
+ --#{$prefix}-sys-color-on-primary-container: #001F29;
11
+
12
+ --#{$prefix}-sys-color-secondary: #4A626E;
13
+ --#{$prefix}-sys-color-on-secondary: #FFFFFF;
14
+ --#{$prefix}-sys-color-secondary-container: #CDE6F5;
15
+ --#{$prefix}-sys-color-on-secondary-container: #061E28;
16
+
17
+ --#{$prefix}-sys-color-tertiary: #5D5B7D;
18
+ --#{$prefix}-sys-color-on-tertiary: #FFFFFF;
19
+ --#{$prefix}-sys-color-tertiary-container: #E2DFFF;
20
+ --#{$prefix}-sys-color-on-tertiary-container: #191836;
21
+
22
+ // Neutral colors
23
+ --#{$prefix}-sys-color-surface: #FAFCFF;
24
+ --#{$prefix}-sys-color-surface-dim: #DAE4E9;
25
+ --#{$prefix}-sys-color-surface-bright: #FAFCFF;
26
+ --#{$prefix}-sys-color-surface-container-lowest: #FFFFFF;
27
+ --#{$prefix}-sys-color-surface-container-low: #F5F8FB;
28
+ --#{$prefix}-sys-color-surface-container: #EFF3F6;
29
+ --#{$prefix}-sys-color-surface-container-high: #E9EDF0;
30
+ --#{$prefix}-sys-color-surface-container-highest: #E3E7EA;
31
+
32
+ --#{$prefix}-sys-color-on-surface: #191C1E;
33
+ --#{$prefix}-sys-color-on-surface-variant: #40484C;
34
+
35
+ --#{$prefix}-sys-color-outline: #70787D;
36
+ --#{$prefix}-sys-color-outline-variant: #C0C8CC;
37
+
38
+ &[data-theme-mode="dark"] {
39
+ // Key colors
40
+ --#{$prefix}-sys-color-primary: #73D0EE;
41
+ --#{$prefix}-sys-color-on-primary: #003545;
42
+ --#{$prefix}-sys-color-primary-container: #224C5B;
43
+ --#{$prefix}-sys-color-on-primary-container: #C1E8FC;
44
+
45
+ --#{$prefix}-sys-color-secondary: #B1CAD9;
46
+ --#{$prefix}-sys-color-on-secondary: #1D343F;
47
+ --#{$prefix}-sys-color-secondary-container: #334B56;
48
+ --#{$prefix}-sys-color-on-secondary-container: #CDE6F5;
49
+
50
+ --#{$prefix}-sys-color-tertiary: #C6C3EB;
51
+ --#{$prefix}-sys-color-on-tertiary: #2E2D4D;
52
+ --#{$prefix}-sys-color-tertiary-container: #454364;
53
+ --#{$prefix}-sys-color-on-tertiary-container: #E2DFFF;
54
+
55
+ // Neutral colors
56
+ --#{$prefix}-sys-color-surface: #191C1E;
57
+ --#{$prefix}-sys-color-surface-dim: #101416;
58
+ --#{$prefix}-sys-color-surface-bright: #35393C;
59
+ --#{$prefix}-sys-color-surface-container-lowest: #0D0E10;
60
+ --#{$prefix}-sys-color-surface-container-low: #191C1E;
61
+ --#{$prefix}-sys-color-surface-container: #1D2022;
62
+ --#{$prefix}-sys-color-surface-container-high: #272A2D;
63
+ --#{$prefix}-sys-color-surface-container-highest: #323539;
64
+
65
+ --#{$prefix}-sys-color-on-surface: #E1E3E5;
66
+ --#{$prefix}-sys-color-on-surface-variant: #C0C8CC;
67
+
68
+ --#{$prefix}-sys-color-outline: #8A9297;
69
+ --#{$prefix}-sys-color-outline-variant: #40484C;
70
+ }
71
+ }
@@ -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
+ }