NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsDark Mode

Dark Mode

Dark mode toolkit and theme utilities.

PreviousCommerce
NextCookie Consent
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub
Pro Suites — Theme Engineering

Dark Mode Toolkit

Production-grade theme controllers, sun/moon morphing switches, segmented pickers, and zero-flicker Next.js integration hooks. Fully interactive with live theme toggling.

npx nexoreui add dark-mode

Interactive Live Playground

Live Theme Engine
dark mode

Current state: dark

Configure Props

component.tsx
1

Props Reference

API Reference (Props)

PropTypeDefaultDescription
theme"light" | "dark" | "system""dark"Current active theme state. Can be controlled or bound to next-themes.
variant"pill" | "icon" | "segmented""pill"Visual appearance style of the theme switcher.
size"sm" | "md" | "lg""md"Dimensions profile for the toggle switch.
showLabelbooleanfalseDisplays textual theme indicator label next to the control.
onChange(theme: "light" | "dark" | "system") => voidundefinedCallback fired when the user selects or toggles a theme.

Usage Examples

Page 1 of 2

1. Animated Pill Sun/Moon Switcher

dark mode
component.tsx
1

2. Compact Segmented Multi-Theme Switcher

component.tsx
1