Skip to content

KP1709/ColourSchemeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colour Scheme Generator

Netlify Status

⌨️ Tech stack

React / HTML / CSS / Axios / React (TanStack) Query

🍼 Introduction

Having too many UseEffect hooks can make code buggy and difficult to manage. Additional logic is also required for error handling and loading. Therefore I created this project to practice using React Query as it comes with all of this built into the library. Multiple API calls are made with some queries dependent on each other and others running in parallel. This application allows the user to randomly generate a colour and see all the colour schemes relating to that colour. There are 8 colour schemes displayed: monochrome, monochrome light, monochrome dark, analogic, analogic complement, triad, complement and quad.

🛠️ Features

  • Uses Axios and React Query to fetch and manage API calls
  • Generates colour schemes based on a specific colour and displays them
  • Able to generate a new colour and update the colour schemes for that colour
  • Responsive design + basic Sass syntax implemented in plain CSS as now supported
  • Tap on colour to copy hex code for use
    • Icon for copyable colours shown when hovering over the hex codes
    • On tap, the copy icon turns into a checkmark to show the code is copied

📚 Resources

🤖 AI assistance

To implement the copy feature. I used v0 by Vercel to assist. The code returned was used as inspiration.
Copy to clipboard React - https://v0.dev/chat/l5cDHbt07cK

➕ Features to add

  • Suspense to show when each colour scheme is loading

About

A web application allowing users to view different colour schemes depending on a randomly selected colour.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors