Skip to main content

Overview

The themes configuration module exports several constants and utilities for working with themes in the tweakcn Theme Picker system.
All exports are from registry/nextjs/lib/themes-config.ts

themes

Array of all available theme configurations.

Type Signature

Description

Contains 43 pre-built theme configurations including popular themes like Catppuccin, Vercel, GitHub, and many custom designs. Each theme includes light and dark mode color definitions and font specifications.

Example Themes

Usage


sortedThemes

Alphabetically sorted themes with “Default” kept first.

Type Signature

Implementation

Description

Sorts themes alphabetically by their title property while keeping the “Default” theme at the first position. Used by the ThemeSwitcher component to display themes in a consistent, user-friendly order.

Usage


themeNames

Array of all theme names (identifiers).

Type Signature

Implementation

Description

Extracts just the name property from each theme configuration. Useful for validation, lookups, and type narrowing.

Example Values

Usage


allThemeValues

All theme variant strings for next-themes integration.

Type Signature

Implementation

Description

Generates all possible theme values by creating both -light and -dark variants for each theme. This array is passed to next-themes to register all available theme options.

Example Values

Usage


DEFAULT_THEME

The default theme value applied on initial load.

Type Signature

Value

Description

Defines the initial theme used when no user preference is stored. Set to "default-dark" to provide a dark mode experience by default.

Usage


Complete Import Example

See Also