Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 4.09 KB

File metadata and controls

51 lines (32 loc) · 4.09 KB

React Color Palette Generator

For this project, you will use React to build an app that suggests colors that can be used together, like Coolors.co. The user can choose a color palette, and then the app will suggest five colors that work well together. The user can also generate a new color palette, and see the hex code for each color.

Getting Started

Plan out your application, focusing on the features you want your user to be able to use. This project intentionally gives you a lot of latitude in how you design and build your application, so take some time to think about how you want your user to interact with your application.

What will your application do, specifically? There are a lot of ways your color palette generator can work and look, so it's a good idea to make those specific decisions before you start coding.

This project does not include any wireframes: you will have to design the UI yourself and decide what components you will need to build.

Create your React app with Vite. You are also welcome to use a framework like Next.js or Remix.

Requirements

The application should provide options to generate colors randomly or based on specific color theory rules (e.g., complementary, analogous, triadic). In addition to generating colors automatically, you should allow users to input their own colors or color values. The application should provide a color picker or input field to allow users to select or enter colors.

Your color palette should by default provide 5 colors, but users should be able to specify a different number of colors using a slider or input field.

Users should be able to adjust the generated colors by modifying their hue, saturation, and brightness values. The application should provide some way in the UI to make these adjustments, like sliders, buttons, input fields, or other controls. Check out Coolors and other color palette generators for inspiration.

Users should be able to save the generated color palettes for future reference. You should use local storage for this.

Users should be able to copy color values for each color in the palette in a format usable in code (for example, as a hex value). You could optionally provide color values in multiple formats, including RGB or HSL.

Resources you can use

How you generate the colors and handle color in the UI is up to you. Some resources to consider:

Here are some options for color pickers:

🌶️ Spicy Options