@xyd-js/theme-gusto 0.0.0-build-1a84af5-20250818153221 → 0.0.0-build-0f039e0-20250819134956
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 +6 -6
- package/dist/index.css +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/theme.tsx +4 -2
- package/src/vars.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/theme-gusto",
|
|
3
|
-
"version": "0.0.0-build-
|
|
3
|
+
"version": "0.0.0-build-0f039e0-20250819134956",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"react": "^19.1.0",
|
|
21
21
|
"react-dom": "^19.1.0",
|
|
22
22
|
"react-router": "^7.7.1",
|
|
23
|
-
"@xyd-js/
|
|
24
|
-
"@xyd-js/
|
|
25
|
-
"@xyd-js/
|
|
26
|
-
"@xyd-js/
|
|
27
|
-
"@xyd-js/themes": "0.0.0-build-
|
|
23
|
+
"@xyd-js/ui": "0.0.0-build-0f039e0-20250819134956",
|
|
24
|
+
"@xyd-js/atlas": "0.0.0-build-0f039e0-20250819134956",
|
|
25
|
+
"@xyd-js/framework": "0.0.0-build-0f039e0-20250819134956",
|
|
26
|
+
"@xyd-js/components": "0.0.0-build-0f039e0-20250819134956",
|
|
27
|
+
"@xyd-js/themes": "0.0.0-build-0f039e0-20250819134956"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {},
|
|
30
30
|
"scripts": {
|
package/src/theme.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import {css} from "@linaria/core";
|
|
|
5
5
|
import {ColorSchemeButton} from "@xyd-js/components/writer";
|
|
6
6
|
import {UISidebar} from "@xyd-js/ui";
|
|
7
7
|
import {BaseTheme} from "@xyd-js/themes"
|
|
8
|
-
import {FwLogo} from "@xyd-js/framework/react";
|
|
8
|
+
import {FwLogo, useSettings} from "@xyd-js/framework/react";
|
|
9
9
|
import syntaxThemeClassic from "@xyd-js/components/coder/themes/classic.js"
|
|
10
10
|
|
|
11
11
|
import "./imports.css"
|
|
@@ -52,12 +52,14 @@ export default class ThemeGusto extends BaseTheme {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function _SidebarTop() {
|
|
55
|
+
const settings = useSettings()
|
|
56
|
+
|
|
55
57
|
return <>
|
|
56
58
|
<UISidebar.Item ghost>
|
|
57
59
|
<div className={styles.SidebarTop}>
|
|
58
60
|
<FwLogo/>
|
|
59
61
|
<div>
|
|
60
|
-
<ColorSchemeButton/>
|
|
62
|
+
{settings?.theme?.appearance?.colorScheme !== false && <ColorSchemeButton/>}
|
|
61
63
|
</div>
|
|
62
64
|
</div>
|
|
63
65
|
</UISidebar.Item>
|
package/src/vars.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
--theme-color-primary: var(--color-primary);
|
|
12
12
|
/* --theme-color-primary-active: var(--color-primary--active); */
|
|
13
|
-
--color-primary--active: color-mix(in srgb, var(--color-primary)
|
|
13
|
+
--color-primary--active: color-mix(in srgb, var(--color-primary) 75%, transparent);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* Utils */
|