DEV Community

Discussion on: Color scheme generator using javascript and apis

Collapse
 
mariamaitbella profile image
Mariam ait bella

Thanks for reviewing my code and I will concider your ideas I would like to get more information caus this is intersting!

Collapse
 
abhinav2127 profile image
Abhinav Jha

Hi Mariam,
I'm trying to explain what's in my mind. If you have any doubt you can ask!
We can select color scheme using 5-6 core mechanism based on color wheel strategy.
So, here is a case explaining the situation.
I want some suggestion of color scheme for my business website who have following details:

  • It's an e-commerce website setting beauty products for skincare and hair care.
  • My target customers are both women and men of age between 25-35 yrs.
  • I can attach my logo and some banners/product images.

The code will receive these information and based on images and logo you can decide perfect match for color scheme.

To make the decision you will need to explore opensource image library which will give you matching colors from the image. You can take those color and write a logic to select colors which provide contrast to existing colors.

Plotting contrast color on color wheel will help you to select color schemes based on existing strategies.

It's just something coming from mind! You can fully optimize it, or change it!
Hope this helps!

Thread Thread
 
mariamaitbella profile image
Mariam ait bella

I got the idea and it is so fine I really liked it and I wish I could add it I will be thinking about it and giving it some time and focus to apply it and add it to this project. Thank you so much for your time and support!