@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.
- package/README.md +15 -4
- 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-
|
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).
|