Giter Site home page Giter Site logo

swastikpatro / react-color-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 110 KB

⚡ Generate shades for your respective input color and copy paste it for your project.

Home Page: react-color-generator-ochre.vercel.app

HTML 4.19% TypeScript 44.89% CSS 50.92%

react-color-generator's Introduction

React Color Generator

⚡ Generate shades for your respective input color and copy colors to your clipboard.

DEMO ▶:

React.Color.Generator.mp4

Tech Stack:

  • CSS
  • React
  • TypeScript
  • React Icons
  • React Hot Toasts
  • Values.js

Features:

  1. Get Random Color shades on clicking random button. (Toasts)
  2. On Clicking Submit button, provided with input shades and input color, (100 / shades) of both light and dark and base color will be generated. Example. entering shades : 2, 50 dark, 50 light and 1 base color will be generated.
  3. If the rgb of any shade sums upto less than 300 (< 300), white text is used to give info about that particular shade, as black text on the shade background will not be visible. Example. if rgb of any shade is rgb(158, 61, 61) i.e. 158 + 61 + 61 = 280 so it is less than 300, so the text will be white on that rgb(158, 61, 61) shade, else it will be in black.
  4. If the user, submits without changing inputs, i.e. previous and current input is same, a toast is shown to user saying to change inputs to generate different color shades or differenct shade count.
  5. Copy to clipboard feature. The check icon will last for 500 milliseconds.
  6. Toasts will be visible for 750 milliseconds.
  7. App is Responsive 😎.

react-color-generator's People

Contributors

swastikpatro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.