Color App
Color App
Practice Problems
Assignment Questions
Assignment Questions
Colour Generator
Here we plan to build an app that generates colour in all shades. The user can add RGB, hx or simply text.
The user can view all the colour palettes related to that. This is a helpful tool for developers while building
websites and choosing the colour palette.
Problem Statement
As said here, we plan to build an app that generates colour in all shades. The user can add RGB, hex or
simply text. The user can view all the colour palettes related to that. This is a helpful tool for developers
while building websites and choosing the colour palette.
Your task is to go through the problem statement and build the required features of the application.
Problem Breakdown
We will create the colour palette app using the following library:
https: //noeldelgado.github.io/values.js/
You can use any style, but it should have a decent look as per the template images. You are free to use
react material as well for icons and styling.
Pre-requisites
Kindly ensure you have done signup and logged in to codesandbox if you wish to code online; otherwise,
install Git, Nodejs, and NPM in your system before you kickstart development.
After installing the pre-requisite dependencies mentioned above, you need to do the following
You need download the zip version of the cod
Once you have downloaded it, unzip it to any path of your choice, you need to run the command npm
install on the project folder's terminal to install all the project dependencies
After installing the project dependencies, you need to run the command npm start on your project
folder's terminal to start the development server.
The app will now be hosted on the URL https://localhost:3000. You can now start coding your
application.
You are free to install and use any other dependencies over and above the ones installed above to
ensure the completion of your tasks.
Assignment Questions
Template 1
3. Show result
4. RGB to Hex
5. Copy to clipboard
Story 1:
The first task is to create the header, as shown below. The user can add the in hex, and when the user
submits the colour, a colour palette is returned. Save this response in the console. Use the following
library to get shades of colour.
https://noeldelgado.github.io/values.js/
Story 2:
Create a common component Single Colour which will have the following props passed as value
Key-value
hexColor
Story 3:
Use the common component single colour and pass it in your home page with all the params.
Assignment Questions
Story 4:
The user can add rgb value or a simple text value which can be converted to hex value. Write the logic for
it.
Story 5:
In this task, you need to create a functionality which will copy the hex value to clipboard when the user
clicks on any colour.
Color
Practice Problems
Assignment Solutions
Assignment Solutions