Colorswitchcn

screenshot of Colorswitchcn
nextjs
react
tanstack
tailwind
shadcn-ui

A comprehensive color theme switcher component for ShadCN UI highly inspired by TweakCN. This component allows users to toggle between light and dark modes and select from a variety of predefined color schemes.

Overview

The ColorSwitchCN is an innovative color theme switcher component designed for ShadCN UI that brings a user-friendly way to toggle between light and dark modes. With a focus on customization, it allows users to choose from a variety of predefined color schemes, enhancing the visual appeal of their applications. This component is built on the foundation of TweakCN, a robust Visual Theme Editor tailored for Tailwind CSS, ensuring compatibility and versatility for modern web development.

Whether you're working on a personal project or a larger application, ColorSwitchCN simplifies theme management and user preferences. By enabling users to seamlessly switch themes and maintain their choices, this component not only enhances user experience but also adds a dynamic touch to any interface.

Features

  • Toggle between light and dark modes: Instantly switch themes to match user preferences or time of day.
  • Select from multiple color schemes: Provides a range of color options to suit different aesthetics and branding needs.
  • Persist theme preferences in local storage: Keeps user settings stored, ensuring a consistent experience upon re-visiting.
  • Automatically apply theme changes to the document: Changes are reflected in real-time, enhancing usability without the need for page refreshes.
  • Fully customizable and extensible: Offers flexibility to modify and expand themes according to specific project requirements.
  • Includes a theme provider: Simplifies the setup by wrapping your application for efficient theme management.
  • Custom themes support: Users can easily add their own theme presets for a truly personalized look.
  • Easy integration with shadcn: Installation is straightforward, making it user-friendly for developers of all skill levels.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tanstack
TanStack

TanStack is a collection of high-quality, framework-agnostic libraries including TanStack Query for data fetching, TanStack Router for routing, TanStack Table for tables, and more. These tools provide powerful, type-safe solutions for common web development challenges.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

shadcn-ui
Shadcn UI

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.