@graupl/graupl 1.0.0-alpha.13 → 1.0.0-alpha.15

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 (143) hide show
  1. package/.github/workflows/codeql-analysis.yml +3 -3
  2. package/.husky/commit-msg +0 -1
  3. package/.husky/pre-commit +0 -1
  4. package/CHANGELOG.md +38 -0
  5. package/dist/base/button.css +1 -1
  6. package/dist/base/button.css.map +1 -1
  7. package/dist/base/form.css.map +1 -1
  8. package/dist/base/link.css.map +1 -1
  9. package/dist/base/table.css.map +1 -1
  10. package/dist/base.css +1 -1
  11. package/dist/base.css.map +1 -1
  12. package/dist/component/alert.css +2 -0
  13. package/dist/component/alert.css.map +1 -0
  14. package/dist/component/card.css +1 -1
  15. package/dist/component/card.css.map +1 -1
  16. package/dist/component/carousel.css +2 -0
  17. package/dist/component/carousel.css.map +1 -0
  18. package/dist/component/input-group.css.map +1 -1
  19. package/dist/component/menu.css +1 -1
  20. package/dist/component/menu.css.map +1 -1
  21. package/dist/component/navigation.css.map +1 -1
  22. package/dist/component.css +1 -1
  23. package/dist/component.css.map +1 -1
  24. package/dist/graupl.css +1 -1
  25. package/dist/graupl.css.map +1 -1
  26. package/dist/layout/columns.css.map +1 -1
  27. package/dist/layout/container.css.map +1 -1
  28. package/dist/layout/flex-columns.css.map +1 -1
  29. package/dist/layout.css +1 -1
  30. package/dist/layout.css.map +1 -1
  31. package/dist/normalize.css.map +1 -1
  32. package/dist/state/focus.css.map +1 -1
  33. package/dist/state.css.map +1 -1
  34. package/dist/theme/color.css.map +1 -1
  35. package/dist/theme/typography.css.map +1 -1
  36. package/dist/theme.css.map +1 -1
  37. package/dist/utilities/alignment.css.map +1 -1
  38. package/dist/utilities/color.css.map +1 -1
  39. package/dist/utilities/display.css +1 -1
  40. package/dist/utilities/display.css.map +1 -1
  41. package/dist/utilities/flex.css.map +1 -1
  42. package/dist/utilities/height.css +2 -0
  43. package/dist/utilities/height.css.map +1 -0
  44. package/dist/utilities/inset.css.map +1 -1
  45. package/dist/utilities/justification.css.map +1 -1
  46. package/dist/utilities/list.css.map +1 -1
  47. package/dist/utilities/order.css.map +1 -1
  48. package/dist/utilities/postion.css.map +1 -1
  49. package/dist/utilities/spacing.css.map +1 -1
  50. package/dist/utilities/typography.css.map +1 -1
  51. package/dist/utilities/visibility.css.map +1 -1
  52. package/dist/utilities/width.css +2 -0
  53. package/dist/utilities/width.css.map +1 -0
  54. package/dist/utilities.css +1 -1
  55. package/dist/utilities.css.map +1 -1
  56. package/docs/.vitepress/config.js +39 -12
  57. package/docs/components/alert.md +130 -0
  58. package/docs/components/button.md +84 -0
  59. package/docs/components/card.md +369 -0
  60. package/docs/components/index.md +1 -0
  61. package/docs/components/inputgroup.md +159 -0
  62. package/docs/components/menu.md +326 -0
  63. package/docs/components/navigation.md +158 -0
  64. package/docs/content.md +237 -0
  65. package/docs/defaults.md +121 -0
  66. package/docs/forms.md +79 -0
  67. package/docs/functions.md +9 -0
  68. package/docs/getting-started.md +1 -0
  69. package/docs/index.md +1 -7
  70. package/docs/introduction.md +22 -2
  71. package/docs/layout.md +200 -0
  72. package/docs/mixins.md +47 -0
  73. package/docs/state.md +67 -0
  74. package/docs/theme.md +258 -0
  75. package/docs/utilities.md +357 -0
  76. package/index.html +178 -37
  77. package/package.json +5 -6
  78. package/scss/component/alert.scss +3 -0
  79. package/scss/component/carousel.scss +3 -0
  80. package/scss/utilities/height.scss +3 -0
  81. package/scss/utilities/width.scss +3 -0
  82. package/src/js/alert/Alert.js +511 -0
  83. package/src/js/alert/index.js +21 -0
  84. package/src/js/carousel/Carousel.js +1376 -0
  85. package/src/js/carousel/index.js +20 -0
  86. package/src/js/domHelpers.js +37 -0
  87. package/src/js/eventHandlers.js +32 -0
  88. package/src/js/validate.js +225 -0
  89. package/src/scss/base/_index.scss +1 -1
  90. package/src/scss/base/button/_defaults.scss +7 -0
  91. package/src/scss/base/button/_index.scss +46 -149
  92. package/src/scss/base/button/_mixins.scss +164 -0
  93. package/src/scss/base/form/_index.scss +1 -1
  94. package/src/scss/base/link/_index.scss +1 -1
  95. package/src/scss/base/table/_index.scss +1 -1
  96. package/src/scss/component/_index.scss +3 -1
  97. package/src/scss/component/alert/_defaults.scss +49 -0
  98. package/src/scss/component/alert/_index.scss +118 -0
  99. package/src/scss/component/alert/_variables.scss +170 -0
  100. package/src/scss/component/card/_defaults.scss +3 -0
  101. package/src/scss/component/card/_index.scss +43 -9
  102. package/src/scss/component/carousel/_defaults.scss +43 -0
  103. package/src/scss/component/carousel/_index.scss +182 -0
  104. package/src/scss/component/carousel/_variables.scss +104 -0
  105. package/src/scss/component/input-group/_index.scss +1 -1
  106. package/src/scss/component/menu/_defaults.scss +2 -1
  107. package/src/scss/component/menu/_index.scss +2 -1
  108. package/src/scss/component/menu/_variables.scss +4 -0
  109. package/src/scss/component/navigation/_index.scss +1 -1
  110. package/src/scss/layout/_index.scss +1 -1
  111. package/src/scss/layout/columns/_index.scss +1 -1
  112. package/src/scss/layout/container/_index.scss +1 -1
  113. package/src/scss/layout/flex-columns/_index.scss +1 -1
  114. package/src/scss/mixins/_layer.scss +2 -4
  115. package/src/scss/mixins/_visually-hidden.scss +20 -0
  116. package/src/scss/state/_index.scss +1 -1
  117. package/src/scss/state/focus/_index.scss +1 -1
  118. package/src/scss/theme/_index.scss +1 -1
  119. package/src/scss/theme/color/_index.scss +1 -1
  120. package/src/scss/theme/typography/_index.scss +1 -1
  121. package/src/scss/utilities/_index.scss +3 -1
  122. package/src/scss/utilities/alignment/_index.scss +1 -1
  123. package/src/scss/utilities/color/_index.scss +1 -1
  124. package/src/scss/utilities/display/_defaults.scss +2 -0
  125. package/src/scss/utilities/display/_index.scss +11 -1
  126. package/src/scss/utilities/flex/_index.scss +1 -1
  127. package/src/scss/utilities/height/_defaults.scss +38 -0
  128. package/src/scss/utilities/height/_index.scss +23 -0
  129. package/src/scss/utilities/height/_variables.scss +6 -0
  130. package/src/scss/utilities/inset/_index.scss +1 -1
  131. package/src/scss/utilities/justification/_index.scss +1 -1
  132. package/src/scss/utilities/list/_index.scss +1 -1
  133. package/src/scss/utilities/order/_index.scss +1 -1
  134. package/src/scss/utilities/position/_index.scss +1 -1
  135. package/src/scss/utilities/ratio/_defaults.scss +1 -0
  136. package/src/scss/utilities/ratio/_index.scss +9 -1
  137. package/src/scss/utilities/spacing/_index.scss +1 -1
  138. package/src/scss/utilities/typography/_index.scss +1 -1
  139. package/src/scss/utilities/visibility/_index.scss +1 -1
  140. package/src/scss/utilities/width/_defaults.scss +38 -0
  141. package/src/scss/utilities/width/_index.scss +23 -0
  142. package/src/scss/utilities/width/_variables.scss +6 -0
  143. package/stylelint.config.js +5 -0
package/docs/mixins.md ADDED
@@ -0,0 +1,47 @@
1
+ # Mixins
2
+
3
+ A mixin used to define layers. So the styling is exported in the correct order.
4
+
5
+ `*@mixin* layer($layer)`
6
+
7
+ A media query for targetting users who have not requested reduced motion.
8
+
9
+ ```jsx
10
+ @mixin animation-on {
11
+ @media (prefers-reduced-motion: no-preference) {
12
+ @content;
13
+ }
14
+ }
15
+ ```
16
+
17
+ A media query for targetting users who have requested reduced motion.
18
+
19
+ ```jsx
20
+ @mixin animation-off {
21
+ @media (prefers-reduced-motion: reduce) {
22
+ @content;
23
+ }
24
+ }
25
+ ```
26
+
27
+ A media query for targetting specific screen sizes.
28
+
29
+ ```sass
30
+ @mixin screen($size) {
31
+ $screen-size: map.get(root-defaults.$screen-sizes, $size);
32
+
33
+ @media screen and #{$screen-size} {
34
+ @content;
35
+ }
36
+ }
37
+ ```
38
+
39
+ ```sass
40
+ @mixin screen-trigger($size) {
41
+ $screen-size-trigger: map.get(root-defaults.$screen-size-triggers, $size);
42
+
43
+ @media screen and #{$screen-size-trigger} {
44
+ @content;
45
+ }
46
+ }
47
+ ```
package/docs/state.md ADDED
@@ -0,0 +1,67 @@
1
+ ## State
2
+
3
+ State is used to style elements when a pseudo element is active like focus.
4
+
5
+ Defaults
6
+
7
+ ```sass
8
+ $focus-outline-style: dotted !default;
9
+ $focus-box-shadow-style: inset !default;
10
+ ```
11
+
12
+ Variables
13
+
14
+ The focus width property:
15
+
16
+ ```scss
17
+ --#{root-defaults.$prefix}-focus-width
18
+
19
+ ```
20
+
21
+ The focus outline color property:
22
+
23
+ ```scss
24
+ --#{root-defaults.$prefix}-focus-outline-color
25
+
26
+ ```
27
+
28
+ The focus outline width property:
29
+
30
+ ```scss
31
+ --#{root-defaults.$prefix}-focus-outline-width
32
+
33
+ ```
34
+
35
+ The focus outline style property:
36
+
37
+ ```scss
38
+ --#{root-defaults.$prefix}-focus-outline-style
39
+
40
+ ```
41
+
42
+ The focus outline offset property:
43
+
44
+ ```scss
45
+ --#{root-defaults.$prefix}-focus-outline-offset
46
+
47
+ ```
48
+
49
+ The focus box shadow color property:
50
+
51
+ ```scss
52
+ --#{root-defaults.$prefix}-focus-box-shadow-color
53
+
54
+ ```
55
+
56
+ The focus box shadow style property:
57
+
58
+ ```scss
59
+ --#{root-defaults.$prefix}-focus-box-shadow-style
60
+
61
+ ```
62
+
63
+ The focus box shadow property:
64
+
65
+ ```scss
66
+ --#{root-defaults.$prefix}-focus-box-shadow
67
+ ```
package/docs/theme.md ADDED
@@ -0,0 +1,258 @@
1
+ # Theme
2
+
3
+ ## Color
4
+
5
+ Defaults
6
+
7
+ ```sass
8
+ // Colours.
9
+ $default-colors: (
10
+ primary: (
11
+ 100: hsl(219deg 100% 95%),
12
+ 200: hsl(219deg 90% 80%),
13
+ 300: hsl(219deg 80% 65%),
14
+ 400: hsl(219deg 75% 55%),
15
+ 500: hsl(219deg 75% 50%),
16
+ 600: hsl(219deg 75% 45%),
17
+ 700: hsl(219deg 80% 35%),
18
+ 800: hsl(219deg 90% 20%),
19
+ 900: hsl(219deg 100% 10%),
20
+ ),
21
+ secondary: (
22
+ 100: hsl(235deg 40% 95%),
23
+ 200: hsl(235deg 30% 80%),
24
+ 300: hsl(235deg 20% 65%),
25
+ 400: hsl(235deg 15% 55%),
26
+ 500: hsl(235deg 15% 50%),
27
+ 600: hsl(235deg 15% 45%),
28
+ 700: hsl(235deg 20% 35%),
29
+ 800: hsl(235deg 30% 20%),
30
+ 900: hsl(235deg 40% 10%),
31
+ ),
32
+ tertiary: (
33
+ 100: hsl(340deg 85% 95%),
34
+ 200: hsl(340deg 75% 80%),
35
+ 300: hsl(340deg 65% 65%),
36
+ 400: hsl(340deg 60% 55%),
37
+ 500: hsl(340deg 60% 50%),
38
+ 600: hsl(340deg 60% 45%),
39
+ 700: hsl(340deg 65% 35%),
40
+ 800: hsl(340deg 75% 20%),
41
+ 900: hsl(340deg 85% 10%),
42
+ ),
43
+ );
44
+ $custom-colors: () !default;
45
+ $colors: map.merge($default-colors, $custom-colors);
46
+
47
+ // A map for reversing the shade values of the dark theme.
48
+ $base-dark-map: (
49
+ 100: 900,
50
+ 200: 800,
51
+ 300: 700,
52
+ 400: 600,
53
+ 500: 500,
54
+ 600: 400,
55
+ 700: 300,
56
+ 800: 200,
57
+ 900: 100,
58
+ );
59
+ $custom-dark-map: () !default;
60
+ $dark-map: map.merge($base-dark-map, $custom-dark-map);
61
+
62
+ ```
63
+
64
+ Variables
65
+
66
+ ```sass
67
+ // A custom variable is defined for each color and shade.
68
+ --#{root-defaults.$prefix}-#{$color}--#{$shade}
69
+
70
+ // There are three modes for the theme.
71
+ // Active is what is currently being used.
72
+ --#{root-defaults.$prefix}-theme-active--#{$color}--#{$shade}
73
+ // Theme dark is the color used when dark mode is active.
74
+ --#{root-defaults.$prefix}-theme-dark--#{$color}--#{$shade}
75
+ // Light theme is the color active whne light mode is active
76
+ --#{root-defaults.$prefix}-theme-light--#{$color}--#{$shade}
77
+
78
+ // Globaly defined root color and root background.
79
+ --#{root-defaults.$prefix}-root-color
80
+ --#{root-defaults.$prefix}-root-background
81
+ ```
82
+
83
+ ## Typography
84
+
85
+ Defaults
86
+
87
+ ```sass
88
+ // font properties.
89
+ $font-size-base: 1rem !default;
90
+ $root-font-size: clamp(0.85rem, calc(0.8rem + 0.5vw), 1.25rem) !default;
91
+ $line-height: 1.2em !default;
92
+
93
+ // Multipliers for font sizes.
94
+ // This uses a minor third scale.
95
+ // See: https://typescale.com/?size=16&scale=1.250&text=A%20Visual%20Type%20Scale&font=Lato&fontweight=400&bodyfont=body_font_default&bodyfontweight=400&lineheight=1.75&backgroundcolor=%23ffffff&fontcolor=%23000000
96
+ $base-font-size-multipliers: (
97
+ xs: 0.694,
98
+ sm: 0.833,
99
+ base: 1,
100
+ lg: 1.2,
101
+ xl: 1.44,
102
+ 2xl: 1.728,
103
+ 3xl: 2.074,
104
+ 4xl: 2.488,
105
+ 5xl: 2.986,
106
+ );
107
+ $custom-font-size-multipliers: () !default;
108
+ $font-size-multipliers: map.merge(
109
+ $base-font-size-multipliers,
110
+ $custom-font-size-multipliers
111
+ );
112
+
113
+ // Weights.
114
+ $base-font-weights: (
115
+ light: 300,
116
+ normal: 400,
117
+ bold: 700,
118
+ );
119
+ $custom-font-weights: () !default;
120
+ $font-weights: map.merge($base-font-weights, $custom-font-weights);
121
+
122
+ /* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
123
+ $root-font-family:
124
+ system-ui,
125
+ -apple-system,
126
+ blinkmacsystemfont,
127
+ "Segoe UI",
128
+ roboto,
129
+ "Helvetica Neue",
130
+ arial,
131
+ sans-serif !default;
132
+ ```
133
+
134
+ Variables
135
+
136
+ The font properties:
137
+
138
+ ```scss
139
+ --#{root-defaults.$prefix}-font-size-base
140
+ --#{root-defaults.$prefix}-line-height
141
+
142
+ ```
143
+
144
+ The font size properties:
145
+
146
+ ```scss
147
+ --#{root-defaults.$prefix}-font-#{$key}
148
+
149
+ ```
150
+
151
+ The font weight properties:
152
+
153
+ ```scss
154
+ --#{root-defaults.$prefix}-font-weight-#{$key}
155
+ --#{root-defaults.$prefix}-font-weight-bold
156
+
157
+ ```
158
+
159
+ The root properties:
160
+
161
+ ```scss
162
+ --#{root-defaults.$prefix}-root-font-family
163
+ --#{root-defaults.$prefix}-root-font-size
164
+
165
+ ```
166
+
167
+ The typography properties:
168
+
169
+ ```scss
170
+ --#{root-defaults.$prefix}-body-font-size
171
+ --#{root-defaults.$prefix}-body-line-height
172
+ --#{root-defaults.$prefix}-body-font-weight
173
+ --#{root-defaults.$prefix}-paragraph-font-size
174
+ --#{root-defaults.$prefix}-paragraph-line-height
175
+ --#{root-defaults.$prefix}-paragraph-margin
176
+ --#{root-defaults.$prefix}-paragraph-font-weight
177
+ --#{root-defaults.$prefix}-small-font-size
178
+ --#{root-defaults.$prefix}-small-line-height
179
+ --#{root-defaults.$prefix}-small-margin
180
+ --#{root-defaults.$prefix}-small-font-weight
181
+
182
+ ```
183
+
184
+ The heading properties:
185
+
186
+ ```scss
187
+ --#{root-defaults.$prefix}-heading-font-family
188
+ --#{root-defaults.$prefix}-heading-line-height
189
+ --#{root-defaults.$prefix}-heading-margin
190
+ --#{root-defaults.$prefix}-heading-font-weight
191
+
192
+ ```
193
+
194
+ The H1 properties:
195
+
196
+ ```scss
197
+ --#{root-defaults.$prefix}-h1-font-size
198
+ --#{root-defaults.$prefix}-h1-line-height
199
+ --#{root-defaults.$prefix}-h1-margin
200
+ --#{root-defaults.$prefix}-h1-font-family
201
+ --#{root-defaults.$prefix}-h1-font-weight
202
+
203
+ ```
204
+
205
+ The H2 properties:
206
+
207
+ ```scss
208
+ --#{root-defaults.$prefix}-h2-font-size
209
+ --#{root-defaults.$prefix}-h2-line-height
210
+ --#{root-defaults.$prefix}-h2-margin
211
+ --#{root-defaults.$prefix}-h2-font-family
212
+ --#{root-defaults.$prefix}-h2-font-weight
213
+
214
+ ```
215
+
216
+ The H3 properties:
217
+
218
+ ```scss
219
+ --#{root-defaults.$prefix}-h3-font-size
220
+ --#{root-defaults.$prefix}-h3-line-height
221
+ --#{root-defaults.$prefix}-h3-margin
222
+ --#{root-defaults.$prefix}-h3-font-family
223
+ --#{root-defaults.$prefix}-h3-font-weight
224
+
225
+ ```
226
+
227
+ The H4 properties:
228
+
229
+ ```scss
230
+ --#{root-defaults.$prefix}-h4-font-size
231
+ --#{root-defaults.$prefix}-h4-line-height
232
+ --#{root-defaults.$prefix}-h4-margin
233
+ --#{root-defaults.$prefix}-h4-font-family
234
+ --#{root-defaults.$prefix}-h4-font-weight
235
+
236
+ ```
237
+
238
+ The H5 properties:
239
+
240
+ ```scss
241
+ --#{root-defaults.$prefix}-h5-font-size
242
+ --#{root-defaults.$prefix}-h5-line-height
243
+ --#{root-defaults.$prefix}-h5-margin
244
+ --#{root-defaults.$prefix}-h5-font-family
245
+ --#{root-defaults.$prefix}-h5-font-weight
246
+
247
+ ```
248
+
249
+ The H6 properties:
250
+
251
+ ```scss
252
+ --#{root-defaults.$prefix}-h6-font-size
253
+ --#{root-defaults.$prefix}-h6-line-height
254
+ --#{root-defaults.$prefix}-h6-margin
255
+ --#{root-defaults.$prefix}-h6-font-family
256
+ --#{root-defaults.$prefix}-h6-font-weight
257
+
258
+ ```
@@ -0,0 +1,357 @@
1
+ ## Utilities
2
+
3
+ ---
4
+
5
+ ### Alignment
6
+
7
+ **Variables**
8
+
9
+ Property Prefixes
10
+
11
+ - $align-content-class-prefix: "align-content-" !default;
12
+ - $align-items-class-prefix: "align-items-” !default;
13
+ - $align-self-class-prefix: "align-self-" !default;
14
+
15
+ Custom Variables to extend properties
16
+
17
+ - $custom-align-content-properties
18
+ - $custom-align-items-properties
19
+ - $custom-align-self-properties
20
+
21
+ Align Content
22
+
23
+ - align-content-normal
24
+ - align-content-start
25
+ - align-content-end
26
+ - align-content-center
27
+ - align-content-between
28
+ - align-content-around
29
+ - align-content-evenly
30
+ - align-content-baseline
31
+ - align-content-stretch
32
+
33
+ Align Items
34
+
35
+ - align-items-start
36
+ - align-items-end
37
+ - align-items-center
38
+ - align-items-baseline
39
+ - align-items-stretch
40
+
41
+ Align Self
42
+
43
+ - align-self-auto
44
+ - align-self-start
45
+ - align-self-end
46
+ - align-self-center
47
+ - align-self-baseline
48
+ - align-self-stretch
49
+
50
+ ### Color
51
+
52
+ Variables
53
+
54
+ - $background-class-prefix: "bg-" !default;
55
+ - $text-class-prefix: "text-" !default;
56
+ - $custom-background-properties
57
+ - $custom-text-properties
58
+ - $custom-colors
59
+ - $custom-dark-map
60
+
61
+ Color Classes
62
+
63
+ - #{defaults.$background-class-prefix}-#{$color}-#{$shade};
64
+ - The class is a combination of the prefix, color, and shade.
65
+ - See table below for examples on how to use the background and text classes.
66
+
67
+ | Prefix | Color | Shade | Background Class | Text Class |
68
+ | --- | --- | --- | --- | --- |
69
+ | bg \| text | primary \| secondary \| tertiary | 100 | bg-primary-100 | text-primary-100 |
70
+ | bg \| text | primary \| secondary \| tertiary | 200 | bg-primary-200 | text-primary-200 |
71
+ | bg \| text | primary \| secondary \| tertiary | 300 | bg-primary-300 | text-primary-300 |
72
+ | bg \| text | primary \| secondary \| tertiary | 400 | bg-primary-400 | text-primary-400 |
73
+ | bg \| text | primary \| secondary \| tertiary | 500 | bg-primary-500 | text-primary-500 |
74
+ | bg \| text | primary \| secondary \| tertiary | 600 | bg-primary-600 | text-primary-600 |
75
+ | bg \| text | primary \| secondary \| tertiary | 700 | bg-primary-700 | text-primary-700 |
76
+ | bg \| text | primary \| secondary \| tertiary | 800 | bg-primary-800 | text-primary-800 |
77
+ | bg \| text | primary \| secondary \| tertiary | 900 | bg-primary-900 | text-primary-900 |
78
+
79
+ Background and text properties
80
+
81
+ | Background Property | Text Property |
82
+ | --- | --- |
83
+ | bg-inherit | text-inherit |
84
+ | bg-current | text-current |
85
+ | bg-transparent | text-transparent |
86
+
87
+ ### Display
88
+
89
+ - $display-class-prefix: "display-" !default;
90
+ - $custom-display-properties
91
+
92
+ | Display Property |
93
+ | --- |
94
+ | display-block |
95
+ | display-inline-block |
96
+ | display-inline |
97
+ | display-flex |
98
+ | display-inline-flex |
99
+ | display-grid |
100
+ | display-inline-grid |
101
+ | display-flow-root |
102
+ | display-none |
103
+ | display-contents |
104
+ | display-list-item |
105
+
106
+ ### Flex
107
+
108
+ - $flex-direction-class-prefix: "flex-" !default;
109
+ - $flex-wrap-class-prefix: "flex-" !default;
110
+ - $flex-grow-class-prefix: "flex-" !default;
111
+ - $flex-shrink-class-prefix: "flex-" !default;
112
+
113
+ Custom variables to extend properties
114
+
115
+ - $custom-flex-direction-properties
116
+ - $custom-flex-wrap-properties
117
+ - $custom-flex-grow-properties
118
+ - $custom-flex-shrink-properties
119
+
120
+ | Prefix | Property | Class Name |
121
+ | --- | --- | --- |
122
+ | flex- | row | flex-row |
123
+ | flex- | row-reverse | flex-row-reverse |
124
+ | flex- | col | flex-col |
125
+ | flex- | col-reverse | flex-col-reverse |
126
+ | flex- | wrap | flex-wrap |
127
+ | flex- | wrap-reverse | flex-wrap-reverse |
128
+ | flex- | nowrap | flex-nowrap |
129
+ | flex- | grow | flex-grow |
130
+ | flex- | no-grow | flex-no-grow |
131
+ | flex- | shrink | flex-shrink |
132
+ | flex- | no-shrink | flex-no-shrink |
133
+
134
+ ### Inset
135
+
136
+ - $custom-inset-properties
137
+ - $custom-inset-values
138
+
139
+ Every property is mapped to every value. So you can append the property name to any value.
140
+
141
+ | Property | Value | Class Name |
142
+ | --- | --- | --- |
143
+ | inset | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | inset-auto |
144
+ | inset-x | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | inset-x-full |
145
+ | inset-y | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | inset-y-quarter |
146
+ | inset-start | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | inset-start-half |
147
+ | inset-end | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | inset-end-three-quarters |
148
+ | top | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | top-third |
149
+ | right | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | right-two-thirds |
150
+ | bottom | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | bottom-0 |
151
+ | left | 0 \| auto \| full \| quarter \| half \| three-quarters \| third \| two-thirds | left-auto |
152
+
153
+ ### Justification
154
+
155
+ - $justify-content-class-prefix: "justify-content-" !default;
156
+ - .$justify-items-class-prefix: "justify-items-" !default;
157
+ - $justify-self-class-prefix: "justify-self-" !default;
158
+ - $custom-justify-content-properties
159
+ - $custom-justify-items-properties
160
+ - $custom-justify-self-properties
161
+
162
+ Justify Content
163
+
164
+ | normal | justify-content-normal |
165
+ | --- | --- |
166
+ | start | justify-content-start |
167
+ | end | justify-content-end |
168
+ | center | justify-content-center |
169
+ | between | justify-content-between |
170
+ | around | justify-content-around |
171
+ | evenly | justify-content-evenly |
172
+ | stretch | justify-content-stretch |
173
+
174
+ Justify Items
175
+
176
+ | Property | Class Name |
177
+ | --- | --- |
178
+ | start | justify-items-start |
179
+ | end | justify-items-end |
180
+ | center | justify-items-center |
181
+ | stretch | justify-items-stretch |
182
+
183
+ Justify Self
184
+
185
+ | auto | justify-self-auto |
186
+ | --- | --- |
187
+ | start | justify-self-start |
188
+ | end | justify-self-end |
189
+ | center | justify-self-center |
190
+ | stretch | justify-self-stretch |
191
+
192
+ ### List
193
+
194
+ - $list-style-type-class-prefix: "list-style-" !default;
195
+ - $list-style-postion-class-prefix: "list-style-" !default;
196
+ - $custom-list-style-type-properties
197
+ - $custom-list-style-postion-properties
198
+
199
+ List style type properties
200
+
201
+ | Property | Class Name |
202
+ | --- | --- |
203
+ | none | list-style-none |
204
+ | disc | list-style-disc |
205
+ | decimal | list-style-decimal |
206
+ | circle | list-style-circle |
207
+ | square | list-style-square |
208
+
209
+ List style position properties
210
+
211
+ | inside | list-style-inside |
212
+ | --- | --- |
213
+ | outside | list-style-outside |
214
+
215
+ ### Order
216
+
217
+ - $order-class-prefix
218
+ - $custom-order-properties
219
+
220
+ | Property | Class Name |
221
+ | --- | --- |
222
+ | none | order-none |
223
+ | first | order-first |
224
+ | last | order-last |
225
+
226
+ ### Position
227
+
228
+ - $position-class-prefix
229
+ - $custom-position-properties
230
+
231
+ | Property | Class Name |
232
+ | --- | --- |
233
+ | static | position-static |
234
+ | fixed | position-fixed |
235
+ | absolute | position-absolute |
236
+ | relative | position-relative |
237
+ | sticky | position-sticky |
238
+
239
+ ### Ratio
240
+
241
+ Variables
242
+
243
+ `$ratio: var(*--#{root-defaults.$prefix}-ratio*);`
244
+
245
+ Contains element add this class to
246
+
247
+ - $ratio-selector: ".ratio" !default;
248
+
249
+ Item that covers the container uses this with the default prefix as “.”
250
+
251
+ - $ratio-variant-selector-prefix: "." !default;
252
+
253
+ Different rations you can use
254
+
255
+ | Property | Class Name |
256
+ | --- | --- |
257
+ | one-by-one | one-by-one |
258
+ | two-by-one | two-by-one |
259
+ | four-by-three | four-by-three |
260
+ | four-by-one | four-by-one |
261
+ | sixteen-by-nine | sixteen-by-nine |
262
+ | three-by-two | three-by-two |
263
+ | eight-by-five | eight-by-five |
264
+
265
+ ### Spacing
266
+
267
+ | Abbreviation | Description | Values | Class Name |
268
+ | --- | --- | --- | --- |
269
+ | g | gap | 1 to 10 | g-1 |
270
+ | rg | row-gap | 1 to 10 | rg-2 |
271
+ | cg | column-gap | 1 to 10 | cg-3 |
272
+ | p | padding | 1 to 10 | p-4 |
273
+ | pt | padding-top | 1 to 10 | pt-5 |
274
+ | pr | padding-right | 1 to 10 | pr-6 |
275
+ | pb | padding-bottom | 1 to 10 | pb-7 |
276
+ | pl | padding-left | 1 to 10 | pl-8 |
277
+ | px | padding-left padding-right | 1 to 10 | px-9 |
278
+ | py | padding-top padding-bottom | 1 to 10 | py-10 |
279
+ | pbs | padding-block-start | 1 to 10 | pbs-1 |
280
+ | pbe | padding-block-end | 1 to 10 | pbe-2 |
281
+ | pbse | padding-block-start padding-block-end | 1 to 10 | pbse-3 |
282
+ | pis | padding-inline-start | 1 to 10 | pis-4 |
283
+ | pie | padding-inline-end | 1 to 10 | pie-5 |
284
+ | pise | padding-inline-start padding-inline-end | 1 to 10 | pise-6 |
285
+ | m | margin | 1 to 10 | m-7 |
286
+ | mt | margin-top | 1 to 10 | mt-8 |
287
+ | mr | margin-right | 1 to 10 | mr-9 |
288
+ | mb | margin-bottom | 1 to 10 | mb-10 |
289
+ | ml | margin-left | 1 to 10 | ml-1 |
290
+ | mx | margin-left margin-right | 1 to 10 | mx-2 |
291
+ | my | margin-top margin-bottom | 1 to 10 | my-3 |
292
+ | mbs | margin-block-start | 1 to 10 | mbs-4 |
293
+ | mbe | margin-block-end | 1 to 10 | mbe-5 |
294
+ | mbse | margin-block-start margin-block-end | 1 to 10 | mbse-6 |
295
+ | mis | margin-inline-start | 1 to 10 | mis-7 |
296
+ | mie | margin-inline-end | 1 to 10 | mie-8 |
297
+ | mise | margin-inline-start margin-inline-end | 1 to 10 | mise-9 |
298
+
299
+ ### Typography
300
+
301
+ - $text-class-prefix: "text-" !default;
302
+
303
+ Text utilities
304
+
305
+ - text-paragraph
306
+ - text-small
307
+ - text-h1
308
+ - text-h2
309
+ - text-h3
310
+ - text-h4
311
+ - text-h5
312
+ - text-h6
313
+
314
+ Font Size Utilities
315
+
316
+ - $text-class-prefix: "text-" !default;
317
+
318
+ | Property | Class Name |
319
+ | --- | --- |
320
+ | xs | text-xs |
321
+ | sm | text-sm |
322
+ | base | text-base |
323
+ | lg | text-lg |
324
+ | xl | text-xl |
325
+ | 2xl | text-2xl |
326
+ | 3xl | text-3xl |
327
+ | 4xl | text-4xl |
328
+ | 5xl | text-5xl |
329
+
330
+ Font Weight Utilities
331
+
332
+ - $font-weight-class-prefix: "font-" !default;
333
+
334
+ | Property | Class Name |
335
+ | --- | --- |
336
+ | light | font-light |
337
+ | normal | font-normal|
338
+ | bold | font-bold |
339
+
340
+ Font Style Utilities
341
+
342
+ - $font-style-class-prefix: "font-" !default;
343
+
344
+ | Property | Class Name |
345
+ | --- | --- |
346
+ | normal | font-normal |
347
+ | italic | font-italic |
348
+
349
+ ### Visibility
350
+
351
+ $visibility-class-prefix: "visibility-" !default;
352
+
353
+ | Property | Class Name |
354
+ | --- | --- |
355
+ | visible | visibility-visible |
356
+ | hidden | visibility-hidden |
357
+ | collapse | visibility-collapse |