David-patrick-chuks / Random-Background-Color-Generator

Home Page:https://rbg-chuks.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React + Vite

Random Background Color Generator

A simple React application that generates random background colors with their HEX code and RGB values on click. This project is built using Vite for a faster development experience.

Features

  • Generates random HEX and RGB color codes
  • Changes background color of the page on click
  • Simple and intuitive user interface

Demo

Check out the live demo: Random Background Color Generator

Installation

  1. Clone the repository:
    git clone https://github.com/David-patrick-chuks/Random-Background-Color-Generator.git
  2. Navigate to the project directory:
    cd random-background-color-generator
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm run dev
  5. Open http://localhost:3000 in your browser to see the application.

Usage

  • Click the "Generate Color" button to get a random background color.
  • The HEX and RGB values will be displayed on the screen.
  • The background color of the page will change to the generated color.

License

This project is licensed under the MIT License.

Acknowledgments

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

About

https://rbg-chuks.vercel.app


Languages

Language:JavaScript 80.2%Language:CSS 13.0%Language:HTML 6.8%