Login One

@lacspace/theme vs next-themes

@lacspace/theme is a next-themes-style provider and `useTheme` hook for light/dark/system with no flash on load. It ships the `"use client"` directive and is zero-dependency, so it drops into the Next.js App Router cleanly alongside the rest of the Lacspace React kit.

npm i @lacspace/theme
Read the docs
Feature@lacspace/themenext-themes
Dependencies·ZeroZero
light / dark / system·YesYes
No flash of wrong theme·YesYes
App Router ready (ships "use client")·YesYes
useTheme hook·YesYes
Part of one ecosystemYes — pairs with hooks, store, queryStandalone
Licence·Lacspace Free LicenceMIT

The honest verdict

next-themes is the go-to and works great. Choose @lacspace/theme when you want the same behaviour from the same toolkit as your hooks, store and data layer.

Frequently asked

Does @lacspace/theme prevent the dark-mode flash?

Yes — like next-themes it sets the theme before paint so there's no flash of the wrong theme on load.

Does it work with the Next.js App Router?

Yes. It ships the "use client" directive so you can use the provider directly in App Router layouts.

More comparisons