@sage/design-tokens 18.1.0 → 18.2.1
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 +6 -0
- package/css/light-all.css +1261 -0
- package/css/light.css +1 -1
- package/js/common/light.js +1 -1
- package/js/es6/light.js +1 -1
- package/json/light.json +1 -1
- package/package.json +1 -1
- package/scss/components/button.scss +3 -3
- package/scss/components/link.scss +1 -1
- package/scss/components/message.scss +2 -2
- package/scss/components/pill.scss +2 -2
- package/scss/light.scss +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,12 @@ To make use of the css variables, import them into your code like so:
|
|
|
52
52
|
@import url("@sage/design-tokens/css/components/button.css");
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
Alternatively, if you prefer to import all light mode tokens in a single file, you can use `light-all.css`:
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
@import url("@sage/design-tokens/css/light-all.css");
|
|
59
|
+
```
|
|
60
|
+
|
|
55
61
|
**Note:** For manual theme switching in JavaScript applications, we recommend using the HTML `<link>` approach rather than dynamic imports to avoid bundler complexity. You can import the component css files in your JS like below.
|
|
56
62
|
|
|
57
63
|
```js
|