@graupl/graupl 1.0.0-beta.5 → 1.0.0-beta.6

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 (75) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/css/base/button.css +1 -1
  3. package/dist/css/base/button.css.map +1 -1
  4. package/dist/css/base/link.css +1 -1
  5. package/dist/css/base/link.css.map +1 -1
  6. package/dist/css/base.css +1 -1
  7. package/dist/css/base.css.map +1 -1
  8. package/dist/css/component/menu.css +1 -1
  9. package/dist/css/component/menu.css.map +1 -1
  10. package/dist/css/component/navigation.css +1 -1
  11. package/dist/css/component/navigation.css.map +1 -1
  12. package/dist/css/component.css +1 -1
  13. package/dist/css/component.css.map +1 -1
  14. package/dist/css/graupl.css +1 -1
  15. package/dist/css/graupl.css.map +1 -1
  16. package/dist/css/layout/container.css +1 -1
  17. package/dist/css/layout/container.css.map +1 -1
  18. package/dist/css/layout.css +1 -1
  19. package/dist/css/layout.css.map +1 -1
  20. package/dist/css/utilities/background.css +1 -1
  21. package/dist/css/utilities/background.css.map +1 -1
  22. package/dist/css/utilities/height.css +1 -1
  23. package/dist/css/utilities/height.css.map +1 -1
  24. package/dist/css/utilities/position.css +2 -0
  25. package/dist/css/utilities/position.css.map +1 -0
  26. package/dist/css/utilities/spacing.css +1 -1
  27. package/dist/css/utilities/spacing.css.map +1 -1
  28. package/dist/css/utilities/visually-hidden.css +1 -1
  29. package/dist/css/utilities/visually-hidden.css.map +1 -1
  30. package/dist/css/utilities/width.css +1 -1
  31. package/dist/css/utilities/width.css.map +1 -1
  32. package/dist/css/utilities/z-index.css +2 -0
  33. package/dist/css/utilities/z-index.css.map +1 -0
  34. package/dist/css/utilities.css +1 -1
  35. package/dist/css/utilities.css.map +1 -1
  36. package/docs/.vitepress/config.js +30 -1
  37. package/docs/.vitepress/theme/custom.scss +14 -15
  38. package/docs/compiling-graupl.md +6 -5
  39. package/docs/utilities/alignment.md +405 -0
  40. package/docs/utilities/background.md +186 -0
  41. package/docs/utilities/border.md +262 -0
  42. package/docs/utilities/color.md +342 -0
  43. package/docs/utilities/display.md +3 -0
  44. package/docs/utilities/flex.md +3 -0
  45. package/docs/utilities/gradient.md +3 -0
  46. package/docs/utilities/height.md +3 -0
  47. package/docs/utilities/inset.md +3 -0
  48. package/docs/utilities/justification.md +3 -0
  49. package/docs/utilities/list.md +3 -0
  50. package/docs/utilities/order.md +3 -0
  51. package/docs/utilities/position.md +3 -0
  52. package/docs/utilities/ratio.md +3 -0
  53. package/docs/utilities/responsive-classes.md +3 -0
  54. package/docs/utilities/spacing.md +3 -0
  55. package/docs/utilities/typography.md +3 -0
  56. package/docs/utilities/visibility.md +3 -0
  57. package/docs/utilities/visually-hidden.md +3 -0
  58. package/docs/utilities/width.md +3 -0
  59. package/docs/utilities/z-index.md +3 -0
  60. package/index.html +82 -0
  61. package/package.json +1 -1
  62. package/scss/utilities/z-index.scss +3 -0
  63. package/src/scss/_defaults.scss +6 -0
  64. package/src/scss/layout/container/_defaults.scss +10 -0
  65. package/src/scss/layout/container/_index.scss +472 -1
  66. package/src/scss/layout/container/_variables.scss +22 -0
  67. package/src/scss/utilities/_index.scss +1 -0
  68. package/src/scss/utilities/background/_defaults.scss +0 -35
  69. package/src/scss/utilities/background/_index.scss +0 -35
  70. package/src/scss/utilities/z-index/_defaults.scss +34 -0
  71. package/src/scss/utilities/z-index/_index.scss +140 -0
  72. package/src/scss/utilities/z-index/_variables.scss +6 -0
  73. package/dist/css/utilities/postion.css +0 -2
  74. package/dist/css/utilities/postion.css.map +0 -1
  75. /package/scss/utilities/{postion.scss → position.scss} +0 -0
@@ -11,12 +11,13 @@ If you want to compile your own version of Graupl, you can! Here's how:
11
11
 
12
12
  ## Overriding Graupl's default variables
13
13
 
14
- Graupl's sass variables are all declared with `!default` flag. This means you can override them in your own theme file.
14
+ Graupl's has sass variables declared with `!default` flag. This means you can override them in your own theme file.
15
15
 
16
16
  ```scss
17
17
  // Import the file containing the variables you want to override.
18
- @forward '@graupl/graupl/defaults' with (
19
- $prefix: 'custom',
18
+ // In this case, we want to make sure that, instead of all of our custom properties starting with `--graupl-` they start with `--custom-`.
19
+ @use '@graupl/graupl/src/scss/defaults' as graupl-defaults with (
20
+ $id: 'custom',
20
21
  );
21
22
 
22
23
  // Import Graupl.
@@ -31,7 +32,7 @@ You can add new colours to Graupl by adding to the `$custom-colours` map.
31
32
 
32
33
  ```scss
33
34
  // Import the theme's defaults.
34
- @forward "@graupl/graupl/theme/defaults" with (
35
+ @use "@graupl/graupl/src/scss/theme/defaults" as graupl-color-defaults with (
35
36
  $custom-colors: (
36
37
  custom: (
37
38
  100: #f0f0f0,
@@ -53,4 +54,4 @@ You can add new colours to Graupl by adding to the `$custom-colours` map.
53
54
  // Import your own theme...
54
55
  ```
55
56
 
56
- These colours will have new classes generated for them, e.g. `background-custom-100`, `color-custom-100`, etc. as well as component variants, e.g. `button custom`, and full dark-mode support.
57
+ These colours will have new classes generated for them, e.g. `.bg-custom-100`, `.text-custom-100`, etc. as well as component variants, e.g. `button custom`, and full dark-mode support.
@@ -0,0 +1,405 @@
1
+ # Alignment Utilities
2
+
3
+ The alignment utilities provide a set of classes to adjust the `align-content`, `align-items`, and `align-self` properties of elements.
4
+
5
+ ## Align content
6
+
7
+ | Class Name | Property | Value |
8
+ | --- | --- | --- |
9
+ | [`.align-content-normal`](#align-content-normal) | align-content | normal |
10
+ | [`.align-content-start`](#align-content-start) | align-content | flex-start |
11
+ | [`.align-content-end`](#align-content-end) | align-content | flex-end |
12
+ | [`.align-content-center`](#align-content-center) | align-content | center |
13
+ | [`.align-content-between`](#align-content-between) | align-content | space-between |
14
+ | [`.align-content-around`](#align-content-around) | align-content | space-around |
15
+ | [`.align-content-evenly`](#align-content-evenly) | align-content | space-evenly |
16
+ | [`.align-content-baseline`](#align-content-baseline) | align-content | baseline |
17
+ | [`.align-content-stretch`](#align-content-stretch) | align-content | stretch |
18
+
19
+ ### `.align-content-normal`
20
+
21
+ Sets the `align-content` property to `normal`.
22
+
23
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-normal p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
24
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
25
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
26
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
27
+ </div>
28
+
29
+ ```html
30
+ <div class="display-grid align-content-normal">
31
+ <!-- Content here -->
32
+ </div>
33
+ ```
34
+
35
+ ### `.align-content-start`
36
+
37
+ Sets the `align-content` property to `flex-start`.
38
+
39
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-start p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
40
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
41
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
42
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
43
+ </div>
44
+
45
+ ```html
46
+ <div class="display-grid align-content-start">
47
+ <!-- Content here -->
48
+ </div>
49
+ ```
50
+
51
+ ### `.align-content-end`
52
+
53
+ Sets the `align-content` property to `flex-end`.
54
+
55
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-end p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
56
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
57
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
58
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
59
+ </div>
60
+
61
+ ```html
62
+ <div class="display-grid align-content-end">
63
+ <!-- Content here -->
64
+ </div>
65
+ ```
66
+
67
+ ### `.align-content-center`
68
+
69
+ Sets the `align-content` property to `center`.
70
+
71
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-center p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
72
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
73
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
74
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
75
+ </div>
76
+
77
+ ```html
78
+ <div class="display-grid align-content-center">
79
+ <!-- Content here -->
80
+ </div>
81
+ ```
82
+
83
+ ### `.align-content-between`
84
+
85
+ Sets the `align-content` property to `space-between`.
86
+
87
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-between p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
88
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
89
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
90
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
91
+ </div>
92
+
93
+ ```html
94
+ <div class="display-grid align-content-between">
95
+ <!-- Content here -->
96
+ </div>
97
+ ```
98
+
99
+ ### `.align-content-around`
100
+
101
+ Sets the `align-content` property to `space-around`.
102
+
103
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-around p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
104
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
105
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
106
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
107
+ </div>
108
+
109
+ ```html
110
+ <div class="display-grid align-content-around">
111
+ <!-- Content here -->
112
+ </div>
113
+ ```
114
+
115
+ ### `.align-content-evenly`
116
+
117
+ Sets the `align-content` property to `space-evenly`.
118
+
119
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-evenly p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
120
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
121
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
122
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
123
+ </div>
124
+
125
+ ```html
126
+ <div class="display-grid align-content-evenly">
127
+ <!-- Content here -->
128
+ </div>
129
+ ```
130
+
131
+ ### `.align-content-baseline`
132
+
133
+ Sets the `align-content` property to `baseline`.
134
+
135
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-baseline p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
136
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
137
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
138
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
139
+ </div>
140
+
141
+ ```html
142
+ <div class="display-grid align-content-baseline">
143
+ <!-- Content here -->
144
+ </div>
145
+ ```
146
+
147
+ ### `.align-content-stretch`
148
+
149
+ Sets the `align-content` property to `stretch`.
150
+
151
+ <div class="w-full display-grid g-4 bg-primary-100 bordered border-primary-700 align-content-stretch p-5 h-10" style="grid-template-columns: repeat(3, min-content); grid-template-rows: min-content;">
152
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
153
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
154
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
155
+ </div>
156
+
157
+ ```html
158
+ <div class="display-grid align-content-start">
159
+ <!-- Content here -->
160
+ </div>
161
+ ```
162
+
163
+ ## Align items
164
+
165
+ | Class Name | Property | Value |
166
+ | --- | --- | --- |
167
+ | `.align-items-start` | align-items | start |
168
+ | `.align-items-end` | align-items | end |
169
+ | `.align-items-center` | align-items | center |
170
+ | `.align-items-baseline` | align-items | baseline |
171
+ | `.align-items-stretch` | align-items | stretch |
172
+
173
+ ### `.align-items-start`
174
+
175
+ Sets the `align-items` property to `start`.
176
+
177
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 align-items-start p-5 h-10">
178
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
179
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
180
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
181
+ </div>
182
+
183
+ ```html
184
+ <div class="display-flex align-items-start">
185
+ <!-- Content here -->
186
+ </div>
187
+ ```
188
+
189
+ ### `.align-items-end`
190
+
191
+ Sets the `align-items` property to `end`.
192
+
193
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 align-items-end p-5 h-10">
194
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
195
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
196
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
197
+ </div>
198
+
199
+ ```html
200
+ <div class="display-flex align-items-end">
201
+ <!-- Content here -->
202
+ </div>
203
+ ```
204
+
205
+ ### `.align-items-center`
206
+
207
+ Sets the `align-items` property to `center`.
208
+
209
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 align-items-center p-5 h-10">
210
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
211
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
212
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
213
+ </div>
214
+
215
+ ```html
216
+ <div class="display-flex align-items-center">
217
+ <!-- Content here -->
218
+ </div>
219
+ ```
220
+
221
+ ### `.align-items-baseline`
222
+
223
+ Sets the `align-items` property to `baseline`.
224
+
225
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 align-items-baseline p-5 h-10">
226
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
227
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
228
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
229
+ </div>
230
+
231
+ ```html
232
+ <div class="display-flex align-items-baseline">
233
+ <!-- Content here -->
234
+ </div>
235
+ ```
236
+
237
+ ### `.align-items-stretch`
238
+
239
+ Sets the `align-items` property to `stretch`.
240
+
241
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 align-items-stretch p-5 h-10">
242
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
243
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
244
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4">Item</div>
245
+ </div>
246
+
247
+ ```html
248
+ <div class="display-flex align-items-stretch">
249
+ <!-- Content here -->
250
+ </div>
251
+ ```
252
+
253
+ ## Align self
254
+
255
+ | Class Name | Property | Value |
256
+ | --- | --- | --- |
257
+ | `.align-self-auto` | align-self | auto |
258
+ | `.align-self-start` | align-self | start |
259
+ | `.align-self-end` | align-self | end |
260
+ | `.align-self-center` | align-self | center |
261
+ | `.align-self-baseline` | align-self | baseline |
262
+ | `.align-self-stretch` | align-self | stretch |
263
+
264
+ ### `.align-self-auto`
265
+
266
+ Sets the `align-self` property to `auto`.
267
+
268
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
269
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-auto">Item</div>
270
+ </div>
271
+
272
+ ```html
273
+ <div class="display-flex">
274
+ <div class="align-self-auto">
275
+ <!-- Content here -->
276
+ </div>
277
+ </div>
278
+ ```
279
+
280
+ ### `.align-self-start`
281
+
282
+ Sets the `align-self` property to `start`.
283
+
284
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
285
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-start">Item</div>
286
+ </div>
287
+
288
+ ```html
289
+ <div class="display-flex">
290
+ <div class="align-self-start">
291
+ <!-- Content here -->
292
+ </div>
293
+ </div>
294
+ ```
295
+
296
+ ### `.align-self-end`
297
+
298
+ Sets the `align-self` property to `end`.
299
+
300
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
301
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-end">Item</div>
302
+ </div>
303
+
304
+ ```html
305
+ <div class="display-flex">
306
+ <div class="align-self-end">
307
+ <!-- Content here -->
308
+ </div>
309
+ </div>
310
+ ```
311
+
312
+ ### `.align-self-end`
313
+
314
+ Sets the `align-self` property to `end`.
315
+
316
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
317
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-end">Item</div>
318
+ </div>
319
+
320
+ ```html
321
+ <div class="display-flex">
322
+ <div class="align-self-end">
323
+ <!-- Content here -->
324
+ </div>
325
+ </div>
326
+ ```
327
+
328
+ ### `.align-self-center`
329
+
330
+ Sets the `align-self` property to `center`.
331
+
332
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
333
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-center">Item</div>
334
+ </div>
335
+
336
+ ```html
337
+ <div class="display-flex">
338
+ <div class="align-self-center">
339
+ <!-- Content here -->
340
+ </div>
341
+ </div>
342
+ ```
343
+
344
+ ### `.align-self-baseline`
345
+
346
+ Sets the `align-self` property to `baseline`.
347
+
348
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
349
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-baseline">Item</div>
350
+ </div>
351
+
352
+ ```html
353
+ <div class="display-flex">
354
+ <div class="align-self-baseline">
355
+ <!-- Content here -->
356
+ </div>
357
+ </div>
358
+ ```
359
+
360
+ ### `.align-self-stretch`
361
+
362
+ Sets the `align-self` property to `stretch`.
363
+
364
+ <div class="w-full display-flex g-4 bg-primary-100 bordered border-primary-700 p-5 h-10">
365
+ <div class="bg-primary-200 bordered border-tertiary-700 p-4 align-self-stretch">Item</div>
366
+ </div>
367
+
368
+ ```html
369
+ <div class="display-flex">
370
+ <div class="align-self-stretch">
371
+ <!-- Content here -->
372
+ </div>
373
+ </div>
374
+ ```
375
+
376
+ ## Customization
377
+
378
+ To customize the alignment utilities, you can use the following variables.
379
+
380
+ | Variable | Default Value | Description |
381
+ | --- | --- | --- |
382
+ | `$selector-base` | `"."` | The base selector for the utility classes. |
383
+ | `$use-important` | `true` | A flag to determine if the `!important` flag should be added to the utility classes. |
384
+ | `$screen-aware` | `false` | A flag to generate screen-aware utility classes. |
385
+ | `$theme-aware` | `false` | A flag to generate theme-aware utility classes. |
386
+ | `$state-aware` | `false` | A flag to generate state-aware utility classes. |
387
+ | `$screen-aware-separator` | `":"` | The separator for screen-aware utility classes. |
388
+ | `$theme-aware-separator` | `":"` | The separator for theme-aware utility classes. |
389
+ | `$state-aware-separator` | `":"` | The separator for state-aware utility classes. |
390
+ | `$align-content-selector-prefix` | `"align-content-"` | The prefix for the align content utility classes. |
391
+ | `$custom-align-content-properties` | `()` | The custom properties and values for the align content utility classes. |
392
+ | `$align-items-selector-prefix` | `"align-items-"` | The prefix for the `.align-items-utility` utility classes. |
393
+ | `$custom-align-items-properties` | `()` | The custom properties and values for the `.align-items-utility` utility classes. |
394
+ | `$align-self-selector-prefix` | `"align-self-"` | The prefix for the `.align-self-utility` utility classes. |
395
+ | `$custom-align-self-properties` | `()` | The custom properties and values for the `.align-self-utility` utility classes. |
396
+
397
+ ## Responsive variants
398
+
399
+ To generate responsive alignment utilities, you can set the `$screen-aware`, `$theme-aware`, or `$state-aware` variables to `true`.
400
+
401
+ By default, no responsive alignment utilities are generated.
402
+
403
+ ::: tip :pencil2: Note
404
+ For more information on responsive variants, refer to the [Responsive utility classes](./responsive-classes) documentation.
405
+ :::
@@ -0,0 +1,186 @@
1
+ # Background Utilities
2
+
3
+ The background utilities provide a set of classes to adjust the `bg-attachment`, `bg-clip`, `bg-image`, `bg-origin`, `bg-position`, `bg-repeat`, and `bg-size` properties of elements.
4
+
5
+ ::: tip :pencil2: Note
6
+ For `background-color` utility classes, please refer to the [color utilities](./color).
7
+ :::
8
+
9
+ ## Background Attachment
10
+
11
+ | Class Name | Property | Value |
12
+ | --- | --- | --- |
13
+ | [`.bg-attachment-scroll`](#bg-attachment-scroll) | `background-attachment` | `scroll` |
14
+ | [`.bg-attachment-fixed`](#bg-attachment-fixed) | `background-attachment` | `fixed` |
15
+ | [`.bg-attachment-local`](#bg-attachment-local) | `background-attachment` | `local` |
16
+
17
+ ### `.bg-attachment-scroll`
18
+
19
+ Sets the `background-attachment` property to `scroll`.
20
+
21
+ ### `.bg-attachment-fixed`
22
+
23
+ Sets the `background-attachment` property to `fixed`.
24
+
25
+ ### `.bg-attachment-local`
26
+
27
+ Sets the `background-attachment` property to `local`.
28
+
29
+ ## Background Clip
30
+
31
+ | Class Name | Property | Value |
32
+ | --- | --- | --- |
33
+ | [`.bg-clip-border-box`](#bg-clip-border-box) | `background-clip` | `border-box` |
34
+ | [`.bg-clip-padding-box`](#bg-clip-padding-box) | `background-clip` | `padding-box` |
35
+ | [`.bg-clip-content-box`](#bg-clip-content-box) | `background-clip` | `content-box` |
36
+ | [`.bg-clip-text`](#bg-clip-text) | `background-clip` | `text` |
37
+
38
+ ### `.bg-clip-border-box`
39
+
40
+ Sets the `background-clip` property to `border-box`.
41
+
42
+ ### `.bg-clip-padding-box`
43
+
44
+ Sets the `background-clip` property to `padding-box`.
45
+
46
+ ### `.bg-clip-content-box`
47
+
48
+ Sets the `background-clip` property to `content-box`.
49
+
50
+ ### `.bg-clip-text`
51
+
52
+ Sets the `background-clip` property to `text`.
53
+
54
+ ## Background Image
55
+
56
+ | Class Name | Property | Value |
57
+ | --- | --- | --- |
58
+ | [`.bg-image-none`](#bg-image-none) | `background-image` | `none` |
59
+
60
+ ### `.bg-image-none`
61
+
62
+ Sets the `background-image` property to `none`.
63
+
64
+ ## Background Position
65
+
66
+ | Class Name | Property | Value |
67
+ | --- | --- | --- |
68
+ | [`.bg-position-top`](#bg-position-top) | `background-position` | `top` |
69
+ | [`.bg-position-right`](#bg-position-right) | `background-position` | `right` |
70
+ | [`.bg-position-bottom`](#bg-position-bottom) | `background-position` | `bottom` |
71
+ | [`.bg-position-left`](#bg-position-left) | `background-position` | `left` |
72
+ | [`.bg-position-center`](#bg-position-center) | `background-position` | `center` |
73
+
74
+ ### `.bg-position-top`
75
+
76
+ Sets the `background-position` property to `top`.
77
+
78
+ ### `.bg-position-right`
79
+
80
+ Sets the `background-position` property to `right`.
81
+
82
+ ### `.bg-position-bottom`
83
+
84
+ Sets the `background-position` property to `bottom`.
85
+
86
+ ### `.bg-position-left`
87
+
88
+ Sets the `background-position` property to `left`.
89
+
90
+ ### `.bg-position-center`
91
+
92
+ Sets the `background-position` property to `center`.
93
+
94
+ ## Background Repeat
95
+
96
+ | Class Name | Property | Value |
97
+ | --- | --- | --- |
98
+ | [`.bg-repeat-repeat`](#bg-repeat-repeat) | `background-repeat` | `repeat` |
99
+ | [`.bg-repeat-repeat-x`](#bg-repeat-repeat-x) | `background-repeat` | `repeat-x` |
100
+ | [`.bg-repeat-repeat-y`](#bg-repeat-repeat-y) | `background-repeat` | `repeat-y` |
101
+ | [`.bg-repeat-space`](#bg-repeat-space) | `background-repeat` | `space` |
102
+ | [`.bg-repeat-round`](#bg-repeat-round) | `background-repeat` | `round` |
103
+ | [`.bg-repeat-no-repeat`](#bg-repeat-no-repeat) | `background-repeat` | `no-repeat` |
104
+
105
+ ### `.bg-repeat-repeat`
106
+
107
+ Sets the `background-repeat` property to `repeat`.
108
+
109
+ ### `.bg-repeat-repeat-x`
110
+
111
+ Sets the `background-repeat` property to `repeat-x`.
112
+
113
+ ### `.bg-repeat-repeat-y`
114
+
115
+ Sets the `background-repeat` property to `repeat-y`.
116
+
117
+ ### `.bg-repeat-space`
118
+
119
+ Sets the `background-repeat` property to `space`.
120
+
121
+ ### `.bg-repeat-round`
122
+
123
+ Sets the `background-repeat` property to `round`.
124
+
125
+ ### `.bg-repeat-no-repeat`
126
+
127
+ Sets the `background-repeat` property to `no-repeat`.
128
+
129
+ ## Background Size
130
+
131
+ | Class Name | Property | Value |
132
+ | --- | --- | --- |
133
+ | [`.bg-size-auto`](#bg-size-auto) | `background-size` | `auto` |
134
+ | [`.bg-size-cover`](#bg-size-cover) | `background-size` | `cover` |
135
+ | [`.bg-size-contain`](#bg-size-contain) | `background-size` | `contain` |
136
+
137
+ ### `.bg-size-auto`
138
+
139
+ Sets the `background-size` property to `auto`.
140
+
141
+ ### `.bg-size-cover`
142
+
143
+ Sets the `background-size` property to `cover`.
144
+
145
+ ### `.bg-size-contain`
146
+
147
+ Sets the `background-size` property to `contain`.
148
+
149
+ ## Customization
150
+
151
+ To customize the background utilities, you can use the following variables.
152
+
153
+ | Variable | Default Value | Description |
154
+ | --- | --- | --- |
155
+ | `$selector-base` | `"."` | The base selector for the utility classes. |
156
+ | `$use-important` | `true` | A flag to determine if the `!important` flag should be added to the utility classes. |
157
+ | `$screen-aware` | `false` | A flag to generate screen-aware utility classes. |
158
+ | `$theme-aware` | `false` | A flag to generate theme-aware utility classes. |
159
+ | `$state-aware` | `false` | A flag to generate state-aware utility classes. |
160
+ | `$screen-aware-separator` | `":"` | The separator for screen-aware utility classes. |
161
+ | `$theme-aware-separator` | `":"` | The separator for theme-aware utility classes. |
162
+ | `$state-aware-separator` | `":"` | The separator for state-aware utility classes. |
163
+ | `$background-attachment-selector-prefix` | `"bg-attachment-"` | The prefix for the background attachment utility classes. |
164
+ | `$custom-background-attachment-properties` | `()` | The custom properties and values for the background attachment utility classes. |
165
+ | `$background-clip-selector-prefix` | `"bg-clip-"` | The prefix for the background clip utility classes. |
166
+ | `$custom-background-clip-properties` | `()` | The custom properties and values for the background clip utility classes. |
167
+ | `$background-image-selector-prefix` | `"bg-image-"` | The prefix for the background image utility classes. |
168
+ | `$custom-background-image-properties` | `()` | The custom properties and values for the background image utility classes. |
169
+ | `$background-origin-selector-prefix` | `"bg-origin-"` | The prefix for the background origin utility classes. |
170
+ | `$custom-background-origin-properties` | `()` | The custom properties and values for the background origin utility classes. |
171
+ | `$background-position-selector-prefix` | `"bg-position-"` | The prefix for the background position utility classes. |
172
+ | `$custom-background-position-properties` | `()` | The custom properties and values for the background position utility classes. |
173
+ | `$background-repeat-selector-prefix` | `"bg-repeat-"` | The prefix for the background repeat utility classes. |
174
+ | `$custom-background-repeat-properties` | `()` | The custom properties and values for the background repeat utility classes. |
175
+ | `$background-size-selector-prefix` | `"bg-size-"` | The prefix for the background size utility classes. |
176
+ | `$custom-background-size-properties` | `()` | The custom properties and values for the background size utility classes. |
177
+
178
+ ## Responsive variants
179
+
180
+ To generate responsive alignment utilities, you can set the `$screen-aware`, `$theme-aware`, or `$state-aware` variables to `true`.
181
+
182
+ By default, no responsive alignment utilities are generated.
183
+
184
+ ::: tip :pencil2: Note
185
+ For more information on responsive variants, refer to the [Responsive utility classes](./responsive-classes) documentation.
186
+ :::