@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,54 +0,0 @@
1
- // @graupl/core typography theme 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 "sass:map";
10
-
11
- // font properties.
12
- $font-size-base: 1rem !default;
13
- $root-font-size: clamp(0.85rem, calc(0.8rem + 0.5vw), 1.25rem) !default;
14
- $line-height: 1.2em !default;
15
-
16
- // Multipliers for font sizes.
17
- // This uses a minor third scale.
18
- // 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
19
- $base-font-size-multipliers: (
20
- xs: 0.694,
21
- sm: 0.833,
22
- base: 1,
23
- lg: 1.2,
24
- xl: 1.44,
25
- 2xl: 1.728,
26
- 3xl: 2.074,
27
- 4xl: 2.488,
28
- 5xl: 2.986,
29
- );
30
- $custom-font-size-multipliers: () !default;
31
- $font-size-multipliers: map.merge(
32
- $base-font-size-multipliers,
33
- $custom-font-size-multipliers
34
- );
35
-
36
- // Weights.
37
- $base-font-weights: (
38
- light: 300,
39
- normal: 400,
40
- bold: 700,
41
- );
42
- $custom-font-weights: () !default;
43
- $font-weights: map.merge($base-font-weights, $custom-font-weights);
44
-
45
- /* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
46
- $root-font-family:
47
- system-ui,
48
- -apple-system,
49
- blinkmacsystemfont,
50
- "Segoe UI",
51
- roboto,
52
- "Helvetica Neue",
53
- arial,
54
- sans-serif !default;
@@ -1,120 +0,0 @@
1
- // @graupl/core typography theme styles.
2
-
3
- @use "variables" as *;
4
- @use "../../mixins/layer" as *;
5
- @use "sass:map";
6
-
7
- @include layer(base) {
8
- p {
9
- margin: $paragraph-margin;
10
- }
11
-
12
- small {
13
- margin: $small-margin;
14
- }
15
-
16
- h1 {
17
- margin: $h1-margin;
18
- }
19
-
20
- h2 {
21
- margin: $h2-margin;
22
- }
23
-
24
- h3 {
25
- margin: $h3-margin;
26
- }
27
-
28
- h4 {
29
- margin: $h4-margin;
30
- }
31
-
32
- h5 {
33
- margin: $h5-margin;
34
- }
35
-
36
- h6 {
37
- margin: $h6-margin;
38
- }
39
- }
40
-
41
- @include layer(theme) {
42
- :root {
43
- font-family: $root-font-family;
44
- font-size: $root-font-size;
45
- }
46
-
47
- b,
48
- strong {
49
- font-weight: $font-weight-bold;
50
- }
51
-
52
- body {
53
- color: $body-color;
54
- font-size: $body-font-size;
55
- font-weight: $body-font-weight;
56
- line-height: $body-line-height;
57
- }
58
-
59
- p {
60
- color: $paragraph-color;
61
- font-size: $paragraph-font-size;
62
- font-weight: $paragraph-font-weight;
63
- line-height: $paragraph-line-height;
64
- }
65
-
66
- small {
67
- color: $small-color;
68
- font-size: $small-font-size;
69
- font-weight: $small-font-weight;
70
- line-height: $small-line-height;
71
- }
72
-
73
- h1 {
74
- color: $h1-color;
75
- font-family: $h1-font-family;
76
- font-size: $h1-font-size;
77
- font-weight: $h1-font-weight;
78
- line-height: $h1-line-height;
79
- }
80
-
81
- h2 {
82
- color: $h2-color;
83
- font-family: $h2-font-family;
84
- font-size: $h2-font-size;
85
- font-weight: $h2-font-weight;
86
- line-height: $h2-line-height;
87
- }
88
-
89
- h3 {
90
- color: $h3-color;
91
- font-family: $h3-font-family;
92
- font-size: $h3-font-size;
93
- font-weight: $h3-font-weight;
94
- line-height: $h3-line-height;
95
- }
96
-
97
- h4 {
98
- color: $h4-color;
99
- font-family: $h4-font-family;
100
- font-size: $h4-font-size;
101
- font-weight: $h4-font-weight;
102
- line-height: $h4-line-height;
103
- }
104
-
105
- h5 {
106
- color: $h5-color;
107
- font-family: $h5-font-family;
108
- font-size: $h5-font-size;
109
- font-weight: $h5-font-weight;
110
- line-height: $h5-line-height;
111
- }
112
-
113
- h6 {
114
- color: $h6-color;
115
- font-family: $h6-font-family;
116
- font-size: $h6-font-size;
117
- font-weight: $h6-font-weight;
118
- line-height: $h6-line-height;
119
- }
120
- }
@@ -1,248 +0,0 @@
1
- // @graupl/core typography theme 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" as root-defaults;
7
- @use "../../variables" as root-variables;
8
- @use "../color/variables" as color-variables;
9
- @use "defaults";
10
- @use "sass:map";
11
-
12
- // Font properties.
13
- $font-size-base: var(
14
- --#{root-defaults.$prefix}font-size-base,
15
- #{defaults.$font-size-base}
16
- );
17
- $line-height: var(
18
- --#{root-defaults.$prefix}line-height,
19
- #{defaults.$line-height}
20
- );
21
-
22
- // Generate all of the font-size-x custom properties.
23
- $font-sizes: ();
24
-
25
- @each $key, $value in defaults.$font-size-multipliers {
26
- $size: var(
27
- --#{root-defaults.$prefix}font-#{$key},
28
- calc(#{$value} * #{$font-size-base})
29
- );
30
- $font-sizes: map.set($font-sizes, $key, $size);
31
- }
32
-
33
- $font-weights: ();
34
-
35
- @each $key, $value in defaults.$font-weights {
36
- $weight: var(--#{root-defaults.$prefix}font-weight-#{$key}, $value);
37
- $font-weights: map.set($font-weights, $key, $weight);
38
- }
39
-
40
- $font-weight-bold: var(
41
- --#{root-defaults.$prefix}font-weight-bold,
42
- #{map.get($font-weights, bold)}
43
- );
44
-
45
- // Root properties.
46
- $root-font-family: var(
47
- --#{root-defaults.$prefix}root-font-family,
48
- #{defaults.$root-font-family}
49
- );
50
- $root-font-size: var(
51
- --#{root-defaults.$prefix}root-font-size,
52
- #{defaults.$root-font-size}
53
- );
54
-
55
- // Typography properties.
56
- $body-font-size: var(
57
- --#{root-defaults.$prefix}body-font-size,
58
- #{map.get($font-sizes, base)}
59
- );
60
- $body-line-height: var(
61
- --#{root-defaults.$prefix}body-line-height,
62
- #{$line-height}
63
- );
64
- $body-font-weight: var(
65
- --#{root-defaults.$prefix}body-font-weight,
66
- #{map.get($font-weights, normal)}
67
- );
68
- $body-color: var(
69
- --#{root-defaults.$prefix}body-color,
70
- #{color-variables.$color}
71
- );
72
- $paragraph-font-size: var(
73
- --#{root-defaults.$prefix}paragraph-font-size,
74
- #{$body-font-size}
75
- );
76
- $paragraph-line-height: var(
77
- --#{root-defaults.$prefix}paragraph-line-height,
78
- #{$body-line-height}
79
- );
80
- $paragraph-margin: var(
81
- --#{root-defaults.$prefix}paragraph-margin,
82
- 0 0 #{map.get(root-variables.$spacers, 2)} 0
83
- );
84
- $paragraph-font-weight: var(
85
- --#{root-defaults.$prefix}paragraph-font-weight,
86
- #{$body-font-weight}
87
- );
88
- $paragraph-color: var(
89
- --#{root-defaults.$prefix}paragraph-color,
90
- #{$body-color}
91
- );
92
- $small-font-size: var(
93
- --#{root-defaults.$prefix}small-font-size,
94
- #{map.get($font-sizes, sm)}
95
- );
96
- $small-line-height: var(
97
- --#{root-defaults.$prefix}small-line-height,
98
- #{$line-height}
99
- );
100
- $small-margin: var(
101
- --#{root-defaults.$prefix}small-margin,
102
- 0 0 #{map.get(root-variables.$spacers, 2)} 0
103
- );
104
- $small-font-weight: var(
105
- --#{root-defaults.$prefix}small-font-weight,
106
- #{$body-font-weight}
107
- );
108
- $small-color: var(--#{root-defaults.$prefix}small-color, #{$body-color});
109
-
110
- // Headings properties.
111
- $heading-font-family: var(
112
- --#{root-defaults.$prefix}heading-font-family,
113
- $root-font-family
114
- );
115
- $heading-line-height: var(
116
- --#{root-defaults.$prefix}heading-line-height,
117
- #{$line-height}
118
- );
119
- $heading-margin: var(
120
- --#{root-defaults.$prefix}heading-margin,
121
- #{map.get(root-variables.$spacers, 5)} 0
122
- #{map.get(root-variables.$spacers, 2)} 0
123
- );
124
- $heading-font-weight: var(
125
- --#{root-defaults.$prefix}heading-font-weight,
126
- #{$font-weight-bold}
127
- );
128
- $heading-color: var(--#{root-defaults.$prefix}heading-color, #{$body-color});
129
-
130
- // H1 properties.
131
- $h1-font-size: var(
132
- --#{root-defaults.$prefix}h1-font-size,
133
- #{map.get($font-sizes, 5xl)}
134
- );
135
- $h1-line-height: var(
136
- --#{root-defaults.$prefix}h1-line-height,
137
- #{$heading-line-height}
138
- );
139
- $h1-margin: var(--#{root-defaults.$prefix}h1-margin, #{$heading-margin});
140
- $h1-font-family: var(
141
- --#{root-defaults.$prefix}h1-font-family,
142
- $heading-font-family
143
- );
144
- $h1-font-weight: var(
145
- --#{root-defaults.$prefix}h1-font-weight,
146
- $heading-font-weight
147
- );
148
- $h1-color: var(--#{root-defaults.$prefix}h1-color, #{$heading-color});
149
-
150
- // H2 properties.
151
- $h2-font-size: var(
152
- --#{root-defaults.$prefix}h2-font-size,
153
- #{map.get($font-sizes, 4xl)}
154
- );
155
- $h2-line-height: var(
156
- --#{root-defaults.$prefix}h2-line-height,
157
- #{$heading-line-height}
158
- );
159
- $h2-margin: var(--#{root-defaults.$prefix}h2-margin, #{$heading-margin});
160
- $h2-font-family: var(
161
- --#{root-defaults.$prefix}h2-font-family,
162
- $heading-font-family
163
- );
164
- $h2-font-weight: var(
165
- --#{root-defaults.$prefix}h2-font-weight,
166
- $heading-font-weight
167
- );
168
- $h2-color: var(--#{root-defaults.$prefix}h2-color, #{$heading-color});
169
-
170
- // H3 properties.
171
- $h3-font-size: var(
172
- --#{root-defaults.$prefix}h3-font-size,
173
- #{map.get($font-sizes, 3xl)}
174
- );
175
- $h3-line-height: var(
176
- --#{root-defaults.$prefix}h3-line-height,
177
- #{$heading-line-height}
178
- );
179
- $h3-margin: var(--#{root-defaults.$prefix}h3-margin, #{$heading-margin});
180
- $h3-font-family: var(
181
- --#{root-defaults.$prefix}h3-font-family,
182
- $heading-font-family
183
- );
184
- $h3-font-weight: var(
185
- --#{root-defaults.$prefix}h3-font-weight,
186
- $heading-font-weight
187
- );
188
- $h3-color: var(--#{root-defaults.$prefix}h3-color, #{$heading-color});
189
-
190
- // H4 properties.
191
- $h4-font-size: var(
192
- --#{root-defaults.$prefix}h4-font-size,
193
- #{map.get($font-sizes, 2xl)}
194
- );
195
- $h4-line-height: var(
196
- --#{root-defaults.$prefix}h4-line-height,
197
- #{$heading-line-height}
198
- );
199
- $h4-margin: var(--#{root-defaults.$prefix}h4-margin, #{$heading-margin});
200
- $h4-font-family: var(
201
- --#{root-defaults.$prefix}h4-font-family,
202
- $heading-font-family
203
- );
204
- $h4-font-weight: var(
205
- --#{root-defaults.$prefix}h4-font-weight,
206
- $heading-font-weight
207
- );
208
- $h4-color: var(--#{root-defaults.$prefix}h4-color, #{$heading-color});
209
-
210
- // H5 properties.
211
- $h5-font-size: var(
212
- --#{root-defaults.$prefix}h5-font-size,
213
- #{map.get($font-sizes, xl)}
214
- );
215
- $h5-line-height: var(
216
- --#{root-defaults.$prefix}h5-line-height,
217
- #{$heading-line-height}
218
- );
219
- $h5-margin: var(--#{root-defaults.$prefix}h5-margin, #{$heading-margin});
220
- $h5-font-family: var(
221
- --#{root-defaults.$prefix}h5-font-family,
222
- $heading-font-family
223
- );
224
- $h5-font-weight: var(
225
- --#{root-defaults.$prefix}h5-font-weight,
226
- $heading-font-weight
227
- );
228
- $h5-color: var(--#{root-defaults.$prefix}h5-color, #{$heading-color});
229
-
230
- // H6 properties.
231
- $h6-font-size: var(
232
- --#{root-defaults.$prefix}h6-font-size,
233
- #{map.get($font-sizes, lg)}
234
- );
235
- $h6-line-height: var(
236
- --#{root-defaults.$prefix}h6-line-height,
237
- #{$heading-line-height}
238
- );
239
- $h6-margin: var(--#{root-defaults.$prefix}h6-margin, #{$heading-margin});
240
- $h6-font-family: var(
241
- --#{root-defaults.$prefix}h6-font-family,
242
- $heading-font-family
243
- );
244
- $h6-font-weight: var(
245
- --#{root-defaults.$prefix}h6-font-weight,
246
- $heading-font-weight
247
- );
248
- $h6-color: var(--#{root-defaults.$prefix}h6-color, #{$heading-color});
@@ -1,23 +0,0 @@
1
- // @graupl/core utilities styles.
2
-
3
- @forward "alignment";
4
- @forward "background";
5
- @forward "border";
6
- @forward "color";
7
- @forward "container";
8
- @forward "display";
9
- @forward "flex";
10
- @forward "gradient";
11
- @forward "height";
12
- @forward "inset";
13
- @forward "justification";
14
- @forward "list";
15
- @forward "order";
16
- @forward "position";
17
- @forward "ratio";
18
- @forward "spacing";
19
- @forward "typography";
20
- @forward "visibility";
21
- @forward "visually-hidden";
22
- @forward "width";
23
- @forward "z-index";
@@ -1,41 +0,0 @@
1
- // @graupl/core [_template] 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
- // _Template properties.
29
- //
30
- // Remember when defining properties to make sure the defaults can be customized.
31
- // This can be done by using variables for class names, or by defining base properties and merging them with custom properties provided by the user.
32
- //
33
- // Remember to replace references like [_template], or other placeholder content with appropriate descriptions!
34
-
35
- $template-selector-prefix: "template-" !default;
36
- $base-template-properties: ();
37
- $custom-template-properties: () !default;
38
- $template-properties: map.merge(
39
- $base-template-properties,
40
- $custom-template-properties
41
- );
@@ -1,171 +0,0 @@
1
- // @graupl/core [_template] utilities styles.
2
- //
3
- // This file generates the [_template] utility classes provided by Graupl.
4
- //
5
- // The following classes are generated by default:
6
- // - `.template-class`: Applies the base value for the property.
7
- //
8
- // The following custom properties control the generated classes:
9
- // - N/A.
10
- //
11
- // The following variables control the generated classes:
12
- // - `$selector-base`: The base selector for the utility classes.
13
- // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
14
- // - `$screen-aware`: A flag to generate screen-aware utility classes.
15
- // - `$theme-aware`: A flag to generate theme-aware utility classes.
16
- // - `$state-aware`: A flag to generate state-aware utility classes.
17
- // - `$container-aware`: A flag to generate container-aware utility classes.
18
- // - `$screen-aware-separator`: The separator for screen-aware utility classes.
19
- // - `$theme-aware-separator`: The separator for theme-aware utility classes.
20
- // - `$state-aware-separator`: The separator for state-aware utility classes.
21
- // - `$container-aware-separator`: The separator for container-aware utility classes.
22
- // - `$screen-aware-selector-prefix`: The prefix for screen-aware utility classes.
23
- // - `$theme-aware-selector-prefix`: The prefix for theme-aware utility classes.
24
- // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
25
- // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
26
- // - `$template-selector-prefix`: The prefix for the utility classes.
27
- // - `$base-template-properties`: The base properties and values for the template utility classes.
28
- // - `$custom-template-properties`: The custom properties and values for the template utility classes.
29
- // - `$template-properties`: The merged properties and values for the template utility classes.
30
- //
31
- // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
32
- // By default, no responsive utility classes are generated.
33
- //
34
- // When set to true, screen-aware utility classes will be generated for each screen size in the following pattern:
35
- // - `.{screen-prefix}{screen-name}:{prefix}{value}`
36
- //
37
- // e.g. `.sm:[template-class]` will set the `template` property to `value` on screens equal to or larger than the `sm` breakpoint.
38
- //
39
- // When set to true, theme-aware utility classes will be generated for each theme in the following pattern:
40
- // - `.{theme-prefix}{theme-name}:{prefix}{value}`
41
- //
42
- // e.g. `.dark:[template-class]` will set the `template` property to `value` when the `dark` theme is active.
43
- //
44
- // When set to true, state-aware utility classes will be generated for each state in the following pattern:
45
- // - `.{state-prefix}{state-name}:{prefix}{value}`
46
- //
47
- // e.g. `.hover:[template-class]` will set the `template` property to `value` when the element is hovered.
48
- //
49
- // When set to true, container-aware utility classes will be generated for each container in the following pattern:
50
- // - `.{container-prefix}{container-name}:{prefix}{value}`
51
- //
52
- // e.g. `.cq:md:[template-class]` will set the `template` property to `value` when the parent container is larger than the `md` breakpoint.
53
- //
54
- // @example
55
- // <div class="template-class">This content showing you how to use this.</div>
56
-
57
- @use "../../defaults" as root-defaults;
58
- @use "../../mixins/layer" as *;
59
- @use "../../mixins/utility";
60
- @use "../../theme/color/variables" as color;
61
- @use "defaults";
62
- @use "sass:map";
63
- @use "variables" as *;
64
-
65
- @include layer(utilities) {
66
- // `.`
67
- $selector-prefix: defaults.$selector-base;
68
-
69
- // For each template property, create a utility class.
70
- @each $name, $value in defaults.$template-properties {
71
- // e.g. `.template-property-name`
72
- $selector: #{$selector-prefix}#{defaults.$template-selector-prefix}#{$name};
73
-
74
- @include utility.create(
75
- $selector,
76
- property,
77
- $value,
78
- $important: #{defaults.$use-important}
79
- );
80
- }
81
-
82
- // Generate screen-aware utilities.
83
- @if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
84
- @each $screen-name in map.keys(root-defaults.$screen-sizes) {
85
- // e.g. `.md:` or `.lg:`
86
- $selector-prefix: #{defaults.$selector-base}#{defaults.$screen-aware-selector-prefix}#{$screen-name}#{defaults.$screen-aware-separator};
87
-
88
- // For each template property, create a utility class.
89
- @each $name, $value in defaults.$template-properties {
90
- // e.g. `.md:template-property-name`
91
- $selector: #{$selector-prefix}#{defaults.$template-selector-prefix}#{$name};
92
-
93
- @include utility.create(
94
- $selector,
95
- property,
96
- $value,
97
- $important: #{defaults.$use-important},
98
- $screen: $screen-name
99
- );
100
- }
101
- }
102
- }
103
-
104
- // Generate theme-aware utilities.
105
- @if defaults.$theme-aware and root-defaults.$theme-aware-utilities {
106
- @each $theme-name, $colors in color.$themes {
107
- @if $theme-name != active {
108
- // e.g. `.dark:` or `.light:`
109
- $selector-prefix: #{defaults.$selector-base}#{defaults.$theme-aware-selector-prefix}#{$theme-name}#{defaults.$theme-aware-separator};
110
-
111
- // For each template property, create a utility class.
112
- @each $name, $value in defaults.$template-properties {
113
- // e.g. `.dark:template-property-name` or `.light:template-property-name`
114
- $selector: #{$selector-prefix}#{defaults.$template-selector-prefix}#{$name};
115
-
116
- @include utility.create(
117
- $selector,
118
- property,
119
- $value,
120
- $important: #{defaults.$use-important},
121
- $theme: $theme-name
122
- );
123
- }
124
- }
125
- }
126
- }
127
-
128
- // Generate state-aware utilities.
129
- @if defaults.$state-aware and root-defaults.$state-aware-utilities {
130
- @each $state-name, $value in root-defaults.$state-selectors {
131
- // e.g. `.hover:` or `.focus:`
132
- $selector-prefix: #{defaults.$selector-base}#{defaults.$state-aware-selector-prefix}#{$state-name}#{defaults.$state-aware-separator};
133
-
134
- // For each template property, create a utility class.
135
- @each $name, $value in defaults.$template-properties {
136
- // e.g. `.hover:template-property-name` or `.focus:template-property-name`
137
- $selector: #{$selector-prefix}#{defaults.$template-selector-prefix}#{$name};
138
-
139
- @include utility.create(
140
- $selector,
141
- property,
142
- $value,
143
- $important: #{defaults.$use-important},
144
- $state: $state-name
145
- );
146
- }
147
- }
148
- }
149
-
150
- // Generate container-aware utilities.
151
- @if defaults.$container-aware and root-defaults.$container-aware-utilities {
152
- @each $container-name in map.keys(root-defaults.$container-sizes) {
153
- // e.g. `.md:` or `.lg:`
154
- $selector-prefix: #{defaults.$selector-base}#{defaults.$container-aware-selector-prefix}#{$container-name}#{defaults.$container-aware-separator};
155
-
156
- // For each template property, create a utility class.
157
- @each $name, $value in defaults.$template-properties {
158
- // e.g. `.cq:md:template-property-name`
159
- $selector: #{$selector-prefix}#{defaults.$template-selector-prefix}#{$name};
160
-
161
- @include utility.create(
162
- $selector,
163
- property,
164
- $value,
165
- $important: #{defaults.$use-important},
166
- $container: $container-name
167
- );
168
- }
169
- }
170
- }
171
- }
@@ -1,6 +0,0 @@
1
- // @graupl/core [_template] 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";