examples.
diff --git a/packages/shared-ui/src/lib-examples/lib-examples.module.css b/packages/shared-ui/src/lib-examples/lib-examples.module.css
new file mode 100644
index 00000000..bf2715d7
--- /dev/null
+++ b/packages/shared-ui/src/lib-examples/lib-examples.module.css
@@ -0,0 +1,23 @@
+.lib-example-container {
+ display: flex;
+ align-items: center;
+ gap: 20px;
+ flex-wrap: wrap;
+}
+
+.example {
+ min-width: 200px;
+ min-height: 200px;
+ flex-grow: 1;
+ border-radius: 20px;
+}
+
+.example * {
+ background: var(--bg-color);
+}
+
+
+.lib-example-container h1 {
+ text-align: center;
+ width: 100%;
+}
diff --git a/packages/shared-ui/src/lib-examples/simple-color-switch/index.tsx b/packages/shared-ui/src/lib-examples/simple-color-switch/index.tsx
index f10e36d1..730195d7 100644
--- a/packages/shared-ui/src/lib-examples/simple-color-switch/index.tsx
+++ b/packages/shared-ui/src/lib-examples/simple-color-switch/index.tsx
@@ -1,3 +1,16 @@
+import { ColorSwitch, ThemeSwitcher } from "nthul";
+import { ServerTarget } from "nthul/server";
+import styles from "../lib-examples.module.css";
+
+const targetId = "simple-color-switch";
export default function SimpleColorSwitch() {
- return
;
+ return (
+
+
+
+
+
+ );
}
diff --git a/packages/shared-ui/src/lib-examples/theme-switching/index.tsx b/packages/shared-ui/src/lib-examples/theme-switching/index.tsx
index 9c236600..4e336e93 100644
--- a/packages/shared-ui/src/lib-examples/theme-switching/index.tsx
+++ b/packages/shared-ui/src/lib-examples/theme-switching/index.tsx
@@ -1,3 +1,26 @@
-export default function ThemeSwitching() {
- return
;
+import { ColorSwitch, ThemeSwitcher } from "nthul";
+import { ServerTarget } from "nthul/server";
+import styles from "../lib-examples.module.css";
+
+const targetId = "theme-switching";
+const themes = ["theme1", "theme2"];
+export default function SimpleColorSwitch() {
+ return (
+
+
+
+
+
+
+
+
+ );
}
diff --git a/packages/shared-ui/src/root-layout.tsx b/packages/shared-ui/src/root-layout.tsx
index fdfa7acf..7a72a412 100644
--- a/packages/shared-ui/src/root-layout.tsx
+++ b/packages/shared-ui/src/root-layout.tsx
@@ -8,6 +8,7 @@ import { Cards } from "./cards";
import { Description } from "./root/description";
import { Hero } from "./root/hero";
import { Footer } from "./root/footer";
+import LibExamples from "./lib-examples";
export type SharedRootLayoutProps = HTMLProps
;
@@ -19,6 +20,7 @@ export function SharedRootLayout({ children, className = "", ...props }: SharedR
{children}
+