@nuvoui/core 1.3.5 → 1.4.1

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 (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/dist/nuvoui.css +878 -646
  4. package/dist/nuvoui.css.map +1 -1
  5. package/dist/nuvoui.min.css +23 -1
  6. package/dist/nuvoui.min.css.map +1 -1
  7. package/package.json +1 -1
  8. package/src/styles/base/_base.scss +148 -147
  9. package/src/styles/base/_reset.scss +41 -49
  10. package/src/styles/build.scss +25 -1
  11. package/src/styles/components/_tooltips.scss +271 -0
  12. package/src/styles/config/_borders.scss +15 -0
  13. package/src/styles/config/_breakpoints.scss +11 -0
  14. package/src/styles/config/_colors.scss +192 -0
  15. package/src/styles/config/_constants.scss +1 -0
  16. package/src/styles/config/_container-queries.scss +1 -0
  17. package/src/styles/config/_feature-flags.scss +33 -0
  18. package/src/styles/config/_layouts.scss +13 -0
  19. package/src/styles/config/_shadows.scss +9 -0
  20. package/src/styles/config/_spacing.scss +41 -0
  21. package/src/styles/config/_theme-validation.scss +59 -0
  22. package/src/styles/config/_typography.scss +45 -0
  23. package/src/styles/functions/_breakpoints.scss +15 -0
  24. package/src/styles/functions/_colors.scss +280 -0
  25. package/src/styles/functions/_css-vars.scss +33 -0
  26. package/src/styles/functions/_feature-flags.scss +20 -0
  27. package/src/styles/functions/_math.scss +72 -0
  28. package/src/styles/functions/_strings.scss +68 -0
  29. package/src/styles/functions/_types.scss +104 -0
  30. package/src/styles/functions/_units.scss +83 -0
  31. package/src/styles/index.scss +26 -5
  32. package/src/styles/layouts/_container.scss +28 -27
  33. package/src/styles/layouts/_flex.scss +343 -337
  34. package/src/styles/layouts/_grid.scss +131 -128
  35. package/src/styles/mixins-map.json +486 -479
  36. package/src/styles/mixins-map.scss +1 -1
  37. package/src/styles/themes/_theme.scss +230 -211
  38. package/src/styles/tools/_accessibility.scss +50 -0
  39. package/src/styles/tools/_container-queries.scss +98 -0
  40. package/src/styles/tools/_feature-support.scss +46 -0
  41. package/src/styles/tools/_media-queries.scss +70 -0
  42. package/src/styles/tools/_modern-layout.scss +49 -0
  43. package/src/styles/utilities/_alignment.scss +35 -34
  44. package/src/styles/utilities/_animations.scss +312 -311
  45. package/src/styles/utilities/_backdrop-filters.scss +194 -193
  46. package/src/styles/utilities/_borders.scss +243 -237
  47. package/src/styles/utilities/_colors.scss +16 -136
  48. package/src/styles/utilities/_cursor.scss +10 -10
  49. package/src/styles/utilities/_display.scss +192 -191
  50. package/src/styles/utilities/_helpers.scss +106 -106
  51. package/src/styles/utilities/_opacity.scss +27 -25
  52. package/src/styles/utilities/_position.scss +124 -121
  53. package/src/styles/utilities/_shadows.scss +171 -169
  54. package/src/styles/utilities/_sizing.scss +197 -194
  55. package/src/styles/utilities/_spacing.scss +230 -227
  56. package/src/styles/utilities/_transforms.scss +235 -234
  57. package/src/styles/utilities/_transitions.scss +136 -135
  58. package/src/styles/utilities/_typography.scss +254 -239
  59. package/src/styles/utilities/_z-index.scss +69 -68
  60. package/src/styles/abstracts/_config.scss +0 -254
  61. package/src/styles/abstracts/_functions.scss +0 -626
  62. package/src/styles/themes/refactored_borders.ipynb +0 -37
  63. package/src/styles/utilities/_container-queries.scss +0 -95
  64. package/src/styles/utilities/_media-queries.scss +0 -189
  65. 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,254 +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
- $val: FN.fix-units($val);
297
+ $val: fn-units.fix-units($val);
295
298
 
296
- row-gap: $val;
299
+ row-gap: $val;
297
300
 
298
- --flex-gap: #{$val};
301
+ --flex-gap: #{$val};
299
302
  }
300
303
 
301
- @if FN.feature-enabled("spacing") {
302
- // -----------------------------------------------
303
- // AUTO MARGIN UTILITY CLASSES
304
- // -----------------------------------------------
305
-
306
- #{VAR.$parent-selector} .mx-auto {
307
- @include mx-auto;
308
- }
309
-
310
- #{VAR.$parent-selector} .ml-auto {
311
- @include ml-auto;
312
- }
313
-
314
- #{VAR.$parent-selector} .mr-auto {
315
- @include mr-auto;
316
- }
317
-
318
- // -----------------------------------------------
319
- // GAP AUTO CLASS
320
- // -----------------------------------------------
321
-
322
- #{VAR.$parent-selector} .gap-auto {
323
- gap: auto;
324
- }
325
-
326
- // Auto inset utility classes
327
- #{VAR.$parent-selector} .inset-auto {
328
- @include inset-auto;
329
- }
330
-
331
- #{VAR.$parent-selector} .inset-x-auto {
332
- @include inset-x-auto;
333
- }
304
+ @if fn-flags.feature-enabled("spacing") {
305
+ // -----------------------------------------------
306
+ // AUTO MARGIN UTILITY CLASSES
307
+ // -----------------------------------------------
334
308
 
335
- #{VAR.$parent-selector} .inset-y-auto {
336
- @include inset-y-auto;
337
- }
338
-
339
- // -----------------------------------------------
340
- // SPACING CLASSES
341
- // -----------------------------------------------
342
-
343
- @each $key, $value in VAR.$spacings {
344
- // Padding classes
345
- #{VAR.$parent-selector} .p-#{$key} {
346
- @include p($value);
347
- }
348
- #{VAR.$parent-selector} .px-#{$key} {
349
- @include px($value);
350
- }
351
- #{VAR.$parent-selector} .py-#{$key} {
352
- @include py($value);
353
- }
354
- #{VAR.$parent-selector} .pt-#{$key} {
355
- @include pt($value);
356
- }
357
- #{VAR.$parent-selector} .pr-#{$key} {
358
- @include pr($value);
359
- }
360
- #{VAR.$parent-selector} .pb-#{$key} {
361
- @include pb($value);
362
- }
363
- #{VAR.$parent-selector} .pl-#{$key} {
364
- @include pl($value);
309
+ #{config-flags.$parent-selector} .mx-auto {
310
+ @include mx-auto;
365
311
  }
366
312
 
367
- // Margin classes
368
- #{VAR.$parent-selector} .m-#{$key} {
369
- @include m($value);
370
- }
371
- #{VAR.$parent-selector} .mx-#{$key} {
372
- @include mx($value);
373
- }
374
- #{VAR.$parent-selector} .my-#{$key} {
375
- @include my($value);
376
- }
377
- #{VAR.$parent-selector} .mt-#{$key} {
378
- @include mt($value);
379
- }
380
- #{VAR.$parent-selector} .mr-#{$key} {
381
- @include mr($value);
382
- }
383
- #{VAR.$parent-selector} .mb-#{$key} {
384
- @include mb($value);
385
- }
386
- #{VAR.$parent-selector} .ml-#{$key} {
387
- @include ml($value);
313
+ #{config-flags.$parent-selector} .ml-auto {
314
+ @include ml-auto;
388
315
  }
389
316
 
390
- // Gap classes
391
- #{VAR.$parent-selector} .gap-#{$key} {
392
- @include gap($value);
393
- }
394
- #{VAR.$parent-selector} .gap-x-#{$key} {
395
- @include gap-x($value);
396
- }
397
- #{VAR.$parent-selector} .gap-y-#{$key} {
398
- @include gap-y($value);
317
+ #{config-flags.$parent-selector} .mr-auto {
318
+ @include mr-auto;
399
319
  }
400
320
 
401
- // Space classes
402
- #{VAR.$parent-selector} .space-x-#{$key} {
403
- @include space-x($value);
404
- }
405
- #{VAR.$parent-selector} .space-y-#{$key} {
406
- @include space-y($value);
407
- }
321
+ // -----------------------------------------------
322
+ // GAP AUTO CLASS
323
+ // -----------------------------------------------
408
324
 
409
- #{VAR.$parent-selector} .inset-#{$key} {
410
- @include inset($value);
411
- }
412
- #{VAR.$parent-selector} .inset-x-#{$key} {
413
- @include inset-x($value);
325
+ #{config-flags.$parent-selector} .gap-auto {
326
+ gap: auto;
414
327
  }
415
- #{VAR.$parent-selector} .inset-y-#{$key} {
416
- @include inset-y($value);
417
- }
418
- }
419
-
420
- // -----------------------------------------------
421
- // RESPONSIVE SPACING CLASSES
422
- // -----------------------------------------------
423
328
 
424
- @each $breakpoint, $width in VAR.$breakpoints {
425
- @media (min-width: #{$width}) {
426
- #{VAR.$parent-selector} .mx-auto\@#{$breakpoint} {
427
- @include mx-auto;
428
- }
429
- #{VAR.$parent-selector} .ml-auto\@#{$breakpoint} {
430
- @include ml-auto;
431
- }
432
- #{VAR.$parent-selector} .mr-auto\@#{$breakpoint} {
433
- @include mr-auto;
434
- }
435
- #{VAR.$parent-selector} .inset-auto\@#{$breakpoint} {
329
+ // Auto inset utility classes
330
+ #{config-flags.$parent-selector} .inset-auto {
436
331
  @include inset-auto;
437
- }
438
- #{VAR.$parent-selector} .inset-x-auto\@#{$breakpoint} {
332
+ }
333
+
334
+ #{config-flags.$parent-selector} .inset-x-auto {
439
335
  @include inset-x-auto;
440
- }
441
- #{VAR.$parent-selector} .inset-y-auto\@#{$breakpoint} {
336
+ }
337
+
338
+ #{config-flags.$parent-selector} .inset-y-auto {
442
339
  @include inset-y-auto;
443
- }
340
+ }
341
+
342
+ // -----------------------------------------------
343
+ // SPACING CLASSES
344
+ // -----------------------------------------------
444
345
 
445
- // Generate utilities from spacing map
446
- @each $key, $value in VAR.$spacings {
346
+ @each $key, $value in config-spacing.$spacings {
447
347
  // Padding classes
448
- #{VAR.$parent-selector} .p-#{$key}\@#{$breakpoint} {
449
- @include p($value);
348
+ #{config-flags.$parent-selector} .p-#{$key} {
349
+ @include p($value);
450
350
  }
451
- #{VAR.$parent-selector} .px-#{$key}\@#{$breakpoint} {
452
- @include px($value);
351
+ #{config-flags.$parent-selector} .px-#{$key} {
352
+ @include px($value);
453
353
  }
454
- #{VAR.$parent-selector} .py-#{$key}\@#{$breakpoint} {
455
- @include py($value);
354
+ #{config-flags.$parent-selector} .py-#{$key} {
355
+ @include py($value);
456
356
  }
457
- #{VAR.$parent-selector} .pt-#{$key}\@#{$breakpoint} {
458
- @include pt($value);
357
+ #{config-flags.$parent-selector} .pt-#{$key} {
358
+ @include pt($value);
459
359
  }
460
- #{VAR.$parent-selector} .pr-#{$key}\@#{$breakpoint} {
461
- @include pr($value);
360
+ #{config-flags.$parent-selector} .pr-#{$key} {
361
+ @include pr($value);
462
362
  }
463
- #{VAR.$parent-selector} .pb-#{$key}\@#{$breakpoint} {
464
- @include pb($value);
363
+ #{config-flags.$parent-selector} .pb-#{$key} {
364
+ @include pb($value);
465
365
  }
466
- #{VAR.$parent-selector} .pl-#{$key}\@#{$breakpoint} {
467
- @include pl($value);
366
+ #{config-flags.$parent-selector} .pl-#{$key} {
367
+ @include pl($value);
468
368
  }
469
369
 
470
370
  // Margin classes
471
- #{VAR.$parent-selector} .m-#{$key}\@#{$breakpoint} {
472
- @include m($value);
371
+ #{config-flags.$parent-selector} .m-#{$key} {
372
+ @include m($value);
473
373
  }
474
- #{VAR.$parent-selector} .mx-#{$key}\@#{$breakpoint} {
475
- @include mx($value);
374
+ #{config-flags.$parent-selector} .mx-#{$key} {
375
+ @include mx($value);
476
376
  }
477
- #{VAR.$parent-selector} .my-#{$key}\@#{$breakpoint} {
478
- @include my($value);
377
+ #{config-flags.$parent-selector} .my-#{$key} {
378
+ @include my($value);
479
379
  }
480
- #{VAR.$parent-selector} .mt-#{$key}\@#{$breakpoint} {
481
- @include mt($value);
380
+ #{config-flags.$parent-selector} .mt-#{$key} {
381
+ @include mt($value);
482
382
  }
483
- #{VAR.$parent-selector} .mr-#{$key}\@#{$breakpoint} {
484
- @include mr($value);
383
+ #{config-flags.$parent-selector} .mr-#{$key} {
384
+ @include mr($value);
485
385
  }
486
- #{VAR.$parent-selector} .mb-#{$key}\@#{$breakpoint} {
487
- @include mb($value);
386
+ #{config-flags.$parent-selector} .mb-#{$key} {
387
+ @include mb($value);
488
388
  }
489
- #{VAR.$parent-selector} .ml-#{$key}\@#{$breakpoint} {
490
- @include ml($value);
389
+ #{config-flags.$parent-selector} .ml-#{$key} {
390
+ @include ml($value);
491
391
  }
492
392
 
493
- #{VAR.$parent-selector} .gap-#{$key}\@#{$breakpoint} {
494
- gap: $value;
393
+ // Gap classes
394
+ #{config-flags.$parent-selector} .gap-#{$key} {
395
+ @include gap($value);
495
396
  }
496
- #{VAR.$parent-selector} .gap-x-#{$key}\@#{$breakpoint} {
497
- column-gap: $value;
397
+ #{config-flags.$parent-selector} .gap-x-#{$key} {
398
+ @include gap-x($value);
498
399
  }
499
- #{VAR.$parent-selector} .gap-y-#{$key}\@#{$breakpoint} {
500
- row-gap: $value;
400
+ #{config-flags.$parent-selector} .gap-y-#{$key} {
401
+ @include gap-y($value);
501
402
  }
502
403
 
503
404
  // Space classes
504
- #{VAR.$parent-selector} .space-x-#{$key}\@#{$breakpoint} {
505
- @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);
506
410
  }
507
- #{VAR.$parent-selector} .space-y-#{$key}\@#{$breakpoint} {
508
- @include space-y($value);
411
+
412
+ #{config-flags.$parent-selector} .inset-#{$key} {
413
+ @include inset($value);
509
414
  }
510
- #{VAR.$parent-selector} .inset-#{$key}\@#{$breakpoint} {
511
- @include inset($value);
415
+ #{config-flags.$parent-selector} .inset-x-#{$key} {
416
+ @include inset-x($value);
512
417
  }
513
- #{VAR.$parent-selector} .inset-x-#{$key}\@#{$breakpoint} {
514
- @include inset-x($value);
418
+ #{config-flags.$parent-selector} .inset-y-#{$key} {
419
+ @include inset-y($value);
515
420
  }
516
- #{VAR.$parent-selector} .inset-y-#{$key}\@#{$breakpoint} {
517
- @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
+ }
518
523
  }
519
- }
520
524
  }
521
- }
522
525
  }