@graupl/core 1.0.0-beta.15 → 1.0.0-beta.16

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 (124) hide show
  1. package/dist/css/base/button.css +1 -1
  2. package/dist/css/base/button.css.map +1 -1
  3. package/dist/css/base/form.css +1 -1
  4. package/dist/css/base/form.css.map +1 -1
  5. package/dist/css/base/link.css +1 -1
  6. package/dist/css/base/link.css.map +1 -1
  7. package/dist/css/base/table.css.map +1 -1
  8. package/dist/css/base.css +1 -1
  9. package/dist/css/base.css.map +1 -1
  10. package/dist/css/component/accordion.css +2 -2
  11. package/dist/css/component/accordion.css.map +1 -1
  12. package/dist/css/component/alert.css +1 -1
  13. package/dist/css/component/alert.css.map +1 -1
  14. package/dist/css/component/carousel.css +1 -1
  15. package/dist/css/component/carousel.css.map +1 -1
  16. package/dist/css/component.css +2 -2
  17. package/dist/css/component.css.map +1 -1
  18. package/dist/css/graupl.css +2 -2
  19. package/dist/css/graupl.css.map +1 -1
  20. package/dist/css/layout.css +2 -2
  21. package/dist/css/layout.css.map +1 -1
  22. package/dist/css/state/focus.css +1 -1
  23. package/dist/css/state/focus.css.map +1 -1
  24. package/dist/css/state.css +1 -1
  25. package/dist/css/state.css.map +1 -1
  26. package/dist/css/theme/color.css +1 -1
  27. package/dist/css/theme/color.css.map +1 -1
  28. package/dist/css/theme.css +1 -1
  29. package/dist/css/theme.css.map +1 -1
  30. package/dist/css/utilities/border.css +1 -1
  31. package/dist/css/utilities/border.css.map +1 -1
  32. package/dist/css/utilities/color.css +1 -1
  33. package/dist/css/utilities/color.css.map +1 -1
  34. package/dist/css/utilities/gradient.css +1 -1
  35. package/dist/css/utilities/gradient.css.map +1 -1
  36. package/dist/css/utilities/order.css.map +1 -1
  37. package/dist/css/utilities/typography.css +1 -1
  38. package/dist/css/utilities/typography.css.map +1 -1
  39. package/dist/css/utilities/visually-hidden.css.map +1 -1
  40. package/dist/css/utilities.css +1 -1
  41. package/dist/css/utilities.css.map +1 -1
  42. package/dist/js/accordion.js.map +1 -1
  43. package/dist/js/alert.js.map +1 -1
  44. package/dist/js/carousel.js.map +1 -1
  45. package/dist/js/component/accordion.cjs.js.map +1 -1
  46. package/dist/js/component/accordion.es.js.map +1 -1
  47. package/dist/js/component/accordion.iife.js.map +1 -1
  48. package/dist/js/component/alert.cjs.js.map +1 -1
  49. package/dist/js/component/alert.es.js.map +1 -1
  50. package/dist/js/component/alert.iife.js.map +1 -1
  51. package/dist/js/component/carousel.cjs.js.map +1 -1
  52. package/dist/js/component/carousel.es.js.map +1 -1
  53. package/dist/js/component/carousel.iife.js.map +1 -1
  54. package/dist/js/generator/accordion.cjs.js.map +1 -1
  55. package/dist/js/generator/accordion.es.js.map +1 -1
  56. package/dist/js/generator/accordion.iife.js.map +1 -1
  57. package/dist/js/generator/alert.cjs.js.map +1 -1
  58. package/dist/js/generator/alert.es.js.map +1 -1
  59. package/dist/js/generator/alert.iife.js.map +1 -1
  60. package/dist/js/generator/carousel.cjs.js.map +1 -1
  61. package/dist/js/generator/carousel.es.js.map +1 -1
  62. package/dist/js/generator/carousel.iife.js.map +1 -1
  63. package/dist/js/generator/navigation.cjs.js.map +1 -1
  64. package/dist/js/generator/navigation.es.js.map +1 -1
  65. package/dist/js/generator/navigation.iife.js.map +1 -1
  66. package/dist/js/graupl.js.map +1 -1
  67. package/dist/js/navigation.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/scss/_defaults.scss +147 -29
  70. package/src/scss/base/button/_defaults.scss +21 -5
  71. package/src/scss/base/button/_mixins.scss +1 -1
  72. package/src/scss/base/table/_defaults.scss +15 -2
  73. package/src/scss/base/table/_index.scss +4 -7
  74. package/src/scss/component/alert/_defaults.scss +22 -5
  75. package/src/scss/component/alert/_index.scss +1 -1
  76. package/src/scss/functions/_theme.scss +14 -2
  77. package/src/scss/theme/color/_defaults.scss +84 -14
  78. package/src/scss/theme/color/_index.scss +18 -3
  79. package/src/scss/theme/color/_variables.scss +63 -30
  80. package/src/scss/theme/typography/_defaults.scss +37 -7
  81. package/src/scss/utilities/_template/_defaults.scss +7 -6
  82. package/src/scss/utilities/_template/_index.scss +2 -2
  83. package/src/scss/utilities/alignment/_defaults.scss +53 -15
  84. package/src/scss/utilities/alignment/_index.scss +4 -6
  85. package/src/scss/utilities/background/_defaults.scss +117 -35
  86. package/src/scss/utilities/background/_index.scss +8 -14
  87. package/src/scss/utilities/border/_defaults.scss +77 -15
  88. package/src/scss/utilities/border/_index.scss +73 -75
  89. package/src/scss/utilities/color/_defaults.scss +55 -7
  90. package/src/scss/utilities/color/_index.scss +143 -144
  91. package/src/scss/utilities/container/_defaults.scss +21 -5
  92. package/src/scss/utilities/container/_index.scss +2 -2
  93. package/src/scss/utilities/display/_defaults.scss +18 -5
  94. package/src/scss/utilities/display/_index.scss +2 -2
  95. package/src/scss/utilities/flex/_defaults.scss +88 -25
  96. package/src/scss/utilities/flex/_index.scss +6 -10
  97. package/src/scss/utilities/gradient/_defaults.scss +64 -9
  98. package/src/scss/utilities/gradient/_index.scss +127 -129
  99. package/src/scss/utilities/height/_defaults.scss +27 -2
  100. package/src/scss/utilities/height/_index.scss +169 -163
  101. package/src/scss/utilities/inset/_defaults.scss +25 -4
  102. package/src/scss/utilities/inset/_index.scss +3 -4
  103. package/src/scss/utilities/justification/_defaults.scss +53 -15
  104. package/src/scss/utilities/justification/_index.scss +4 -6
  105. package/src/scss/utilities/list/_defaults.scss +37 -10
  106. package/src/scss/utilities/list/_index.scss +3 -4
  107. package/src/scss/utilities/order/_defaults.scss +33 -2
  108. package/src/scss/utilities/order/_index.scss +55 -67
  109. package/src/scss/utilities/position/_defaults.scss +18 -5
  110. package/src/scss/utilities/position/_index.scss +2 -2
  111. package/src/scss/utilities/ratio/_defaults.scss +15 -2
  112. package/src/scss/utilities/ratio/_index.scss +2 -2
  113. package/src/scss/utilities/spacing/_defaults.scss +18 -5
  114. package/src/scss/utilities/spacing/_index.scss +2 -2
  115. package/src/scss/utilities/typography/_defaults.scss +146 -12
  116. package/src/scss/utilities/typography/_index.scss +854 -704
  117. package/src/scss/utilities/visibility/_defaults.scss +20 -5
  118. package/src/scss/utilities/visibility/_index.scss +2 -2
  119. package/src/scss/utilities/visually-hidden/_defaults.scss +1 -0
  120. package/src/scss/utilities/visually-hidden/_index.scss +1 -0
  121. package/src/scss/utilities/width/_defaults.scss +27 -2
  122. package/src/scss/utilities/width/_index.scss +163 -163
  123. package/src/scss/utilities/z-index/_defaults.scss +17 -5
  124. package/src/scss/utilities/z-index/_index.scss +2 -2
@@ -12,6 +12,7 @@
12
12
  // Utility modifiers.
13
13
  $selector-base: root-defaults.$utility-selector-base !default;
14
14
  $use-important: root-defaults.$use-important !default;
15
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
15
16
  $screen-aware: false !default;
16
17
  $theme-aware: false !default;
17
18
  $state-aware: false !default;
@@ -27,58 +28,93 @@ $container-aware-selector-prefix: root-defaults.$utility-container-aware-selecto
27
28
 
28
29
  // Flex direction properties.
29
30
  $flex-direction-selector-prefix: "flex-" !default;
30
- $base-flex-direction-properties: (
31
+ $-flex-direction-properties: (
31
32
  row: row,
32
33
  row-reverse: row-reverse,
33
34
  col: column,
34
35
  col-reverse: column-reverse,
35
36
  );
36
37
  $custom-flex-direction-properties: () !default;
37
- $flex-direction-properties: map.merge(
38
- $base-flex-direction-properties,
39
- $custom-flex-direction-properties
40
- );
38
+ $flex-direction-properties: () !default;
39
+
40
+ // @todo remove this once $custom-flex-direction-properties is removed
41
+ @if $custom-flex-direction-properties != () {
42
+ @warn "`$custom-flex-direction-properties` is deprecated and will be removed in a future release of Graupl. Use `$flex-direction-properties` instead.";
43
+
44
+ $flex-direction-properties: map.merge(
45
+ $flex-direction-properties,
46
+ $custom-flex-direction-properties
47
+ );
48
+ }
41
49
 
42
50
  // Flex wrap properties.
43
51
  $flex-wrap-selector-prefix: "flex-" !default;
44
- $base-flex-wrap-properties: (
52
+ $-flex-wrap-properties: (
45
53
  wrap: wrap,
46
54
  wrap-reverse: wrap-reverse,
47
55
  nowrap: nowrap,
48
56
  );
49
57
  $custom-flex-wrap-properties: () !default;
50
- $flex-wrap-properties: map.merge(
51
- $base-flex-wrap-properties,
52
- $custom-flex-wrap-properties
53
- );
58
+ $flex-wrap-properties: () !default;
59
+
60
+ // @todo remove this once $custom-flex-wrap-properties is removed
61
+ @if $custom-flex-wrap-properties != () {
62
+ @warn "`$custom-flex-wrap-properties` is deprecated and will be removed in a future release of Graupl. Use `$flex-wrap-properties` instead.";
63
+
64
+ $flex-wrap-properties: map.merge(
65
+ $flex-wrap-properties,
66
+ $custom-flex-wrap-properties
67
+ );
68
+ }
54
69
 
55
70
  // Flex grow properties.
56
71
  $flex-grow-selector-prefix: "flex-" !default;
57
- $base-flex-grow-properties: (
72
+ $-flex-grow-properties: (
58
73
  grow: 1,
59
74
  no-grow: 0,
60
75
  );
61
76
  $custom-flex-grow-properties: () !default;
62
- $flex-grow-properties: map.merge(
63
- $base-flex-grow-properties,
64
- $custom-flex-grow-properties
65
- );
77
+ $flex-grow-properties: () !default;
78
+
79
+ // @todo remove this once $custom-flex-grow-properties is removed
80
+ @if $custom-flex-grow-properties != () {
81
+ @warn "`$custom-flex-grow-properties` is deprecated and will be removed in a future release of Graupl. Use `$flex-grow-properties` instead.";
82
+
83
+ $flex-grow-properties: map.merge(
84
+ $flex-grow-properties,
85
+ $custom-flex-grow-properties
86
+ );
87
+ }
88
+
89
+ @if $generate-base-utilities {
90
+ $flex-grow-properties: map.merge(
91
+ $-flex-grow-properties,
92
+ $flex-grow-properties
93
+ );
94
+ }
66
95
 
67
96
  // Flex shrink properties.
68
97
  $flex-shrink-selector-prefix: "flex-" !default;
69
- $base-flex-shrink-properties: (
98
+ $-flex-shrink-properties: (
70
99
  shrink: 1,
71
100
  no-shrink: 0,
72
101
  );
73
102
  $custom-flex-shrink-properties: () !default;
74
- $flex-shrink-properties: map.merge(
75
- $base-flex-shrink-properties,
76
- $custom-flex-shrink-properties
77
- );
103
+ $flex-shrink-properties: () !default;
104
+
105
+ // @todo remove this once $custom-flex-shrink-properties is removed
106
+ @if $custom-flex-shrink-properties != () {
107
+ @warn "`$custom-flex-shrink-properties` is deprecated and will be removed in a future release of Graupl. Use `$flex-shrink-properties` instead.";
108
+
109
+ $flex-shrink-properties: map.merge(
110
+ $flex-shrink-properties,
111
+ $custom-flex-shrink-properties
112
+ );
113
+ }
78
114
 
79
115
  // Flex basis properties.
80
116
  $flex-basis-selector-prefix: "flex-" !default;
81
- $base-flex-basis-properties: (
117
+ $-flex-basis-properties: (
82
118
  auto: auto,
83
119
  fit-content: fit-content,
84
120
  max-content: max-content,
@@ -93,7 +129,34 @@ $base-flex-basis-properties: (
93
129
  two-thirds: calc(100% / 1.5),
94
130
  );
95
131
  $custom-flex-basis-properties: () !default;
96
- $flex-basis-properties: map.merge(
97
- $base-flex-basis-properties,
98
- $custom-flex-basis-properties
99
- );
132
+ $flex-basis-properties: () !default;
133
+
134
+ // @todo remove this once $custom-flex-basis-properties is removed
135
+ @if $custom-flex-basis-properties != () {
136
+ @warn "`$custom-flex-basis-properties` is deprecated and will be removed in a future release of Graupl. Use `$flex-basis-properties` instead.";
137
+
138
+ $flex-basis-properties: map.merge(
139
+ $flex-basis-properties,
140
+ $custom-flex-basis-properties
141
+ );
142
+ }
143
+
144
+ // Merge custom properties with base properties if generating base utilities.
145
+ @if $generate-base-utilities {
146
+ $flex-direction-properties: map.merge(
147
+ $-flex-direction-properties,
148
+ $flex-direction-properties
149
+ );
150
+ $flex-wrap-properties: map.merge(
151
+ $-flex-wrap-properties,
152
+ $flex-wrap-properties
153
+ );
154
+ $flex-shrink-properties: map.merge(
155
+ $-flex-shrink-properties,
156
+ $flex-shrink-properties
157
+ );
158
+ $flex-basis-properties: map.merge(
159
+ $-flex-basis-properties,
160
+ $flex-basis-properties
161
+ );
162
+ }
@@ -33,6 +33,7 @@
33
33
  // The following variables control the generated classes:
34
34
  // - `$selector-base`: The base selector for the utility classes.
35
35
  // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
36
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
36
37
  // - `$screen-aware`: A flag to generate screen-aware utility classes.
37
38
  // - `$theme-aware`: A flag to generate theme-aware utility classes.
38
39
  // - `$state-aware`: A flag to generate state-aware utility classes.
@@ -46,24 +47,19 @@
46
47
  // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
47
48
  // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
48
49
  // - `$flex-direction-selector-prefix`: The prefix for the flex direction utility classes.
49
- // - `$base-flex-direction-properties`: The base properties and values for the flex direction utility classes.
50
- // - `$custom-flex-direction-properties`: The custom properties and values for the flex direction utility classes.
50
+ // - `$custom-flex-direction-properties`: [DEPRECATED] The custom properties and values for the flex direction utility classes.
51
51
  // - `$flex-direction-properties`: The merged properties and values for the flex direction utility classes.
52
52
  // - `$flex-wrap-selector-prefix`: The prefix for the flex wrap utility classes.
53
- // - `$base-flex-wrap-properties`: The base properties and values for the flex wrap utility classes.
54
- // - `$custom-flex-wrap-properties`: The custom properties and values for the flex wrap utility classes.
53
+ // - `$custom-flex-wrap-properties`: [DEPRECATED] The custom properties and values for the flex wrap utility classes.
55
54
  // - `$flex-wrap-properties`: The merged properties and values for the flex wrap utility classes.
56
55
  // - `$flex-grow-selector-prefix`: The prefix for the flex grow utility classes.
57
- // - `$base-flex-grow-properties`: The base properties and values for the flex grow utility classes.
58
- // - `$custom-flex-grow-properties`: The custom properties and values for the flex grow utility classes.
56
+ // - `$custom-flex-grow-properties`: [DEPRECATED] The custom properties and values for the flex grow utility classes.
59
57
  // - `$flex-grow-properties`: The merged properties and values for the flex grow utility classes.
60
58
  // - `$flex-shrink-selector-prefix`: The prefix for the flex shrink utility classes.
61
- // - `$base-flex-shrink-properties`: The base properties and values for the flex shrink utility classes.
62
- // - `$custom-flex-shrink-properties`: The custom properties and values for the flex shrink utility classes.
59
+ // - `$custom-flex-shrink-properties`: [DEPRECATED] The custom properties and values for the flex shrink utility classes.
63
60
  // - `$flex-shrink-properties`: The merged properties and values for the flex shrink utility classes.
64
61
  // - `$flex-basis-selector-prefix`: The prefix for the flex basis utility classes.
65
- // - `$base-flex-basis-properties`: The base properties and values for the flex basis utility classes.
66
- // - `$custom-flex-basis-properties`: The custom properties and values for the flex basis utility classes.
62
+ // - `$custom-flex-basis-properties`: [DEPRECATED] The custom properties and values for the flex basis utility classes.
67
63
  // - `$flex-basis-properties`: The merged properties and values for the flex basis utility classes.
68
64
  //
69
65
  // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
@@ -7,11 +7,14 @@
7
7
  // Those should be defined as custom properties in the `_variables.scss` file.
8
8
 
9
9
  @use "../../defaults" as root-defaults;
10
+ @use "../../functions/theme";
11
+ @use "../../theme/color/variables" as color;
10
12
  @use "sass:map";
11
13
 
12
14
  // Utility modifiers.
13
15
  $selector-base: root-defaults.$utility-selector-base !default;
14
16
  $use-important: root-defaults.$use-important !default;
17
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
15
18
  $screen-aware: false !default;
16
19
  $theme-aware: false !default;
17
20
  $state-aware: false !default;
@@ -32,13 +35,25 @@ $gradient-direction-selector-prefix: "" !default;
32
35
  $gradient-color-selector-prefix: "" !default;
33
36
  $gradient-color-from-selector-prefix: "from-" !default;
34
37
  $gradient-color-to-selector-prefix: "to-" !default;
35
- $base-gradient-types: (
38
+ $-gradient-types: (
36
39
  linear: linear-gradient,
37
40
  radial: radial-gradient,
38
41
  );
39
42
  $custom-gradient-types: () !default;
40
- $gradient-types: map.merge($base-gradient-types, $custom-gradient-types);
41
- $base-gradient-directions: (
43
+ $gradient-types: () !default;
44
+
45
+ // @todo remove this once $custom-gradient-types is removed
46
+ @if $custom-gradient-types != () {
47
+ @warn "`$custom-gradient-types` is deprecated and will be removed in a future release of Graupl. Use `$gradient-types` instead.";
48
+
49
+ $gradient-types: map.merge($gradient-types, $custom-gradient-types);
50
+ }
51
+
52
+ @if $generate-base-utilities {
53
+ $gradient-types: map.merge($-gradient-types, $gradient-types);
54
+ }
55
+
56
+ $-gradient-directions: (
42
57
  to-top: "to top",
43
58
  to-right: "to right",
44
59
  to-bottom: "to bottom",
@@ -59,12 +74,52 @@ $base-gradient-directions: (
59
74
  farthest-corner: farthest-corner,
60
75
  );
61
76
  $custom-gradient-directions: () !default;
62
- $gradient-directions: map.merge(
63
- $base-gradient-directions,
64
- $custom-gradient-directions
65
- );
66
- $base-gradient-colors: (
77
+ $gradient-directions: () !default;
78
+
79
+ // @todo remove this once $custom-gradient-directions is removed
80
+ @if $custom-gradient-directions != () {
81
+ @warn "`$custom-gradient-directions` is deprecated and will be removed in a future release of Graupl. Use `$gradient-directions` instead.";
82
+
83
+ $gradient-directions: map.merge(
84
+ $gradient-directions,
85
+ $custom-gradient-directions
86
+ );
87
+ }
88
+
89
+ $-gradient-colors: (
67
90
  transparent: transparent,
68
91
  );
92
+
93
+ // Add the active theme colors to the base gradient colors.
94
+ @each $color in theme.get-colors() {
95
+ $map: theme.get-color($color);
96
+
97
+ @each $shade, $value in $map {
98
+ $name: null;
99
+
100
+ // Handle _default shade vs proper shade mappings.
101
+ @if $shade == "_default" {
102
+ $name: #{$color};
103
+ } @else {
104
+ $name: #{$color}-#{$shade};
105
+ }
106
+
107
+ $-gradient-colors: map.merge($-gradient-colors, (#{$name}: #{$value}));
108
+ }
109
+ }
110
+
69
111
  $custom-gradient-colors: () !default;
70
- $gradient-colors: map.merge($base-gradient-colors, $custom-gradient-colors);
112
+ $gradient-colors: () !default;
113
+
114
+ // @todo remove this once $custom-gradient-colors is removed
115
+ @if $custom-gradient-colors != () {
116
+ @warn "`$custom-gradient-colors` is deprecated and will be removed in a future release of Graupl. Use `$gradient-colors` instead.";
117
+
118
+ $gradient-colors: map.merge($gradient-colors, $custom-gradient-colors);
119
+ }
120
+
121
+ // Merge custom properties with base properties if generating base utilities.
122
+ @if $generate-base-utilities {
123
+ $gradient-directions: map.merge($-gradient-directions, $gradient-directions);
124
+ $gradient-colors: map.merge($-gradient-colors, $gradient-colors);
125
+ }
@@ -91,6 +91,7 @@
91
91
  // The following variables control the generated classes:
92
92
  // - `$selector-base`: The base selector for the utility classes.
93
93
  // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
94
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
94
95
  // - `$screen-aware`: A flag to generate screen-aware utility classes.
95
96
  // - `$theme-aware`: A flag to generate theme-aware utility classes.
96
97
  // - `$state-aware`: A flag to generate state-aware utility classes.
@@ -109,14 +110,11 @@
109
110
  // - `$gradient-color-selector-prefix`: The prefix for the gradient color utility classes.
110
111
  // - `$gradient-color-from-selector-prefix`: The prefix for the gradient from color utility classes.
111
112
  // - `$gradient-color-to-selector-prefix`: The prefix for the gradient to color utility classes.
112
- // - `$base-gradient-types`: The base properties and values for the gradient type utility classes.
113
- // - `$custom-gradient-types`: The custom properties and values for the gradient type utility classes.
113
+ // - `$custom-gradient-types`: [DEPRECATED] The custom properties and values for the gradient type utility classes.
114
114
  // - `$gradient-types`: The combined properties and values for the gradient type utility classes.
115
- // - `$base-gradient-directions`: The base properties and values for the gradient direction utility classes.
116
- // - `$custom-gradient-directions`: The custom properties and values for the gradient direction utility classes.
115
+ // - `$custom-gradient-directions`: [DEPRECATED] The custom properties and values for the gradient direction utility classes.
117
116
  // - `$gradient-directions`: The combined properties and values for the gradient direction utility classes.
118
- // - `$base-gradient-colors`: The base properties and values for the gradient color utility classes.
119
- // - `$custom-gradient-colors`: The custom properties and values for the gradient color utility classes.
117
+ // - `$custom-gradient-colors`: [DEPRECATED] The custom properties and values for the gradient color utility classes.
120
118
  // - `$gradient-colors`: The combined properties and values for the gradient color utility classes.
121
119
  //
122
120
  // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
@@ -228,29 +226,29 @@
228
226
  }
229
227
 
230
228
  // For each theme color, create a utility class for both to and from.
231
- @each $color, $map in map.get(color.$themes, active) {
232
- @each $shade, $value in $map {
233
- // e.g. `.from-primary-500` or `.from-secondary-500`
234
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
235
-
236
- @include utility.create(
237
- $selector,
238
- --#{root-defaults.$prefix}gradient-from,
239
- $value,
240
- $important: defaults.$use-important
241
- );
242
-
243
- // e.g. `.to-primary-500` or `.to-secondary-500`
244
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
245
-
246
- @include utility.create(
247
- $selector,
248
- --#{root-defaults.$prefix}gradient-to,
249
- $value,
250
- $important: defaults.$use-important
251
- );
252
- }
253
- }
229
+ // @each $color, $map in map.get(color.$themes, active) {
230
+ // @each $shade, $value in $map {
231
+ // // e.g. `.from-primary-500` or `.from-secondary-500`
232
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
233
+
234
+ // @include utility.create(
235
+ // $selector,
236
+ // --#{root-defaults.$prefix}gradient-from,
237
+ // $value,
238
+ // $important: defaults.$use-important
239
+ // );
240
+
241
+ // // e.g. `.to-primary-500` or `.to-secondary-500`
242
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
243
+
244
+ // @include utility.create(
245
+ // $selector,
246
+ // --#{root-defaults.$prefix}gradient-to,
247
+ // $value,
248
+ // $important: defaults.$use-important
249
+ // );
250
+ // }
251
+ // }
254
252
 
255
253
  // Generate screen-aware utilities.
256
254
  @if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
@@ -334,31 +332,31 @@
334
332
  }
335
333
 
336
334
  // For each theme color, create a utility class for both to and from.
337
- @each $color, $map in map.get(color.$themes, active) {
338
- @each $shade, $value in $map {
339
- // e.g. `.md:from-primary-500` or `.lg:from-secondary-500`
340
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
341
-
342
- @include utility.create(
343
- $selector,
344
- --#{root-defaults.$prefix}gradient-from,
345
- $value,
346
- $important: defaults.$use-important,
347
- $screen: $screen-name
348
- );
349
-
350
- // e.g. `.md:to-primary-500` or `.lg:to-secondary-500`
351
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
352
-
353
- @include utility.create(
354
- $selector,
355
- --#{root-defaults.$prefix}gradient-to,
356
- $value,
357
- $important: defaults.$use-important,
358
- $screen: $screen-name
359
- );
360
- }
361
- }
335
+ // @each $color, $map in map.get(color.$themes, active) {
336
+ // @each $shade, $value in $map {
337
+ // // e.g. `.md:from-primary-500` or `.lg:from-secondary-500`
338
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
339
+
340
+ // @include utility.create(
341
+ // $selector,
342
+ // --#{root-defaults.$prefix}gradient-from,
343
+ // $value,
344
+ // $important: defaults.$use-important,
345
+ // $screen: $screen-name
346
+ // );
347
+
348
+ // // e.g. `.md:to-primary-500` or `.lg:to-secondary-500`
349
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
350
+
351
+ // @include utility.create(
352
+ // $selector,
353
+ // --#{root-defaults.$prefix}gradient-to,
354
+ // $value,
355
+ // $important: defaults.$use-important,
356
+ // $screen: $screen-name
357
+ // );
358
+ // }
359
+ // }
362
360
  }
363
361
  }
364
362
 
@@ -445,31 +443,31 @@
445
443
  }
446
444
 
447
445
  // For each theme color, create a utility class for both to and from.
448
- @each $color, $map in map.get(color.$themes, active) {
449
- @each $shade, $value in $map {
450
- // e.g. `.dark:from-primary-500` or `.light:from-secondary-500`
451
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
452
-
453
- @include utility.create(
454
- $selector,
455
- --#{root-defaults.$prefix}gradient-from,
456
- $value,
457
- $important: defaults.$use-important,
458
- $theme: $theme-name
459
- );
460
-
461
- // e.g. `.dark:to-primary-500` or `.light:to-secondary-500`
462
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
463
-
464
- @include utility.create(
465
- $selector,
466
- --#{root-defaults.$prefix}gradient-to,
467
- $value,
468
- $important: defaults.$use-important,
469
- $theme: $theme-name
470
- );
471
- }
472
- }
446
+ // @each $color, $map in map.get(color.$themes, active) {
447
+ // @each $shade, $value in $map {
448
+ // // e.g. `.dark:from-primary-500` or `.light:from-secondary-500`
449
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
450
+
451
+ // @include utility.create(
452
+ // $selector,
453
+ // --#{root-defaults.$prefix}gradient-from,
454
+ // $value,
455
+ // $important: defaults.$use-important,
456
+ // $theme: $theme-name
457
+ // );
458
+
459
+ // // e.g. `.dark:to-primary-500` or `.light:to-secondary-500`
460
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
461
+
462
+ // @include utility.create(
463
+ // $selector,
464
+ // --#{root-defaults.$prefix}gradient-to,
465
+ // $value,
466
+ // $important: defaults.$use-important,
467
+ // $theme: $theme-name
468
+ // );
469
+ // }
470
+ // }
473
471
  }
474
472
  }
475
473
  }
@@ -556,31 +554,31 @@
556
554
  }
557
555
 
558
556
  // For each theme color, create a utility class for both to and from.
559
- @each $color, $map in map.get(color.$themes, active) {
560
- @each $shade, $value in $map {
561
- // e.g. `.hover:from-primary-500` or `.focus:from-secondary-500`
562
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
563
-
564
- @include utility.create(
565
- $selector,
566
- --#{root-defaults.$prefix}gradient-from,
567
- $value,
568
- $important: defaults.$use-important,
569
- $state: $state-name
570
- );
571
-
572
- // e.g. `.hover:to-primary-500` or `.focus:to-secondary-500`
573
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
574
-
575
- @include utility.create(
576
- $selector,
577
- --#{root-defaults.$prefix}gradient-to,
578
- $value,
579
- $important: defaults.$use-important,
580
- $state: $state-name
581
- );
582
- }
583
- }
557
+ // @each $color, $map in map.get(color.$themes, active) {
558
+ // @each $shade, $value in $map {
559
+ // // e.g. `.hover:from-primary-500` or `.focus:from-secondary-500`
560
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
561
+
562
+ // @include utility.create(
563
+ // $selector,
564
+ // --#{root-defaults.$prefix}gradient-from,
565
+ // $value,
566
+ // $important: defaults.$use-important,
567
+ // $state: $state-name
568
+ // );
569
+
570
+ // // e.g. `.hover:to-primary-500` or `.focus:to-secondary-500`
571
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
572
+
573
+ // @include utility.create(
574
+ // $selector,
575
+ // --#{root-defaults.$prefix}gradient-to,
576
+ // $value,
577
+ // $important: defaults.$use-important,
578
+ // $state: $state-name
579
+ // );
580
+ // }
581
+ // }
584
582
  }
585
583
  }
586
584
 
@@ -666,31 +664,31 @@
666
664
  }
667
665
 
668
666
  // For each theme color, create a utility class for both to and from.
669
- @each $color, $map in map.get(color.$themes, active) {
670
- @each $shade, $value in $map {
671
- // e.g. `.md:from-primary-500` or `.lg:from-secondary-500`
672
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
673
-
674
- @include utility.create(
675
- $selector,
676
- --#{root-defaults.$prefix}gradient-from,
677
- $value,
678
- $important: defaults.$use-important,
679
- $container: $container-name
680
- );
681
-
682
- // e.g. `.md:to-primary-500` or `.lg:to-secondary-500`
683
- $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
684
-
685
- @include utility.create(
686
- $selector,
687
- --#{root-defaults.$prefix}gradient-to,
688
- $value,
689
- $important: defaults.$use-important,
690
- $container: $container-name
691
- );
692
- }
693
- }
667
+ // @each $color, $map in map.get(color.$themes, active) {
668
+ // @each $shade, $value in $map {
669
+ // // e.g. `.md:from-primary-500` or `.lg:from-secondary-500`
670
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-from-selector-prefix}#{$color}-#{$shade};
671
+
672
+ // @include utility.create(
673
+ // $selector,
674
+ // --#{root-defaults.$prefix}gradient-from,
675
+ // $value,
676
+ // $important: defaults.$use-important,
677
+ // $container: $container-name
678
+ // );
679
+
680
+ // // e.g. `.md:to-primary-500` or `.lg:to-secondary-500`
681
+ // $selector: #{$selector-prefix}#{defaults.$gradient-color-selector-prefix}#{defaults.$gradient-color-to-selector-prefix}#{$color}-#{$shade};
682
+
683
+ // @include utility.create(
684
+ // $selector,
685
+ // --#{root-defaults.$prefix}gradient-to,
686
+ // $value,
687
+ // $important: defaults.$use-important,
688
+ // $container: $container-name
689
+ // );
690
+ // }
691
+ // }
694
692
  }
695
693
  }
696
694
  }
@@ -7,11 +7,13 @@
7
7
  // Those should be defined as custom properties in the `_variables.scss` file.
8
8
 
9
9
  @use "../../defaults" as root-defaults;
10
+ @use "../../variables" as root-variables;
10
11
  @use "sass:map";
11
12
 
12
13
  // Utility modifiers.
13
14
  $selector-base: root-defaults.$utility-selector-base !default;
14
15
  $use-important: root-defaults.$use-important !default;
16
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
15
17
  $screen-aware: false !default;
16
18
  $theme-aware: false !default;
17
19
  $state-aware: false !default;
@@ -31,7 +33,7 @@ $max-height-selector-prefix: "max-h-" !default;
31
33
  $min-height-selector-prefix: "min-h-" !default;
32
34
 
33
35
  // Height values.
34
- $base-height-values: (
36
+ $-height-values: (
35
37
  auto: auto,
36
38
  fit-content: fit-content,
37
39
  max-content: max-content,
@@ -50,5 +52,28 @@ $base-height-values: (
50
52
  three-quarters-screen: 75vh,
51
53
  full-screen: 100vh,
52
54
  );
55
+
56
+ // Add the spacer values to the base height values.
57
+ @each $spacer, $value in root-variables.$spacers {
58
+ $-height-values: map.merge(
59
+ $-height-values,
60
+ (
61
+ $spacer: $value,
62
+ )
63
+ );
64
+ }
65
+
53
66
  $custom-height-values: () !default;
54
- $height-values: map.merge($base-height-values, $custom-height-values);
67
+ $height-values: () !default;
68
+
69
+ // @todo remove this once $custom-height-values is removed
70
+ @if $custom-height-values != () {
71
+ @warn "`$custom-height-values` is deprecated and will be removed in a future release of Graupl. Use `$height-values` instead.";
72
+
73
+ $height-values: map.merge($height-values, $custom-height-values);
74
+ }
75
+
76
+ // Merge custom properties with base properties if generating base utilities.
77
+ @if $generate-base-utilities {
78
+ $height-values: map.merge($-height-values, $height-values);
79
+ }