npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shadcn-theme-menu

v1.1.13

Published

A collection of beautiful shadcn/ui theme components with dynamic theme switching and animations

Readme

shadcn-theme-menu

Beautiful theme components for shadcn/ui with 24+ color themes, dark/light mode, and animations.

Features

  • 24+ pre-made themes – from minimal and elegant to cyberpunk and app-inspired designs
  • OKLCH colors – modern color space for perceptually uniform colors and better accessibility
  • Drop-in componentsThemeToggle, ThemeDropdown, and CinematicThemeSwitcher with particle effects
  • Fully type-safe – complete TypeScript support with exported types
  • Customizable – pass your own Button/DropdownMenu components or set themes programmatically
  • Persistent – automatic localStorage support for color theme preferences

Installation

# The package includes all required dependencies
pnpm add shadcn-theme-menu

# Peer dependencies (usually already in your project)
pnpm add react react-dom next-themes lucide-react

Quick Start

// 1. Import CSS
import 'shadcn-theme-menu/themes.css';

// 2. Wrap app with ThemeProvider
import { ThemeProvider } from 'shadcn-theme-menu';

<ThemeProvider attribute="class" defaultTheme="system">
  {children}
</ThemeProvider>

// 3. Use components
import { ThemeToggle, ThemeDropdown, CinematicThemeSwitcher } from 'shadcn-theme-menu';

<ThemeToggle />
<ThemeDropdown />
<CinematicThemeSwitcher />

Components

ThemeToggle

Simple light/dark mode toggle.

<ThemeToggle mode="light-dark-system" />
// or
<ThemeToggle mode="light-dark" />

Props:

  • mode? - Include system option (default: 'light-dark-system')
  • Button? - Custom Button component
  • DropdownMenu? - Custom DropdownMenu components
  • onThemeChange? - Callback when theme changes

ThemeDropdown

Full dropdown with 24+ color themes and live preview.

<ThemeDropdown
  iconSrc="/custom-icon.svg"
  onColorThemeChange={(theme) => console.log(theme)}
  onModeChange={(mode) => console.log(mode)}
/>

Props:

  • iconSrc? - Custom icon path (default: Palette icon)
  • Button? - Custom Button component
  • DropdownMenu? - Custom DropdownMenu components
  • onColorThemeChange? - Callback when color theme changes
  • onModeChange? - Callback when light/dark mode changes

CinematicThemeSwitcher

Animated toggle with particle effects.

<CinematicThemeSwitcher />

Available Themes

24 themes: modern-minimal, elegant-luxury, cyberpunk, twitter, mocha-mousse, bubblegum, amethyst-haze, pink-lemonade, notebook, doom-64, catppuccin, graphite, perpetuity, kodama-grove, cosmic-night, tangerine, quantum-rose, nature, bold-tech, amber-minimal, supabase, neo-brutalism, solar-dusk, claymorphism, pastel-dreams

Custom Components

Pass your own Button or DropdownMenu components:

import { Button } from "@/components/ui/button";
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";

<ThemeDropdown
  Button={Button}
  DropdownMenu={{
    Root: DropdownMenu.Root,
    Trigger: DropdownMenu.Trigger,
    Content: DropdownMenu.Content,
    Item: DropdownMenu.Item,
    Label: DropdownMenu.Label,
    Separator: DropdownMenu.Separator,
  }}
/>;

Programmatic Usage

import { themeNames, themeColors, formatThemeName } from "shadcn-theme-menu";

// Set theme programmatically
const setTheme = (themeName: string) => {
  localStorage.setItem("color-theme", themeName);
  themeNames.forEach((t) =>
    document.documentElement.classList.remove(`theme-${t}`),
  );
  document.documentElement.classList.add(`theme-${themeName}`);
};

// Get theme info
console.log(themeNames); // Array of all theme names
console.log(themeColors["cyberpunk"]); // { primary: '#ff00c8', secondary: '#f0f0ff' }
console.log(formatThemeName("modern-minimal")); // 'Modern Minimal'

TypeScript

Full TypeScript support with exported types:

import type { ThemeProviderProps } from "shadcn-theme-menu";

Demo

Run the interactive demo:

pnpm demo

Or manually:

cd demo
pnpm install
pnpm dev