@stnd/modules 0.6.16 → 0.6.17
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/CHANGELOG.md +9 -0
- package/package.json +3 -3
- package/theme-utils/README.md +3 -3
- package/theme-utils/index.module.js +1 -1
- package/themes/index.module.js +1 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stnd/modules",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./stripe/views/CheckoutView.svelte",
|
|
6
6
|
"author": "Francis Fontaine",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"wrangler": "^4.129.0",
|
|
21
21
|
"@stnd/client": "0.7.1",
|
|
22
22
|
"@stnd/icon": "0.3.0",
|
|
23
|
-
"@stnd/layout": "0.6.
|
|
23
|
+
"@stnd/layout": "0.6.6",
|
|
24
24
|
"@stnd/log": "0.5.1",
|
|
25
|
-
"@stnd/styles": "0.10.
|
|
25
|
+
"@stnd/styles": "0.10.5",
|
|
26
26
|
"@stnd/utils": "0.6.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
package/theme-utils/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Add to your base layout (e.g., `Base.astro`):
|
|
|
23
23
|
Add buttons anywhere with `data-theme` attribute:
|
|
24
24
|
|
|
25
25
|
```astro
|
|
26
|
-
<button data-theme="
|
|
26
|
+
<button data-theme="documentation">Documentation</button>
|
|
27
27
|
<button data-theme="academic">Academic</button>
|
|
28
28
|
<button data-theme="garden">Garden</button>
|
|
29
29
|
```
|
|
@@ -34,10 +34,10 @@ Add buttons anywhere with `data-theme` attribute:
|
|
|
34
34
|
import { setTheme, getCurrentTheme } from "@stnd/modules/theme-utils/client.js";
|
|
35
35
|
|
|
36
36
|
// Set theme
|
|
37
|
-
setTheme("
|
|
37
|
+
setTheme("documentation");
|
|
38
38
|
|
|
39
39
|
// Get current theme
|
|
40
|
-
const theme = getCurrentTheme(); // "
|
|
40
|
+
const theme = getCurrentTheme(); // "documentation"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Custom Configuration
|
package/themes/index.module.js
CHANGED
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
"@stnd/themes/gallery",
|
|
28
28
|
"@stnd/themes/humanist",
|
|
29
29
|
"@stnd/themes/international",
|
|
30
|
-
"@stnd/themes/
|
|
30
|
+
"@stnd/themes/documentation",
|
|
31
31
|
"@stnd/themes/dev",
|
|
32
32
|
"@stnd/themes/mono",
|
|
33
33
|
"@stnd/themes/reveal",
|
|
@@ -43,7 +43,6 @@ export default {
|
|
|
43
43
|
"@stnd/themes/apex",
|
|
44
44
|
"@stnd/themes/avantgarde",
|
|
45
45
|
"@stnd/themes/manifeste",
|
|
46
|
-
"@stnd/themes/documentation",
|
|
47
46
|
// stnd.build's own identity — 1970s graphic-standards-manual (NASA/EPA)
|
|
48
47
|
"@stnd/themes/federal",
|
|
49
48
|
],
|