@nuvoui/core 1.3.4 → 1.4.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 (64) hide show
  1. package/LICENSE +21 -0
  2. package/dist/nuvoui.css +424 -342
  3. package/dist/nuvoui.css.map +1 -1
  4. package/dist/nuvoui.min.css +23 -1
  5. package/dist/nuvoui.min.css.map +1 -1
  6. package/package.json +1 -1
  7. package/src/styles/base/_base.scss +148 -147
  8. package/src/styles/base/_reset.scss +41 -49
  9. package/src/styles/build.scss +25 -1
  10. package/src/styles/components/_tooltips.scss +271 -0
  11. package/src/styles/config/_borders.scss +15 -0
  12. package/src/styles/config/_breakpoints.scss +11 -0
  13. package/src/styles/config/_colors.scss +192 -0
  14. package/src/styles/config/_constants.scss +1 -0
  15. package/src/styles/config/_container-queries.scss +1 -0
  16. package/src/styles/config/_feature-flags.scss +33 -0
  17. package/src/styles/config/_layouts.scss +13 -0
  18. package/src/styles/config/_shadows.scss +9 -0
  19. package/src/styles/config/_spacing.scss +41 -0
  20. package/src/styles/config/_theme-validation.scss +59 -0
  21. package/src/styles/config/_typography.scss +45 -0
  22. package/src/styles/functions/_breakpoints.scss +15 -0
  23. package/src/styles/functions/_colors.scss +280 -0
  24. package/src/styles/functions/_css-vars.scss +33 -0
  25. package/src/styles/functions/_feature-flags.scss +20 -0
  26. package/src/styles/functions/_math.scss +72 -0
  27. package/src/styles/functions/_strings.scss +68 -0
  28. package/src/styles/functions/_types.scss +104 -0
  29. package/src/styles/functions/_units.scss +83 -0
  30. package/src/styles/index.scss +26 -5
  31. package/src/styles/layouts/_container.scss +28 -27
  32. package/src/styles/layouts/_flex.scss +340 -341
  33. package/src/styles/layouts/_grid.scss +131 -128
  34. package/src/styles/mixins-map.json +484 -479
  35. package/src/styles/mixins-map.scss +1 -1
  36. package/src/styles/themes/_theme.scss +230 -211
  37. package/src/styles/tools/_accessibility.scss +50 -0
  38. package/src/styles/tools/_container-queries.scss +98 -0
  39. package/src/styles/tools/_feature-support.scss +46 -0
  40. package/src/styles/tools/_media-queries.scss +70 -0
  41. package/src/styles/tools/_modern-layout.scss +49 -0
  42. package/src/styles/utilities/_alignment.scss +35 -34
  43. package/src/styles/utilities/_animations.scss +312 -311
  44. package/src/styles/utilities/_backdrop-filters.scss +194 -193
  45. package/src/styles/utilities/_borders.scss +243 -237
  46. package/src/styles/utilities/_colors.scss +16 -136
  47. package/src/styles/utilities/_cursor.scss +10 -10
  48. package/src/styles/utilities/_display.scss +192 -191
  49. package/src/styles/utilities/_helpers.scss +106 -106
  50. package/src/styles/utilities/_opacity.scss +27 -25
  51. package/src/styles/utilities/_position.scss +124 -121
  52. package/src/styles/utilities/_shadows.scss +171 -169
  53. package/src/styles/utilities/_sizing.scss +197 -194
  54. package/src/styles/utilities/_spacing.scss +231 -224
  55. package/src/styles/utilities/_transforms.scss +235 -234
  56. package/src/styles/utilities/_transitions.scss +136 -135
  57. package/src/styles/utilities/_typography.scss +242 -239
  58. package/src/styles/utilities/_z-index.scss +69 -68
  59. package/src/styles/abstracts/_config.scss +0 -253
  60. package/src/styles/abstracts/_functions.scss +0 -626
  61. package/src/styles/themes/refactored_borders.ipynb +0 -37
  62. package/src/styles/utilities/_container-queries.scss +0 -95
  63. package/src/styles/utilities/_media-queries.scss +0 -189
  64. package/src/styles/utilities/_tooltips.scss +0 -258
@@ -1,8 +1,11 @@
1
1
  @use "sass:math";
2
2
  @use "sass:string";
3
3
  @use "sass:meta";
4
- @use "../abstracts/config" as VAR;
5
- @use "../abstracts/functions" as FN;
4
+ @use "../config/feature-flags" as config-flags;
5
+ @use "../config/breakpoints" as config-breakpoint;
6
+ @use "../config/spacing" as config-spacing;
7
+ @use "../functions/feature-flags" as fn-flags;
8
+ @use "../functions/units" as fn-units;
6
9
 
7
10
  // @component Spacing
8
11
  // @description Controls element margins, padding, gaps, and spacing between children
@@ -67,49 +70,49 @@
67
70
  // @description Sets padding on all sides
68
71
  // @param {Number|String} $val - Padding value
69
72
  @mixin p($val) {
70
- padding: FN.fix-units($val);
73
+ padding: fn-units.fix-units($val);
71
74
  }
72
75
 
73
76
  // @mixin px
74
77
  // @description Sets horizontal padding (left and right)
75
78
  // @param {Number|String} $val - Padding value
76
79
  @mixin px($val) {
77
- padding-inline: FN.fix-units($val);
80
+ padding-inline: fn-units.fix-units($val);
78
81
  }
79
82
 
80
83
  // @mixin py
81
84
  // @description Sets vertical padding (top and bottom)
82
85
  // @param {Number|String} $val - Padding value
83
86
  @mixin py($val) {
84
- padding-block: FN.fix-units($val);
87
+ padding-block: fn-units.fix-units($val);
85
88
  }
86
89
 
87
90
  // @mixin pt
88
91
  // @description Sets padding-top
89
92
  // @param {Number|String} $val - Padding value
90
93
  @mixin pt($val) {
91
- padding-top: FN.fix-units($val);
94
+ padding-top: fn-units.fix-units($val);
92
95
  }
93
96
 
94
97
  // @mixin pr
95
98
  // @description Sets padding-right
96
99
  // @param {Number|String} $val - Padding value
97
100
  @mixin pr($val) {
98
- padding-right: FN.fix-units($val);
101
+ padding-right: fn-units.fix-units($val);
99
102
  }
100
103
 
101
104
  // @mixin pb
102
105
  // @description Sets padding-bottom
103
106
  // @param {Number|String} $val - Padding value
104
107
  @mixin pb($val) {
105
- padding-bottom: FN.fix-units($val);
108
+ padding-bottom: fn-units.fix-units($val);
106
109
  }
107
110
 
108
111
  // @mixin pl
109
112
  // @description Sets padding-left
110
113
  // @param {Number|String} $val - Padding value
111
114
  @mixin pl($val) {
112
- padding-left: FN.fix-units($val);
115
+ padding-left: fn-units.fix-units($val);
113
116
  }
114
117
 
115
118
  // -----------------------------------------------
@@ -120,70 +123,70 @@
120
123
  // @description Sets margin on all sides
121
124
  // @param {Number|String} $val - Margin value
122
125
  @mixin m($val) {
123
- margin: FN.fix-units($val);
126
+ margin: fn-units.fix-units($val);
124
127
  }
125
128
 
126
129
  // @mixin mx
127
130
  // @description Sets horizontal margin (left and right)
128
131
  // @param {Number|String} $val - Margin value
129
132
  @mixin mx($val) {
130
- margin-inline: FN.fix-units($val);
133
+ margin-inline: fn-units.fix-units($val);
131
134
  }
132
135
 
133
136
  // @mixin my
134
137
  // @description Sets vertical margin (top and bottom)
135
138
  // @param {Number|String} $val - Margin value
136
139
  @mixin my($val) {
137
- $val: FN.fix-units($val);
140
+ $val: fn-units.fix-units($val);
138
141
 
139
- margin-block: FN.fix-units($val);
142
+ margin-block: fn-units.fix-units($val);
140
143
  }
141
144
 
142
145
  // @mixin mt
143
146
  // @description Sets margin-top
144
147
  // @param {Number|String} $val - Margin value
145
148
  @mixin mt($val) {
146
- margin-top: FN.fix-units($val, VAR.$default-unit);
149
+ margin-top: fn-units.fix-units($val, config-flags.$default-unit);
147
150
  }
148
151
 
149
152
  // @mixin mr
150
153
  // @description Sets margin-right
151
154
  // @param {Number|String} $val - Margin value
152
155
  @mixin mr($val) {
153
- margin-right: FN.fix-units($val);
156
+ margin-right: fn-units.fix-units($val);
154
157
  }
155
158
 
156
159
  // @mixin mb
157
160
  // @description Sets margin-bottom
158
161
  // @param {Number|String} $val - Margin value
159
162
  @mixin mb($val) {
160
- margin-bottom: FN.fix-units($val);
163
+ margin-bottom: fn-units.fix-units($val);
161
164
  }
162
165
 
163
166
  // @mixin ml
164
167
  // @description Sets margin-left
165
168
  // @param {Number|String} $val - Margin value
166
169
  @mixin ml($val) {
167
- margin-left: FN.fix-units($val);
170
+ margin-left: fn-units.fix-units($val);
168
171
  }
169
172
 
170
173
  // @mixin ml-auto
171
174
  // @description Sets margin-left to auto
172
175
  @mixin ml-auto {
173
- margin-left: auto;
176
+ margin-left: auto;
174
177
  }
175
178
 
176
179
  // @mixin mr-auto
177
180
  // @description Sets margin-right to auto
178
181
  @mixin mr-auto {
179
- margin-right: auto;
182
+ margin-right: auto;
180
183
  }
181
184
 
182
185
  // @mixin mx-auto
183
186
  // @description Centers element horizontally using auto margins
184
187
  @mixin mx-auto {
185
- @include ml-auto;
186
- @include mr-auto;
188
+ @include ml-auto;
189
+ @include mr-auto;
187
190
  }
188
191
 
189
192
  // -----------------------------------------------
@@ -194,49 +197,49 @@
194
197
  // @description Sets all inset properties (top, right, bottom, left)
195
198
  // @param {Number|String} $val - Inset value
196
199
  @mixin inset($val) {
197
- $val: FN.fix-units($val);
200
+ $val: fn-units.fix-units($val);
198
201
 
199
- inset: FN.fix-units($val);
202
+ inset: fn-units.fix-units($val);
200
203
  }
201
204
 
202
205
  // @mixin inset-x
203
206
  // @description Sets horizontal inset properties (left and right)
204
207
  // @param {Number|String} $val - Inset value
205
208
  @mixin inset-x($val) {
206
- $val: FN.fix-units($val);
209
+ $val: fn-units.fix-units($val);
207
210
 
208
- left: $val;
209
- right: $val;
211
+ left: $val;
212
+ right: $val;
210
213
  }
211
214
 
212
215
  // @mixin inset-y
213
216
  // @description Sets vertical inset properties (top and bottom)
214
217
  // @param {Number|String} $val - Inset value
215
218
  @mixin inset-y($val) {
216
- $val: FN.fix-units($val);
219
+ $val: fn-units.fix-units($val);
217
220
 
218
- top: $val;
219
- bottom: $val;
221
+ top: $val;
222
+ bottom: $val;
220
223
  }
221
224
 
222
225
  // @mixin inset-auto
223
226
  // @description Sets all inset properties to auto
224
227
  @mixin inset-auto {
225
- inset: auto;
228
+ inset: auto;
226
229
  }
227
230
 
228
231
  // @mixin inset-x-auto
229
232
  // @description Sets horizontal inset properties to auto
230
233
  @mixin inset-x-auto {
231
- left: auto;
232
- right: auto;
234
+ left: auto;
235
+ right: auto;
233
236
  }
234
237
 
235
238
  // @mixin inset-y-auto
236
239
  // @description Sets vertical inset properties to auto
237
240
  @mixin inset-y-auto {
238
- top: auto;
239
- bottom: auto;
241
+ top: auto;
242
+ bottom: auto;
240
243
  }
241
244
 
242
245
  // -----------------------------------------------
@@ -247,18 +250,18 @@
247
250
  // @description Adds vertical spacing between direct children
248
251
  // @param {Number|String} $i - Space amount
249
252
  @mixin space-y($i) {
250
- & > * + * {
251
- margin-top: FN.fix-units($i);
252
- }
253
+ & > * + * {
254
+ margin-top: fn-units.fix-units($i);
255
+ }
253
256
  }
254
257
 
255
258
  // @mixin space-x
256
259
  // @description Adds horizontal spacing between direct children
257
260
  // @param {Number|String} $i - Space amount
258
261
  @mixin space-x($i) {
259
- & > * + * {
260
- margin-left: FN.fix-units($i);
261
- }
262
+ & > * + * {
263
+ margin-left: fn-units.fix-units($i);
264
+ }
262
265
  }
263
266
 
264
267
  // -----------------------------------------------
@@ -269,250 +272,254 @@
269
272
  // @description Sets gap between grid/flex children
270
273
  // @param {Number|String} $val - Gap value
271
274
  @mixin gap($val) {
272
- $val: FN.fix-units($val);
275
+ $val: fn-units.fix-units($val);
273
276
 
274
- gap: $val;
277
+ gap: $val;
275
278
 
276
- --flex-gap: #{$val};
279
+ --flex-gap: #{$val};
277
280
  }
278
281
 
279
282
  // @mixin gap-x
280
283
  // @description Sets horizontal gap between grid/flex children
281
284
  // @param {Number|String} $val - Gap value
282
285
  @mixin gap-x($val) {
283
- $val: FN.fix-units($val);
286
+ $val: fn-units.fix-units($val);
284
287
 
285
- column-gap: $val;
288
+ column-gap: $val;
286
289
 
287
- --flex-gap: #{$val};
290
+ --flex-gap: #{$val};
288
291
  }
289
292
 
290
293
  // @mixin gap-y
291
294
  // @description Sets vertical gap between grid/flex children
292
295
  // @param {Number|String} $val - Gap value
293
296
  @mixin gap-y($val) {
294
- row-gap: FN.fix-units($val);
295
- }
296
-
297
- @if FN.feature-enabled("spacing") {
298
- // -----------------------------------------------
299
- // AUTO MARGIN UTILITY CLASSES
300
- // -----------------------------------------------
301
-
302
- #{VAR.$parent-selector} .mx-auto {
303
- @include mx-auto;
304
- }
305
-
306
- #{VAR.$parent-selector} .ml-auto {
307
- @include ml-auto;
308
- }
309
-
310
- #{VAR.$parent-selector} .mr-auto {
311
- @include mr-auto;
312
- }
313
-
314
- // -----------------------------------------------
315
- // GAP AUTO CLASS
316
- // -----------------------------------------------
317
-
318
- #{VAR.$parent-selector} .gap-auto {
319
- gap: auto;
320
- }
297
+ $val: fn-units.fix-units($val);
321
298
 
322
- // Auto inset utility classes
323
- #{VAR.$parent-selector} .inset-auto {
324
- @include inset-auto;
325
- }
299
+ row-gap: $val;
326
300
 
327
- #{VAR.$parent-selector} .inset-x-auto {
328
- @include inset-x-auto;
329
- }
330
-
331
- #{VAR.$parent-selector} .inset-y-auto {
332
- @include inset-y-auto;
333
- }
301
+ --flex-gap: #{$val};
302
+ }
334
303
 
335
- // -----------------------------------------------
336
- // SPACING CLASSES
337
- // -----------------------------------------------
304
+ @if fn-flags.feature-enabled("spacing") {
305
+ // -----------------------------------------------
306
+ // AUTO MARGIN UTILITY CLASSES
307
+ // -----------------------------------------------
338
308
 
339
- @each $key, $value in VAR.$spacings {
340
- // Padding classes
341
- #{VAR.$parent-selector} .p-#{$key} {
342
- @include p($value);
343
- }
344
- #{VAR.$parent-selector} .px-#{$key} {
345
- @include px($value);
346
- }
347
- #{VAR.$parent-selector} .py-#{$key} {
348
- @include py($value);
349
- }
350
- #{VAR.$parent-selector} .pt-#{$key} {
351
- @include pt($value);
352
- }
353
- #{VAR.$parent-selector} .pr-#{$key} {
354
- @include pr($value);
355
- }
356
- #{VAR.$parent-selector} .pb-#{$key} {
357
- @include pb($value);
358
- }
359
- #{VAR.$parent-selector} .pl-#{$key} {
360
- @include pl($value);
309
+ #{config-flags.$parent-selector} .mx-auto {
310
+ @include mx-auto;
361
311
  }
362
312
 
363
- // Margin classes
364
- #{VAR.$parent-selector} .m-#{$key} {
365
- @include m($value);
366
- }
367
- #{VAR.$parent-selector} .mx-#{$key} {
368
- @include mx($value);
369
- }
370
- #{VAR.$parent-selector} .my-#{$key} {
371
- @include my($value);
372
- }
373
- #{VAR.$parent-selector} .mt-#{$key} {
374
- @include mt($value);
375
- }
376
- #{VAR.$parent-selector} .mr-#{$key} {
377
- @include mr($value);
378
- }
379
- #{VAR.$parent-selector} .mb-#{$key} {
380
- @include mb($value);
381
- }
382
- #{VAR.$parent-selector} .ml-#{$key} {
383
- @include ml($value);
313
+ #{config-flags.$parent-selector} .ml-auto {
314
+ @include ml-auto;
384
315
  }
385
316
 
386
- // Gap classes
387
- #{VAR.$parent-selector} .gap-#{$key} {
388
- @include gap($value);
389
- }
390
- #{VAR.$parent-selector} .gap-x-#{$key} {
391
- @include gap-x($value);
392
- }
393
- #{VAR.$parent-selector} .gap-y-#{$key} {
394
- @include gap-y($value);
317
+ #{config-flags.$parent-selector} .mr-auto {
318
+ @include mr-auto;
395
319
  }
396
320
 
397
- // Space classes
398
- #{VAR.$parent-selector} .space-x-#{$key} {
399
- @include space-x($value);
400
- }
401
- #{VAR.$parent-selector} .space-y-#{$key} {
402
- @include space-y($value);
403
- }
321
+ // -----------------------------------------------
322
+ // GAP AUTO CLASS
323
+ // -----------------------------------------------
404
324
 
405
- #{VAR.$parent-selector} .inset-#{$key} {
406
- @include inset($value);
407
- }
408
- #{VAR.$parent-selector} .inset-x-#{$key} {
409
- @include inset-x($value);
325
+ #{config-flags.$parent-selector} .gap-auto {
326
+ gap: auto;
410
327
  }
411
- #{VAR.$parent-selector} .inset-y-#{$key} {
412
- @include inset-y($value);
413
- }
414
- }
415
-
416
- // -----------------------------------------------
417
- // RESPONSIVE SPACING CLASSES
418
- // -----------------------------------------------
419
328
 
420
- @each $breakpoint, $width in VAR.$breakpoints {
421
- @media (min-width: #{$width}) {
422
- #{VAR.$parent-selector} .mx-auto\@#{$breakpoint} {
423
- @include mx-auto;
424
- }
425
- #{VAR.$parent-selector} .ml-auto\@#{$breakpoint} {
426
- @include ml-auto;
427
- }
428
- #{VAR.$parent-selector} .mr-auto\@#{$breakpoint} {
429
- @include mr-auto;
430
- }
431
- #{VAR.$parent-selector} .inset-auto\@#{$breakpoint} {
329
+ // Auto inset utility classes
330
+ #{config-flags.$parent-selector} .inset-auto {
432
331
  @include inset-auto;
433
- }
434
- #{VAR.$parent-selector} .inset-x-auto\@#{$breakpoint} {
332
+ }
333
+
334
+ #{config-flags.$parent-selector} .inset-x-auto {
435
335
  @include inset-x-auto;
436
- }
437
- #{VAR.$parent-selector} .inset-y-auto\@#{$breakpoint} {
336
+ }
337
+
338
+ #{config-flags.$parent-selector} .inset-y-auto {
438
339
  @include inset-y-auto;
439
- }
340
+ }
341
+
342
+ // -----------------------------------------------
343
+ // SPACING CLASSES
344
+ // -----------------------------------------------
440
345
 
441
- // Generate utilities from spacing map
442
- @each $key, $value in VAR.$spacings {
346
+ @each $key, $value in config-spacing.$spacings {
443
347
  // Padding classes
444
- #{VAR.$parent-selector} .p-#{$key}\@#{$breakpoint} {
445
- @include p($value);
348
+ #{config-flags.$parent-selector} .p-#{$key} {
349
+ @include p($value);
446
350
  }
447
- #{VAR.$parent-selector} .px-#{$key}\@#{$breakpoint} {
448
- @include px($value);
351
+ #{config-flags.$parent-selector} .px-#{$key} {
352
+ @include px($value);
449
353
  }
450
- #{VAR.$parent-selector} .py-#{$key}\@#{$breakpoint} {
451
- @include py($value);
354
+ #{config-flags.$parent-selector} .py-#{$key} {
355
+ @include py($value);
452
356
  }
453
- #{VAR.$parent-selector} .pt-#{$key}\@#{$breakpoint} {
454
- @include pt($value);
357
+ #{config-flags.$parent-selector} .pt-#{$key} {
358
+ @include pt($value);
455
359
  }
456
- #{VAR.$parent-selector} .pr-#{$key}\@#{$breakpoint} {
457
- @include pr($value);
360
+ #{config-flags.$parent-selector} .pr-#{$key} {
361
+ @include pr($value);
458
362
  }
459
- #{VAR.$parent-selector} .pb-#{$key}\@#{$breakpoint} {
460
- @include pb($value);
363
+ #{config-flags.$parent-selector} .pb-#{$key} {
364
+ @include pb($value);
461
365
  }
462
- #{VAR.$parent-selector} .pl-#{$key}\@#{$breakpoint} {
463
- @include pl($value);
366
+ #{config-flags.$parent-selector} .pl-#{$key} {
367
+ @include pl($value);
464
368
  }
465
369
 
466
370
  // Margin classes
467
- #{VAR.$parent-selector} .m-#{$key}\@#{$breakpoint} {
468
- @include m($value);
371
+ #{config-flags.$parent-selector} .m-#{$key} {
372
+ @include m($value);
469
373
  }
470
- #{VAR.$parent-selector} .mx-#{$key}\@#{$breakpoint} {
471
- @include mx($value);
374
+ #{config-flags.$parent-selector} .mx-#{$key} {
375
+ @include mx($value);
472
376
  }
473
- #{VAR.$parent-selector} .my-#{$key}\@#{$breakpoint} {
474
- @include my($value);
377
+ #{config-flags.$parent-selector} .my-#{$key} {
378
+ @include my($value);
475
379
  }
476
- #{VAR.$parent-selector} .mt-#{$key}\@#{$breakpoint} {
477
- @include mt($value);
380
+ #{config-flags.$parent-selector} .mt-#{$key} {
381
+ @include mt($value);
478
382
  }
479
- #{VAR.$parent-selector} .mr-#{$key}\@#{$breakpoint} {
480
- @include mr($value);
383
+ #{config-flags.$parent-selector} .mr-#{$key} {
384
+ @include mr($value);
481
385
  }
482
- #{VAR.$parent-selector} .mb-#{$key}\@#{$breakpoint} {
483
- @include mb($value);
386
+ #{config-flags.$parent-selector} .mb-#{$key} {
387
+ @include mb($value);
484
388
  }
485
- #{VAR.$parent-selector} .ml-#{$key}\@#{$breakpoint} {
486
- @include ml($value);
389
+ #{config-flags.$parent-selector} .ml-#{$key} {
390
+ @include ml($value);
487
391
  }
488
392
 
489
- #{VAR.$parent-selector} .gap-#{$key}\@#{$breakpoint} {
490
- gap: $value;
393
+ // Gap classes
394
+ #{config-flags.$parent-selector} .gap-#{$key} {
395
+ @include gap($value);
491
396
  }
492
- #{VAR.$parent-selector} .gap-x-#{$key}\@#{$breakpoint} {
493
- column-gap: $value;
397
+ #{config-flags.$parent-selector} .gap-x-#{$key} {
398
+ @include gap-x($value);
494
399
  }
495
- #{VAR.$parent-selector} .gap-y-#{$key}\@#{$breakpoint} {
496
- row-gap: $value;
400
+ #{config-flags.$parent-selector} .gap-y-#{$key} {
401
+ @include gap-y($value);
497
402
  }
498
403
 
499
404
  // Space classes
500
- #{VAR.$parent-selector} .space-x-#{$key}\@#{$breakpoint} {
501
- @include space-x($value);
405
+ #{config-flags.$parent-selector} .space-x-#{$key} {
406
+ @include space-x($value);
407
+ }
408
+ #{config-flags.$parent-selector} .space-y-#{$key} {
409
+ @include space-y($value);
502
410
  }
503
- #{VAR.$parent-selector} .space-y-#{$key}\@#{$breakpoint} {
504
- @include space-y($value);
411
+
412
+ #{config-flags.$parent-selector} .inset-#{$key} {
413
+ @include inset($value);
505
414
  }
506
- #{VAR.$parent-selector} .inset-#{$key}\@#{$breakpoint} {
507
- @include inset($value);
415
+ #{config-flags.$parent-selector} .inset-x-#{$key} {
416
+ @include inset-x($value);
508
417
  }
509
- #{VAR.$parent-selector} .inset-x-#{$key}\@#{$breakpoint} {
510
- @include inset-x($value);
418
+ #{config-flags.$parent-selector} .inset-y-#{$key} {
419
+ @include inset-y($value);
511
420
  }
512
- #{VAR.$parent-selector} .inset-y-#{$key}\@#{$breakpoint} {
513
- @include inset-y($value);
421
+ }
422
+
423
+ // -----------------------------------------------
424
+ // RESPONSIVE SPACING CLASSES
425
+ // -----------------------------------------------
426
+
427
+ @each $breakpoint, $width in config-breakpoint.$breakpoints {
428
+ @media (min-width: #{$width}) {
429
+ #{config-flags.$parent-selector} .mx-auto\@#{$breakpoint} {
430
+ @include mx-auto;
431
+ }
432
+ #{config-flags.$parent-selector} .ml-auto\@#{$breakpoint} {
433
+ @include ml-auto;
434
+ }
435
+ #{config-flags.$parent-selector} .mr-auto\@#{$breakpoint} {
436
+ @include mr-auto;
437
+ }
438
+ #{config-flags.$parent-selector} .inset-auto\@#{$breakpoint} {
439
+ @include inset-auto;
440
+ }
441
+ #{config-flags.$parent-selector} .inset-x-auto\@#{$breakpoint} {
442
+ @include inset-x-auto;
443
+ }
444
+ #{config-flags.$parent-selector} .inset-y-auto\@#{$breakpoint} {
445
+ @include inset-y-auto;
446
+ }
447
+
448
+ // Generate utilities from spacing map
449
+ @each $key, $value in config-spacing.$spacings {
450
+ // Padding classes
451
+ #{config-flags.$parent-selector} .p-#{$key}\@#{$breakpoint} {
452
+ @include p($value);
453
+ }
454
+ #{config-flags.$parent-selector} .px-#{$key}\@#{$breakpoint} {
455
+ @include px($value);
456
+ }
457
+ #{config-flags.$parent-selector} .py-#{$key}\@#{$breakpoint} {
458
+ @include py($value);
459
+ }
460
+ #{config-flags.$parent-selector} .pt-#{$key}\@#{$breakpoint} {
461
+ @include pt($value);
462
+ }
463
+ #{config-flags.$parent-selector} .pr-#{$key}\@#{$breakpoint} {
464
+ @include pr($value);
465
+ }
466
+ #{config-flags.$parent-selector} .pb-#{$key}\@#{$breakpoint} {
467
+ @include pb($value);
468
+ }
469
+ #{config-flags.$parent-selector} .pl-#{$key}\@#{$breakpoint} {
470
+ @include pl($value);
471
+ }
472
+
473
+ // Margin classes
474
+ #{config-flags.$parent-selector} .m-#{$key}\@#{$breakpoint} {
475
+ @include m($value);
476
+ }
477
+ #{config-flags.$parent-selector} .mx-#{$key}\@#{$breakpoint} {
478
+ @include mx($value);
479
+ }
480
+ #{config-flags.$parent-selector} .my-#{$key}\@#{$breakpoint} {
481
+ @include my($value);
482
+ }
483
+ #{config-flags.$parent-selector} .mt-#{$key}\@#{$breakpoint} {
484
+ @include mt($value);
485
+ }
486
+ #{config-flags.$parent-selector} .mr-#{$key}\@#{$breakpoint} {
487
+ @include mr($value);
488
+ }
489
+ #{config-flags.$parent-selector} .mb-#{$key}\@#{$breakpoint} {
490
+ @include mb($value);
491
+ }
492
+ #{config-flags.$parent-selector} .ml-#{$key}\@#{$breakpoint} {
493
+ @include ml($value);
494
+ }
495
+
496
+ #{config-flags.$parent-selector} .gap-#{$key}\@#{$breakpoint} {
497
+ gap: $value;
498
+ }
499
+ #{config-flags.$parent-selector} .gap-x-#{$key}\@#{$breakpoint} {
500
+ column-gap: $value;
501
+ }
502
+ #{config-flags.$parent-selector} .gap-y-#{$key}\@#{$breakpoint} {
503
+ row-gap: $value;
504
+ }
505
+
506
+ // Space classes
507
+ #{config-flags.$parent-selector} .space-x-#{$key}\@#{$breakpoint} {
508
+ @include space-x($value);
509
+ }
510
+ #{config-flags.$parent-selector} .space-y-#{$key}\@#{$breakpoint} {
511
+ @include space-y($value);
512
+ }
513
+ #{config-flags.$parent-selector} .inset-#{$key}\@#{$breakpoint} {
514
+ @include inset($value);
515
+ }
516
+ #{config-flags.$parent-selector} .inset-x-#{$key}\@#{$breakpoint} {
517
+ @include inset-x($value);
518
+ }
519
+ #{config-flags.$parent-selector} .inset-y-#{$key}\@#{$breakpoint} {
520
+ @include inset-y($value);
521
+ }
522
+ }
514
523
  }
515
- }
516
524
  }
517
- }
518
525
  }