@timmo001/docs-kit 0.10.0 → 0.10.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 +2 -1
- package/package.json +3 -3
- package/src/blume/theme-picker.astro +2 -1
package/README.md
CHANGED
|
@@ -122,7 +122,8 @@ each optional theme's `family`, which groups it in the select, and `mode` for
|
|
|
122
122
|
one that comes in one scheme only, such as Catppuccin Latte. Picking that
|
|
123
123
|
theme moves the page into its scheme, and the other modes can't be picked
|
|
124
124
|
while it's in use. Themes without a family go under `group`, which defaults
|
|
125
|
-
to Groundwork.
|
|
125
|
+
to Groundwork. From seven themes the select has a search field, which also
|
|
126
|
+
finds themes by family, or by `light` or `dark`.
|
|
126
127
|
|
|
127
128
|
```astro
|
|
128
129
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmo001/docs-kit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Shared branding, layout and config for timmo001 documentation sites",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"format:check": "prettier --check ."
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@timmo001/groundwork-tokens": "0.10.
|
|
43
|
-
"@timmo001/groundwork-ui": "0.10.
|
|
42
|
+
"@timmo001/groundwork-tokens": "0.10.1",
|
|
43
|
+
"@timmo001/groundwork-ui": "0.10.1",
|
|
44
44
|
"sharp": "0.35.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -118,13 +118,14 @@ const modes = [
|
|
|
118
118
|
data-gw-theme-select
|
|
119
119
|
label="Theme"
|
|
120
120
|
inline-label
|
|
121
|
-
search="never"
|
|
122
121
|
options={JSON.stringify(
|
|
123
122
|
themes.map((theme) => ({
|
|
124
123
|
value: theme.id,
|
|
125
124
|
label: theme.name,
|
|
126
125
|
// Headings only once there's more than one group
|
|
127
126
|
group: grouped ? (theme.family ?? group) : undefined,
|
|
127
|
+
// So a search for light or dark finds the themes that have it
|
|
128
|
+
keywords: theme.mode === undefined ? ["light", "dark"] : [theme.mode],
|
|
128
129
|
})),
|
|
129
130
|
)}
|
|
130
131
|
/>
|