@crowdstrike/falcon-shoelace 0.2.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +15 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,11 +14,22 @@ npm install @crowdstrike/falcon-shoelace
14
14
  Import the stylesheet:
15
15
 
16
16
  ```css
17
- @import "@crowdstrike/falcon-styles/dist/style.css";
17
+ @import "@crowdstrike/falcon-shoelace/dist/style.css";
18
+ ```
19
+
20
+ ## Switching Themes
21
+
22
+ By default all styles are in light mode. To switch to the dark them add the class `theme-dark` to `documentElement`:
23
+
24
+ ```html
25
+ <html class="theme-dark"></html>
26
+ ```
27
+
28
+ to toggle the class with JS:
29
+ ```js
30
+ document.documentElement.classList.toggle('theme-dark')
18
31
  ```
19
32
 
20
33
  ## Included Dependencies
21
34
 
22
- The falcon-shoelace stylesheet includes:
23
- * [modern-normalize](https://github.com/sindresorhus/modern-normalize)
24
- * [falcon-styles](https://github.com/sindresorhus/modern-normalize)
35
+ The falcon-shoelace stylesheet includes [falcon-styles](https://github.com/sindresorhus/modern-normalize) and it's single dependency [modern-normalize](https://github.com/sindresorhus/modern-normalize).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdstrike/falcon-shoelace",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/CrowdStrike/falcon-shoelace.git"