@graupl/graupl 1.0.0-beta.10 → 1.0.0-beta.11

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 (474) hide show
  1. package/dist/js/accordion.js +5 -0
  2. package/dist/js/accordion.js.map +1 -0
  3. package/dist/js/alert.js +5 -0
  4. package/dist/js/alert.js.map +1 -0
  5. package/dist/js/carousel.js +5 -0
  6. package/dist/js/carousel.js.map +1 -0
  7. package/dist/js/component/accordion.cjs.js +5 -0
  8. package/dist/js/component/accordion.cjs.js.map +1 -0
  9. package/dist/js/component/accordion.es.js +5 -0
  10. package/dist/js/component/accordion.es.js.map +1 -0
  11. package/dist/js/component/accordion.iife.js +5 -0
  12. package/dist/js/component/accordion.iife.js.map +1 -0
  13. package/dist/js/component/alert.cjs.js +5 -0
  14. package/dist/js/component/alert.cjs.js.map +1 -0
  15. package/dist/js/component/alert.es.js +5 -0
  16. package/dist/js/component/alert.es.js.map +1 -0
  17. package/dist/js/component/alert.iife.js +5 -0
  18. package/dist/js/component/alert.iife.js.map +1 -0
  19. package/dist/js/component/carousel.cjs.js +5 -0
  20. package/dist/js/component/carousel.cjs.js.map +1 -0
  21. package/dist/js/component/carousel.es.js +5 -0
  22. package/dist/js/component/carousel.es.js.map +1 -0
  23. package/dist/js/component/carousel.iife.js +5 -0
  24. package/dist/js/component/carousel.iife.js.map +1 -0
  25. package/dist/js/generator/accordion.cjs.js +5 -0
  26. package/dist/js/generator/accordion.cjs.js.map +1 -0
  27. package/dist/js/generator/accordion.es.js +5 -0
  28. package/dist/js/generator/accordion.es.js.map +1 -0
  29. package/dist/js/generator/accordion.iife.js +5 -0
  30. package/dist/js/generator/accordion.iife.js.map +1 -0
  31. package/dist/js/generator/carousel.cjs.js +5 -0
  32. package/dist/js/generator/carousel.cjs.js.map +1 -0
  33. package/dist/js/generator/carousel.es.js +5 -0
  34. package/dist/js/generator/carousel.es.js.map +1 -0
  35. package/dist/js/generator/carousel.iife.js +5 -0
  36. package/dist/js/generator/carousel.iife.js.map +1 -0
  37. package/dist/js/generator/navigation.cjs.js +3 -0
  38. package/dist/js/generator/navigation.cjs.js.map +1 -0
  39. package/dist/js/generator/navigation.es.js +3 -0
  40. package/dist/js/generator/navigation.es.js.map +1 -0
  41. package/dist/js/generator/navigation.iife.js +3 -0
  42. package/dist/js/generator/navigation.iife.js.map +1 -0
  43. package/dist/js/graupl.js +9 -0
  44. package/dist/js/graupl.js.map +1 -0
  45. package/dist/js/navigation.js +3 -0
  46. package/dist/js/navigation.js.map +1 -0
  47. package/package.json +24 -14
  48. package/.browserslistrc +0 -3
  49. package/.czrc +0 -3
  50. package/.devcontainer/devcontainer.json +0 -221
  51. package/.editorconfig +0 -13
  52. package/.env +0 -3
  53. package/.github/CODE_OF_CONDUCT.md +0 -73
  54. package/.github/COMMIT_CONVENTION.md +0 -17
  55. package/.github/CONTRIBUTING.md +0 -86
  56. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  57. package/.github/ISSUE_TEMPLATE/documentation.md +0 -20
  58. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  59. package/.github/SECURITY.md +0 -26
  60. package/.github/dependabot.yml +0 -17
  61. package/.github/pull_request_template.md +0 -5
  62. package/.github/workflows/codeql-analysis.yml +0 -71
  63. package/.github/workflows/docs.yml +0 -66
  64. package/.github/workflows/prerelease.yml +0 -125
  65. package/.github/workflows/release.yml +0 -111
  66. package/.github/workflows/test.yml +0 -78
  67. package/.husky/commit-msg +0 -3
  68. package/.husky/pre-commit +0 -4
  69. package/.prettierignore +0 -12
  70. package/.stylelintignore +0 -9
  71. package/.versionrc.cjs +0 -73
  72. package/.vscode/settings.json +0 -10
  73. package/CHANGELOG.md +0 -559
  74. package/build.js +0 -9
  75. package/combine-at-rules.cjs +0 -61
  76. package/commitlint.config.js +0 -5
  77. package/container/.env +0 -26
  78. package/container/build/app.dockerfile +0 -41
  79. package/container/docker-compose.yml +0 -27
  80. package/dist/js/graupl.cjs.js +0 -7
  81. package/dist/js/graupl.esm.js +0 -2561
  82. package/dist/js/graupl.iife.js +0 -7
  83. package/docs/.vitepress/config.js +0 -108
  84. package/docs/.vitepress/theme/custom.scss +0 -35
  85. package/docs/.vitepress/theme/index.js +0 -4
  86. package/docs/compiling-graupl.md +0 -57
  87. package/docs/components/alert.md +0 -130
  88. package/docs/components/button.md +0 -84
  89. package/docs/components/card.md +0 -369
  90. package/docs/components/index.md +0 -1
  91. package/docs/components/inputgroup.md +0 -159
  92. package/docs/components/menu.md +0 -326
  93. package/docs/components/navigation.md +0 -158
  94. package/docs/content.md +0 -237
  95. package/docs/defaults.md +0 -121
  96. package/docs/forms.md +0 -79
  97. package/docs/functions.md +0 -9
  98. package/docs/getting-started.md +0 -1
  99. package/docs/index.md +0 -1
  100. package/docs/introduction.md +0 -25
  101. package/docs/layout.md +0 -200
  102. package/docs/mixins.md +0 -47
  103. package/docs/state.md +0 -67
  104. package/docs/theme.md +0 -258
  105. package/docs/utilities/alignment.md +0 -411
  106. package/docs/utilities/background.md +0 -192
  107. package/docs/utilities/border.md +0 -268
  108. package/docs/utilities/color.md +0 -348
  109. package/docs/utilities/container.md +0 -3
  110. package/docs/utilities/display.md +0 -3
  111. package/docs/utilities/flex.md +0 -3
  112. package/docs/utilities/gradient.md +0 -3
  113. package/docs/utilities/height.md +0 -3
  114. package/docs/utilities/inset.md +0 -3
  115. package/docs/utilities/justification.md +0 -3
  116. package/docs/utilities/list.md +0 -3
  117. package/docs/utilities/order.md +0 -3
  118. package/docs/utilities/position.md +0 -3
  119. package/docs/utilities/ratio.md +0 -3
  120. package/docs/utilities/responsive-classes.md +0 -3
  121. package/docs/utilities/spacing.md +0 -3
  122. package/docs/utilities/typography.md +0 -3
  123. package/docs/utilities/visibility.md +0 -3
  124. package/docs/utilities/visually-hidden.md +0 -3
  125. package/docs/utilities/width.md +0 -3
  126. package/docs/utilities/z-index.md +0 -3
  127. package/docs/utilities.md +0 -357
  128. package/eslint.config.js +0 -74
  129. package/favicon.ico +0 -0
  130. package/index.html +0 -1214
  131. package/index.js +0 -12
  132. package/lint-staged.config.js +0 -6
  133. package/logo.svg +0 -296
  134. package/packages/core/build.js +0 -9
  135. package/packages/core/dist/css/base/button.css +0 -2
  136. package/packages/core/dist/css/base/button.css.map +0 -1
  137. package/packages/core/dist/css/base/form.css +0 -2
  138. package/packages/core/dist/css/base/form.css.map +0 -1
  139. package/packages/core/dist/css/base/link.css +0 -2
  140. package/packages/core/dist/css/base/link.css.map +0 -1
  141. package/packages/core/dist/css/base/table.css +0 -2
  142. package/packages/core/dist/css/base/table.css.map +0 -1
  143. package/packages/core/dist/css/base.css +0 -2
  144. package/packages/core/dist/css/base.css.map +0 -1
  145. package/packages/core/dist/css/component/accordion.css +0 -5
  146. package/packages/core/dist/css/component/accordion.css.map +0 -1
  147. package/packages/core/dist/css/component/alert.css +0 -2
  148. package/packages/core/dist/css/component/alert.css.map +0 -1
  149. package/packages/core/dist/css/component/card.css +0 -2
  150. package/packages/core/dist/css/component/card.css.map +0 -1
  151. package/packages/core/dist/css/component/carousel.css +0 -2
  152. package/packages/core/dist/css/component/carousel.css.map +0 -1
  153. package/packages/core/dist/css/component/input-group.css +0 -2
  154. package/packages/core/dist/css/component/input-group.css.map +0 -1
  155. package/packages/core/dist/css/component/list.css +0 -2
  156. package/packages/core/dist/css/component/list.css.map +0 -1
  157. package/packages/core/dist/css/component/menu.css +0 -2
  158. package/packages/core/dist/css/component/menu.css.map +0 -1
  159. package/packages/core/dist/css/component/navigation.css +0 -2
  160. package/packages/core/dist/css/component/navigation.css.map +0 -1
  161. package/packages/core/dist/css/component.css +0 -5
  162. package/packages/core/dist/css/component.css.map +0 -1
  163. package/packages/core/dist/css/graupl.css +0 -5
  164. package/packages/core/dist/css/graupl.css.map +0 -1
  165. package/packages/core/dist/css/init.css +0 -2
  166. package/packages/core/dist/css/init.css.map +0 -1
  167. package/packages/core/dist/css/layout/columns.css +0 -2
  168. package/packages/core/dist/css/layout/columns.css.map +0 -1
  169. package/packages/core/dist/css/layout/container.css +0 -2
  170. package/packages/core/dist/css/layout/container.css.map +0 -1
  171. package/packages/core/dist/css/layout/flex-columns.css +0 -2
  172. package/packages/core/dist/css/layout/flex-columns.css.map +0 -1
  173. package/packages/core/dist/css/layout.css +0 -5
  174. package/packages/core/dist/css/layout.css.map +0 -1
  175. package/packages/core/dist/css/normalize.css +0 -2
  176. package/packages/core/dist/css/normalize.css.map +0 -1
  177. package/packages/core/dist/css/state/focus.css +0 -2
  178. package/packages/core/dist/css/state/focus.css.map +0 -1
  179. package/packages/core/dist/css/state.css +0 -2
  180. package/packages/core/dist/css/state.css.map +0 -1
  181. package/packages/core/dist/css/theme/color.css +0 -2
  182. package/packages/core/dist/css/theme/color.css.map +0 -1
  183. package/packages/core/dist/css/theme/typography.css +0 -2
  184. package/packages/core/dist/css/theme/typography.css.map +0 -1
  185. package/packages/core/dist/css/theme.css +0 -2
  186. package/packages/core/dist/css/theme.css.map +0 -1
  187. package/packages/core/dist/css/utilities/alignment.css +0 -2
  188. package/packages/core/dist/css/utilities/alignment.css.map +0 -1
  189. package/packages/core/dist/css/utilities/background.css +0 -2
  190. package/packages/core/dist/css/utilities/background.css.map +0 -1
  191. package/packages/core/dist/css/utilities/border.css +0 -2
  192. package/packages/core/dist/css/utilities/border.css.map +0 -1
  193. package/packages/core/dist/css/utilities/color.css +0 -2
  194. package/packages/core/dist/css/utilities/color.css.map +0 -1
  195. package/packages/core/dist/css/utilities/container.css +0 -2
  196. package/packages/core/dist/css/utilities/container.css.map +0 -1
  197. package/packages/core/dist/css/utilities/display.css +0 -2
  198. package/packages/core/dist/css/utilities/display.css.map +0 -1
  199. package/packages/core/dist/css/utilities/flex.css +0 -2
  200. package/packages/core/dist/css/utilities/flex.css.map +0 -1
  201. package/packages/core/dist/css/utilities/gradient.css +0 -2
  202. package/packages/core/dist/css/utilities/gradient.css.map +0 -1
  203. package/packages/core/dist/css/utilities/height.css +0 -2
  204. package/packages/core/dist/css/utilities/height.css.map +0 -1
  205. package/packages/core/dist/css/utilities/inset.css +0 -2
  206. package/packages/core/dist/css/utilities/inset.css.map +0 -1
  207. package/packages/core/dist/css/utilities/justification.css +0 -2
  208. package/packages/core/dist/css/utilities/justification.css.map +0 -1
  209. package/packages/core/dist/css/utilities/list.css +0 -2
  210. package/packages/core/dist/css/utilities/list.css.map +0 -1
  211. package/packages/core/dist/css/utilities/order.css +0 -2
  212. package/packages/core/dist/css/utilities/order.css.map +0 -1
  213. package/packages/core/dist/css/utilities/position.css +0 -2
  214. package/packages/core/dist/css/utilities/position.css.map +0 -1
  215. package/packages/core/dist/css/utilities/ratio.css +0 -2
  216. package/packages/core/dist/css/utilities/ratio.css.map +0 -1
  217. package/packages/core/dist/css/utilities/spacing.css +0 -2
  218. package/packages/core/dist/css/utilities/spacing.css.map +0 -1
  219. package/packages/core/dist/css/utilities/typography.css +0 -2
  220. package/packages/core/dist/css/utilities/typography.css.map +0 -1
  221. package/packages/core/dist/css/utilities/visibility.css +0 -2
  222. package/packages/core/dist/css/utilities/visibility.css.map +0 -1
  223. package/packages/core/dist/css/utilities/visually-hidden.css +0 -2
  224. package/packages/core/dist/css/utilities/visually-hidden.css.map +0 -1
  225. package/packages/core/dist/css/utilities/width.css +0 -2
  226. package/packages/core/dist/css/utilities/width.css.map +0 -1
  227. package/packages/core/dist/css/utilities/z-index.css +0 -2
  228. package/packages/core/dist/css/utilities/z-index.css.map +0 -1
  229. package/packages/core/dist/css/utilities.css +0 -2
  230. package/packages/core/dist/css/utilities.css.map +0 -1
  231. package/packages/core/package.json +0 -58
  232. package/packages/core/scss/base/button.scss +0 -3
  233. package/packages/core/scss/base/form.scss +0 -3
  234. package/packages/core/scss/base/link.scss +0 -3
  235. package/packages/core/scss/base/table.scss +0 -3
  236. package/packages/core/scss/base.scss +0 -3
  237. package/packages/core/scss/component/accordion.scss +0 -3
  238. package/packages/core/scss/component/alert.scss +0 -3
  239. package/packages/core/scss/component/card.scss +0 -3
  240. package/packages/core/scss/component/carousel.scss +0 -3
  241. package/packages/core/scss/component/input-group.scss +0 -3
  242. package/packages/core/scss/component/list.scss +0 -3
  243. package/packages/core/scss/component/menu.scss +0 -3
  244. package/packages/core/scss/component/navigation.scss +0 -3
  245. package/packages/core/scss/component.scss +0 -3
  246. package/packages/core/scss/graupl.scss +0 -3
  247. package/packages/core/scss/init.scss +0 -3
  248. package/packages/core/scss/layout/columns.scss +0 -3
  249. package/packages/core/scss/layout/container.scss +0 -3
  250. package/packages/core/scss/layout/flex-columns.scss +0 -3
  251. package/packages/core/scss/layout.scss +0 -3
  252. package/packages/core/scss/normalize.scss +0 -3
  253. package/packages/core/scss/state/focus.scss +0 -3
  254. package/packages/core/scss/state.scss +0 -3
  255. package/packages/core/scss/theme/color.scss +0 -3
  256. package/packages/core/scss/theme/typography.scss +0 -3
  257. package/packages/core/scss/theme.scss +0 -3
  258. package/packages/core/scss/utilities/alignment.scss +0 -3
  259. package/packages/core/scss/utilities/background.scss +0 -3
  260. package/packages/core/scss/utilities/border.scss +0 -3
  261. package/packages/core/scss/utilities/color.scss +0 -3
  262. package/packages/core/scss/utilities/container.scss +0 -3
  263. package/packages/core/scss/utilities/display.scss +0 -3
  264. package/packages/core/scss/utilities/flex.scss +0 -3
  265. package/packages/core/scss/utilities/gradient.scss +0 -3
  266. package/packages/core/scss/utilities/height.scss +0 -3
  267. package/packages/core/scss/utilities/inset.scss +0 -3
  268. package/packages/core/scss/utilities/justification.scss +0 -3
  269. package/packages/core/scss/utilities/list.scss +0 -3
  270. package/packages/core/scss/utilities/order.scss +0 -3
  271. package/packages/core/scss/utilities/position.scss +0 -3
  272. package/packages/core/scss/utilities/ratio.scss +0 -3
  273. package/packages/core/scss/utilities/spacing.scss +0 -3
  274. package/packages/core/scss/utilities/typography.scss +0 -3
  275. package/packages/core/scss/utilities/visibility.scss +0 -3
  276. package/packages/core/scss/utilities/visually-hidden.scss +0 -3
  277. package/packages/core/scss/utilities/width.scss +0 -3
  278. package/packages/core/scss/utilities/z-index.scss +0 -3
  279. package/packages/core/scss/utilities.scss +0 -3
  280. package/packages/core/src/js/accordion/Accordion.js +0 -1163
  281. package/packages/core/src/js/accordion/AccordionItem.js +0 -496
  282. package/packages/core/src/js/accordion/index.js +0 -10
  283. package/packages/core/src/js/alert/Alert.js +0 -581
  284. package/packages/core/src/js/alert/index.js +0 -11
  285. package/packages/core/src/js/carousel/Carousel.js +0 -1427
  286. package/packages/core/src/js/carousel/index.js +0 -10
  287. package/packages/core/src/js/domHelpers.js +0 -37
  288. package/packages/core/src/js/eventHandlers.js +0 -39
  289. package/packages/core/src/js/navigation/index.js +0 -36
  290. package/packages/core/src/js/storage.js +0 -106
  291. package/packages/core/src/js/validate.js +0 -225
  292. package/packages/core/src/scss/_defaults.scss +0 -184
  293. package/packages/core/src/scss/_index.scss +0 -15
  294. package/packages/core/src/scss/_init.scss +0 -6
  295. package/packages/core/src/scss/_normalize.scss +0 -197
  296. package/packages/core/src/scss/_variables.scss +0 -95
  297. package/packages/core/src/scss/base/_index.scss +0 -6
  298. package/packages/core/src/scss/base/button/_defaults.scss +0 -49
  299. package/packages/core/src/scss/base/button/_index.scss +0 -206
  300. package/packages/core/src/scss/base/button/_mixins.scss +0 -104
  301. package/packages/core/src/scss/base/button/_variables.scss +0 -252
  302. package/packages/core/src/scss/base/form/_defaults.scss +0 -24
  303. package/packages/core/src/scss/base/form/_index.scss +0 -227
  304. package/packages/core/src/scss/base/form/_variables.scss +0 -245
  305. package/packages/core/src/scss/base/link/_defaults.scss +0 -35
  306. package/packages/core/src/scss/base/link/_index.scss +0 -245
  307. package/packages/core/src/scss/base/link/_variables.scss +0 -370
  308. package/packages/core/src/scss/base/table/_defaults.scss +0 -68
  309. package/packages/core/src/scss/base/table/_index.scss +0 -314
  310. package/packages/core/src/scss/base/table/_variables.scss +0 -309
  311. package/packages/core/src/scss/component/_index.scss +0 -10
  312. package/packages/core/src/scss/component/accordion/_defaults.scss +0 -40
  313. package/packages/core/src/scss/component/accordion/_index.scss +0 -198
  314. package/packages/core/src/scss/component/accordion/_variables.scss +0 -356
  315. package/packages/core/src/scss/component/alert/_defaults.scss +0 -49
  316. package/packages/core/src/scss/component/alert/_index.scss +0 -119
  317. package/packages/core/src/scss/component/alert/_variables.scss +0 -200
  318. package/packages/core/src/scss/component/card/_defaults.scss +0 -32
  319. package/packages/core/src/scss/component/card/_index.scss +0 -212
  320. package/packages/core/src/scss/component/card/_variables.scss +0 -216
  321. package/packages/core/src/scss/component/carousel/_defaults.scss +0 -43
  322. package/packages/core/src/scss/component/carousel/_index.scss +0 -192
  323. package/packages/core/src/scss/component/carousel/_variables.scss +0 -104
  324. package/packages/core/src/scss/component/input-group/_defaults.scss +0 -30
  325. package/packages/core/src/scss/component/input-group/_index.scss +0 -47
  326. package/packages/core/src/scss/component/input-group/_variables.scss +0 -66
  327. package/packages/core/src/scss/component/list/_defaults.scss +0 -15
  328. package/packages/core/src/scss/component/list/_index.scss +0 -52
  329. package/packages/core/src/scss/component/list/_variables.scss +0 -236
  330. package/packages/core/src/scss/component/menu/_defaults.scss +0 -57
  331. package/packages/core/src/scss/component/menu/_index.scss +0 -308
  332. package/packages/core/src/scss/component/menu/_variables.scss +0 -642
  333. package/packages/core/src/scss/component/navigation/_defaults.scss +0 -23
  334. package/packages/core/src/scss/component/navigation/_index.scss +0 -190
  335. package/packages/core/src/scss/component/navigation/_variables.scss +0 -290
  336. package/packages/core/src/scss/functions/_container.scss +0 -38
  337. package/packages/core/src/scss/functions/_important.scss +0 -36
  338. package/packages/core/src/scss/functions/_screen.scss +0 -38
  339. package/packages/core/src/scss/functions/_theme.scss +0 -39
  340. package/packages/core/src/scss/functions/_utility.scss +0 -28
  341. package/packages/core/src/scss/layout/_index.scss +0 -5
  342. package/packages/core/src/scss/layout/columns/_defaults.scss +0 -24
  343. package/packages/core/src/scss/layout/columns/_index.scss +0 -137
  344. package/packages/core/src/scss/layout/columns/_variables.scss +0 -55
  345. package/packages/core/src/scss/layout/container/_defaults.scss +0 -35
  346. package/packages/core/src/scss/layout/container/_index.scss +0 -628
  347. package/packages/core/src/scss/layout/container/_variables.scss +0 -114
  348. package/packages/core/src/scss/layout/flex-columns/_defaults.scss +0 -28
  349. package/packages/core/src/scss/layout/flex-columns/_index.scss +0 -184
  350. package/packages/core/src/scss/layout/flex-columns/_variables.scss +0 -30
  351. package/packages/core/src/scss/mixins/_animation.scss +0 -15
  352. package/packages/core/src/scss/mixins/_container.scss +0 -80
  353. package/packages/core/src/scss/mixins/_layer.scss +0 -16
  354. package/packages/core/src/scss/mixins/_screen.scss +0 -77
  355. package/packages/core/src/scss/mixins/_state.scss +0 -18
  356. package/packages/core/src/scss/mixins/_theme.scss +0 -15
  357. package/packages/core/src/scss/mixins/_utility.scss +0 -185
  358. package/packages/core/src/scss/mixins/_visually-hidden.scss +0 -30
  359. package/packages/core/src/scss/state/_index.scss +0 -3
  360. package/packages/core/src/scss/state/focus/_defaults.scss +0 -9
  361. package/packages/core/src/scss/state/focus/_index.scss +0 -42
  362. package/packages/core/src/scss/state/focus/_mixins.scss +0 -13
  363. package/packages/core/src/scss/state/focus/_variables.scss +0 -50
  364. package/packages/core/src/scss/theme/_index.scss +0 -4
  365. package/packages/core/src/scss/theme/color/_defaults.scss +0 -143
  366. package/packages/core/src/scss/theme/color/_index.scss +0 -42
  367. package/packages/core/src/scss/theme/color/_variables.scss +0 -133
  368. package/packages/core/src/scss/theme/typography/_defaults.scss +0 -54
  369. package/packages/core/src/scss/theme/typography/_index.scss +0 -120
  370. package/packages/core/src/scss/theme/typography/_variables.scss +0 -248
  371. package/packages/core/src/scss/utilities/_index.scss +0 -23
  372. package/packages/core/src/scss/utilities/_template/_defaults.scss +0 -41
  373. package/packages/core/src/scss/utilities/_template/_index.scss +0 -171
  374. package/packages/core/src/scss/utilities/_template/_variables.scss +0 -6
  375. package/packages/core/src/scss/utilities/alignment/_defaults.scss +0 -76
  376. package/packages/core/src/scss/utilities/alignment/_index.scss +0 -336
  377. package/packages/core/src/scss/utilities/alignment/_variables.scss +0 -6
  378. package/packages/core/src/scss/utilities/background/_defaults.scss +0 -122
  379. package/packages/core/src/scss/utilities/background/_index.scss +0 -634
  380. package/packages/core/src/scss/utilities/background/_variables.scss +0 -6
  381. package/packages/core/src/scss/utilities/border/_defaults.scss +0 -73
  382. package/packages/core/src/scss/utilities/border/_index.scss +0 -558
  383. package/packages/core/src/scss/utilities/border/_variables.scss +0 -6
  384. package/packages/core/src/scss/utilities/color/_defaults.scss +0 -49
  385. package/packages/core/src/scss/utilities/color/_index.scss +0 -469
  386. package/packages/core/src/scss/utilities/color/_variables.scss +0 -6
  387. package/packages/core/src/scss/utilities/container/_defaults.scss +0 -40
  388. package/packages/core/src/scss/utilities/container/_index.scss +0 -174
  389. package/packages/core/src/scss/utilities/container/_variables.scss +0 -6
  390. package/packages/core/src/scss/utilities/display/_defaults.scss +0 -47
  391. package/packages/core/src/scss/utilities/display/_index.scss +0 -184
  392. package/packages/core/src/scss/utilities/display/_variables.scss +0 -6
  393. package/packages/core/src/scss/utilities/flex/_defaults.scss +0 -99
  394. package/packages/core/src/scss/utilities/flex/_index.scss +0 -486
  395. package/packages/core/src/scss/utilities/flex/_variables.scss +0 -6
  396. package/packages/core/src/scss/utilities/gradient/_defaults.scss +0 -70
  397. package/packages/core/src/scss/utilities/gradient/_index.scss +0 -696
  398. package/packages/core/src/scss/utilities/gradient/_variables.scss +0 -29
  399. package/packages/core/src/scss/utilities/height/_defaults.scss +0 -54
  400. package/packages/core/src/scss/utilities/height/_index.scss +0 -525
  401. package/packages/core/src/scss/utilities/height/_variables.scss +0 -6
  402. package/packages/core/src/scss/utilities/inset/_defaults.scss +0 -55
  403. package/packages/core/src/scss/utilities/inset/_index.scss +0 -258
  404. package/packages/core/src/scss/utilities/inset/_variables.scss +0 -6
  405. package/packages/core/src/scss/utilities/justification/_defaults.scss +0 -73
  406. package/packages/core/src/scss/utilities/justification/_index.scss +0 -333
  407. package/packages/core/src/scss/utilities/justification/_variables.scss +0 -6
  408. package/packages/core/src/scss/utilities/list/_defaults.scss +0 -53
  409. package/packages/core/src/scss/utilities/list/_index.scss +0 -253
  410. package/packages/core/src/scss/utilities/list/_variables.scss +0 -6
  411. package/packages/core/src/scss/utilities/order/_defaults.scss +0 -36
  412. package/packages/core/src/scss/utilities/order/_index.scss +0 -246
  413. package/packages/core/src/scss/utilities/order/_variables.scss +0 -6
  414. package/packages/core/src/scss/utilities/position/_defaults.scss +0 -41
  415. package/packages/core/src/scss/utilities/position/_index.scss +0 -178
  416. package/packages/core/src/scss/utilities/position/_variables.scss +0 -6
  417. package/packages/core/src/scss/utilities/ratio/_defaults.scss +0 -42
  418. package/packages/core/src/scss/utilities/ratio/_index.scss +0 -188
  419. package/packages/core/src/scss/utilities/ratio/_variables.scss +0 -9
  420. package/packages/core/src/scss/utilities/spacing/_defaults.scss +0 -64
  421. package/packages/core/src/scss/utilities/spacing/_index.scss +0 -970
  422. package/packages/core/src/scss/utilities/spacing/_variables.scss +0 -6
  423. package/packages/core/src/scss/utilities/typography/_defaults.scss +0 -58
  424. package/packages/core/src/scss/utilities/typography/_index.scss +0 -1089
  425. package/packages/core/src/scss/utilities/typography/_variables.scss +0 -6
  426. package/packages/core/src/scss/utilities/visibility/_defaults.scss +0 -39
  427. package/packages/core/src/scss/utilities/visibility/_index.scss +0 -173
  428. package/packages/core/src/scss/utilities/visibility/_variables.scss +0 -6
  429. package/packages/core/src/scss/utilities/visually-hidden/_defaults.scss +0 -29
  430. package/packages/core/src/scss/utilities/visually-hidden/_index.scss +0 -189
  431. package/packages/core/src/scss/utilities/visually-hidden/_variables.scss +0 -6
  432. package/packages/core/src/scss/utilities/width/_defaults.scss +0 -54
  433. package/packages/core/src/scss/utilities/width/_index.scss +0 -525
  434. package/packages/core/src/scss/utilities/width/_variables.scss +0 -6
  435. package/packages/core/src/scss/utilities/z-index/_defaults.scss +0 -40
  436. package/packages/core/src/scss/utilities/z-index/_index.scss +0 -173
  437. package/packages/core/src/scss/utilities/z-index/_variables.scss +0 -6
  438. package/packages/core/vite.config.js +0 -28
  439. package/packages/icons/dist/css/base/button.css +0 -2
  440. package/packages/icons/dist/css/base/button.css.map +0 -1
  441. package/packages/icons/dist/css/base/link.css +0 -2
  442. package/packages/icons/dist/css/base/link.css.map +0 -1
  443. package/packages/icons/dist/css/base.css +0 -2
  444. package/packages/icons/dist/css/base.css.map +0 -1
  445. package/packages/icons/dist/css/component/icon.css +0 -2
  446. package/packages/icons/dist/css/component/icon.css.map +0 -1
  447. package/packages/icons/dist/css/component.css +0 -2
  448. package/packages/icons/dist/css/component.css.map +0 -1
  449. package/packages/icons/dist/css/icon.css +0 -2
  450. package/packages/icons/dist/css/icon.css.map +0 -1
  451. package/packages/icons/package.json +0 -48
  452. package/packages/icons/scss/base/button.scss +0 -3
  453. package/packages/icons/scss/base/link.scss +0 -3
  454. package/packages/icons/scss/base.scss +0 -3
  455. package/packages/icons/scss/component/icon.scss +0 -3
  456. package/packages/icons/scss/component.scss +0 -3
  457. package/packages/icons/scss/icon.scss +0 -3
  458. package/packages/icons/src/scss/_index.scss +0 -4
  459. package/packages/icons/src/scss/base/_index.scss +0 -4
  460. package/packages/icons/src/scss/base/button/_defaults.scss +0 -7
  461. package/packages/icons/src/scss/base/button/_index.scss +0 -58
  462. package/packages/icons/src/scss/base/button/_variables.scss +0 -7
  463. package/packages/icons/src/scss/base/link/_defaults.scss +0 -7
  464. package/packages/icons/src/scss/base/link/_index.scss +0 -58
  465. package/packages/icons/src/scss/base/link/_variables.scss +0 -7
  466. package/packages/icons/src/scss/component/_index.scss +0 -3
  467. package/packages/icons/src/scss/component/icon/_defaults.scss +0 -30
  468. package/packages/icons/src/scss/component/icon/_index.scss +0 -60
  469. package/packages/icons/src/scss/component/icon/_mixins.scss +0 -62
  470. package/packages/icons/src/scss/component/icon/_variables.scss +0 -24
  471. package/postcss.config.cjs +0 -11
  472. package/prettier.config.js +0 -16
  473. package/stylelint.config.js +0 -22
  474. package/vite.config.js +0 -28
@@ -1,469 +0,0 @@
1
- // @graupl/core color utilities styles.
2
- //
3
- // This file generates the color utility classes provided by Graupl.
4
- //
5
- // The following classes are generated by default:
6
- // - `.bg-primary-100`: Sets the background to Graupl's primary 100 color.
7
- // - `.bg-primary-200`: Sets the background to Graupl's primary 200 color.
8
- // - `.bg-primary-300`: Sets the background to Graupl's primary 300 color.
9
- // - `.bg-primary-400`: Sets the background to Graupl's primary 400 color.
10
- // - `.bg-primary-500`: Sets the background to Graupl's primary 500 color.
11
- // - `.bg-primary-600`: Sets the background to Graupl's primary 600 color.
12
- // - `.bg-primary-700`: Sets the background to Graupl's primary 700 color.
13
- // - `.bg-primary-800`: Sets the background to Graupl's primary 800 color.
14
- // - `.bg-primary-900`: Sets the background to Graupl's primary 900 color.
15
- // - `.bg-secondary-100`: Sets the background to Graupl's secondary 100 color.
16
- // - `.bg-secondary-200`: Sets the background to Graupl's secondary 200 color.
17
- // - `.bg-secondary-300`: Sets the background to Graupl's secondary 300 color.
18
- // - `.bg-secondary-400`: Sets the background to Graupl's secondary 400 color.
19
- // - `.bg-secondary-500`: Sets the background to Graupl's secondary 500 color.
20
- // - `.bg-secondary-600`: Sets the background to Graupl's secondary 600 color.
21
- // - `.bg-secondary-700`: Sets the background to Graupl's secondary 700 color.
22
- // - `.bg-secondary-800`: Sets the background to Graupl's secondary 800 color.
23
- // - `.bg-secondary-900`: Sets the background to Graupl's secondary 900 color.
24
- // - `.bg-tertiary-100`: Sets the background to Graupl's tertiary 100 color.
25
- // - `.bg-tertiary-200`: Sets the background to Graupl's tertiary 200 color.
26
- // - `.bg-tertiary-300`: Sets the background to Graupl's tertiary 300 color.
27
- // - `.bg-tertiary-400`: Sets the background to Graupl's tertiary 400 color.
28
- // - `.bg-tertiary-500`: Sets the background to Graupl's tertiary 500 color.
29
- // - `.bg-tertiary-600`: Sets the background to Graupl's tertiary 600 color.
30
- // - `.bg-tertiary-700`: Sets the background to Graupl's tertiary 700 color.
31
- // - `.bg-tertiary-800`: Sets the background to Graupl's tertiary 800 color.
32
- // - `.bg-tertiary-900`: Sets the background to Graupl's tertiary 900 color.
33
- // - `.bg-inherit`: Sets the background to `inherit`.
34
- // - `.bg-current`: Sets the background to `currentcolor`.
35
- // - `.bg-transparent`: Sets the background to `transparent`.
36
- // - `.text-primary-100`: Sets the text color to Graupl's primary 100 color.
37
- // - `.text-primary-200`: Sets the text color to Graupl's primary 200 color.
38
- // - `.text-primary-300`: Sets the text color to Graupl's primary 300 color.
39
- // - `.text-primary-400`: Sets the text color to Graupl's primary 400 color.
40
- // - `.text-primary-500`: Sets the text color to Graupl's primary 500 color.
41
- // - `.text-primary-600`: Sets the text color to Graupl's primary 600 color.
42
- // - `.text-primary-700`: Sets the text color to Graupl's primary 700 color.
43
- // - `.text-primary-800`: Sets the text color to Graupl's primary 800 color.
44
- // - `.text-primary-900`: Sets the text color to Graupl's primary 900 color.
45
- // - `.text-secondary-100`: Sets the text color to Graupl's secondary 100 color.
46
- // - `.text-secondary-200`: Sets the text color to Graupl's secondary 200 color.
47
- // - `.text-secondary-300`: Sets the text color to Graupl's secondary 300 color.
48
- // - `.text-secondary-400`: Sets the text color to Graupl's secondary 400 color.
49
- // - `.text-secondary-500`: Sets the text color to Graupl's secondary 500 color.
50
- // - `.text-secondary-600`: Sets the text color to Graupl's secondary 600 color.
51
- // - `.text-secondary-700`: Sets the text color to Graupl's secondary 700 color.
52
- // - `.text-secondary-800`: Sets the text color to Graupl's secondary 800 color.
53
- // - `.text-secondary-900`: Sets the text color to Graupl's secondary 900 color.
54
- // - `.text-tertiary-100`: Sets the text color to Graupl's tertiary 100 color.
55
- // - `.text-tertiary-200`: Sets the text color to Graupl's tertiary 200 color.
56
- // - `.text-tertiary-300`: Sets the text color to Graupl's tertiary 300 color.
57
- // - `.text-tertiary-400`: Sets the text color to Graupl's tertiary 400 color.
58
- // - `.text-tertiary-500`: Sets the text color to Graupl's tertiary 500 color.
59
- // - `.text-tertiary-600`: Sets the text color to Graupl's tertiary 600 color.
60
- // - `.text-tertiary-700`: Sets the text color to Graupl's tertiary 700 color.
61
- // - `.text-tertiary-800`: Sets the text color to Graupl's tertiary 800 color.
62
- // - `.text-tertiary-900`: Sets the text color to Graupl's tertiary 900 color.
63
- // - `.text-inherit`: Sets the text color to `inherit`.
64
- // - `.text-current`: Sets the text color to `currentcolor`.
65
- // - `.text-transparent`: Sets the text color to `transparent`.
66
- //
67
- // The following custom properties control the generated classes:
68
- // - N/A.
69
- //
70
- // The following variables control the generated classes:
71
- // - `$selector-base`: The base selector for the utility classes.
72
- // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
73
- // - `$screen-aware`: A flag to generate screen-aware utility classes.
74
- // - `$theme-aware`: A flag to generate theme-aware utility classes.
75
- // - `$state-aware`: A flag to generate state-aware utility classes.
76
- // - `$container-aware`: A flag to generate container-aware utility classes.
77
- // - `$screen-aware-separator`: The separator for screen-aware utility classes.
78
- // - `$theme-aware-separator`: The separator for theme-aware utility classes.
79
- // - `$state-aware-separator`: The separator for state-aware utility classes.
80
- // - `$container-aware-separator`: The separator for container-aware utility classes.
81
- // - `$screen-aware-selector-prefix`: The prefix for screen-aware utility classes.
82
- // - `$theme-aware-selector-prefix`: The prefix for theme-aware utility classes.
83
- // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
84
- // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
85
- // - `$background-selector-prefix`: The prefix for the background utility classes.
86
- // - `$base-background-properties`: The base properties and values for the background utility classes.
87
- // - `$custom-background-properties`: The custom properties and values for the background utility classes.
88
- // - `$background-properties`: The merged properties and values for the background utility classes.
89
- // - `$text-selector-prefix`: The prefix for the text utility classes.
90
- // - `$base-text-properties`: The base properties and values for text utility classes.
91
- // - `$custom-text-properties`: The custom properties and values for text utility classes.
92
- // - `$text-properties`: The merged properties and values for text utility classes.
93
- //
94
- // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
95
- // By default, theme-aware and state-aware utility classes are generated.
96
- //
97
- // When set to true, screen-aware utility classes will be generated for each screen size in the following pattern:
98
- // - `.{screen-prefix}{screen-name}:{prefix}{value}`
99
- //
100
- // e.g. `.sm:bg-primary-100` will set the `background` property to Graupl's primary 100 color on screens equal to or larger than the `sm` breakpoint.
101
- //
102
- // When set to true, theme-aware utility classes will be generated for each theme in the following pattern:
103
- // - `.{theme-prefix}{theme-name}:{prefix}{value}`
104
- //
105
- // e.g. `.dark:bg-primary-100` will set the `background` property to Graupl's primary 100 color when the `dark` theme is active.
106
- //
107
- // When set to true, state-aware utility classes will be generated for each state in the following pattern:
108
- // - `.{state-prefix}{state-name}:{prefix}{value}`
109
- //
110
- // e.g. `.hover:bg-primary-100` will set the `background` property to Graupl's primary 100 color when the element is hovered.
111
- //
112
- // When set to true, container-aware utility classes will be generated for each container in the following pattern:
113
- // - `.{container-prefix}{container-name}:{prefix}{value}`
114
- //
115
- // e.g. `.cq:md:bg-primary-100` will set the `background` property to Graupl's primary 100 color when the parent container is larger than the `md` breakpoint.
116
- //
117
- // @example
118
- // <div class="bg-primary-100">
119
- // <span class="text-primary-900">This is primary 900 text with a primary 100 background.</span>
120
- // </div>
121
- //
122
- // @example
123
- // <div class="bg-primary-100 hover:bg-primary-200">This background will change to primary 200 when hovered.</div>
124
- //
125
- // @example
126
- // <div class="bg-primary-100 dark:bg-primary-900">This background will change to primary 900 when the dark theme is active.</div>
127
-
128
- @use "../../defaults" as root-defaults;
129
- @use "../../mixins/layer" as *;
130
- @use "../../mixins/utility";
131
- @use "../../theme/color/variables" as color;
132
- @use "defaults";
133
- @use "sass:map";
134
- @use "variables" as *;
135
-
136
- @include layer(utilities) {
137
- // `.`
138
- $selector-prefix: defaults.$selector-base;
139
-
140
- // For each theme colour, create a utility class for background and color.
141
- @each $color, $map in map.get(color.$themes, active) {
142
- @each $shade, $value in $map {
143
- // e.g. `.bg-primary-500` or `.bg-secondary-700`
144
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$color}-#{$shade};
145
-
146
- @include utility.create-mapped(
147
- $selector,
148
- (
149
- --#{root-defaults.$prefix}background: #{$value},
150
- background: #{color.$background}
151
- ),
152
- $important: defaults.$use-important
153
- );
154
-
155
- // e.g. `.text-primary-500` or `.text-secondary-700`
156
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$color}-#{$shade};
157
-
158
- @include utility.create-mapped(
159
- $selector,
160
- (--#{root-defaults.$prefix}color: #{$value}, color: #{color.$color}),
161
- $important: defaults.$use-important
162
- );
163
- }
164
- }
165
-
166
- // For each background property, create a utility class.
167
- @each $name, $value in defaults.$background-properties {
168
- // e.g. `.bg-inherit` or `.bg-current`
169
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$name};
170
-
171
- @include utility.create-mapped(
172
- $selector,
173
- (
174
- --#{root-defaults.$prefix}background: #{$value},
175
- background: #{color.$background}
176
- ),
177
- $important: defaults.$use-important
178
- );
179
- }
180
-
181
- // For each text property, create a utility class.
182
- @each $name, $value in defaults.$text-properties {
183
- // e.g. `.text-inherit` or `.text-current`
184
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$name};
185
-
186
- @include utility.create-mapped(
187
- $selector,
188
- (--#{root-defaults.$prefix}color: #{$value}, color: #{color.$color}),
189
- $important: defaults.$use-important
190
- );
191
- }
192
-
193
- // Generate screen-aware utilities.
194
- @if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
195
- @each $screen-name in map.keys(root-defaults.$screen-sizes) {
196
- // e.g. `.md:` or `.lg:`
197
- $selector-prefix: #{defaults.$selector-base}#{defaults.$screen-aware-selector-prefix}#{$screen-name}#{defaults.$screen-aware-separator};
198
-
199
- // For each theme colour, create a utility class for background and color.
200
- @each $color, $map in map.get(color.$themes, active) {
201
- @each $shade, $value in $map {
202
- // e.g. `.md:bg-primary-500` or `.lg:bg-secondary-700`
203
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$color}-#{$shade};
204
-
205
- @include utility.create-mapped(
206
- $selector,
207
- (
208
- --#{root-defaults.$prefix}background: #{$value},
209
- background: #{color.$background}
210
- ),
211
- $important: defaults.$use-important,
212
- $screen: $screen-name
213
- );
214
-
215
- // e.g. `.md:text-primary-500` or `.lg:text-secondary-700`
216
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$color}-#{$shade};
217
-
218
- @include utility.create-mapped(
219
- $selector,
220
- (
221
- --#{root-defaults.$prefix}color: #{$value},
222
- color: #{color.$color}
223
- ),
224
- $important: defaults.$use-important,
225
- $screen: $screen-name
226
- );
227
- }
228
- }
229
-
230
- // For each background property, create a utility class.
231
- @each $name, $value in defaults.$background-properties {
232
- // e.g. `.md:bg-inherit` or `.lg:bg-current`
233
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$name};
234
-
235
- @include utility.create-mapped(
236
- $selector,
237
- (
238
- --#{root-defaults.$prefix}background: #{$value},
239
- background: #{color.$background}
240
- ),
241
- $important: defaults.$use-important,
242
- $screen: $screen-name
243
- );
244
- }
245
-
246
- // For each text property, create a utility class.
247
- @each $name, $value in defaults.$text-properties {
248
- // e.g. `.md:text-inherit` or `.lg:text-current`
249
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$name};
250
-
251
- @include utility.create-mapped(
252
- $selector,
253
- (--#{root-defaults.$prefix}color: #{$value}, color: #{color.$color}),
254
- $important: defaults.$use-important,
255
- $screen: $screen-name
256
- );
257
- }
258
- }
259
- }
260
-
261
- // Generate theme-aware utilities.
262
- @if defaults.$theme-aware and root-defaults.$theme-aware-utilities {
263
- @each $theme-name, $colors in color.$themes {
264
- @if $theme-name != active {
265
- // e.g. `.dark:` or `.light:`
266
- $selector-prefix: #{defaults.$selector-base}#{defaults.$theme-aware-selector-prefix}#{$theme-name}#{defaults.$theme-aware-separator};
267
-
268
- // For each theme colour, create a utility class for background and color.
269
- @each $color, $map in map.get(color.$themes, active) {
270
- @each $shade, $value in $map {
271
- // e.g. `.dark:bg-primary-500` or `.light:bg-secondary-700`
272
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$color}-#{$shade};
273
-
274
- @include utility.create-mapped(
275
- $selector,
276
- (
277
- --#{root-defaults.$prefix}background: #{$value},
278
- background: #{color.$background}
279
- ),
280
- $important: defaults.$use-important,
281
- $theme: $theme-name
282
- );
283
-
284
- // e.g. `.dark:text-primary-500` or `.light:text-secondary-700`
285
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$color}-#{$shade};
286
-
287
- @include utility.create-mapped(
288
- $selector,
289
- (
290
- --#{root-defaults.$prefix}color: #{$value},
291
- color: #{color.$color}
292
- ),
293
- $important: defaults.$use-important,
294
- $theme: $theme-name
295
- );
296
- }
297
- }
298
-
299
- // For each background property, create a utility class.
300
- @each $name, $value in defaults.$background-properties {
301
- // e.g. `.dark:bg-inherit` or `.light:bg-current`
302
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$name};
303
-
304
- @include utility.create-mapped(
305
- $selector,
306
- (
307
- --#{root-defaults.$prefix}background: #{$value},
308
- background: #{color.$background}
309
- ),
310
- $important: defaults.$use-important,
311
- $theme: $theme-name
312
- );
313
- }
314
-
315
- // For each text property, create a utility class.
316
- @each $name, $value in defaults.$text-properties {
317
- // e.g. `.dark:text-inherit` or `.light:text-current`
318
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$name};
319
-
320
- @include utility.create-mapped(
321
- $selector,
322
- (
323
- --#{root-defaults.$prefix}color: #{$value},
324
- color: #{color.$color}
325
- ),
326
- $important: defaults.$use-important,
327
- $theme: $theme-name
328
- );
329
- }
330
- }
331
- }
332
- }
333
-
334
- // Generate state-aware utilities.
335
- @if defaults.$state-aware and root-defaults.$state-aware-utilities {
336
- @each $state-name, $value in root-defaults.$state-selectors {
337
- // e.g. `.hover:` or `.focus:`
338
- $selector-prefix: #{defaults.$selector-base}#{defaults.$state-aware-selector-prefix}#{$state-name}#{defaults.$state-aware-separator};
339
-
340
- // For each theme colour, create a utility class for background and color.
341
- @each $color, $map in map.get(color.$themes, active) {
342
- @each $shade, $value in $map {
343
- // e.g. `.hover:bg-primary-500` or `.focus:bg-secondary-700`
344
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$color}-#{$shade};
345
-
346
- @include utility.create-mapped(
347
- $selector,
348
- (
349
- --#{root-defaults.$prefix}background: #{$value},
350
- background: #{color.$background}
351
- ),
352
- $important: defaults.$use-important,
353
- $state: $state-name
354
- );
355
-
356
- // e.g. `.hover:text-primary-500` or `.focus:text-secondary-700`
357
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$color}-#{$shade};
358
-
359
- @include utility.create-mapped(
360
- $selector,
361
- (
362
- --#{root-defaults.$prefix}color: #{$value},
363
- color: #{color.$color}
364
- ),
365
- $important: defaults.$use-important,
366
- $state: $state-name
367
- );
368
- }
369
- }
370
-
371
- // For each background property, create a utility class.
372
- @each $name, $value in defaults.$background-properties {
373
- // e.g. `.hover:bg-inherit` or `.focus:bg-current`
374
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$name};
375
-
376
- @include utility.create-mapped(
377
- $selector,
378
- (
379
- --#{root-defaults.$prefix}background: #{$value},
380
- background: #{color.$background}
381
- ),
382
- $important: defaults.$use-important,
383
- $state: $state-name
384
- );
385
- }
386
-
387
- // For each text property, create a utility class.
388
- @each $name, $value in defaults.$text-properties {
389
- // e.g. `.hover:text-inherit` or `.focus:text-current`
390
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$name};
391
-
392
- @include utility.create-mapped(
393
- $selector,
394
- (--#{root-defaults.$prefix}color: #{$value}, color: #{color.$color}),
395
- $important: defaults.$use-important,
396
- $state: $state-name
397
- );
398
- }
399
- }
400
- }
401
-
402
- // Generate container-aware utilities.
403
- @if defaults.$container-aware and root-defaults.$container-aware-utilities {
404
- @each $container-name in map.keys(root-defaults.$container-sizes) {
405
- // e.g. `.md:` or `.lg:`
406
- $selector-prefix: #{defaults.$selector-base}#{defaults.$container-aware-selector-prefix}#{$container-name}#{defaults.$container-aware-separator};
407
-
408
- // For each theme colour, create a utility class for background and color.
409
- @each $color, $map in map.get(color.$themes, active) {
410
- @each $shade, $value in $map {
411
- // e.g. `.md:bg-primary-500` or `.lg:bg-secondary-700`
412
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$color}-#{$shade};
413
-
414
- @include utility.create-mapped(
415
- $selector,
416
- (
417
- --#{root-defaults.$prefix}background: #{$value},
418
- background: #{color.$background}
419
- ),
420
- $important: defaults.$use-important,
421
- $container: $container-name
422
- );
423
-
424
- // e.g. `.md:text-primary-500` or `.lg:text-secondary-700`
425
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$color}-#{$shade};
426
-
427
- @include utility.create-mapped(
428
- $selector,
429
- (
430
- --#{root-defaults.$prefix}color: #{$value},
431
- color: #{color.$color}
432
- ),
433
- $important: defaults.$use-important,
434
- $container: $container-name
435
- );
436
- }
437
- }
438
-
439
- // For each background property, create a utility class.
440
- @each $name, $value in defaults.$background-properties {
441
- // e.g. `.md:bg-inherit` or `.lg:bg-current`
442
- $selector: #{$selector-prefix}#{defaults.$background-selector-prefix}#{$name};
443
-
444
- @include utility.create-mapped(
445
- $selector,
446
- (
447
- --#{root-defaults.$prefix}background: #{$value},
448
- background: #{color.$background}
449
- ),
450
- $important: defaults.$use-important,
451
- $container: $container-name
452
- );
453
- }
454
-
455
- // For each text property, create a utility class.
456
- @each $name, $value in defaults.$text-properties {
457
- // e.g. `.md:text-inherit` or `.lg:text-current`
458
- $selector: #{$selector-prefix}#{defaults.$text-selector-prefix}#{$name};
459
-
460
- @include utility.create-mapped(
461
- $selector,
462
- (--#{root-defaults.$prefix}color: #{$value}, color: #{color.$color}),
463
- $important: defaults.$use-important,
464
- $container: $container-name
465
- );
466
- }
467
- }
468
- }
469
- }
@@ -1,6 +0,0 @@
1
- // @graupl/core color utilities variables.
2
- //
3
- // These values are to be used to directly style components and provide a
4
- // cleaner way to reference custom properties.
5
-
6
- @use "defaults";
@@ -1,40 +0,0 @@
1
- // @graupl/core container utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components unless a static value is needed.
4
- // They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
5
- //
6
- // They should not be used to define direct property values (i.e. font-size, color, etc.).
7
- // Those should be defined as custom properties in the `_variables.scss` file.
8
-
9
- @use "../../defaults" as root-defaults;
10
- @use "sass:map";
11
-
12
- // Utility modifiers.
13
- $selector-base: root-defaults.$utility-selector-base !default;
14
- $use-important: root-defaults.$use-important !default;
15
- $screen-aware: false !default;
16
- $theme-aware: false !default;
17
- $state-aware: false !default;
18
- $container-aware: false !default;
19
- $screen-aware-separator: root-defaults.$utility-screen-aware-separator !default;
20
- $theme-aware-separator: root-defaults.$utility-theme-aware-separator !default;
21
- $state-aware-separator: root-defaults.$utility-state-aware-separator !default;
22
- $container-aware-separator: root-defaults.$utility-container-aware-separator !default;
23
- $screen-aware-selector-prefix: root-defaults.$utility-screen-aware-selector-prefix !default;
24
- $theme-aware-selector-prefix: root-defaults.$utility-theme-aware-selector-prefix !default;
25
- $state-aware-selector-prefix: root-defaults.$utility-state-aware-selector-prefix !default;
26
- $container-aware-selector-prefix: root-defaults.$utility-container-aware-selector-prefix !default;
27
-
28
- // Container type properties.
29
- $container-type-selector-prefix: "container-type-" !default;
30
- $base-container-type-properties: (
31
- inline: "inline-size",
32
- normal: "normal",
33
- size: "size",
34
- scroll: "scroll-state",
35
- );
36
- $custom-container-type-properties: () !default;
37
- $container-type-properties: map.merge(
38
- $base-container-type-properties,
39
- $custom-container-type-properties
40
- );