https://github.com/dcdms/umbra
Simple NextJS theme library that favors SSR
https://github.com/dcdms/umbra
Last synced: about 1 year ago
JSON representation
Simple NextJS theme library that favors SSR
- Host: GitHub
- URL: https://github.com/dcdms/umbra
- Owner: dcdms
- Created: 2025-05-05T04:03:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T04:10:55.000Z (about 1 year ago)
- Last Synced: 2025-05-05T05:23:22.461Z (about 1 year ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# seiun
Seiun (from 星雲 that means "nebula") is a simple library built for NextJS that manages dark/light themes using cookies instead of the traditional local storage for better SSR support. Features:
1. Theme usage on the server-side using NextJS cookies
2. Theme usage on the client-side using a hook
3. Synchronization between tabs using JavaScript's [BroadcastChannel](https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API)
4. HTML's root element class switching for [TailwindCSS](https://tailwindcss.com) support