@graupl/graupl 1.0.0-alpha.0 → 1.0.0-alpha.10

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 (206) hide show
  1. package/.stylelintignore +9 -0
  2. package/CHANGELOG.md +178 -0
  3. package/dist/base/form.css +2 -0
  4. package/dist/base/form.css.map +1 -0
  5. package/dist/base/link.css +2 -0
  6. package/dist/base/link.css.map +1 -0
  7. package/dist/base/table.css +2 -0
  8. package/dist/base/table.css.map +1 -0
  9. package/dist/base.css +2 -0
  10. package/dist/base.css.map +1 -0
  11. package/dist/component/button.css +2 -0
  12. package/dist/component/button.css.map +1 -0
  13. package/dist/component/input-group.css +2 -0
  14. package/dist/component/input-group.css.map +1 -0
  15. package/dist/component/table.css +2 -0
  16. package/dist/component/table.css.map +1 -0
  17. package/dist/component.css +2 -0
  18. package/dist/component.css.map +1 -0
  19. package/dist/graupl.css +1 -170
  20. package/dist/graupl.css.map +1 -1
  21. package/dist/layout/columns.css +2 -0
  22. package/dist/layout/columns.css.map +1 -0
  23. package/dist/layout/container.css +2 -0
  24. package/dist/layout/container.css.map +1 -0
  25. package/dist/layout.css +2 -0
  26. package/dist/layout.css.map +1 -0
  27. package/dist/state/focus.css +2 -0
  28. package/dist/state/focus.css.map +1 -0
  29. package/dist/state.css +2 -0
  30. package/dist/state.css.map +1 -0
  31. package/dist/theme/color.css +2 -0
  32. package/dist/theme/color.css.map +1 -0
  33. package/dist/theme/typography.css +2 -0
  34. package/dist/theme/typography.css.map +1 -0
  35. package/dist/theme.css +2 -0
  36. package/dist/theme.css.map +1 -0
  37. package/dist/utilities/alignment.css +2 -0
  38. package/dist/utilities/alignment.css.map +1 -0
  39. package/dist/utilities/color.css +2 -0
  40. package/dist/utilities/color.css.map +1 -0
  41. package/dist/utilities/display.css +2 -0
  42. package/dist/utilities/display.css.map +1 -0
  43. package/dist/utilities/flex.css +2 -0
  44. package/dist/utilities/flex.css.map +1 -0
  45. package/dist/utilities/inset.css +2 -0
  46. package/dist/utilities/inset.css.map +1 -0
  47. package/dist/utilities/justification.css +2 -0
  48. package/dist/utilities/justification.css.map +1 -0
  49. package/dist/utilities/list.css +2 -0
  50. package/dist/utilities/list.css.map +1 -0
  51. package/dist/utilities/postion.css +2 -0
  52. package/dist/utilities/postion.css.map +1 -0
  53. package/dist/utilities/spacing.css +2 -0
  54. package/dist/utilities/spacing.css.map +1 -0
  55. package/dist/utilities/typography.css +2 -0
  56. package/dist/utilities/typography.css.map +1 -0
  57. package/dist/utilities/visibility.css +2 -0
  58. package/dist/utilities/visibility.css.map +1 -0
  59. package/dist/utilities.css +2 -0
  60. package/dist/utilities.css.map +1 -0
  61. package/docs/.vitepress/config.js +41 -1
  62. package/docs/.vitepress/theme/custom.scss +29 -29
  63. package/docs/compiling-graupl.md +56 -0
  64. package/docs/introduction.md +5 -0
  65. package/index.html +337 -4
  66. package/package.json +16 -4
  67. package/postcss.config.cjs +1 -1
  68. package/scss/base/form.scss +3 -0
  69. package/scss/base/link.scss +3 -0
  70. package/scss/base/table.scss +3 -0
  71. package/scss/base.scss +3 -0
  72. package/scss/component/button.scss +3 -0
  73. package/scss/component/input-group.scss +3 -0
  74. package/scss/component/table.scss +3 -0
  75. package/scss/component.scss +3 -0
  76. package/scss/graupl.scss +1 -5
  77. package/scss/layout/columns.scss +3 -0
  78. package/scss/layout/container.scss +3 -0
  79. package/scss/layout.scss +3 -0
  80. package/scss/state/focus.scss +3 -0
  81. package/scss/state.scss +3 -0
  82. package/scss/theme/color.scss +3 -0
  83. package/scss/theme/typography.scss +3 -0
  84. package/scss/theme.scss +3 -0
  85. package/scss/utilities/alignment.scss +3 -0
  86. package/scss/utilities/color.scss +3 -0
  87. package/scss/utilities/display.scss +3 -0
  88. package/scss/utilities/flex.scss +3 -0
  89. package/scss/utilities/inset.scss +3 -0
  90. package/scss/utilities/justification.scss +3 -0
  91. package/scss/utilities/list.scss +3 -0
  92. package/scss/utilities/postion.scss +3 -0
  93. package/scss/utilities/spacing.scss +3 -0
  94. package/scss/utilities/typography.scss +3 -0
  95. package/scss/utilities/visibility.scss +3 -0
  96. package/scss/utilities.scss +3 -0
  97. package/{scss → src/scss}/_defaults.scss +40 -13
  98. package/src/scss/_index.scss +14 -0
  99. package/src/scss/_init.scss +3 -0
  100. package/{scss → src/scss}/_variables.scss +14 -24
  101. package/src/scss/base/_index.scss +5 -0
  102. package/{scss/component/button → src/scss/base/form}/_defaults.scss +1 -4
  103. package/src/scss/base/form/_index.scss +90 -0
  104. package/src/scss/base/form/_variables.scss +145 -0
  105. package/{scss → src/scss}/base/link/_defaults.scss +0 -2
  106. package/src/scss/base/link/_variables.scss +32 -0
  107. package/src/scss/base/table/_defaults.scss +8 -0
  108. package/src/scss/base/table/_index.scss +27 -0
  109. package/src/scss/base/table/_variables.scss +65 -0
  110. package/{scss → src/scss}/component/_index.scss +2 -0
  111. package/src/scss/component/button/_defaults.scss +39 -0
  112. package/{scss → src/scss}/component/button/_index.scss +44 -13
  113. package/src/scss/component/button/_variables.scss +132 -0
  114. package/src/scss/component/input-group/_defaults.scss +23 -0
  115. package/src/scss/component/input-group/_index.scss +45 -0
  116. package/src/scss/component/input-group/_variables.scss +63 -0
  117. package/src/scss/component/table/_defaults.scss +30 -0
  118. package/src/scss/component/table/_index.scss +77 -0
  119. package/src/scss/component/table/_variables.scss +64 -0
  120. package/src/scss/functions/_important.scss +11 -0
  121. package/src/scss/functions/_theme.scss +18 -0
  122. package/{scss → src/scss}/layout/columns/_defaults.scss +2 -4
  123. package/src/scss/layout/columns/_index.scss +36 -0
  124. package/src/scss/layout/columns/_variables.scss +47 -0
  125. package/{scss → src/scss}/layout/container/_defaults.scss +0 -2
  126. package/src/scss/layout/container/_index.scss +36 -0
  127. package/src/scss/layout/container/_variables.scss +47 -0
  128. package/{scss → src/scss}/mixins/_layer.scss +2 -2
  129. package/{scss → src/scss}/mixins/_media-queries.scss +11 -0
  130. package/{scss → src/scss}/state/focus/_defaults.scss +0 -2
  131. package/src/scss/state/focus/_variables.scss +40 -0
  132. package/src/scss/theme/_index.scss +4 -0
  133. package/src/scss/theme/color/_defaults.scss +61 -0
  134. package/src/scss/theme/color/_index.scss +42 -0
  135. package/src/scss/theme/color/_variables.scss +121 -0
  136. package/src/scss/theme/typography/_defaults.scss +52 -0
  137. package/src/scss/theme/typography/_index.scss +111 -0
  138. package/src/scss/theme/typography/_variables.scss +227 -0
  139. package/src/scss/utilities/_index.scss +13 -0
  140. package/src/scss/utilities/alignment/_defaults.scss +57 -0
  141. package/src/scss/utilities/alignment/_index.scss +29 -0
  142. package/src/scss/utilities/alignment/_variables.scss +3 -0
  143. package/src/scss/utilities/color/_defaults.scss +30 -0
  144. package/src/scss/utilities/color/_index.scss +38 -0
  145. package/src/scss/utilities/color/_variables.scss +3 -0
  146. package/src/scss/utilities/display/_defaults.scss +27 -0
  147. package/src/scss/utilities/display/_index.scss +15 -0
  148. package/src/scss/utilities/display/_variables.scss +3 -0
  149. package/src/scss/utilities/flex/_defaults.scss +58 -0
  150. package/src/scss/utilities/flex/_index.scss +36 -0
  151. package/src/scss/utilities/flex/_variables.scss +3 -0
  152. package/src/scss/utilities/inset/_defaults.scss +36 -0
  153. package/src/scss/utilities/inset/_index.scss +19 -0
  154. package/src/scss/utilities/inset/_variables.scss +3 -0
  155. package/src/scss/utilities/justification/_defaults.scss +54 -0
  156. package/src/scss/utilities/justification/_index.scss +29 -0
  157. package/src/scss/utilities/justification/_variables.scss +3 -0
  158. package/src/scss/utilities/list/_defaults.scss +34 -0
  159. package/src/scss/utilities/list/_index.scss +22 -0
  160. package/src/scss/utilities/list/_variables.scss +3 -0
  161. package/src/scss/utilities/position/_defaults.scss +21 -0
  162. package/src/scss/utilities/position/_index.scss +15 -0
  163. package/src/scss/utilities/position/_variables.scss +3 -0
  164. package/src/scss/utilities/spacing/_defaults.scss +44 -0
  165. package/src/scss/utilities/spacing/_index.scss +64 -0
  166. package/src/scss/utilities/spacing/_variables.scss +3 -0
  167. package/src/scss/utilities/typography/_defaults.scss +25 -0
  168. package/src/scss/utilities/typography/_index.scss +95 -0
  169. package/src/scss/utilities/typography/_variables.scss +3 -0
  170. package/src/scss/utilities/visibility/_defaults.scss +20 -0
  171. package/src/scss/utilities/visibility/_index.scss +15 -0
  172. package/src/scss/utilities/visibility/_variables.scss +3 -0
  173. package/stylelint.config.js +2 -0
  174. package/dist/base/link/link.css +0 -26
  175. package/dist/base/link/link.css.map +0 -1
  176. package/dist/component/button/button.css +0 -55
  177. package/dist/component/button/button.css.map +0 -1
  178. package/dist/layout/columns/columns.css +0 -26
  179. package/dist/layout/columns/columns.css.map +0 -1
  180. package/dist/layout/container/container.css +0 -38
  181. package/dist/layout/container/container.css.map +0 -1
  182. package/dist/state/focus/focus.css +0 -10
  183. package/dist/state/focus/focus.css.map +0 -1
  184. package/dist/theme/theme.css +0 -26
  185. package/dist/theme/theme.css.map +0 -1
  186. package/scss/base/_index.scss +0 -3
  187. package/scss/base/link/_variables.scss +0 -31
  188. package/scss/base/link/link.scss +0 -3
  189. package/scss/component/button/_variables.scss +0 -102
  190. package/scss/component/button/button.scss +0 -3
  191. package/scss/layout/columns/_index.scss +0 -30
  192. package/scss/layout/columns/_variables.scss +0 -20
  193. package/scss/layout/columns/columns.scss +0 -3
  194. package/scss/layout/container/_index.scss +0 -50
  195. package/scss/layout/container/_variables.scss +0 -26
  196. package/scss/layout/container/container.scss +0 -3
  197. package/scss/state/focus/_variables.scss +0 -36
  198. package/scss/state/focus/focus.scss +0 -3
  199. package/scss/theme/_defaults.scss +0 -45
  200. package/scss/theme/_index.scss +0 -35
  201. package/scss/theme/_variables.scss +0 -177
  202. package/scss/theme/theme.scss +0 -3
  203. /package/{scss → src/scss}/base/link/_index.scss +0 -0
  204. /package/{scss → src/scss}/layout/_index.scss +0 -0
  205. /package/{scss → src/scss}/state/_index.scss +0 -0
  206. /package/{scss → src/scss}/state/focus/_index.scss +0 -0
@@ -0,0 +1,57 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // Align content properties.
10
+ $align-content-class-prefix: "align-content-" !default;
11
+ $base-align-content-properties: (
12
+ normal: normal,
13
+ start: flex-start,
14
+ end: flex-end,
15
+ center: center,
16
+ between: space-between,
17
+ around: space-around,
18
+ evenly: space-evenly,
19
+ baseline: baseline,
20
+ stretch: stretch,
21
+ );
22
+ $custom-align-content-properties: () !default;
23
+ $align-content-properties: map.merge(
24
+ $base-align-content-properties,
25
+ $custom-align-content-properties
26
+ );
27
+
28
+ // Align items properties.
29
+ $align-items-class-prefix: "align-items-" !default;
30
+ $base-align-items-properties: (
31
+ start: start,
32
+ end: end,
33
+ center: center,
34
+ baseline: baseline,
35
+ stretch: stretch,
36
+ );
37
+ $custom-align-items-properties: () !default;
38
+ $align-items-properties: map.merge(
39
+ $base-align-items-properties,
40
+ $custom-align-items-properties
41
+ );
42
+
43
+ // Align self properties.
44
+ $align-self-class-prefix: "align-self-" !default;
45
+ $base-align-self-properties: (
46
+ auto: auto,
47
+ start: start,
48
+ end: end,
49
+ center: center,
50
+ baseline: baseline,
51
+ stretch: stretch,
52
+ );
53
+ $custom-align-self-properties: () !default;
54
+ $align-self-properties: map.merge(
55
+ $base-align-self-properties,
56
+ $custom-align-self-properties
57
+ );
@@ -0,0 +1,29 @@
1
+ // Graupl alignment utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each align content property, create a utility class.
10
+ @each $name, $property in defaults.$align-content-properties {
11
+ .#{defaults.$align-content-class-prefix}#{$name} {
12
+ align-content: important.insert($property);
13
+ }
14
+ }
15
+
16
+ // For each align items property, create a utility class.
17
+ @each $name, $property in defaults.$align-items-properties {
18
+ .#{defaults.$align-items-class-prefix}#{$name} {
19
+ align-items: important.insert($property);
20
+ }
21
+ }
22
+
23
+ // For each align self property, create a utility class.
24
+ @each $name, $property in defaults.$align-self-properties {
25
+ .#{defaults.$align-self-class-prefix}#{$name} {
26
+ align-self: important.insert($property);
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,30 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // Background utility properties.
10
+ $background-class-prefix: "bg-" !default;
11
+ $base-background-properties: (
12
+ inherit: inherit,
13
+ current: currentcolor,
14
+ transparent: transparent,
15
+ );
16
+ $custom-background-properties: () !default;
17
+ $background-properties: map.merge(
18
+ $base-background-properties,
19
+ $custom-background-properties
20
+ );
21
+
22
+ // Text utility properties.
23
+ $text-class-prefix: "text-" !default;
24
+ $base-text-properties: (
25
+ inherit: inherit,
26
+ current: currentcolor,
27
+ transparent: transparent,
28
+ );
29
+ $custom-text-properties: () !default;
30
+ $text-properties: map.merge($base-text-properties, $custom-text-properties);
@@ -0,0 +1,38 @@
1
+ // Graupl color utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults";
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+ @use "../../theme/color/variables" as color;
8
+
9
+ @include layer(utilities) {
10
+ // For each theme colour, create a utility class for background and color.
11
+ @each $color, $map in color.$theme-active {
12
+ @each $shade, $value in $map {
13
+ $name: #{$color}-#{$shade};
14
+
15
+ .#{defaults.$background-class-prefix}#{$name} {
16
+ background: important.insert($value);
17
+ }
18
+
19
+ .#{defaults.$text-class-prefix}#{$name} {
20
+ color: important.insert($value);
21
+ }
22
+ }
23
+ }
24
+
25
+ // For each background property, create a utility class.
26
+ @each $name, $property in defaults.$background-properties {
27
+ .#{defaults.$background-class-prefix}#{$name} {
28
+ background: important.insert($property);
29
+ }
30
+ }
31
+
32
+ // For each text property, create a utility class.
33
+ @each $name, $property in defaults.$text-properties {
34
+ .#{defaults.$text-class-prefix}#{$name} {
35
+ color: important.insert($property);
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,27 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ $display-class-prefix: "display-" !default;
10
+ $base-display-properties: (
11
+ block: block,
12
+ inline-block: inline-block,
13
+ inline: inline,
14
+ flex: flex,
15
+ inline-flex: inline-flex,
16
+ grid: grid,
17
+ inline-grid: inline-grid,
18
+ flow-root: flow-root,
19
+ none: none,
20
+ contents: contents,
21
+ list-item: list-item,
22
+ );
23
+ $custom-display-properties: () !default;
24
+ $display-properties: map.merge(
25
+ $base-display-properties,
26
+ $custom-display-properties
27
+ );
@@ -0,0 +1,15 @@
1
+ // Graupl display utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each display property, create a utility class.
10
+ @each $name, $property in defaults.$display-properties {
11
+ .#{defaults.$display-class-prefix}#{$name} {
12
+ display: important.insert($property);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,58 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // Flex direction properties.
10
+ $flex-direction-class-prefix: "flex-" !default;
11
+ $base-flex-direction-properties: (
12
+ row: row,
13
+ row-reverse: row-reverse,
14
+ col: column,
15
+ col-reverse: column-reverse,
16
+ );
17
+ $custom-flex-direction-properties: () !default;
18
+ $flex-direction-properties: map.merge(
19
+ $base-flex-direction-properties,
20
+ $custom-flex-direction-properties
21
+ );
22
+
23
+ // Flex wrap properties.
24
+ $flex-wrap-class-prefix: "flex-" !default;
25
+ $base-flex-wrap-properties: (
26
+ wrap: wrap,
27
+ wrap-reverse: wrap-reverse,
28
+ nowrap: nowrap,
29
+ );
30
+ $custom-flex-wrap-properties: () !default;
31
+ $flex-wrap-properties: map.merge(
32
+ $base-flex-wrap-properties,
33
+ $custom-flex-wrap-properties
34
+ );
35
+
36
+ // Flex grow properties.
37
+ $flex-grow-class-prefix: "flex-" !default;
38
+ $base-flex-grow-properties: (
39
+ grow: 1,
40
+ no-grow: 0,
41
+ );
42
+ $custom-flex-grow-properties: () !default;
43
+ $flex-grow-properties: map.merge(
44
+ $base-flex-grow-properties,
45
+ $custom-flex-grow-properties
46
+ );
47
+
48
+ // Flex shrink properties.
49
+ $flex-shrink-class-prefix: "flex-" !default;
50
+ $base-flex-shrink-properties: (
51
+ shrink: 1,
52
+ no-shrink: 0,
53
+ );
54
+ $custom-flex-shrink-properties: () !default;
55
+ $flex-shrink-properties: map.merge(
56
+ $base-flex-shrink-properties,
57
+ $custom-flex-shrink-properties
58
+ );
@@ -0,0 +1,36 @@
1
+ // Graupl flex utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each flex direction property, create a utility class.
10
+ @each $name, $property in defaults.$flex-direction-properties {
11
+ .#{defaults.$flex-direction-class-prefix}#{$name} {
12
+ flex-direction: important.insert($property);
13
+ }
14
+ }
15
+
16
+ // For each flex wrap property, create a utility class.
17
+ @each $name, $property in defaults.$flex-wrap-properties {
18
+ .#{defaults.$flex-wrap-class-prefix}#{$name} {
19
+ flex-wrap: important.insert($property);
20
+ }
21
+ }
22
+
23
+ // For each flex grow property, create a utility class.
24
+ @each $name, $property in defaults.$flex-grow-properties {
25
+ .#{defaults.$flex-grow-class-prefix}#{$name} {
26
+ flex-grow: important.insert($property);
27
+ }
28
+ }
29
+
30
+ // For each flex shrink property, create a utility class.
31
+ @each $name, $property in defaults.$flex-shrink-properties {
32
+ .#{defaults.$flex-shrink-class-prefix}#{$name} {
33
+ flex-shrink: important.insert($property);
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,36 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // Inset properties.
10
+ $base-inset-properties: (
11
+ inset: inset,
12
+ inset-x: left right,
13
+ inset-y: top bottom,
14
+ inset-start: inset-inline-start,
15
+ inset-end: inset-inline-end,
16
+ top: top,
17
+ right: right,
18
+ bottom: bottom,
19
+ left: left,
20
+ );
21
+ $custom-inset-properties: () !default;
22
+ $inset-properties: map.merge($base-inset-properties, $custom-inset-properties);
23
+
24
+ // Inset values.
25
+ $base-inset-values: (
26
+ 0: 0,
27
+ auto: auto,
28
+ full: 100%,
29
+ quarter: 25%,
30
+ half: 50%,
31
+ three-quarters: 75%,
32
+ third: calc(100% / 3),
33
+ two-thirds: calc(100% / 1.5),
34
+ );
35
+ $custom-inset-values: () !default;
36
+ $inset-values: map.merge($base-inset-values, $custom-inset-values);
@@ -0,0 +1,19 @@
1
+ // Graupl inset utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each inset property, create a utility class.
10
+ @each $type, $property in defaults.$inset-properties {
11
+ @each $name, $value in defaults.$inset-values {
12
+ .#{$type}-#{$name} {
13
+ @each $prop in $property {
14
+ #{$prop}: important.insert($value);
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,54 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // Justify content properties.
10
+ $justify-content-class-prefix: "justify-content-" !default;
11
+ $base-justify-content-properties: (
12
+ normal: normal,
13
+ start: flex-start,
14
+ end: flex-end,
15
+ center: center,
16
+ between: space-between,
17
+ around: space-around,
18
+ evenly: space-evenly,
19
+ stretch: stretch,
20
+ );
21
+ $custom-justify-content-properties: () !default;
22
+ $justify-content-properties: map.merge(
23
+ $base-justify-content-properties,
24
+ $custom-justify-content-properties
25
+ );
26
+
27
+ // Justify items properties.
28
+ $justify-items-class-prefix: "justify-items-" !default;
29
+ $base-justify-items-properties: (
30
+ start: start,
31
+ end: end,
32
+ center: center,
33
+ stretch: stretch,
34
+ );
35
+ $custom-justify-items-properties: () !default;
36
+ $justify-items-properties: map.merge(
37
+ $base-justify-items-properties,
38
+ $custom-justify-items-properties
39
+ );
40
+
41
+ // Justify self properties.
42
+ $justify-self-class-prefix: "justify-self-" !default;
43
+ $base-justify-self-properties: (
44
+ auto: auto,
45
+ start: start,
46
+ end: end,
47
+ center: center,
48
+ stretch: stretch,
49
+ );
50
+ $custom-justify-self-properties: () !default;
51
+ $justify-self-properties: map.merge(
52
+ $base-justify-self-properties,
53
+ $custom-justify-self-properties
54
+ );
@@ -0,0 +1,29 @@
1
+ // Graupl justification utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each justify content property, create a utility class.
10
+ @each $name, $property in defaults.$justify-content-properties {
11
+ .#{defaults.$justify-content-class-prefix}#{$name} {
12
+ justify-content: important.insert($property);
13
+ }
14
+ }
15
+
16
+ // For each justify items property, create a utility class.
17
+ @each $name, $property in defaults.$justify-items-properties {
18
+ .#{defaults.$justify-items-class-prefix}#{$name} {
19
+ justify-items: important.insert($property);
20
+ }
21
+ }
22
+
23
+ // For each justify self property, create a utility class.
24
+ @each $name, $property in defaults.$justify-self-properties {
25
+ .#{defaults.$justify-self-class-prefix}#{$name} {
26
+ justify-self: important.insert($property);
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,34 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ // List style type properties.
10
+ $list-style-type-class-prefix: "list-style-" !default;
11
+ $base-list-style-type-properties: (
12
+ none: none,
13
+ disc: disc,
14
+ decimal: decimal,
15
+ circle: circle,
16
+ square: square,
17
+ );
18
+ $custom-list-style-type-properties: () !default;
19
+ $list-style-type-properties: map.merge(
20
+ $base-list-style-type-properties,
21
+ $custom-list-style-type-properties
22
+ );
23
+
24
+ // List style position properties.
25
+ $list-style-postion-class-prefix: "list-style-" !default;
26
+ $base-list-style-postion-properties: (
27
+ inside: inside,
28
+ outside: outside,
29
+ );
30
+ $custom-list-style-postion-properties: () !default;
31
+ $list-style-postion-properties: map.merge(
32
+ $base-list-style-postion-properties,
33
+ $custom-list-style-postion-properties
34
+ );
@@ -0,0 +1,22 @@
1
+ // Graupl visibility utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each list style type property, create a utility class.
10
+ @each $name, $property in defaults.$list-style-type-properties {
11
+ .#{defaults.$list-style-type-class-prefix}#{$name} {
12
+ list-style-type: important.insert($property);
13
+ }
14
+ }
15
+
16
+ // For each list style position property, create a utility class.
17
+ @each $name, $property in defaults.$list-style-postion-properties {
18
+ .#{defaults.$list-style-type-class-prefix}#{$name} {
19
+ list-style-position: important.insert($property);
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,21 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ $position-class-prefix: "position-" !default;
10
+ $base-position-properties: (
11
+ static: static,
12
+ fixed: fixed,
13
+ absolute: absolute,
14
+ relative: relative,
15
+ sticky: sticky,
16
+ );
17
+ $custom-position-properties: () !default;
18
+ $position-properties: map.merge(
19
+ $base-position-properties,
20
+ $custom-position-properties
21
+ );
@@ -0,0 +1,15 @@
1
+ // Graupl position utilities.
2
+
3
+ @use "variables" as *;
4
+ @use "defaults" as defaults;
5
+ @use "../../mixins/layer" as *;
6
+ @use "../../functions/important";
7
+
8
+ @include layer(utilities) {
9
+ // For each position property, create a utility class.
10
+ @each $name, $property in defaults.$position-properties {
11
+ .#{defaults.$position-class-prefix}#{$name} {
12
+ position: important.insert($property);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ // Variables referencing custom properties.
2
+
3
+ @forward "defaults";
@@ -0,0 +1,44 @@
1
+ // Default values for Graupl.
2
+ //
3
+ // Generally, these should not be used directly when styling components.
4
+ // They are mainly used to provide default fallbacks for custom properties
5
+ // which can be found in the `variables.scss` file.
6
+
7
+ @use "sass:map";
8
+
9
+ $base-spacing-properties: (
10
+ g: gap,
11
+ rg: row-gap,
12
+ cg: column-gap,
13
+ p: padding,
14
+ pt: padding-top,
15
+ pr: padding-right,
16
+ pb: padding-bottom,
17
+ pl: padding-left,
18
+ px: padding-left padding-right,
19
+ py: padding-top padding-bottom,
20
+ pbs: padding-block-start,
21
+ pbe: padding-block-end,
22
+ pbse: padding-block-start padding-block-end,
23
+ pis: padding-inline-start,
24
+ pie: padding-inline-end,
25
+ pise: padding-inline-start padding-inline-end,
26
+ m: margin,
27
+ mt: margin-top,
28
+ mr: margin-right,
29
+ mb: margin-bottom,
30
+ ml: margin-left,
31
+ mx: margin-left margin-right,
32
+ my: margin-top margin-bottom,
33
+ mbs: margin-block-start,
34
+ mbe: margin-block-end,
35
+ mbse: margin-block-start margin-block-end,
36
+ mis: margin-inline-start,
37
+ mie: margin-inline-end,
38
+ mise: margin-inline-start margin-inline-end,
39
+ );
40
+ $custom-spacing-properties: () !default;
41
+ $spacing-properties: map.merge(
42
+ $base-spacing-properties,
43
+ $custom-spacing-properties
44
+ );