Uilora
ComponentsBlogMCPPricing
Search components ⌘K
Web
App
Favorites
Close sidebar
Join

Menu

ComponentsBlogMCPPricingShowcaseAboutHelp
Web
App

Get Started

IntroductionInstallationGetting StartedComponentsTheme ManagerTemplatesMCPWhy Uilora?

Crazy Components

404 PageDig HoleImage SliderFlower AnimationImage Trail EffectLiquid RevealPrismRussian WebsiteSketchy LineSlider PageNeon RibbonGrid Distortion

Core Landing Pages

Hero Sections10+
Complete Landing Pages21+
Startup Landing9+
SaaS Dashboards15+
Agency Portfolio21+
Auth6+

Backgrounds & Visuals

Backgrounds23+
Gradient Packs9+
Blurred Backgrounds9+
Pattern Backgrounds5+
Noise Textures6+

Navigation & Structure

Navbar6+
Footers12+
Mega Menus21+
Chat UI11+

UI Components

Forms23+
Buttons4+
Cards11+
Toasts8+
File Uploads8+
Modals & Design8+

Grids & Layouts

Bento Grids8+
Feature Grids11+
Gallery Grids17+
Masonry Grids12+

Media

Image Galleries10+
Lightboxes13+
Video Players5+
Testimonials Media11+

Content Blocks

Feature Sections8+
Testimonials20+
Stats Sections9+
Pricing18+
FAQ16+
Timeline8+
Pagination10+

Animations & Motion

Skeletons Loader5+
Parallax Scroll6+
Scroll Reveals14+
Text Animations12+
Magnetic Cursor7+
3D Transforms4+

Special Elements

Accordions9+
Tabs6+
Carousels9+
Badges5+
Avatars4+
Breadcrumbs4+
Selector5+
Tables13+
Sign In
Uilora

Main Navigation

ComponentsBlogMCPPricing

Environment

Get Started

IntroductionInstallationGetting StartedComponentsTheme ManagerTemplatesMCPWhy Uilora?

Crazy Components

404 PageDig HoleImage SliderFlower AnimationImage Trail EffectLiquid RevealPrismRussian WebsiteSketchy LineSlider PageNeon RibbonGrid Distortion

Core Landing Pages

Hero Sections10+
Complete Landing Pages21+
Startup Landing9+
SaaS Dashboards15+
Agency Portfolio21+
Auth6+

Backgrounds & Visuals

Backgrounds23+
Gradient Packs9+
Blurred Backgrounds9+
Pattern Backgrounds5+
Noise Textures6+

Navigation & Structure

Navbar6+
Footers12+
Mega Menus21+
Chat UI11+

UI Components

Forms23+
Buttons4+
Cards11+
Toasts8+
File Uploads8+
Modals & Design8+

Grids & Layouts

Bento Grids8+
Feature Grids11+
Gallery Grids17+
Masonry Grids12+

Media

Image Galleries10+
Lightboxes13+
Video Players5+
Testimonials Media11+

Content Blocks

Feature Sections8+
Testimonials20+
Stats Sections9+
Pricing18+
FAQ16+
Timeline8+
Pagination10+

Animations & Motion

Skeletons Loader5+
Parallax Scroll6+
Scroll Reveals14+
Text Animations12+
Magnetic Cursor7+
3D Transforms4+

Special Elements

Accordions9+
Tabs6+
Carousels9+
Badges5+
Avatars4+
Breadcrumbs4+
Selector5+
Tables13+
Join Uilora Community
ComponentsCore Landing Pages

Mode Switcher

Free

Dashboard with theme mode switcher and adaptive design elements.

Refresh preview
Share Component
Copy CLI command

Mode Switcher

Props

lightModeColorstring

Light mode background color.

Default: #ffffff

darkModeColorstring

Dark mode background color.

Default: #0a0a0a

accentColorstring

Accent color for both modes.

Default: #3b82f6

defaultModestring

Default theme mode: 'light' or 'dark'.

Default: light

When to use

Perfect for developer tools, content platforms, and Next.js applications that require a robust 'Mode Switcher' aesthetic. Use this dashboard template for an adaptive experience where users can toggle between light and dark themes seamlessly.

Best practices

Maintain consistent spacing within your design system by using it for primary user settings. Follow React best practices by managed the global theme state. Optimize for performance by using CSS variables for theme-aware tokens.

Why it matters

Theme switching (Mode Switcher) improves user comfort and accessibility. This production-ready UI template helps you build an interface that respects user preferences, improving long-term engagement and reducing eye strain.

Frequently asked questions

How does the toggle work?

The component handles the transition between `lightModeColor` and `darkModeColor` using smooth Framer Motion transitions and adaptive CSS tokens.

Can I set a default?

Yes, the `defaultMode` prop allows you to force a 'light' or 'dark' initial state for first-time visitors to your SaaS dashboard.

Is the accent color shared?

The `accentColor` (default blue) remains consistent across both modes to ensure brand continuity during the theme transition.
PreviousLuminaNextPaper

Related components

  • CartoonishPlayful cartoon-style hero section with fun animations and vibrant colors.
  • DraggableInteractive hero section with draggable elements and smooth physics-based interactions.
  • Glass Operating SystemGlassmorphism hero section with frosted glass effects and modern OS-inspired design.

Unlock the full library with one payment.

Contribute FeedbackCompare plans
Uilora

A curated collection of high-fidelity components designed to build modern web interfaces with speed and precision.

Contact

support@uilora.comGitHub
Product Hunt
Featured onProduct Hunt

Web Library

  • Web Components
  • Documentation
  • Pricing
  • MCP Server

App Library

  • Mobile Components
  • Platform Notes
  • Installation

Resources

  • Showcase
  • Blog
  • FAQ
  • Contribute
  • GitHub

Support

  • About Us
  • Help Center
  • Feedback
  • Privacy Policy
  • Terms of Service

© 2026 Uilora UI. All rights reserved.

PrivacyTermsFeedback
Made withbynitin14gupta