next-themes
Abstraction for managing themes (dark/light mode) in Next.js apps.
Web frameworks npm MIT
Used in agent projects
1,116
8.8% of 12,697 public repos built with AI coding agents
Rank in web frameworks
#3 of 26
by use in those projects
Downloads
26.9M
npm, last 7 days, next-themes
GitHub stars
6,333
last push Feb 25, 2026
How next-themes is used
next-themes is a dependency in 1,116 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (8.8%), #3 of 26 in web frameworks. The most used alternative there is React. Projects that use it most often also use clsx (93.5%), Tailwind Merge (93.0%), Lucide React (91.9%). It is more common in projects set up for Kiro (13.0%) than for OpenAI Codex (7.3%).
Often used with next-themes
| clsx | 93.5% of next-themes projects · 5.3× more than average |
|---|---|
| Tailwind Merge | 93.0% of next-themes projects · 5.5× more than average |
| Lucide React | 91.9% of next-themes projects · 4.6× more than average |
| Class Variance Authority | 89.6% of next-themes projects · 6.4× more than average |
| Radix UI | 78.9% of next-themes projects · 6.6× more than average |
| Sonner | 72.1% of next-themes projects · 8.9× more than average |
| Tailwind CSS | 98.0% of next-themes projects · 2.8× more than average |
| Zod | 68.5% of next-themes projects · 4.0× more than average |
By coding agent
| Cursor | 12.4% of projects set up for it |
|---|---|
| Claude Code | 8.8% of projects set up for it |
| GitHub Copilot | 9.1% of projects set up for it |
| Gemini CLI | 9.1% of projects set up for it |
| OpenAI Codex | 7.3% of projects set up for it |
| OpenCode | 9.7% of projects set up for it |
| Devin Desktop | 11.3% of projects set up for it |
| Kiro | 13.0% of projects set up for it |
Share of public repos configured for each agent that list next-themes as a dependency.
Install
| Package | npm install next-themes |
|---|---|
| Main stacks | Next.js (818), TypeScript / JavaScript (269), Python (12), PHP (11) |
| Example projects | ding113/claude-code-hub, miantiao-me/bm.md, kovrichard/catalyst, NeurProjects/neur-app, PageAI-Pro/vibe-coding-starter |
Alternatives to next-themes
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| React npm JavaScript library for building interactive user interfaces with components. |
5,510 (43.4%) | 186M | 251K | MIT |
| Next.js npm React framework for production with server-side rendering and static generation. |
2,861 (22.5%) | 66.2M | 143K | MIT |
| React Router npm Declarative routing library for building single-page React applications. |
972 (7.7%) | 44.8M | 56.6K | MIT |
| Vue npm Progressive JavaScript framework for building interactive user interfaces. |
210 (1.7%) | 17.1M | 54.6K | MIT |
| Astro npm Modern static site builder with partial hydration and zero JavaScript by default. |
133 (1.0%) | 7.1M | 63.1K | MIT |
| React Native Web npm React Native APIs and components for web allowing code sharing between web and mobile. |
121 (1.0%) | 7.2M | 22.1K | MIT |
| Angular npm Full-featured web framework with TypeScript, dependency injection and RxJS. |
104 (0.8%) | 5.9M | 101K | MIT |
| Svelte npm Compiler-based frontend framework for building reactive web interfaces with less boilerplate. |
102 (0.8%) | 6.5M | 88.4K | MIT |