Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrmendoza-dev/dark-mode-tailwindcss

Quick demo to add dark mode using a Vite React app using Tailwind CSS
https://github.com/mrmendoza-dev/dark-mode-tailwindcss

dark-mode dark-theme react tailwindcss vite

Last synced: 2 days ago
JSON representation

Quick demo to add dark mode using a Vite React app using Tailwind CSS

Awesome Lists containing this project

README

        

# Tailwind Dark Mode Template
A lightweight dark mode implementation using Vite, React, TypeScript, and Tailwind CSS.
Features

- 🌗 Simple dark/light mode toggle
- 💾 Theme persistence
- 🎨 Tailwind CSS styling
- âš¡ Built with Vite
- 📱 System theme detection

## Quick Start
Clone the repository
```bash
git clone https://github.com/mrmendoza-dev/dark-mode-tailwindcss
```

## Install dependencies
```bash
npm install
```
## Start development server
```bash
npm run dev
```

## Usage
The template includes:
- Theme context for state management
- Dark mode toggle component
- Tailwind dark mode configuration

## Example usage in components
```bash


Hello World



```

## Learn More
Read the full guide: [Quick Setup: Dark Mode with Tailwind CSS](https://medium.com/@mrmendoza-dev/quick-setup-dark-mode-with-tailwind-css-and-vite-af21ff9d6cf1)

## License
MIT