@sage/design-tokens 18.7.3 → 18.7.4
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/README.md
CHANGED
|
@@ -69,15 +69,15 @@ import "@sage/design-tokens/css/components/button.css";
|
|
|
69
69
|
|
|
70
70
|
<script type="text/javascript">
|
|
71
71
|
function switchTheme(theme) {
|
|
72
|
-
document.getElementById('app-theme').href =
|
|
72
|
+
document.getElementById('app-theme').href =
|
|
73
73
|
`node_modules/@sage/design-tokens/css/${theme}.css`;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
function updateTheme() {
|
|
77
77
|
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
78
78
|
switchTheme(prefersDark ? "dark" : "light");
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
// Listen for system preference changes
|
|
82
82
|
window.matchMedia("(prefers-color-scheme: dark)")
|
|
83
83
|
.addEventListener("change", updateTheme);
|
|
@@ -154,7 +154,7 @@ element.style.backgroundColor = buttonTokens.buttonDestructivePrimaryBgDefault;
|
|
|
154
154
|
|
|
155
155
|
```js
|
|
156
156
|
import { button } from "@sage/design-tokens/js/es6";
|
|
157
|
-
|
|
157
|
+
|
|
158
158
|
element.style.backgroundColor = button.buttonDestructivePrimaryBgDefault;
|
|
159
159
|
```
|
|
160
160
|
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"description": "Design tokens for the Sage Design System.",
|
|
8
8
|
"author": "The Sage Group plc",
|
|
9
|
-
"version": "18.7.
|
|
9
|
+
"version": "18.7.4",
|
|
10
10
|
"license": "SEE LICENSE IN https://github.com/Sage/design-tokens/blob/master/license",
|
|
11
11
|
"tags": [
|
|
12
12
|
"design tokens",
|
|
@@ -46,7 +46,6 @@ $button-typical-secondary-inverse-border-active: $mode-color-action-main-inverse
|
|
|
46
46
|
$button-typical-secondary-inverse-border-disabled: $mode-color-action-inactive-inverse-default;
|
|
47
47
|
$button-typical-secondary-inverse-border-hover: $mode-color-action-main-inverse-hover;
|
|
48
48
|
$button-typical-secondary-inverse-label-active: $mode-color-action-grayscale-inverse-with-active-alt;
|
|
49
|
-
$button-typical-secondary-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
50
49
|
$button-typical-secondary-inverse-label-hover: $mode-color-action-grayscale-inverse-with-hover;
|
|
51
50
|
$button-typical-tertiary-border-active: $mode-color-action-main-active;
|
|
52
51
|
$button-typical-tertiary-border-disabled: $mode-color-action-inactive-default;
|
|
@@ -57,13 +56,11 @@ $button-typical-tertiary-inverse-border-active: $mode-color-action-main-inverse-
|
|
|
57
56
|
$button-typical-tertiary-inverse-border-disabled: $mode-color-action-inactive-inverse-default;
|
|
58
57
|
$button-typical-tertiary-inverse-border-hover: $mode-color-action-main-inverse-hover;
|
|
59
58
|
$button-typical-tertiary-inverse-label-active: $mode-color-action-grayscale-inverse-with-active-alt;
|
|
60
|
-
$button-typical-tertiary-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
61
59
|
$button-typical-tertiary-inverse-label-hover: $mode-color-action-grayscale-inverse-with-hover;
|
|
62
60
|
$button-typical-subtle-bg-hover: $mode-color-generic-bg-delicate;
|
|
63
61
|
$button-typical-subtle-label-active: $mode-color-action-grayscale-with-active-alt;
|
|
64
62
|
$button-typical-subtle-label-hover: $mode-color-action-grayscale-with-hover;
|
|
65
63
|
$button-typical-subtle-inverse-label-active: $mode-color-action-grayscale-inverse-with-active-alt;
|
|
66
|
-
$button-typical-subtle-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
67
64
|
$button-typical-subtle-inverse-label-hover: $mode-color-action-grayscale-inverse-with-hover;
|
|
68
65
|
$button-typical-toggle-bg-active-disabled: $mode-color-action-inactive-default;
|
|
69
66
|
$button-typical-toggle-bg-active: $mode-color-action-grayscale-active;
|
|
@@ -91,6 +88,7 @@ $button-typical-secondary-inverse-bg-active: $mode-color-action-main-inverse-act
|
|
|
91
88
|
$button-typical-secondary-inverse-bg-default: $mode-color-action-main-inverse-default-alt3;
|
|
92
89
|
$button-typical-secondary-inverse-bg-hover: $mode-color-action-main-inverse-hover-alt;
|
|
93
90
|
$button-typical-secondary-inverse-border-default: $mode-color-action-main-inverse-default-alt;
|
|
91
|
+
$button-typical-secondary-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
94
92
|
$button-typical-tertiary-bg-active: $mode-color-action-main-active-alt;
|
|
95
93
|
$button-typical-tertiary-bg-default: $button-none;
|
|
96
94
|
$button-typical-tertiary-bg-hover: $mode-color-action-main-hover-alt;
|
|
@@ -100,10 +98,12 @@ $button-typical-tertiary-inverse-bg-active: $mode-color-action-main-inverse-acti
|
|
|
100
98
|
$button-typical-tertiary-inverse-bg-default: $button-none;
|
|
101
99
|
$button-typical-tertiary-inverse-bg-hover: $mode-color-action-main-inverse-hover-alt;
|
|
102
100
|
$button-typical-tertiary-inverse-border-default: $mode-color-action-main-inverse-default-alt;
|
|
101
|
+
$button-typical-tertiary-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
103
102
|
$button-typical-subtle-bg-active: $mode-color-action-grayscale-active-alt;
|
|
104
103
|
$button-typical-subtle-label-default: $mode-color-action-grayscale-default;
|
|
105
104
|
$button-typical-subtle-inverse-bg-active: $mode-color-action-grayscale-inverse-active-alt;
|
|
106
105
|
$button-typical-subtle-inverse-bg-hover: $mode-color-action-grayscale-inverse-hover-alt;
|
|
106
|
+
$button-typical-subtle-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
107
107
|
$button-typical-toggle-label-active-disabled: $mode-color-action-inactive-txt-alt;
|
|
108
108
|
$button-typical-toggle-border-default: $mode-color-action-grayscale-default;
|
|
109
109
|
$button-typical-toggle-label-default: $mode-color-action-grayscale-default-alt;
|
|
@@ -12,6 +12,6 @@ $link-typical-label-hover: $mode-color-action-main-hover-alt2;
|
|
|
12
12
|
$link-typical-inverse-label-default: $mode-color-action-main-inverse-default-alt2;
|
|
13
13
|
$link-typical-inverse-label-hover: $mode-color-action-main-inverse-hover-alt2;
|
|
14
14
|
$link-subtle-label-hover: $mode-color-action-grayscale-active;
|
|
15
|
-
$link-subtle-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
16
15
|
$link-subtle-inverse-label-hover: $mode-color-action-grayscale-inverse-active;
|
|
17
16
|
$link-subtle-label-default: $mode-color-action-grayscale-default;
|
|
17
|
+
$link-subtle-inverse-label-default: $mode-color-action-grayscale-inverse-default;
|
|
@@ -7,7 +7,10 @@ $message-contextual-icon: #ffffff;
|
|
|
7
7
|
$message-none: $mode-color-none;
|
|
8
8
|
$message-contextual-bg: $mode-color-generic-bg-nought;
|
|
9
9
|
$message-contextual-icon-alt: $mode-color-status-neutral-default;
|
|
10
|
+
$message-contextual-ai-bg-default: $mode-color-status-ai-default-alt;
|
|
10
11
|
$message-contextual-ai-bg-alt: $mode-color-status-neutral-default-alt;
|
|
12
|
+
$message-contextual-ai-border-default: $mode-color-status-ai-default-alt;
|
|
13
|
+
$message-contextual-ai-border-alt: $mode-color-status-ai-with-default-alt;
|
|
11
14
|
$message-contextual-callout-bg-alt: $mode-color-status-callout-default-alt;
|
|
12
15
|
$message-contextual-error-bg-default: $mode-color-status-negative-default;
|
|
13
16
|
$message-contextual-error-bg-alt: $mode-color-status-negative-default-alt;
|
|
@@ -38,9 +41,6 @@ $message-global-warning-bg-default: $mode-color-status-warning-default-alt;
|
|
|
38
41
|
$message-global-warning-bg-hover: $mode-color-status-warning-hover-alt;
|
|
39
42
|
$message-global-warning-icon: $mode-color-status-warning-default;
|
|
40
43
|
$message-contextual-txt: $mode-color-status-txt-with-hover-alt;
|
|
41
|
-
$message-contextual-ai-bg-default: $mode-color-status-ai-default-alt;
|
|
42
|
-
$message-contextual-ai-border-default: $mode-color-status-ai-default-alt;
|
|
43
|
-
$message-contextual-ai-border-alt: $mode-color-status-ai-with-default-alt;
|
|
44
44
|
$message-contextual-callout-icon: $mode-color-status-txt-with-default-alt;
|
|
45
45
|
$message-global-label-default: $mode-color-status-txt-with-default-alt;
|
|
46
46
|
$message-global-callout-icon: $mode-color-status-txt-with-default-alt;
|
|
@@ -88,7 +88,7 @@ $pill-generic-label-default: $mode-color-status-txt-with-default;
|
|
|
88
88
|
$pill-generic-label-hover: $mode-color-status-txt-with-hover;
|
|
89
89
|
$pill-generic-inverse-label-default: $mode-color-status-txt-inverse-with-default;
|
|
90
90
|
$pill-generic-inverse-label-hover: $mode-color-status-txt-inverse-with-hover;
|
|
91
|
-
$pill-generic-label-alt-default: $mode-color-status-txt-with-default-alt;
|
|
92
|
-
$pill-generic-label-alt-hover: $mode-color-status-txt-with-default-alt;
|
|
93
91
|
$pill-generic-inverse-label-alt-default: $mode-color-status-txt-inverse-with-default-alt;
|
|
94
92
|
$pill-generic-inverse-label-alt-hover: $mode-color-status-txt-inverse-with-default-alt;
|
|
93
|
+
$pill-generic-label-alt-default: $mode-color-status-txt-with-default-alt;
|
|
94
|
+
$pill-generic-label-alt-hover: $mode-color-status-txt-with-default-alt;
|