Skip to content

Commit fe1d291

Browse files
committed
docs: add demo links
1 parent cb1ace9 commit fe1d291

9 files changed

+49
-3734
lines changed

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,21 @@ A flexible, framework-agnostic theme management library for JavaScript applicati
1313
- Dynamically change themes based on system settings
1414
- Sync theme selection across tabs and windows
1515

16-
## Demo
16+
## Demos
1717

18-
- Client-side persistence with localStorage and server-side persistence with cookies
18+
These demos demonstrate client-side persistence with localStorage and optionally server-side persistence with cookies.
1919

20-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/universse/palettez/tree/main/demo?title=Palettez%20Demo&file=src%2Fpages%2Findex.astro,src%2Fpages%2Fssr.astro)
20+
- Astro
21+
22+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/universse/palettez/tree/main/demos/astro?title=Palettez%20Demo%20with%20Astro&file=src%2Fpages%2Findex.astro,src%2Fpages%2Fclient-server.astro)
23+
24+
- Remix
25+
26+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/universse/palettez/tree/main/demos/remix?title=Palettez%20Demo%20with%20Remix&file=app%2Froutes%2F_index.tsx,app%2Froutes%2Fclient-server.tsx)
27+
28+
- Next.js
29+
30+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/universse/palettez/tree/main/demos/next?title=Palettez%20Demo%20with%20Next.js&file=app%2Fpage.tsx,app%2Fclient-server%2Fpage.tsx,pages%2Fpages%2Fclient-only.tsx,pages%2Fpages%2Fclient-server.tsx)
2131

2232
## Installation
2333

demos/astro/.stackblitzrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"installDependencies": true,
3-
"startCommand": "pnpm dev",
3+
"startCommand": "npm run dev",
44
"env": {
55
"ENABLE_CJS_IMPORTS": true
66
}

demos/astro/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"astro": "4.13.3",
10-
"palettez": "workspace:*",
10+
"palettez": "*",
1111
"react": "18.3.1",
1212
"react-dom": "18.3.1"
1313
},

0 commit comments

Comments
 (0)