Skip to content

tusharpatel0504/react_background_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

react_background_game

🎨 Background Color Changer (React + Tailwind CSS)

A simple and fun web app built with React and Tailwind CSS that lets you change the background color of the page by clicking on beautifully styled buttons. Great for beginners learning React and modern styling with Tailwind.

πŸš€ Features

  • 🎨 Instantly change the background color with a click
  • πŸ’… Styled beautifully using Tailwind CSS
  • πŸ“± Fully responsive layout
  • 🌈 10 vibrant color options
  • βš›οΈ Built using React functional components and hooks

πŸ› οΈ Built With

πŸ“Έ Demo

image

🧠 What I Learned

  • React functional components and hooks (useState)
  • Event handling in React
  • Utility-first CSS styling with Tailwind
  • Setting up Tailwind CSS in a React project

🚧 Future Improvements

  • Add smooth transition animations between color changes
  • Display the current background color name
  • Add a "Random Color" feature
  • Persist selected color with localStorage

πŸ“¦ Getting Started

  1. Clone the repository:
    git clone https://github.com/tusharpatel0504/react_background_game
    cd BgChanges
    npm install
    npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published