next-themes

Frameworks & Libraries

Theme switching for React and Next.js without a flash of the wrong theme.

Latest v0.4.6 · by Paco CourseyWebsitepacocoursey/next-themes

Changelog

v0.4.5

What's Changed
New Contributors

Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.4.4...v0.4.5

View originalPermalink
How v0.4.5 went

v0.4.4

What's Changed
New Contributors

Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.4.3...v0.4.4

View originalPermalink
How v0.4.4 went

v0.4.1

What's Changed
New Contributors

Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.4.0...v0.4.1

View originalPermalink
How v0.4.1 went

v0.4.0

What's Changed
New Contributors

Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.3.0...v0.4.0

View originalPermalink
How v0.4.0 went

v0.3.0

What's
  • "use client" was added to the library output so that you can use it as a React Client component without creating a wrapper.
New Contributors

Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.2.0...v0.3.0

View originalPermalink
How v0.3.0 went

v0.2.0

Mildly Breaking Changes

These changes shouldn't affect 99% of usage of this library, but they're good to be aware of.

  • Switches from next/script to a regular script tag inserted at the top of the <body>
  • Replaces the base64 encoded script contents with a regular string again
Fixes
  • Fixes a bug with undefined references in the injected script
  • Supports CSP nonce again because the injected script is no longer base64 encdoed
  • Types are once again bundled in the published version
  • Fixes #107
  • Fixes #106
  • Fixes #99
  • Fixes #94
  • Fixes #90
View originalPermalink
How v0.2.0 went
View all

Discussion

If you publish next-themes, you can claim this product by proving you administer its repository.