Rare find

next-themes. Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing

next-themes-example.vercel.app

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

May 2025
  • fix: @types/react 17 PropsWithChildren Generic type (#356)
  • Export `<ThemeScript>` (#355)
March 2025
  • fix: #346 ensure `setTheme` Receives the Latest State (#347)
  • Release —v0.4.6
  • v0.4.6
  • fix: add null check for value in updateDOM function to prevent runtim…
  • Release —v0.4.5
  • v0.4.5
  • chore: Fix corepack errors in CI (#342)
  • Bump the npm_and_yarn group across 1 directory with 7 updates (#341)
  • Bump next from 14.2.10 to 14.2.15 in the npm_and_yarn group across 1 …
  • Reduce number of renders by pre-setting resolvedTheme (#338)
December 2024
  • fix: map theme to class using ValueObject in injected script (#330)
  • Release —v0.4.4
  • v0.4.4
  • fix: infinite loop theme flicker (#329)
  • Fix "With Tailwind" link (#328)
November 2024
  • Release —v0.4.3
  • v0.4.3
  • Bump the npm_and_yarn group across 4 directories with 1 update (#320)
  • pass nonce to inline style for disableTransitionOnChange, fixes #303
  • Release —v0.4.2
  • v0.4.2
  • v0.4.1
  • Re-export types from `next-themes` (#321)
  • Release —v0.4.1
  • Release —v0.4.0
March 2024
  • Release —v0.3.0
May 2022
  • Release —v0.2.0