An open API service indexing awesome lists of open source software.

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

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