@graupl/core 1.0.0-beta.22 → 1.0.0-beta.24
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.
- package/dist/css/base/button.css +2 -2
- package/dist/css/base/button.css.map +1 -1
- package/dist/css/base/form.css +2 -2
- package/dist/css/base/form.css.map +1 -1
- package/dist/css/base/link.css +2 -2
- package/dist/css/base/link.css.map +1 -1
- package/dist/css/base/table.css +2 -2
- package/dist/css/base/table.css.map +1 -1
- package/dist/css/base.css +2 -2
- package/dist/css/base.css.map +1 -1
- package/dist/css/component/accordion.css +2 -5
- package/dist/css/component/accordion.css.map +1 -1
- package/dist/css/component/alert.css +2 -2
- package/dist/css/component/alert.css.map +1 -1
- package/dist/css/component/badge.css +2 -2
- package/dist/css/component/badge.css.map +1 -1
- package/dist/css/component/card.css +2 -2
- package/dist/css/component/card.css.map +1 -1
- package/dist/css/component/carousel.css +2 -2
- package/dist/css/component/carousel.css.map +1 -1
- package/dist/css/component/disclosure.css +2 -2
- package/dist/css/component/disclosure.css.map +1 -1
- package/dist/css/component/input-group.css +2 -2
- package/dist/css/component/input-group.css.map +1 -1
- package/dist/css/component/list.css +2 -2
- package/dist/css/component/list.css.map +1 -1
- package/dist/css/component/menu.css +2 -2
- package/dist/css/component/menu.css.map +1 -1
- package/dist/css/component/navigation.css +2 -2
- package/dist/css/component/navigation.css.map +1 -1
- package/dist/css/component.css +2 -5
- package/dist/css/component.css.map +1 -1
- package/dist/css/graupl.css +2 -5
- package/dist/css/graupl.css.map +1 -1
- package/dist/css/init.css +2 -2
- package/dist/css/init.css.map +1 -1
- package/dist/css/layout/columns.css +2 -2
- package/dist/css/layout/columns.css.map +1 -1
- package/dist/css/layout/container.css +2 -2
- package/dist/css/layout/container.css.map +1 -1
- package/dist/css/layout/flex-columns.css +2 -2
- package/dist/css/layout/flex-columns.css.map +1 -1
- package/dist/css/layout.css +2 -5
- package/dist/css/layout.css.map +1 -1
- package/dist/css/normalize.css +2 -2
- package/dist/css/normalize.css.map +1 -1
- package/dist/css/state/focus.css +2 -2
- package/dist/css/state/focus.css.map +1 -1
- package/dist/css/state.css +2 -2
- package/dist/css/state.css.map +1 -1
- package/dist/css/theme/color.css +2 -2
- package/dist/css/theme/color.css.map +1 -1
- package/dist/css/theme/typography.css +2 -2
- package/dist/css/theme/typography.css.map +1 -1
- package/dist/css/theme.css +2 -2
- package/dist/css/theme.css.map +1 -1
- package/dist/css/utilities/alignment.css +1 -1
- package/dist/css/utilities/alignment.css.map +1 -1
- package/dist/css/utilities/background.css +2 -2
- package/dist/css/utilities/background.css.map +1 -1
- package/dist/css/utilities/border.css +2 -2
- package/dist/css/utilities/border.css.map +1 -1
- package/dist/css/utilities/color.css +2 -2
- package/dist/css/utilities/color.css.map +1 -1
- package/dist/css/utilities/container.css +1 -1
- package/dist/css/utilities/container.css.map +1 -1
- package/dist/css/utilities/display.css +2 -2
- package/dist/css/utilities/display.css.map +1 -1
- package/dist/css/utilities/flex.css +2 -2
- package/dist/css/utilities/flex.css.map +1 -1
- package/dist/css/utilities/gradient.css +2 -2
- package/dist/css/utilities/gradient.css.map +1 -1
- package/dist/css/utilities/height.css +2 -2
- package/dist/css/utilities/height.css.map +1 -1
- package/dist/css/utilities/inset.css +2 -2
- package/dist/css/utilities/inset.css.map +1 -1
- package/dist/css/utilities/justification.css +1 -1
- package/dist/css/utilities/justification.css.map +1 -1
- package/dist/css/utilities/list.css +1 -1
- package/dist/css/utilities/list.css.map +1 -1
- package/dist/css/utilities/order.css +2 -2
- package/dist/css/utilities/order.css.map +1 -1
- package/dist/css/utilities/position.css +2 -2
- package/dist/css/utilities/position.css.map +1 -1
- package/dist/css/utilities/ratio.css +2 -2
- package/dist/css/utilities/ratio.css.map +1 -1
- package/dist/css/utilities/spacing.css +2 -2
- package/dist/css/utilities/spacing.css.map +1 -1
- package/dist/css/utilities/typography.css +2 -2
- package/dist/css/utilities/typography.css.map +1 -1
- package/dist/css/utilities/visibility.css +2 -2
- package/dist/css/utilities/visibility.css.map +1 -1
- package/dist/css/utilities/visually-hidden.css +2 -2
- package/dist/css/utilities/visually-hidden.css.map +1 -1
- package/dist/css/utilities/width.css +2 -2
- package/dist/css/utilities/width.css.map +1 -1
- package/dist/css/utilities/z-index.css +1 -1
- package/dist/css/utilities/z-index.css.map +1 -1
- package/dist/css/utilities.css +2 -2
- package/dist/css/utilities.css.map +1 -1
- package/dist/js/accordion.js.map +1 -1
- package/dist/js/alert.js.map +1 -1
- package/dist/js/carousel.js.map +1 -1
- package/dist/js/component/accordion.cjs.js.map +1 -1
- package/dist/js/component/accordion.es.js.map +1 -1
- package/dist/js/component/accordion.iife.js.map +1 -1
- package/dist/js/component/alert.cjs.js.map +1 -1
- package/dist/js/component/alert.es.js.map +1 -1
- package/dist/js/component/alert.iife.js.map +1 -1
- package/dist/js/component/carousel.cjs.js.map +1 -1
- package/dist/js/component/carousel.es.js.map +1 -1
- package/dist/js/component/carousel.iife.js.map +1 -1
- package/dist/js/component/disclosure.cjs.js +2 -2
- package/dist/js/component/disclosure.cjs.js.map +1 -1
- package/dist/js/component/disclosure.es.js +2 -2
- package/dist/js/component/disclosure.es.js.map +1 -1
- package/dist/js/component/disclosure.iife.js +2 -2
- package/dist/js/component/disclosure.iife.js.map +1 -1
- package/dist/js/component/tabs.cjs.js +5 -0
- package/dist/js/component/tabs.cjs.js.map +1 -0
- package/dist/js/component/tabs.es.js +5 -0
- package/dist/js/component/tabs.es.js.map +1 -0
- package/dist/js/component/tabs.iife.js +5 -0
- package/dist/js/component/tabs.iife.js.map +1 -0
- package/dist/js/disclosure.js +2 -2
- package/dist/js/disclosure.js.map +1 -1
- package/dist/js/generator/accordion.cjs.js.map +1 -1
- package/dist/js/generator/accordion.es.js.map +1 -1
- package/dist/js/generator/accordion.iife.js.map +1 -1
- package/dist/js/generator/alert.cjs.js.map +1 -1
- package/dist/js/generator/alert.es.js.map +1 -1
- package/dist/js/generator/alert.iife.js.map +1 -1
- package/dist/js/generator/carousel.cjs.js.map +1 -1
- package/dist/js/generator/carousel.es.js.map +1 -1
- package/dist/js/generator/carousel.iife.js.map +1 -1
- package/dist/js/generator/disclosure.cjs.js +2 -2
- package/dist/js/generator/disclosure.cjs.js.map +1 -1
- package/dist/js/generator/disclosure.es.js +2 -2
- package/dist/js/generator/disclosure.es.js.map +1 -1
- package/dist/js/generator/disclosure.iife.js +2 -2
- package/dist/js/generator/disclosure.iife.js.map +1 -1
- package/dist/js/generator/navigation.cjs.js.map +1 -1
- package/dist/js/generator/navigation.es.js.map +1 -1
- package/dist/js/generator/navigation.iife.js.map +1 -1
- package/dist/js/generator/tabs.cjs.js +5 -0
- package/dist/js/generator/tabs.cjs.js.map +1 -0
- package/dist/js/generator/tabs.es.js +5 -0
- package/dist/js/generator/tabs.es.js.map +1 -0
- package/dist/js/generator/tabs.iife.js +5 -0
- package/dist/js/generator/tabs.iife.js.map +1 -0
- package/dist/js/graupl.js +5 -5
- package/dist/js/graupl.js.map +1 -1
- package/dist/js/navigation.js.map +1 -1
- package/dist/js/tabs.js +5 -0
- package/dist/js/tabs.js.map +1 -0
- package/package.json +4 -3
- package/src/js/disclosure/Disclosure.js +25 -45
- package/src/js/domHelpers.js +39 -22
- package/src/js/tabs/TabToggle.js +378 -0
- package/src/js/tabs/Tabs.js +1091 -0
- package/src/js/tabs/generator.js +32 -0
- package/src/js/tabs/index.js +5 -0
- package/src/scss/_defaults.scss +21 -88
- package/src/scss/_variables.scss +70 -0
- package/src/scss/base/button/_defaults.scss +2 -24
- package/src/scss/base/button/_index.scss +53 -52
- package/src/scss/base/button/_mixins.scss +24 -58
- package/src/scss/base/button/_variables.scss +139 -0
- package/src/scss/base/form/_defaults.scss +72 -2
- package/src/scss/base/form/_index.scss +196 -70
- package/src/scss/base/form/_variables.scss +166 -0
- package/src/scss/base/link/_defaults.scss +31 -0
- package/src/scss/base/link/_index.scss +177 -172
- package/src/scss/base/link/_variables.scss +215 -0
- package/src/scss/base/table/_defaults.scss +1 -11
- package/src/scss/base/table/_index.scss +126 -117
- package/src/scss/base/table/_variables.scss +214 -3
- package/src/scss/component/_index.scss +1 -0
- package/src/scss/component/accordion/_defaults.scss +73 -22
- package/src/scss/component/accordion/_index.scss +437 -62
- package/src/scss/component/accordion/_variables.scss +527 -101
- package/src/scss/component/alert/_defaults.scss +23 -32
- package/src/scss/component/alert/_index.scss +236 -30
- package/src/scss/component/alert/_variables.scss +155 -6
- package/src/scss/component/badge/_defaults.scss +1 -0
- package/src/scss/component/badge/_index.scss +25 -28
- package/src/scss/component/badge/_variables.scss +66 -2
- package/src/scss/component/card/_defaults.scss +64 -13
- package/src/scss/component/card/_index.scss +276 -30
- package/src/scss/component/card/_variables.scss +132 -0
- package/src/scss/component/carousel/_defaults.scss +73 -15
- package/src/scss/component/carousel/_index.scss +357 -41
- package/src/scss/component/carousel/_variables.scss +391 -0
- package/src/scss/component/disclosure/_index.scss +4 -4
- package/src/scss/component/disclosure/_variables.scss +127 -2
- package/src/scss/component/input-group/_defaults.scss +10 -3
- package/src/scss/component/input-group/_index.scss +72 -4
- package/src/scss/component/input-group/_variables.scss +37 -0
- package/src/scss/component/list/_defaults.scss +35 -2
- package/src/scss/component/list/_index.scss +159 -5
- package/src/scss/component/list/_variables.scss +152 -0
- package/src/scss/component/menu/_defaults.scss +49 -7
- package/src/scss/component/menu/_index.scss +325 -99
- package/src/scss/component/menu/_variables.scss +484 -1
- package/src/scss/component/navigation/_defaults.scss +45 -3
- package/src/scss/component/navigation/_index.scss +249 -98
- package/src/scss/component/navigation/_variables.scss +334 -5
- package/src/scss/component/tabs/_defaults.scss +82 -0
- package/src/scss/component/tabs/_index.scss +497 -0
- package/src/scss/component/tabs/_variables.scss +974 -0
- package/src/scss/layout/columns/_defaults.scss +5 -3
- package/src/scss/layout/columns/_index.scss +27 -21
- package/src/scss/layout/columns/_variables.scss +13 -0
- package/src/scss/layout/container/_defaults.scss +28 -11
- package/src/scss/layout/container/_index.scss +305 -161
- package/src/scss/layout/container/_variables.scss +148 -15
- package/src/scss/layout/flex-columns/_defaults.scss +5 -3
- package/src/scss/layout/flex-columns/_index.scss +28 -20
- package/src/scss/layout/flex-columns/_variables.scss +9 -0
- package/src/scss/mixins/_state.scss +37 -0
- package/src/scss/mixins/_theme.scss +36 -1
- package/src/scss/state/focus/_index.scss +17 -12
- package/src/scss/state/focus/_variables.scss +30 -4
- package/src/scss/theme/color/_defaults.scss +6 -35
- package/src/scss/theme/color/_index.scss +167 -1
- package/src/scss/theme/color/_variables.scss +155 -0
- package/src/scss/theme/typography/_defaults.scss +26 -19
- package/src/scss/theme/typography/_index.scss +176 -20
- package/src/scss/theme/typography/_variables.scss +186 -0
- package/src/scss/utilities/_template/_index.scss +0 -1
- package/src/scss/utilities/alignment/_defaults.scss +0 -33
- package/src/scss/utilities/alignment/_index.scss +24 -25
- package/src/scss/utilities/background/_defaults.scss +0 -77
- package/src/scss/utilities/background/_index.scss +32 -37
- package/src/scss/utilities/border/_defaults.scss +0 -33
- package/src/scss/utilities/border/_index.scss +25 -26
- package/src/scss/utilities/color/_defaults.scss +0 -19
- package/src/scss/utilities/color/_index.scss +22 -22
- package/src/scss/utilities/container/_defaults.scss +0 -11
- package/src/scss/utilities/container/_index.scss +20 -19
- package/src/scss/utilities/display/_defaults.scss +0 -11
- package/src/scss/utilities/display/_index.scss +20 -19
- package/src/scss/utilities/flex/_defaults.scss +0 -55
- package/src/scss/utilities/flex/_index.scss +28 -31
- package/src/scss/utilities/gradient/_defaults.scss +0 -28
- package/src/scss/utilities/gradient/_index.scss +27 -28
- package/src/scss/utilities/gradient/_variables.scss +15 -0
- package/src/scss/utilities/height/_defaults.scss +0 -8
- package/src/scss/utilities/height/_index.scss +22 -21
- package/src/scss/utilities/inset/_defaults.scss +0 -16
- package/src/scss/utilities/inset/_index.scss +20 -20
- package/src/scss/utilities/justification/_defaults.scss +0 -33
- package/src/scss/utilities/justification/_index.scss +24 -25
- package/src/scss/utilities/list/_defaults.scss +0 -22
- package/src/scss/utilities/list/_index.scss +22 -22
- package/src/scss/utilities/order/_defaults.scss +0 -8
- package/src/scss/utilities/order/_index.scss +20 -19
- package/src/scss/utilities/position/_defaults.scss +0 -11
- package/src/scss/utilities/position/_index.scss +20 -19
- package/src/scss/utilities/ratio/_defaults.scss +0 -8
- package/src/scss/utilities/ratio/_index.scss +22 -21
- package/src/scss/utilities/ratio/_variables.scss +6 -0
- package/src/scss/utilities/spacing/_defaults.scss +0 -11
- package/src/scss/utilities/spacing/_index.scss +18 -17
- package/src/scss/utilities/typography/_defaults.scss +0 -22
- package/src/scss/utilities/typography/_index.scss +27 -26
- package/src/scss/utilities/visibility/_defaults.scss +0 -11
- package/src/scss/utilities/visibility/_index.scss +19 -18
- package/src/scss/utilities/visually-hidden/_index.scss +19 -17
- package/src/scss/utilities/width/_defaults.scss +0 -8
- package/src/scss/utilities/width/_index.scss +21 -20
- package/src/scss/utilities/z-index/_defaults.scss +0 -11
- package/src/scss/utilities/z-index/_index.scss +19 -18
|
@@ -2,6 +2,81 @@
|
|
|
2
2
|
//
|
|
3
3
|
// These values are to be used to directly style components and provide a
|
|
4
4
|
// cleaner way to reference custom properties.
|
|
5
|
+
//
|
|
6
|
+
// Custom property defaults:
|
|
7
|
+
// | Custom property | Default |
|
|
8
|
+
// | ------------------------------ | ----------------------------------------------------------------------------------------------------- |
|
|
9
|
+
// | --graupl-font-size-base | 1rem |
|
|
10
|
+
// | --graupl-line-height | 1.2em |
|
|
11
|
+
// | --graupl-font-xs | calc(0.694 * var(--graupl-font-size-base)) |
|
|
12
|
+
// | --graupl-font-sm | calc(0.833 * var(--graupl-font-size-base)) |
|
|
13
|
+
// | --graupl-font-base | calc(1 * var(--graupl-font-size-base)) |
|
|
14
|
+
// | --graupl-font-lg | calc(1.2 * var(--graupl-font-size-base)) |
|
|
15
|
+
// | --graupl-font-xl | calc(1.44 * var(--graupl-font-size-base)) |
|
|
16
|
+
// | --graupl-font-2xl | calc(1.728 * var(--graupl-font-size-base)) |
|
|
17
|
+
// | --graupl-font-3xl | calc(2.074 * var(--graupl-font-size-base)) |
|
|
18
|
+
// | --graupl-font-4xl | calc(2.488 * var(--graupl-font-size-base)) |
|
|
19
|
+
// | --graupl-font-5xl | calc(2.986 * var(--graupl-font-size-base)) |
|
|
20
|
+
// | --graupl-font-weight-light | 300 |
|
|
21
|
+
// | --graupl-font-weight-normal | 400 |
|
|
22
|
+
// | --graupl-font-weight-bold | 700 |
|
|
23
|
+
// | --graupl-root-font-family | system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif |
|
|
24
|
+
// | --graupl-root-font-size | clamp(0.85rem, calc(0.8rem + 0.5vw), 1.25rem) |
|
|
25
|
+
// | --graupl-body-font-size | var(--graupl-font-base) |
|
|
26
|
+
// | --graupl-body-line-height | var(--graupl-line-height) |
|
|
27
|
+
// | --graupl-body-font-weight | var(--graupl-font-weight-normal) |
|
|
28
|
+
// | --graupl-body-color | var(--graupl-color) |
|
|
29
|
+
// | --graupl-paragraph-font-size | var(--graupl-body-font-size) |
|
|
30
|
+
// | --graupl-paragraph-line-height | var(--graupl-body-line-height) |
|
|
31
|
+
// | --graupl-paragraph-margin | 0 0 var(--graupl-spacer-2) 0 |
|
|
32
|
+
// | --graupl-paragraph-font-weight | var(--graupl-body-font-weight) |
|
|
33
|
+
// | --graupl-paragraph-color | var(--graupl-body-color) |
|
|
34
|
+
// | --graupl-small-font-size | var(--graupl-font-sm) |
|
|
35
|
+
// | --graupl-small-line-height | var(--graupl-line-height) |
|
|
36
|
+
// | --graupl-small-margin | 0 0 var(--graupl-spacer-2) 0 |
|
|
37
|
+
// | --graupl-small-font-weight | var(--graupl-body-font-weight) |
|
|
38
|
+
// | --graupl-small-color | var(--graupl-body-color) |
|
|
39
|
+
// | --graupl-heading-font-family | var(--graupl-root-font-family) |
|
|
40
|
+
// | --graupl-heading-line-height | var(--graupl-line-height) |
|
|
41
|
+
// | --graupl-heading-margin | var(--graupl-spacer-5) 0 var(--graupl-spacer-2) 0 |
|
|
42
|
+
// | --graupl-heading-font-weight | var(--graupl-font-weight-bold) |
|
|
43
|
+
// | --graupl-heading-color | var(--graupl-body-color) |
|
|
44
|
+
// | --graupl-h1-font-size | var(--graupl-font-5xl) |
|
|
45
|
+
// | --graupl-h1-line-height | var(--graupl-heading-line-height) |
|
|
46
|
+
// | --graupl-h1-margin | var(--graupl-heading-margin) |
|
|
47
|
+
// | --graupl-h1-font-family | var(--graupl-heading-font-family) |
|
|
48
|
+
// | --graupl-h1-font-weight | var(--graupl-heading-font-weight) |
|
|
49
|
+
// | --graupl-h1-color | var(--graupl-heading-color) |
|
|
50
|
+
// | --graupl-h2-font-size | var(--graupl-font-4xl) |
|
|
51
|
+
// | --graupl-h2-line-height | var(--graupl-heading-line-height) |
|
|
52
|
+
// | --graupl-h2-margin | var(--graupl-heading-margin) |
|
|
53
|
+
// | --graupl-h2-font-family | var(--graupl-heading-font-family) |
|
|
54
|
+
// | --graupl-h2-font-weight | var(--graupl-heading-font-weight) |
|
|
55
|
+
// | --graupl-h2-color | var(--graupl-heading-color) |
|
|
56
|
+
// | --graupl-h3-font-size | var(--graupl-font-3xl) |
|
|
57
|
+
// | --graupl-h3-line-height | var(--graupl-heading-line-height) |
|
|
58
|
+
// | --graupl-h3-margin | var(--graupl-heading-margin) |
|
|
59
|
+
// | --graupl-h3-font-family | var(--graupl-heading-font-family) |
|
|
60
|
+
// | --graupl-h3-font-weight | var(--graupl-heading-font-weight) |
|
|
61
|
+
// | --graupl-h3-color | var(--graupl-heading-color) |
|
|
62
|
+
// | --graupl-h4-font-size | var(--graupl-font-2xl) |
|
|
63
|
+
// | --graupl-h4-line-height | var(--graupl-heading-line-height) |
|
|
64
|
+
// | --graupl-h4-margin | var(--graupl-heading-margin) |
|
|
65
|
+
// | --graupl-h4-font-family | var(--graupl-heading-font-family) |
|
|
66
|
+
// | --graupl-h4-font-weight | var(--graupl-heading-font-weight) |
|
|
67
|
+
// | --graupl-h4-color | var(--graupl-heading-color) |
|
|
68
|
+
// | --graupl-h5-font-size | var(--graupl-font-xl) |
|
|
69
|
+
// | --graupl-h5-line-height | var(--graupl-heading-line-height) |
|
|
70
|
+
// | --graupl-h5-margin | var(--graupl-heading-margin) |
|
|
71
|
+
// | --graupl-h5-font-family | var(--graupl-heading-font-family) |
|
|
72
|
+
// | --graupl-h5-font-weight | var(--graupl-heading-font-weight) |
|
|
73
|
+
// | --graupl-h5-color | var(--graupl-heading-color) |
|
|
74
|
+
// | --graupl-h6-font-size | var(--graupl-font-lg) |
|
|
75
|
+
// | --graupl-h6-line-height | var(--graupl-heading-line-height) |
|
|
76
|
+
// | --graupl-h6-margin | var(--graupl-heading-margin) |
|
|
77
|
+
// | --graupl-h6-font-family | var(--graupl-heading-font-family) |
|
|
78
|
+
// | --graupl-h6-font-weight | var(--graupl-heading-font-weight) |
|
|
79
|
+
// | --graupl-h6-color | var(--graupl-heading-color) |
|
|
5
80
|
|
|
6
81
|
@use "../../defaults" as root-defaults;
|
|
7
82
|
@use "../../variables" as root-variables;
|
|
@@ -10,10 +85,13 @@
|
|
|
10
85
|
@use "sass:map";
|
|
11
86
|
|
|
12
87
|
// Font properties.
|
|
88
|
+
// --graupl-font-size-base
|
|
13
89
|
$font-size-base: var(
|
|
14
90
|
--#{root-defaults.$prefix}font-size-base,
|
|
15
91
|
#{defaults.$font-size-base}
|
|
16
92
|
);
|
|
93
|
+
|
|
94
|
+
// --graupl-line-height
|
|
17
95
|
$line-height: var(
|
|
18
96
|
--#{root-defaults.$prefix}line-height,
|
|
19
97
|
#{defaults.$line-height}
|
|
@@ -23,6 +101,7 @@ $line-height: var(
|
|
|
23
101
|
$font-sizes: ();
|
|
24
102
|
|
|
25
103
|
@each $key, $value in defaults.$font-size-multipliers {
|
|
104
|
+
// --graupl-font-xs, --graupl-font-sm, --graupl-font-base, --graupl-font-lg, --graupl-font-xl, --graupl-font-2xl, --graupl-font-3xl, --graupl-font-4xl, --graupl-font-5xl
|
|
26
105
|
$size: var(
|
|
27
106
|
--#{root-defaults.$prefix}font-#{$key},
|
|
28
107
|
calc(#{$value} * #{$font-size-base})
|
|
@@ -33,216 +112,323 @@ $font-sizes: ();
|
|
|
33
112
|
$font-weights: ();
|
|
34
113
|
|
|
35
114
|
@each $key, $value in defaults.$font-weights {
|
|
115
|
+
// --graupl-font-weight-light, --graupl-font-weight-normal, --graupl-font-weight-bold
|
|
36
116
|
$weight: var(--#{root-defaults.$prefix}font-weight-#{$key}, $value);
|
|
37
117
|
$font-weights: map.set($font-weights, $key, $weight);
|
|
38
118
|
}
|
|
39
119
|
|
|
120
|
+
// --graupl-font-weight-bold
|
|
40
121
|
$font-weight-bold: var(
|
|
41
122
|
--#{root-defaults.$prefix}font-weight-bold,
|
|
42
123
|
#{map.get($font-weights, bold)}
|
|
43
124
|
);
|
|
44
125
|
|
|
45
126
|
// Root properties.
|
|
127
|
+
// --graupl-root-font-family
|
|
46
128
|
$root-font-family: var(
|
|
47
129
|
--#{root-defaults.$prefix}root-font-family,
|
|
48
130
|
#{defaults.$root-font-family}
|
|
49
131
|
);
|
|
132
|
+
|
|
133
|
+
// --graupl-root-font-size
|
|
50
134
|
$root-font-size: var(
|
|
51
135
|
--#{root-defaults.$prefix}root-font-size,
|
|
52
136
|
#{defaults.$root-font-size}
|
|
53
137
|
);
|
|
54
138
|
|
|
55
139
|
// Typography properties.
|
|
140
|
+
// --graupl-body-font-size
|
|
56
141
|
$body-font-size: var(
|
|
57
142
|
--#{root-defaults.$prefix}body-font-size,
|
|
58
143
|
#{map.get($font-sizes, base)}
|
|
59
144
|
);
|
|
145
|
+
|
|
146
|
+
// --graupl-body-line-height
|
|
60
147
|
$body-line-height: var(
|
|
61
148
|
--#{root-defaults.$prefix}body-line-height,
|
|
62
149
|
#{$line-height}
|
|
63
150
|
);
|
|
151
|
+
|
|
152
|
+
// --graupl-body-font-weight
|
|
64
153
|
$body-font-weight: var(
|
|
65
154
|
--#{root-defaults.$prefix}body-font-weight,
|
|
66
155
|
#{map.get($font-weights, normal)}
|
|
67
156
|
);
|
|
157
|
+
|
|
158
|
+
// --graupl-body-color
|
|
68
159
|
$body-color: var(
|
|
69
160
|
--#{root-defaults.$prefix}body-color,
|
|
70
161
|
#{color-variables.$color}
|
|
71
162
|
);
|
|
163
|
+
|
|
164
|
+
// --graupl-paragraph-font-size
|
|
72
165
|
$paragraph-font-size: var(
|
|
73
166
|
--#{root-defaults.$prefix}paragraph-font-size,
|
|
74
167
|
#{$body-font-size}
|
|
75
168
|
);
|
|
169
|
+
|
|
170
|
+
// --graupl-paragraph-line-height
|
|
76
171
|
$paragraph-line-height: var(
|
|
77
172
|
--#{root-defaults.$prefix}paragraph-line-height,
|
|
78
173
|
#{$body-line-height}
|
|
79
174
|
);
|
|
175
|
+
|
|
176
|
+
// --graupl-paragraph-margin
|
|
80
177
|
$paragraph-margin: var(
|
|
81
178
|
--#{root-defaults.$prefix}paragraph-margin,
|
|
82
179
|
0 0 #{map.get(root-variables.$spacers, 2)} 0
|
|
83
180
|
);
|
|
181
|
+
|
|
182
|
+
// --graupl-paragraph-font-weight
|
|
84
183
|
$paragraph-font-weight: var(
|
|
85
184
|
--#{root-defaults.$prefix}paragraph-font-weight,
|
|
86
185
|
#{$body-font-weight}
|
|
87
186
|
);
|
|
187
|
+
|
|
188
|
+
// --graupl-paragraph-color
|
|
88
189
|
$paragraph-color: var(
|
|
89
190
|
--#{root-defaults.$prefix}paragraph-color,
|
|
90
191
|
#{$body-color}
|
|
91
192
|
);
|
|
193
|
+
|
|
194
|
+
// --graupl-small-font-size
|
|
92
195
|
$small-font-size: var(
|
|
93
196
|
--#{root-defaults.$prefix}small-font-size,
|
|
94
197
|
#{map.get($font-sizes, sm)}
|
|
95
198
|
);
|
|
199
|
+
|
|
200
|
+
// --graupl-small-line-height
|
|
96
201
|
$small-line-height: var(
|
|
97
202
|
--#{root-defaults.$prefix}small-line-height,
|
|
98
203
|
#{$line-height}
|
|
99
204
|
);
|
|
205
|
+
|
|
206
|
+
// --graupl-small-margin
|
|
100
207
|
$small-margin: var(
|
|
101
208
|
--#{root-defaults.$prefix}small-margin,
|
|
102
209
|
0 0 #{map.get(root-variables.$spacers, 2)} 0
|
|
103
210
|
);
|
|
211
|
+
|
|
212
|
+
// --graupl-small-font-weight
|
|
104
213
|
$small-font-weight: var(
|
|
105
214
|
--#{root-defaults.$prefix}small-font-weight,
|
|
106
215
|
#{$body-font-weight}
|
|
107
216
|
);
|
|
217
|
+
|
|
218
|
+
// --graupl-small-color
|
|
108
219
|
$small-color: var(--#{root-defaults.$prefix}small-color, #{$body-color});
|
|
109
220
|
|
|
110
221
|
// Headings properties.
|
|
222
|
+
// --graupl-heading-font-family
|
|
111
223
|
$heading-font-family: var(
|
|
112
224
|
--#{root-defaults.$prefix}heading-font-family,
|
|
113
225
|
$root-font-family
|
|
114
226
|
);
|
|
227
|
+
|
|
228
|
+
// --graupl-heading-line-height
|
|
115
229
|
$heading-line-height: var(
|
|
116
230
|
--#{root-defaults.$prefix}heading-line-height,
|
|
117
231
|
#{$line-height}
|
|
118
232
|
);
|
|
233
|
+
|
|
234
|
+
// --graupl-heading-margin
|
|
119
235
|
$heading-margin: var(
|
|
120
236
|
--#{root-defaults.$prefix}heading-margin,
|
|
121
237
|
#{map.get(root-variables.$spacers, 5)} 0
|
|
122
238
|
#{map.get(root-variables.$spacers, 2)} 0
|
|
123
239
|
);
|
|
240
|
+
|
|
241
|
+
// --graupl-heading-font-weight
|
|
124
242
|
$heading-font-weight: var(
|
|
125
243
|
--#{root-defaults.$prefix}heading-font-weight,
|
|
126
244
|
#{$font-weight-bold}
|
|
127
245
|
);
|
|
246
|
+
|
|
247
|
+
// --graupl-heading-color
|
|
128
248
|
$heading-color: var(--#{root-defaults.$prefix}heading-color, #{$body-color});
|
|
129
249
|
|
|
130
250
|
// H1 properties.
|
|
251
|
+
// --graupl-h1-font-size
|
|
131
252
|
$h1-font-size: var(
|
|
132
253
|
--#{root-defaults.$prefix}h1-font-size,
|
|
133
254
|
#{map.get($font-sizes, 5xl)}
|
|
134
255
|
);
|
|
256
|
+
|
|
257
|
+
// --graupl-h1-line-height
|
|
135
258
|
$h1-line-height: var(
|
|
136
259
|
--#{root-defaults.$prefix}h1-line-height,
|
|
137
260
|
#{$heading-line-height}
|
|
138
261
|
);
|
|
262
|
+
|
|
263
|
+
// --graupl-h1-margin
|
|
139
264
|
$h1-margin: var(--#{root-defaults.$prefix}h1-margin, #{$heading-margin});
|
|
265
|
+
|
|
266
|
+
// --graupl-h1-font-family
|
|
140
267
|
$h1-font-family: var(
|
|
141
268
|
--#{root-defaults.$prefix}h1-font-family,
|
|
142
269
|
$heading-font-family
|
|
143
270
|
);
|
|
271
|
+
|
|
272
|
+
// --graupl-h1-font-weight
|
|
144
273
|
$h1-font-weight: var(
|
|
145
274
|
--#{root-defaults.$prefix}h1-font-weight,
|
|
146
275
|
$heading-font-weight
|
|
147
276
|
);
|
|
277
|
+
|
|
278
|
+
// --graupl-h1-color
|
|
148
279
|
$h1-color: var(--#{root-defaults.$prefix}h1-color, #{$heading-color});
|
|
149
280
|
|
|
150
281
|
// H2 properties.
|
|
282
|
+
// --graupl-h2-font-size
|
|
151
283
|
$h2-font-size: var(
|
|
152
284
|
--#{root-defaults.$prefix}h2-font-size,
|
|
153
285
|
#{map.get($font-sizes, 4xl)}
|
|
154
286
|
);
|
|
287
|
+
|
|
288
|
+
// --graupl-h2-line-height
|
|
155
289
|
$h2-line-height: var(
|
|
156
290
|
--#{root-defaults.$prefix}h2-line-height,
|
|
157
291
|
#{$heading-line-height}
|
|
158
292
|
);
|
|
293
|
+
|
|
294
|
+
// --graupl-h2-margin
|
|
159
295
|
$h2-margin: var(--#{root-defaults.$prefix}h2-margin, #{$heading-margin});
|
|
296
|
+
|
|
297
|
+
// --graupl-h2-font-family
|
|
160
298
|
$h2-font-family: var(
|
|
161
299
|
--#{root-defaults.$prefix}h2-font-family,
|
|
162
300
|
$heading-font-family
|
|
163
301
|
);
|
|
302
|
+
|
|
303
|
+
// --graupl-h2-font-weight
|
|
164
304
|
$h2-font-weight: var(
|
|
165
305
|
--#{root-defaults.$prefix}h2-font-weight,
|
|
166
306
|
$heading-font-weight
|
|
167
307
|
);
|
|
308
|
+
|
|
309
|
+
// --graupl-h2-color
|
|
168
310
|
$h2-color: var(--#{root-defaults.$prefix}h2-color, #{$heading-color});
|
|
169
311
|
|
|
170
312
|
// H3 properties.
|
|
313
|
+
// --graupl-h3-font-size
|
|
171
314
|
$h3-font-size: var(
|
|
172
315
|
--#{root-defaults.$prefix}h3-font-size,
|
|
173
316
|
#{map.get($font-sizes, 3xl)}
|
|
174
317
|
);
|
|
318
|
+
|
|
319
|
+
// --graupl-h3-line-height
|
|
175
320
|
$h3-line-height: var(
|
|
176
321
|
--#{root-defaults.$prefix}h3-line-height,
|
|
177
322
|
#{$heading-line-height}
|
|
178
323
|
);
|
|
324
|
+
|
|
325
|
+
// --graupl-h3-margin
|
|
179
326
|
$h3-margin: var(--#{root-defaults.$prefix}h3-margin, #{$heading-margin});
|
|
327
|
+
|
|
328
|
+
// --graupl-h3-font-family
|
|
180
329
|
$h3-font-family: var(
|
|
181
330
|
--#{root-defaults.$prefix}h3-font-family,
|
|
182
331
|
$heading-font-family
|
|
183
332
|
);
|
|
333
|
+
|
|
334
|
+
// --graupl-h3-font-weight
|
|
184
335
|
$h3-font-weight: var(
|
|
185
336
|
--#{root-defaults.$prefix}h3-font-weight,
|
|
186
337
|
$heading-font-weight
|
|
187
338
|
);
|
|
339
|
+
|
|
340
|
+
// --graupl-h3-color
|
|
188
341
|
$h3-color: var(--#{root-defaults.$prefix}h3-color, #{$heading-color});
|
|
189
342
|
|
|
190
343
|
// H4 properties.
|
|
344
|
+
// --graupl-h4-font-size
|
|
191
345
|
$h4-font-size: var(
|
|
192
346
|
--#{root-defaults.$prefix}h4-font-size,
|
|
193
347
|
#{map.get($font-sizes, 2xl)}
|
|
194
348
|
);
|
|
349
|
+
|
|
350
|
+
// --graupl-h4-line-height
|
|
195
351
|
$h4-line-height: var(
|
|
196
352
|
--#{root-defaults.$prefix}h4-line-height,
|
|
197
353
|
#{$heading-line-height}
|
|
198
354
|
);
|
|
355
|
+
|
|
356
|
+
// --graupl-h4-margin
|
|
199
357
|
$h4-margin: var(--#{root-defaults.$prefix}h4-margin, #{$heading-margin});
|
|
358
|
+
|
|
359
|
+
// --graupl-h4-font-family
|
|
200
360
|
$h4-font-family: var(
|
|
201
361
|
--#{root-defaults.$prefix}h4-font-family,
|
|
202
362
|
$heading-font-family
|
|
203
363
|
);
|
|
364
|
+
|
|
365
|
+
// --graupl-h4-font-weight
|
|
204
366
|
$h4-font-weight: var(
|
|
205
367
|
--#{root-defaults.$prefix}h4-font-weight,
|
|
206
368
|
$heading-font-weight
|
|
207
369
|
);
|
|
370
|
+
|
|
371
|
+
// --graupl-h4-color
|
|
208
372
|
$h4-color: var(--#{root-defaults.$prefix}h4-color, #{$heading-color});
|
|
209
373
|
|
|
210
374
|
// H5 properties.
|
|
375
|
+
// --graupl-h5-font-size
|
|
211
376
|
$h5-font-size: var(
|
|
212
377
|
--#{root-defaults.$prefix}h5-font-size,
|
|
213
378
|
#{map.get($font-sizes, xl)}
|
|
214
379
|
);
|
|
380
|
+
|
|
381
|
+
// --graupl-h5-line-height
|
|
215
382
|
$h5-line-height: var(
|
|
216
383
|
--#{root-defaults.$prefix}h5-line-height,
|
|
217
384
|
#{$heading-line-height}
|
|
218
385
|
);
|
|
386
|
+
|
|
387
|
+
// --graupl-h5-margin
|
|
219
388
|
$h5-margin: var(--#{root-defaults.$prefix}h5-margin, #{$heading-margin});
|
|
389
|
+
|
|
390
|
+
// --graupl-h5-font-family
|
|
220
391
|
$h5-font-family: var(
|
|
221
392
|
--#{root-defaults.$prefix}h5-font-family,
|
|
222
393
|
$heading-font-family
|
|
223
394
|
);
|
|
395
|
+
|
|
396
|
+
// --graupl-h5-font-weight
|
|
224
397
|
$h5-font-weight: var(
|
|
225
398
|
--#{root-defaults.$prefix}h5-font-weight,
|
|
226
399
|
$heading-font-weight
|
|
227
400
|
);
|
|
401
|
+
|
|
402
|
+
// --graupl-h5-color
|
|
228
403
|
$h5-color: var(--#{root-defaults.$prefix}h5-color, #{$heading-color});
|
|
229
404
|
|
|
230
405
|
// H6 properties.
|
|
406
|
+
// --graupl-h6-font-size
|
|
231
407
|
$h6-font-size: var(
|
|
232
408
|
--#{root-defaults.$prefix}h6-font-size,
|
|
233
409
|
#{map.get($font-sizes, lg)}
|
|
234
410
|
);
|
|
411
|
+
|
|
412
|
+
// --graupl-h6-line-height
|
|
235
413
|
$h6-line-height: var(
|
|
236
414
|
--#{root-defaults.$prefix}h6-line-height,
|
|
237
415
|
#{$heading-line-height}
|
|
238
416
|
);
|
|
417
|
+
|
|
418
|
+
// --graupl-h6-margin
|
|
239
419
|
$h6-margin: var(--#{root-defaults.$prefix}h6-margin, #{$heading-margin});
|
|
420
|
+
|
|
421
|
+
// --graupl-h6-font-family
|
|
240
422
|
$h6-font-family: var(
|
|
241
423
|
--#{root-defaults.$prefix}h6-font-family,
|
|
242
424
|
$heading-font-family
|
|
243
425
|
);
|
|
426
|
+
|
|
427
|
+
// --graupl-h6-font-weight
|
|
244
428
|
$h6-font-weight: var(
|
|
245
429
|
--#{root-defaults.$prefix}h6-font-weight,
|
|
246
430
|
$heading-font-weight
|
|
247
431
|
);
|
|
432
|
+
|
|
433
|
+
// --graupl-h6-color
|
|
248
434
|
$h6-color: var(--#{root-defaults.$prefix}h6-color, #{$heading-color});
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
// - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
|
|
26
26
|
// - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
|
|
27
27
|
// - `$template-selector-prefix`: The prefix for the utility classes.
|
|
28
|
-
// - `$custom-template-properties`: [DEPRECATED] The custom properties and values for the template utility classes.
|
|
29
28
|
// - `$template-properties`: The merged properties and values for the template utility classes.
|
|
30
29
|
//
|
|
31
30
|
// Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
|
|
@@ -39,19 +39,8 @@ $-align-content-properties: (
|
|
|
39
39
|
baseline: baseline,
|
|
40
40
|
stretch: stretch,
|
|
41
41
|
);
|
|
42
|
-
$custom-align-content-properties: () !default;
|
|
43
42
|
$align-content-properties: () !default;
|
|
44
43
|
|
|
45
|
-
// @todo remove this once $custom-align-content-properties is removed
|
|
46
|
-
@if $custom-align-content-properties != () {
|
|
47
|
-
@warn "`$custom-align-content-properties` is deprecated and will be removed in a future release of Graupl. Use `$align-content-properties` instead.";
|
|
48
|
-
|
|
49
|
-
$align-content-properties: map.merge(
|
|
50
|
-
$align-content-properties,
|
|
51
|
-
$custom-align-content-properties
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
44
|
// Align items properties.
|
|
56
45
|
$align-items-selector-prefix: "align-items-" !default;
|
|
57
46
|
$-align-items-properties: (
|
|
@@ -61,19 +50,8 @@ $-align-items-properties: (
|
|
|
61
50
|
baseline: baseline,
|
|
62
51
|
stretch: stretch,
|
|
63
52
|
);
|
|
64
|
-
$custom-align-items-properties: () !default;
|
|
65
53
|
$align-items-properties: () !default;
|
|
66
54
|
|
|
67
|
-
// @todo remove this once $custom-align-items-properties is removed
|
|
68
|
-
@if $custom-align-items-properties != () {
|
|
69
|
-
@warn "`$custom-align-items-properties` is deprecated and will be removed in a future release of Graupl. Use `$align-items-properties` instead.";
|
|
70
|
-
|
|
71
|
-
$align-items-properties: map.merge(
|
|
72
|
-
$align-items-properties,
|
|
73
|
-
$custom-align-items-properties
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
55
|
// Align self properties.
|
|
78
56
|
$align-self-selector-prefix: "align-self-" !default;
|
|
79
57
|
$-align-self-properties: (
|
|
@@ -84,19 +62,8 @@ $-align-self-properties: (
|
|
|
84
62
|
baseline: baseline,
|
|
85
63
|
stretch: stretch,
|
|
86
64
|
);
|
|
87
|
-
$custom-align-self-properties: () !default;
|
|
88
65
|
$align-self-properties: () !default;
|
|
89
66
|
|
|
90
|
-
// @todo remove this once $custom-align-self-properties is removed
|
|
91
|
-
@if $custom-align-self-properties != () {
|
|
92
|
-
@warn "`$custom-align-self-properties` is deprecated and will be removed in a future release of Graupl. Use `$align-self-properties` instead.";
|
|
93
|
-
|
|
94
|
-
$align-self-properties: map.merge(
|
|
95
|
-
$align-self-properties,
|
|
96
|
-
$custom-align-self-properties
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
67
|
// Merge custom properties with base properties if generating base utilities.
|
|
101
68
|
@if $generate-base-utilities {
|
|
102
69
|
$align-content-properties: map.merge(
|
|
@@ -27,31 +27,30 @@
|
|
|
27
27
|
// The following custom properties control the generated classes:
|
|
28
28
|
// - N/A.
|
|
29
29
|
//
|
|
30
|
-
// The following variables control the generated classes:
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
// - `$align-self-properties`: The combined properties and values for the align self utility classes.
|
|
30
|
+
// The following sass variables control the generated classes:
|
|
31
|
+
// | Variable | Description | Default Value |
|
|
32
|
+
// | --- | --- | --- |
|
|
33
|
+
// | `$selector-base` | Base selector for utility classes. | `"."` |
|
|
34
|
+
// | `$use-important` | Append `!important` to generated declarations. | `true` |
|
|
35
|
+
// | `$generate-base-utilities` | Generate the base utilities. | `true` |
|
|
36
|
+
// | `$screen-aware` | Generate screen-aware variants. | `false` |
|
|
37
|
+
// | `$theme-aware` | Generate theme-aware variants. | `false` |
|
|
38
|
+
// | `$state-aware` | Generate state-aware variants. | `false` |
|
|
39
|
+
// | `$container-aware` | Generate container-aware variants. | `false` |
|
|
40
|
+
// | `$screen-aware-separator` | Separator for screen-aware utilities. | `"\\:"` |
|
|
41
|
+
// | `$theme-aware-separator` | Separator for theme-aware utilities. | `"\\:"` |
|
|
42
|
+
// | `$state-aware-separator` | Separator for state-aware utilities. | `"\\:"` |
|
|
43
|
+
// | `$container-aware-separator` | Separator for container-aware utilities. | `"\\:"` |
|
|
44
|
+
// | `$screen-aware-selector-prefix` | Prefix for screen-aware utilities. | `""` |
|
|
45
|
+
// | `$theme-aware-selector-prefix` | Prefix for theme-aware utilities. | `""` |
|
|
46
|
+
// | `$state-aware-selector-prefix` | Prefix for state-aware utilities. | `""` |
|
|
47
|
+
// | `$container-aware-selector-prefix` | Prefix for container-aware utilities. | `"cq\\:"` |
|
|
48
|
+
// | `$align-content-selector-prefix` | Prefix for align-content utilities. | `"align-content-"` |
|
|
49
|
+
// | `$align-content-properties` | Map of align-content utility values. | `normal, start, end, center, between, around, evenly, baseline, stretch` |
|
|
50
|
+
// | `$align-items-selector-prefix` | Prefix for align-items utilities. | `"align-items-"` |
|
|
51
|
+
// | `$align-items-properties` | Map of align-items utility values. | `start, end, center, baseline, stretch` |
|
|
52
|
+
// | `$align-self-selector-prefix` | Prefix for align-self utilities. | `"align-self-"` |
|
|
53
|
+
// | `$align-self-properties` | Map of align-self utility values. | `auto, start, end, center, baseline, stretch` |
|
|
55
54
|
//
|
|
56
55
|
// Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
|
|
57
56
|
// By default, no responsive utility classes are generated.
|