@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
|
@@ -1,4 +1,168 @@
|
|
|
1
1
|
// @graupl/core color theme styles.
|
|
2
|
+
//
|
|
3
|
+
// This module wires up the global colour tokens and theme variants.
|
|
4
|
+
//
|
|
5
|
+
// The following selectors are generated by default:
|
|
6
|
+
// - `:root`: Defines base colours and the active theme properties.
|
|
7
|
+
// - `.light-mode`: Defines the light theme properties and sets `color-scheme: light`.
|
|
8
|
+
// - `.dark-mode`: Defines the dark theme properties and sets `color-scheme: dark`.
|
|
9
|
+
//
|
|
10
|
+
// The following custom properties can be used to customize colour theming:
|
|
11
|
+
// | Property | Description | Default Value |
|
|
12
|
+
// | --- | --- | --- |
|
|
13
|
+
// | `--graupl-primary` | Primary base colour. | `hsl(219deg 75% 50%)` |
|
|
14
|
+
// | `--graupl-primary--100` | Primary shade 100. | `hsl(219deg 100% 95%)` |
|
|
15
|
+
// | `--graupl-primary--200` | Primary shade 200. | `hsl(219deg 90% 80%)` |
|
|
16
|
+
// | `--graupl-primary--300` | Primary shade 300. | `hsl(219deg 80% 65%)` |
|
|
17
|
+
// | `--graupl-primary--400` | Primary shade 400. | `hsl(219deg 75% 55%)` |
|
|
18
|
+
// | `--graupl-primary--500` | Primary shade 500. | `hsl(219deg 75% 50%)` |
|
|
19
|
+
// | `--graupl-primary--600` | Primary shade 600. | `hsl(219deg 75% 45%)` |
|
|
20
|
+
// | `--graupl-primary--700` | Primary shade 700. | `hsl(219deg 80% 35%)` |
|
|
21
|
+
// | `--graupl-primary--800` | Primary shade 800. | `hsl(219deg 90% 20%)` |
|
|
22
|
+
// | `--graupl-primary--900` | Primary shade 900. | `hsl(219deg 100% 10%)` |
|
|
23
|
+
// | `--graupl-secondary` | Secondary base colour. | `hsl(235deg 15% 50%)` |
|
|
24
|
+
// | `--graupl-secondary--100` | Secondary shade 100. | `hsl(235deg 40% 95%)` |
|
|
25
|
+
// | `--graupl-secondary--200` | Secondary shade 200. | `hsl(235deg 30% 80%)` |
|
|
26
|
+
// | `--graupl-secondary--300` | Secondary shade 300. | `hsl(235deg 20% 65%)` |
|
|
27
|
+
// | `--graupl-secondary--400` | Secondary shade 400. | `hsl(235deg 15% 55%)` |
|
|
28
|
+
// | `--graupl-secondary--500` | Secondary shade 500. | `hsl(235deg 15% 50%)` |
|
|
29
|
+
// | `--graupl-secondary--600` | Secondary shade 600. | `hsl(235deg 15% 45%)` |
|
|
30
|
+
// | `--graupl-secondary--700` | Secondary shade 700. | `hsl(235deg 20% 35%)` |
|
|
31
|
+
// | `--graupl-secondary--800` | Secondary shade 800. | `hsl(235deg 30% 20%)` |
|
|
32
|
+
// | `--graupl-secondary--900` | Secondary shade 900. | `hsl(235deg 40% 10%)` |
|
|
33
|
+
// | `--graupl-tertiary` | Tertiary base colour. | `hsl(340deg 60% 50%)` |
|
|
34
|
+
// | `--graupl-tertiary--100` | Tertiary shade 100. | `hsl(340deg 85% 95%)` |
|
|
35
|
+
// | `--graupl-tertiary--200` | Tertiary shade 200. | `hsl(340deg 75% 80%)` |
|
|
36
|
+
// | `--graupl-tertiary--300` | Tertiary shade 300. | `hsl(340deg 65% 65%)` |
|
|
37
|
+
// | `--graupl-tertiary--400` | Tertiary shade 400. | `hsl(340deg 60% 55%)` |
|
|
38
|
+
// | `--graupl-tertiary--500` | Tertiary shade 500. | `hsl(340deg 60% 50%)` |
|
|
39
|
+
// | `--graupl-tertiary--600` | Tertiary shade 600. | `hsl(340deg 60% 45%)` |
|
|
40
|
+
// | `--graupl-tertiary--700` | Tertiary shade 700. | `hsl(340deg 65% 35%)` |
|
|
41
|
+
// | `--graupl-tertiary--800` | Tertiary shade 800. | `hsl(340deg 75% 20%)` |
|
|
42
|
+
// | `--graupl-tertiary--900` | Tertiary shade 900. | `hsl(340deg 85% 10%)` |
|
|
43
|
+
// | `--graupl-theme-light--primary` | Light theme primary base colour. | `var(--graupl-primary)` |
|
|
44
|
+
// | `--graupl-theme-light--primary--100` | Light theme primary shade 100. | `var(--graupl-primary--100)` |
|
|
45
|
+
// | `--graupl-theme-light--primary--200` | Light theme primary shade 200. | `var(--graupl-primary--200)` |
|
|
46
|
+
// | `--graupl-theme-light--primary--300` | Light theme primary shade 300. | `var(--graupl-primary--300)` |
|
|
47
|
+
// | `--graupl-theme-light--primary--400` | Light theme primary shade 400. | `var(--graupl-primary--400)` |
|
|
48
|
+
// | `--graupl-theme-light--primary--500` | Light theme primary shade 500. | `var(--graupl-primary--500)` |
|
|
49
|
+
// | `--graupl-theme-light--primary--600` | Light theme primary shade 600. | `var(--graupl-primary--600)` |
|
|
50
|
+
// | `--graupl-theme-light--primary--700` | Light theme primary shade 700. | `var(--graupl-primary--700)` |
|
|
51
|
+
// | `--graupl-theme-light--primary--800` | Light theme primary shade 800. | `var(--graupl-primary--800)` |
|
|
52
|
+
// | `--graupl-theme-light--primary--900` | Light theme primary shade 900. | `var(--graupl-primary--900)` |
|
|
53
|
+
// | `--graupl-theme-light--secondary` | Light theme secondary base colour. | `var(--graupl-secondary)` |
|
|
54
|
+
// | `--graupl-theme-light--secondary--100` | Light theme secondary shade 100. | `var(--graupl-secondary--100)` |
|
|
55
|
+
// | `--graupl-theme-light--secondary--200` | Light theme secondary shade 200. | `var(--graupl-secondary--200)` |
|
|
56
|
+
// | `--graupl-theme-light--secondary--300` | Light theme secondary shade 300. | `var(--graupl-secondary--300)` |
|
|
57
|
+
// | `--graupl-theme-light--secondary--400` | Light theme secondary shade 400. | `var(--graupl-secondary--400)` |
|
|
58
|
+
// | `--graupl-theme-light--secondary--500` | Light theme secondary shade 500. | `var(--graupl-secondary--500)` |
|
|
59
|
+
// | `--graupl-theme-light--secondary--600` | Light theme secondary shade 600. | `var(--graupl-secondary--600)` |
|
|
60
|
+
// | `--graupl-theme-light--secondary--700` | Light theme secondary shade 700. | `var(--graupl-secondary--700)` |
|
|
61
|
+
// | `--graupl-theme-light--secondary--800` | Light theme secondary shade 800. | `var(--graupl-secondary--800)` |
|
|
62
|
+
// | `--graupl-theme-light--secondary--900` | Light theme secondary shade 900. | `var(--graupl-secondary--900)` |
|
|
63
|
+
// | `--graupl-theme-light--tertiary` | Light theme tertiary base colour. | `var(--graupl-tertiary)` |
|
|
64
|
+
// | `--graupl-theme-light--tertiary--100` | Light theme tertiary shade 100. | `var(--graupl-tertiary--100)` |
|
|
65
|
+
// | `--graupl-theme-light--tertiary--200` | Light theme tertiary shade 200. | `var(--graupl-tertiary--200)` |
|
|
66
|
+
// | `--graupl-theme-light--tertiary--300` | Light theme tertiary shade 300. | `var(--graupl-tertiary--300)` |
|
|
67
|
+
// | `--graupl-theme-light--tertiary--400` | Light theme tertiary shade 400. | `var(--graupl-tertiary--400)` |
|
|
68
|
+
// | `--graupl-theme-light--tertiary--500` | Light theme tertiary shade 500. | `var(--graupl-tertiary--500)` |
|
|
69
|
+
// | `--graupl-theme-light--tertiary--600` | Light theme tertiary shade 600. | `var(--graupl-tertiary--600)` |
|
|
70
|
+
// | `--graupl-theme-light--tertiary--700` | Light theme tertiary shade 700. | `var(--graupl-tertiary--700)` |
|
|
71
|
+
// | `--graupl-theme-light--tertiary--800` | Light theme tertiary shade 800. | `var(--graupl-tertiary--800)` |
|
|
72
|
+
// | `--graupl-theme-light--tertiary--900` | Light theme tertiary shade 900. | `var(--graupl-tertiary--900)` |
|
|
73
|
+
// | `--graupl-theme-dark--primary` | Dark theme primary base colour. | `var(--graupl-primary)` |
|
|
74
|
+
// | `--graupl-theme-dark--primary--100` | Dark theme primary shade 100. | `var(--graupl-primary--900)` |
|
|
75
|
+
// | `--graupl-theme-dark--primary--200` | Dark theme primary shade 200. | `var(--graupl-primary--800)` |
|
|
76
|
+
// | `--graupl-theme-dark--primary--300` | Dark theme primary shade 300. | `var(--graupl-primary--700)` |
|
|
77
|
+
// | `--graupl-theme-dark--primary--400` | Dark theme primary shade 400. | `var(--graupl-primary--600)` |
|
|
78
|
+
// | `--graupl-theme-dark--primary--500` | Dark theme primary shade 500. | `var(--graupl-primary--500)` |
|
|
79
|
+
// | `--graupl-theme-dark--primary--600` | Dark theme primary shade 600. | `var(--graupl-primary--400)` |
|
|
80
|
+
// | `--graupl-theme-dark--primary--700` | Dark theme primary shade 700. | `var(--graupl-primary--300)` |
|
|
81
|
+
// | `--graupl-theme-dark--primary--800` | Dark theme primary shade 800. | `var(--graupl-primary--200)` |
|
|
82
|
+
// | `--graupl-theme-dark--primary--900` | Dark theme primary shade 900. | `var(--graupl-primary--100)` |
|
|
83
|
+
// | `--graupl-theme-dark--secondary` | Dark theme secondary base colour. | `var(--graupl-secondary)` |
|
|
84
|
+
// | `--graupl-theme-dark--secondary--100` | Dark theme secondary shade 100. | `var(--graupl-secondary--900)` |
|
|
85
|
+
// | `--graupl-theme-dark--secondary--200` | Dark theme secondary shade 200. | `var(--graupl-secondary--800)` |
|
|
86
|
+
// | `--graupl-theme-dark--secondary--300` | Dark theme secondary shade 300. | `var(--graupl-secondary--700)` |
|
|
87
|
+
// | `--graupl-theme-dark--secondary--400` | Dark theme secondary shade 400. | `var(--graupl-secondary--600)` |
|
|
88
|
+
// | `--graupl-theme-dark--secondary--500` | Dark theme secondary shade 500. | `var(--graupl-secondary--500)` |
|
|
89
|
+
// | `--graupl-theme-dark--secondary--600` | Dark theme secondary shade 600. | `var(--graupl-secondary--400)` |
|
|
90
|
+
// | `--graupl-theme-dark--secondary--700` | Dark theme secondary shade 700. | `var(--graupl-secondary--300)` |
|
|
91
|
+
// | `--graupl-theme-dark--secondary--800` | Dark theme secondary shade 800. | `var(--graupl-secondary--200)` |
|
|
92
|
+
// | `--graupl-theme-dark--secondary--900` | Dark theme secondary shade 900. | `var(--graupl-secondary--100)` |
|
|
93
|
+
// | `--graupl-theme-dark--tertiary` | Dark theme tertiary base colour. | `var(--graupl-tertiary)` |
|
|
94
|
+
// | `--graupl-theme-dark--tertiary--100` | Dark theme tertiary shade 100. | `var(--graupl-tertiary--900)` |
|
|
95
|
+
// | `--graupl-theme-dark--tertiary--200` | Dark theme tertiary shade 200. | `var(--graupl-tertiary--800)` |
|
|
96
|
+
// | `--graupl-theme-dark--tertiary--300` | Dark theme tertiary shade 300. | `var(--graupl-tertiary--700)` |
|
|
97
|
+
// | `--graupl-theme-dark--tertiary--400` | Dark theme tertiary shade 400. | `var(--graupl-tertiary--600)` |
|
|
98
|
+
// | `--graupl-theme-dark--tertiary--500` | Dark theme tertiary shade 500. | `var(--graupl-tertiary--500)` |
|
|
99
|
+
// | `--graupl-theme-dark--tertiary--600` | Dark theme tertiary shade 600. | `var(--graupl-tertiary--400)` |
|
|
100
|
+
// | `--graupl-theme-dark--tertiary--700` | Dark theme tertiary shade 700. | `var(--graupl-tertiary--300)` |
|
|
101
|
+
// | `--graupl-theme-dark--tertiary--800` | Dark theme tertiary shade 800. | `var(--graupl-tertiary--200)` |
|
|
102
|
+
// | `--graupl-theme-dark--tertiary--900` | Dark theme tertiary shade 900. | `var(--graupl-tertiary--100)` |
|
|
103
|
+
// | `--graupl-theme-active--primary` | Active theme primary base colour. | `var(--graupl-theme-light--primary)` |
|
|
104
|
+
// | `--graupl-theme-active--primary--100` | Active theme primary shade 100. | `var(--graupl-theme-light--primary--100)` |
|
|
105
|
+
// | `--graupl-theme-active--primary--200` | Active theme primary shade 200. | `var(--graupl-theme-light--primary--200)` |
|
|
106
|
+
// | `--graupl-theme-active--primary--300` | Active theme primary shade 300. | `var(--graupl-theme-light--primary--300)` |
|
|
107
|
+
// | `--graupl-theme-active--primary--400` | Active theme primary shade 400. | `var(--graupl-theme-light--primary--400)` |
|
|
108
|
+
// | `--graupl-theme-active--primary--500` | Active theme primary shade 500. | `var(--graupl-theme-light--primary--500)` |
|
|
109
|
+
// | `--graupl-theme-active--primary--600` | Active theme primary shade 600. | `var(--graupl-theme-light--primary--600)` |
|
|
110
|
+
// | `--graupl-theme-active--primary--700` | Active theme primary shade 700. | `var(--graupl-theme-light--primary--700)` |
|
|
111
|
+
// | `--graupl-theme-active--primary--800` | Active theme primary shade 800. | `var(--graupl-theme-light--primary--800)` |
|
|
112
|
+
// | `--graupl-theme-active--primary--900` | Active theme primary shade 900. | `var(--graupl-theme-light--primary--900)` |
|
|
113
|
+
// | `--graupl-theme-active--secondary` | Active theme secondary base colour. | `var(--graupl-theme-light--secondary)` |
|
|
114
|
+
// | `--graupl-theme-active--secondary--100` | Active theme secondary shade 100. | `var(--graupl-theme-light--secondary--100)` |
|
|
115
|
+
// | `--graupl-theme-active--secondary--200` | Active theme secondary shade 200. | `var(--graupl-theme-light--secondary--200)` |
|
|
116
|
+
// | `--graupl-theme-active--secondary--300` | Active theme secondary shade 300. | `var(--graupl-theme-light--secondary--300)` |
|
|
117
|
+
// | `--graupl-theme-active--secondary--400` | Active theme secondary shade 400. | `var(--graupl-theme-light--secondary--400)` |
|
|
118
|
+
// | `--graupl-theme-active--secondary--500` | Active theme secondary shade 500. | `var(--graupl-theme-light--secondary--500)` |
|
|
119
|
+
// | `--graupl-theme-active--secondary--600` | Active theme secondary shade 600. | `var(--graupl-theme-light--secondary--600)` |
|
|
120
|
+
// | `--graupl-theme-active--secondary--700` | Active theme secondary shade 700. | `var(--graupl-theme-light--secondary--700)` |
|
|
121
|
+
// | `--graupl-theme-active--secondary--800` | Active theme secondary shade 800. | `var(--graupl-theme-light--secondary--800)` |
|
|
122
|
+
// | `--graupl-theme-active--secondary--900` | Active theme secondary shade 900. | `var(--graupl-theme-light--secondary--900)` |
|
|
123
|
+
// | `--graupl-theme-active--tertiary` | Active theme tertiary base colour. | `var(--graupl-theme-light--tertiary)` |
|
|
124
|
+
// | `--graupl-theme-active--tertiary--100` | Active theme tertiary shade 100. | `var(--graupl-theme-light--tertiary--100)` |
|
|
125
|
+
// | `--graupl-theme-active--tertiary--200` | Active theme tertiary shade 200. | `var(--graupl-theme-light--tertiary--200)` |
|
|
126
|
+
// | `--graupl-theme-active--tertiary--300` | Active theme tertiary shade 300. | `var(--graupl-theme-light--tertiary--300)` |
|
|
127
|
+
// | `--graupl-theme-active--tertiary--400` | Active theme tertiary shade 400. | `var(--graupl-theme-light--tertiary--400)` |
|
|
128
|
+
// | `--graupl-theme-active--tertiary--500` | Active theme tertiary shade 500. | `var(--graupl-theme-light--tertiary--500)` |
|
|
129
|
+
// | `--graupl-theme-active--tertiary--600` | Active theme tertiary shade 600. | `var(--graupl-theme-light--tertiary--600)` |
|
|
130
|
+
// | `--graupl-theme-active--tertiary--700` | Active theme tertiary shade 700. | `var(--graupl-theme-light--tertiary--700)` |
|
|
131
|
+
// | `--graupl-theme-active--tertiary--800` | Active theme tertiary shade 800. | `var(--graupl-theme-light--tertiary--800)` |
|
|
132
|
+
// | `--graupl-theme-active--tertiary--900` | Active theme tertiary shade 900. | `var(--graupl-theme-light--tertiary--900)` |
|
|
133
|
+
// | `--graupl-root-color` | Base text colour applied to `:root`. | `var(--graupl-theme-active--primary--900)` |
|
|
134
|
+
// | `--graupl-root-background` | Base background colour applied to `:root`. | `var(--graupl-theme-active--primary--100)` |
|
|
135
|
+
// | `--graupl-color` | Text colour token. | `var(--graupl-root-color)` |
|
|
136
|
+
// | `--graupl-background` | Background colour token. | `var(--graupl-root-background)` |
|
|
137
|
+
// | `--graupl-border-color` | Border colour token. | `var(--graupl-color)` |
|
|
138
|
+
//
|
|
139
|
+
// The following sass variables can be used to customize colour generation:
|
|
140
|
+
// | Variable | Description | Default Value |
|
|
141
|
+
// | --- | --- | --- |
|
|
142
|
+
// | `$selector-base` | The selector base for the component. | `.` |
|
|
143
|
+
// | `$modifier-selector-base` | The selector base for component modifiers. | `.` |
|
|
144
|
+
// | `$generate-base-colors` | Flag to generate base colour tokens. | `true` |
|
|
145
|
+
// | `$generate-base-themes` | Flag to generate base theme tokens. | `true` |
|
|
146
|
+
// | `$theme-selector-base` | The selector base for the theme modifiers. | `$modifier-selector-base` |
|
|
147
|
+
// | `$theme-selector-prefix` | Prefix for theme modifiers. | `"."` |
|
|
148
|
+
// | `$theme-selector-suffix` | Suffix for theme modifiers. | `"-mode"` |
|
|
149
|
+
// | `$root-selector-base` | The base selector for the root component. | `":"` |
|
|
150
|
+
// | `$root-selector` | The selector for the root component. | `"root"` |
|
|
151
|
+
// | `$colors` | Map of base colours and shades. | See `_defaults.scss` |
|
|
152
|
+
// | `$themes` | List of available themes. | `(light, dark)` |
|
|
153
|
+
// | `$default-theme` | Theme used for the active tokens at `:root`. | `light` |
|
|
154
|
+
// | `$theme-mappings` | Shade remapping per theme. | See `_defaults.scss` |
|
|
155
|
+
// | `$theme-map` | Expanded map of theme → colour → shade references. | Auto-generated |
|
|
156
|
+
//
|
|
157
|
+
// @example
|
|
158
|
+
// <div class="dark-mode">
|
|
159
|
+
// <p>Content inside a dark theme container.</p>
|
|
160
|
+
// </div>
|
|
161
|
+
//
|
|
162
|
+
// @example
|
|
163
|
+
// <div class="light-mode">
|
|
164
|
+
// <p>Content inside a light theme container.</p>
|
|
165
|
+
// </div>
|
|
2
166
|
|
|
3
167
|
@use "../../defaults" as root-defaults;
|
|
4
168
|
@use "../../mixins/layer" as *;
|
|
@@ -8,7 +172,8 @@
|
|
|
8
172
|
@use "variables" as *;
|
|
9
173
|
|
|
10
174
|
@include layer(theme) {
|
|
11
|
-
:root
|
|
175
|
+
// :root
|
|
176
|
+
#{defaults.$root-selector-base}#{defaults.$root-selector} {
|
|
12
177
|
background: $root-background;
|
|
13
178
|
color: $root-color;
|
|
14
179
|
|
|
@@ -39,6 +204,7 @@
|
|
|
39
204
|
|
|
40
205
|
// Generate the available theme properties.
|
|
41
206
|
@each $theme-name, $theme in $themes {
|
|
207
|
+
// e.g. .light-mode, .dark-mode
|
|
42
208
|
@include theme.theme($theme-name) {
|
|
43
209
|
@each $color, $map in $theme {
|
|
44
210
|
@each $shade, $value in $map {
|
|
@@ -2,6 +2,135 @@
|
|
|
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-primary | hsl(219deg 75% 50%) |
|
|
10
|
+
// | --graupl-primary--100 | hsl(219deg 100% 95%) |
|
|
11
|
+
// | --graupl-primary--200 | hsl(219deg 90% 80%) |
|
|
12
|
+
// | --graupl-primary--300 | hsl(219deg 80% 65%) |
|
|
13
|
+
// | --graupl-primary--400 | hsl(219deg 75% 55%) |
|
|
14
|
+
// | --graupl-primary--500 | hsl(219deg 75% 50%) |
|
|
15
|
+
// | --graupl-primary--600 | hsl(219deg 75% 45%) |
|
|
16
|
+
// | --graupl-primary--700 | hsl(219deg 80% 35%) |
|
|
17
|
+
// | --graupl-primary--800 | hsl(219deg 90% 20%) |
|
|
18
|
+
// | --graupl-primary--900 | hsl(219deg 100% 10%) |
|
|
19
|
+
// | --graupl-secondary | hsl(235deg 15% 50%) |
|
|
20
|
+
// | --graupl-secondary--100 | hsl(235deg 40% 95%) |
|
|
21
|
+
// | --graupl-secondary--200 | hsl(235deg 30% 80%) |
|
|
22
|
+
// | --graupl-secondary--300 | hsl(235deg 20% 65%) |
|
|
23
|
+
// | --graupl-secondary--400 | hsl(235deg 15% 55%) |
|
|
24
|
+
// | --graupl-secondary--500 | hsl(235deg 15% 50%) |
|
|
25
|
+
// | --graupl-secondary--600 | hsl(235deg 15% 45%) |
|
|
26
|
+
// | --graupl-secondary--700 | hsl(235deg 20% 35%) |
|
|
27
|
+
// | --graupl-secondary--800 | hsl(235deg 30% 20%) |
|
|
28
|
+
// | --graupl-secondary--900 | hsl(235deg 40% 10%) |
|
|
29
|
+
// | --graupl-tertiary | hsl(340deg 60% 50%) |
|
|
30
|
+
// | --graupl-tertiary--100 | hsl(340deg 85% 95%) |
|
|
31
|
+
// | --graupl-tertiary--200 | hsl(340deg 75% 80%) |
|
|
32
|
+
// | --graupl-tertiary--300 | hsl(340deg 65% 65%) |
|
|
33
|
+
// | --graupl-tertiary--400 | hsl(340deg 60% 55%) |
|
|
34
|
+
// | --graupl-tertiary--500 | hsl(340deg 60% 50%) |
|
|
35
|
+
// | --graupl-tertiary--600 | hsl(340deg 60% 45%) |
|
|
36
|
+
// | --graupl-tertiary--700 | hsl(340deg 65% 35%) |
|
|
37
|
+
// | --graupl-tertiary--800 | hsl(340deg 75% 20%) |
|
|
38
|
+
// | --graupl-tertiary--900 | hsl(340deg 85% 10%) |
|
|
39
|
+
// | --graupl-theme--light--primary | var(--graupl-primary) |
|
|
40
|
+
// | --graupl-theme-light--primary--100 | var(--graupl-primary--100) |
|
|
41
|
+
// | --graupl-theme-light--primary--200 | var(--graupl-primary--200) |
|
|
42
|
+
// | --graupl-theme-light--primary--300 | var(--graupl-primary--300) |
|
|
43
|
+
// | --graupl-theme-light--primary--400 | var(--graupl-primary--400) |
|
|
44
|
+
// | --graupl-theme-light--primary--500 | var(--graupl-primary--500) |
|
|
45
|
+
// | --graupl-theme-light--primary--600 | var(--graupl-primary--600) |
|
|
46
|
+
// | --graupl-theme-light--primary--700 | var(--graupl-primary--700) |
|
|
47
|
+
// | --graupl-theme-light--primary--800 | var(--graupl-primary--800) |
|
|
48
|
+
// | --graupl-theme-light--primary--900 | var(--graupl-primary--900) |
|
|
49
|
+
// | --graupl-theme--light--secondary | var(--graupl-secondary) |
|
|
50
|
+
// | --graupl-theme-light--secondary--100 | var(--graupl-secondary--100) |
|
|
51
|
+
// | --graupl-theme-light--secondary--200 | var(--graupl-secondary--200) |
|
|
52
|
+
// | --graupl-theme-light--secondary--300 | var(--graupl-secondary--300) |
|
|
53
|
+
// | --graupl-theme-light--secondary--400 | var(--graupl-secondary--400) |
|
|
54
|
+
// | --graupl-theme-light--secondary--500 | var(--graupl-secondary--500) |
|
|
55
|
+
// | --graupl-theme-light--secondary--600 | var(--graupl-secondary--600) |
|
|
56
|
+
// | --graupl-theme-light--secondary--700 | var(--graupl-secondary--700) |
|
|
57
|
+
// | --graupl-theme-light--secondary--800 | var(--graupl-secondary--800) |
|
|
58
|
+
// | --graupl-theme-light--secondary--900 | var(--graupl-secondary--900) |
|
|
59
|
+
// | --graupl-theme--light--tertiary | var(--graupl-tertiary) |
|
|
60
|
+
// | --graupl-theme-light--tertiary--100 | var(--graupl-tertiary--100) |
|
|
61
|
+
// | --graupl-theme-light--tertiary--200 | var(--graupl-tertiary--200) |
|
|
62
|
+
// | --graupl-theme-light--tertiary--300 | var(--graupl-tertiary--300) |
|
|
63
|
+
// | --graupl-theme-light--tertiary--400 | var(--graupl-tertiary--400) |
|
|
64
|
+
// | --graupl-theme-light--tertiary--500 | var(--graupl-tertiary--500) |
|
|
65
|
+
// | --graupl-theme-light--tertiary--600 | var(--graupl-tertiary--600) |
|
|
66
|
+
// | --graupl-theme-light--tertiary--700 | var(--graupl-tertiary--700) |
|
|
67
|
+
// | --graupl-theme-light--tertiary--800 | var(--graupl-tertiary--800) |
|
|
68
|
+
// | --graupl-theme-light--tertiary--900 | var(--graupl-tertiary--900) |
|
|
69
|
+
// | --graupl-theme--dark--primary | var(--graupl-primary) |
|
|
70
|
+
// | --graupl-theme-dark--primary--100 | var(--graupl-primary--900) |
|
|
71
|
+
// | --graupl-theme-dark--primary--200 | var(--graupl-primary--800) |
|
|
72
|
+
// | --graupl-theme-dark--primary--300 | var(--graupl-primary--700) |
|
|
73
|
+
// | --graupl-theme-dark--primary--400 | var(--graupl-primary--600) |
|
|
74
|
+
// | --graupl-theme-dark--primary--500 | var(--graupl-primary--500) |
|
|
75
|
+
// | --graupl-theme-dark--primary--600 | var(--graupl-primary--400) |
|
|
76
|
+
// | --graupl-theme-dark--primary--700 | var(--graupl-primary--300) |
|
|
77
|
+
// | --graupl-theme-dark--primary--800 | var(--graupl-primary--200) |
|
|
78
|
+
// | --graupl-theme-dark--primary--900 | var(--graupl-primary--100) |
|
|
79
|
+
// | --graupl-theme--dark--secondary | var(--graupl-secondary) |
|
|
80
|
+
// | --graupl-theme-dark--secondary--100 | var(--graupl-secondary--900) |
|
|
81
|
+
// | --graupl-theme-dark--secondary--200 | var(--graupl-secondary--800) |
|
|
82
|
+
// | --graupl-theme-dark--secondary--300 | var(--graupl-secondary--700) |
|
|
83
|
+
// | --graupl-theme-dark--secondary--400 | var(--graupl-secondary--600) |
|
|
84
|
+
// | --graupl-theme-dark--secondary--500 | var(--graupl-secondary--500) |
|
|
85
|
+
// | --graupl-theme-dark--secondary--600 | var(--graupl-secondary--400) |
|
|
86
|
+
// | --graupl-theme-dark--secondary--700 | var(--graupl-secondary--300) |
|
|
87
|
+
// | --graupl-theme-dark--secondary--800 | var(--graupl-secondary--200) |
|
|
88
|
+
// | --graupl-theme-dark--secondary--900 | var(--graupl-secondary--100) |
|
|
89
|
+
// | --graupl-theme--dark--tertiary | var(--graupl-tertiary) |
|
|
90
|
+
// | --graupl-theme-dark--tertiary--100 | var(--graupl-tertiary--900) |
|
|
91
|
+
// | --graupl-theme-dark--tertiary--200 | var(--graupl-tertiary--800) |
|
|
92
|
+
// | --graupl-theme-dark--tertiary--300 | var(--graupl-tertiary--700) |
|
|
93
|
+
// | --graupl-theme-dark--tertiary--400 | var(--graupl-tertiary--600) |
|
|
94
|
+
// | --graupl-theme-dark--tertiary--500 | var(--graupl-tertiary--500) |
|
|
95
|
+
// | --graupl-theme-dark--tertiary--600 | var(--graupl-tertiary--400) |
|
|
96
|
+
// | --graupl-theme-dark--tertiary--700 | var(--graupl-tertiary--300) |
|
|
97
|
+
// | --graupl-theme-dark--tertiary--800 | var(--graupl-tertiary--200) |
|
|
98
|
+
// | --graupl-theme-dark--tertiary--900 | var(--graupl-tertiary--100) |
|
|
99
|
+
// | --graupl-theme-active--primary | var(--graupl-theme-light--primary) |
|
|
100
|
+
// | --graupl-theme-active--primary--100 | var(--graupl-theme-light--primary--100) |
|
|
101
|
+
// | --graupl-theme-active--primary--200 | var(--graupl-theme-light--primary--200) |
|
|
102
|
+
// | --graupl-theme-active--primary--300 | var(--graupl-theme-light--primary--300) |
|
|
103
|
+
// | --graupl-theme-active--primary--400 | var(--graupl-theme-light--primary--400) |
|
|
104
|
+
// | --graupl-theme-active--primary--500 | var(--graupl-theme-light--primary--500) |
|
|
105
|
+
// | --graupl-theme-active--primary--600 | var(--graupl-theme-light--primary--600) |
|
|
106
|
+
// | --graupl-theme-active--primary--700 | var(--graupl-theme-light--primary--700) |
|
|
107
|
+
// | --graupl-theme-active--primary--800 | var(--graupl-theme-light--primary--800) |
|
|
108
|
+
// | --graupl-theme-active--primary--900 | var(--graupl-theme-light--primary--900) |
|
|
109
|
+
// | --graupl-theme-active--secondary | var(--graupl-theme-light--secondary) |
|
|
110
|
+
// | --graupl-theme-active--secondary--100 | var(--graupl-theme-light--secondary--100) |
|
|
111
|
+
// | --graupl-theme-active--secondary--200 | var(--graupl-theme-light--secondary--200) |
|
|
112
|
+
// | --graupl-theme-active--secondary--300 | var(--graupl-theme-light--secondary--300) |
|
|
113
|
+
// | --graupl-theme-active--secondary--400 | var(--graupl-theme-light--secondary--400) |
|
|
114
|
+
// | --graupl-theme-active--secondary--500 | var(--graupl-theme-light--secondary--500) |
|
|
115
|
+
// | --graupl-theme-active--secondary--600 | var(--graupl-theme-light--secondary--600) |
|
|
116
|
+
// | --graupl-theme-active--secondary--700 | var(--graupl-theme-light--secondary--700) |
|
|
117
|
+
// | --graupl-theme-active--secondary--800 | var(--graupl-theme-light--secondary--800) |
|
|
118
|
+
// | --graupl-theme-active--secondary--900 | var(--graupl-theme-light--secondary--900) |
|
|
119
|
+
// | --graupl-theme-active--tertiary | var(--graupl-theme-light--tertiary) |
|
|
120
|
+
// | --graupl-theme-active--tertiary--100 | var(--graupl-theme-light--tertiary--100) |
|
|
121
|
+
// | --graupl-theme-active--tertiary--200 | var(--graupl-theme-light--tertiary--200) |
|
|
122
|
+
// | --graupl-theme-active--tertiary--300 | var(--graupl-theme-light--tertiary--300) |
|
|
123
|
+
// | --graupl-theme-active--tertiary--400 | var(--graupl-theme-light--tertiary--400) |
|
|
124
|
+
// | --graupl-theme-active--tertiary--500 | var(--graupl-theme-light--tertiary--500) |
|
|
125
|
+
// | --graupl-theme-active--tertiary--600 | var(--graupl-theme-light--tertiary--600) |
|
|
126
|
+
// | --graupl-theme-active--tertiary--700 | var(--graupl-theme-light--tertiary--700) |
|
|
127
|
+
// | --graupl-theme-active--tertiary--800 | var(--graupl-theme-light--tertiary--800) |
|
|
128
|
+
// | --graupl-theme-active--tertiary--900 | var(--graupl-theme-light--tertiary--900) |
|
|
129
|
+
// | --graupl-root-color | var(--graupl-theme-active--primary--900) |
|
|
130
|
+
// | --graupl-root-background | var(--graupl-theme-active--primary--100) |
|
|
131
|
+
// | --graupl-color | var(--graupl-root-color) |
|
|
132
|
+
// | --graupl-background | var(--graupl-root-background) |
|
|
133
|
+
// | --graupl-border-color | var(--graupl-color) |
|
|
5
134
|
|
|
6
135
|
@use "defaults";
|
|
7
136
|
@use "../../defaults" as root-defaults;
|
|
@@ -21,8 +150,12 @@ $colors: ();
|
|
|
21
150
|
// Set the custom prop name and fallback value.
|
|
22
151
|
// Handle _default shade vs proper shade mappings.
|
|
23
152
|
@if $shade == "_default" {
|
|
153
|
+
// --graupl-primary, --graupl-secondary, --graupl-tertiary
|
|
24
154
|
$color-property: var(--#{root-defaults.$prefix}#{$color}, $value);
|
|
25
155
|
} @else {
|
|
156
|
+
// --graupl-primary--100, --graupl-primary--200, --graupl-primary--300, --graupl-primary--400, --graupl-primary--500, --graupl-primary--600, --graupl-primary--700, --graupl-primary--800, --graupl-primary--900
|
|
157
|
+
// --graupl-secondary--100, --graupl-secondary--200, --graupl-secondary--300, --graupl-secondary--400, --graupl-secondary--500, --graupl-secondary--600, --graupl-secondary--700, --graupl-secondary--800, --graupl-secondary--900
|
|
158
|
+
// --graupl-tertiary--100, --graupl-tertiary--200, --graupl-tertiary--300, --graupl-tertiary--400, --graupl-tertiary--500, --graupl-tertiary--600, --graupl-tertiary--700, --graupl-tertiary--800, --graupl-tertiary--900
|
|
26
159
|
$color-property: var(
|
|
27
160
|
--#{root-defaults.$prefix}#{$color}--#{$shade},
|
|
28
161
|
$value
|
|
@@ -64,11 +197,19 @@ $themes: (
|
|
|
64
197
|
// Set the custom prop name and fallback value.
|
|
65
198
|
// Handle _default shade vs proper shade mappings.
|
|
66
199
|
@if $shade == "_default" {
|
|
200
|
+
// --graupl-theme--light--primary, --graupl-theme--light--secondary, --graupl-theme--light--tertiary
|
|
201
|
+
// --graupl-theme--dark--primary, --graupl-theme--dark--secondary, --graupl-theme--dark--tertiary
|
|
67
202
|
$color-property: var(
|
|
68
203
|
--#{root-defaults.$prefix}theme--#{$theme-name}--#{$color-name},
|
|
69
204
|
#{map.get($colors, map.get($value, color), map.get($value, shade))}
|
|
70
205
|
);
|
|
71
206
|
} @else {
|
|
207
|
+
// --graupl-theme-light--primary--100, --graupl-theme-light--primary--200, --graupl-theme-light--primary--300, --graupl-theme-light--primary--400, --graupl-theme-light--primary--500, --graupl-theme-light--primary--600, --graupl-theme-light--primary--700, --graupl-theme-light--primary--800, --graupl-theme-light--primary--900
|
|
208
|
+
// --graupl-theme-light--secondary--100, --graupl-theme-light--secondary--200, --graupl-theme-light--secondary--300, --graupl-theme-light--secondary--400, --graupl-theme-light--secondary--500, --graupl-theme-light--secondary--600, --graupl-theme-light--secondary--700, --graupl-theme-light--secondary--800, --graupl-theme-light--secondary--900
|
|
209
|
+
// --graupl-theme-light--tertiary--100, --graupl-theme-light--tertiary--200, --graupl-theme-light--tertiary--300, --graupl-theme-light--tertiary--400, --graupl-theme-light--tertiary--500, --graupl-theme-light--tertiary--600, --graupl-theme-light--tertiary--700, --graupl-theme-light--tertiary--800, --graupl-theme-light--tertiary--900
|
|
210
|
+
// --graupl-theme-dark--primary--100, --graupl-theme-dark--primary--200, --graupl-theme-dark--primary--300, --graupl-theme-dark--primary--400, --graupl-theme-dark--primary--500, --graupl-theme-dark--primary--600, --graupl-theme-dark--primary--700, --graupl-theme-dark--primary--800, --graupl-theme-dark--primary--900
|
|
211
|
+
// --graupl-theme-dark--secondary--100, --graupl-theme-dark--secondary--200, --graupl-theme-dark--secondary--300, --graupl-theme-dark--secondary--400, --graupl-theme-dark--secondary--500, --graupl-theme-dark--secondary--600, --graupl-theme-dark--secondary--700, --graupl-theme-dark--secondary--800, --graupl-theme-dark--secondary--900
|
|
212
|
+
// --graupl-theme-dark--tertiary--100, --graupl-theme-dark--tertiary--200, --graupl-theme-dark--tertiary--300, --graupl-theme-dark--tertiary--400, --graupl-theme-dark--tertiary--500, --graupl-theme-dark--tertiary--600, --graupl-theme-dark--tertiary--700, --graupl-theme-dark--tertiary--800, --graupl-theme-dark--tertiary--900
|
|
72
213
|
$color-property: var(
|
|
73
214
|
--#{root-defaults.$prefix}theme-#{$theme-name}--#{$color-name}--#{$shade},
|
|
74
215
|
#{map.get($colors, map.get($value, color), map.get($value, shade))}
|
|
@@ -110,11 +251,15 @@ $themes: (
|
|
|
110
251
|
// Set the custom prop name and fallback value.
|
|
111
252
|
// Handle _default shade vs proper shade mappings.
|
|
112
253
|
@if $shade == "_default" {
|
|
254
|
+
// --graupl-theme-active--primary, --graupl-theme-active--secondary, --graupl-theme-active--tertiary
|
|
113
255
|
$color-property: var(
|
|
114
256
|
--#{root-defaults.$prefix}theme-active--#{$color-name},
|
|
115
257
|
#{$value}
|
|
116
258
|
);
|
|
117
259
|
} @else {
|
|
260
|
+
// --graupl-theme-active--primary--100, --graupl-theme-active--primary--200, --graupl-theme-active--primary--300, --graupl-theme-active--primary--400, --graupl-theme-active--primary--500, --graupl-theme-active--primary--600, --graupl-theme-active--primary--700, --graupl-theme-active--primary--800, --graupl-theme-active--primary--900
|
|
261
|
+
// --graupl-theme-active--secondary--100, --graupl-theme-active--secondary--200, --graupl-theme-active--secondary--300, --graupl-theme-active--secondary--400, --graupl-theme-active--secondary--500, --graupl-theme-active--secondary--600, --graupl-theme-active--secondary--700, --graupl-theme-active--secondary--800, --graupl-theme-active--secondary--900
|
|
262
|
+
// --graupl-theme-active--tertiary--100, --graupl-theme-active--tertiary--200, --graupl-theme-active--tertiary--300, --graupl-theme-active--tertiary--400, --graupl-theme-active--tertiary--500, --graupl-theme-active--tertiary--600, --graupl-theme-active--tertiary--700, --graupl-theme-active--tertiary--800, --graupl-theme-active--tertiary--900
|
|
118
263
|
$color-property: var(
|
|
119
264
|
--#{root-defaults.$prefix}theme-active--#{$color-name}--#{$shade},
|
|
120
265
|
#{$value}
|
|
@@ -144,10 +289,14 @@ $themes: (
|
|
|
144
289
|
}
|
|
145
290
|
|
|
146
291
|
// Colour properties.
|
|
292
|
+
// --graupl-root-color
|
|
147
293
|
$root-color: var(--#{root-defaults.$prefix}root-color);
|
|
294
|
+
|
|
295
|
+
// --graupl-root-background
|
|
148
296
|
$root-background: var(--#{root-defaults.$prefix}root-background);
|
|
149
297
|
|
|
150
298
|
@if map.has-key($themes, active, primary, 900) {
|
|
299
|
+
// --graupl-root-color
|
|
151
300
|
$root-color: var(
|
|
152
301
|
--#{root-defaults.$prefix}root-color,
|
|
153
302
|
#{map.get(map.get(map.get($themes, active), primary), 900)}
|
|
@@ -155,12 +304,18 @@ $root-background: var(--#{root-defaults.$prefix}root-background);
|
|
|
155
304
|
}
|
|
156
305
|
|
|
157
306
|
@if map.has-key($themes, active, primary, 100) {
|
|
307
|
+
// --graupl-root-background
|
|
158
308
|
$root-background: var(
|
|
159
309
|
--#{root-defaults.$prefix}root-background,
|
|
160
310
|
#{map.get(map.get(map.get($themes, active), primary), 100)}
|
|
161
311
|
);
|
|
162
312
|
}
|
|
163
313
|
|
|
314
|
+
// --graupl-color
|
|
164
315
|
$color: var(--#{root-defaults.$prefix}color, #{$root-color});
|
|
316
|
+
|
|
317
|
+
// --graupl-background
|
|
165
318
|
$background: var(--#{root-defaults.$prefix}background, #{$root-background});
|
|
319
|
+
|
|
320
|
+
// --graupl-border-color
|
|
166
321
|
$border-color: var(--#{root-defaults.$prefix}border-color, #{$color});
|
|
@@ -10,6 +10,32 @@
|
|
|
10
10
|
@use "sass:map";
|
|
11
11
|
|
|
12
12
|
// font properties.
|
|
13
|
+
$selector-base: root-defaults.$element-selector-base !default;
|
|
14
|
+
$modifier-selector-base: root-defaults.$modifier-selector-base !default;
|
|
15
|
+
$paragraph-selector-base: $selector-base !default;
|
|
16
|
+
$paragraph-selector: "p";
|
|
17
|
+
$small-selector-base: $selector-base !default;
|
|
18
|
+
$small-selector: "small";
|
|
19
|
+
$h1-selector-base: $selector-base !default;
|
|
20
|
+
$h1-selector: "h1" !default;
|
|
21
|
+
$h2-selector-base: $selector-base !default;
|
|
22
|
+
$h2-selector: "h2" !default;
|
|
23
|
+
$h3-selector-base: $selector-base !default;
|
|
24
|
+
$h3-selector: "h3" !default;
|
|
25
|
+
$h4-selector-base: $selector-base !default;
|
|
26
|
+
$h4-selector: "h4" !default;
|
|
27
|
+
$h5-selector-base: $selector-base !default;
|
|
28
|
+
$h5-selector: "h5" !default;
|
|
29
|
+
$h6-selector-base: $selector-base !default;
|
|
30
|
+
$h6-selector: "h6" !default;
|
|
31
|
+
$root-selector-base: ":" !default;
|
|
32
|
+
$root-selector: "root" !default;
|
|
33
|
+
$bold-selector-base: $selector-base !default;
|
|
34
|
+
$bold-selector: "b" !default;
|
|
35
|
+
$strong-selector-base: $selector-base !default;
|
|
36
|
+
$strong-selector: "strong" !default;
|
|
37
|
+
$body-selector-base: $selector-base !default;
|
|
38
|
+
$body-selector: "body" !default;
|
|
13
39
|
$generate-base-font-sizes: root-defaults.$generate-base-font-sizes !default;
|
|
14
40
|
$generate-base-font-weights: root-defaults.$generate-base-font-weights !default;
|
|
15
41
|
$font-size-base: 1rem !default;
|
|
@@ -30,19 +56,8 @@ $-font-size-multipliers: (
|
|
|
30
56
|
4xl: 2.488,
|
|
31
57
|
5xl: 2.986,
|
|
32
58
|
);
|
|
33
|
-
$custom-font-size-multipliers: () !default;
|
|
34
59
|
$font-size-multipliers: () !default;
|
|
35
60
|
|
|
36
|
-
// @todo remove this once $custom-font-size-multipliers is removed
|
|
37
|
-
@if $custom-font-size-multipliers != () {
|
|
38
|
-
@warn "`$custom-font-size-multipliers` is deprecated and will be removed in a future release of Graupl. Use `$font-size-multipliers` instead.";
|
|
39
|
-
|
|
40
|
-
$font-size-multipliers: map.merge(
|
|
41
|
-
$font-size-multipliers,
|
|
42
|
-
$custom-font-size-multipliers
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
61
|
// Merge the font size multipliers with the default ones.
|
|
47
62
|
@if $generate-base-font-sizes {
|
|
48
63
|
$font-size-multipliers: map.merge(
|
|
@@ -57,16 +72,8 @@ $-font-weights: (
|
|
|
57
72
|
normal: 400,
|
|
58
73
|
bold: 700,
|
|
59
74
|
);
|
|
60
|
-
$custom-font-weights: () !default;
|
|
61
75
|
$font-weights: () !default;
|
|
62
76
|
|
|
63
|
-
// @todo remove this once $custom-font-weights is removed
|
|
64
|
-
@if $custom-font-weights != () {
|
|
65
|
-
@warn "`$custom-font-weights` is deprecated and will be removed in a future release of Graupl. Use `$font-weights` instead.";
|
|
66
|
-
|
|
67
|
-
$font-weights: map.merge($font-weights, $custom-font-weights);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
77
|
// Merge the custom font weights with the default ones.
|
|
71
78
|
@if $generate-base-font-weights {
|
|
72
79
|
$font-weights: map.merge($-font-weights, $font-weights);
|