@sage/design-tokens 18.7.2 → 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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
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.2",
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",