Let’s add a file with a list of colors that will be used in the project.
src/assets/styles/colors.js file, export the default object.
In this object, define the colors:
rgba(30, 30, 30, 0.8),
rgba(30, 30, 30, 0.2) ,
Let’s add an icon component:
src/components/Icon/index.js. For this we will use the
createIconSetFromFontello method and call it to get the vector icon component.
It is this component that needs to be returned from the
Icon component by passing the props
color into it.
When calling the
createIconSetFromFontello method, pass the first argument -
Pass the string
fonticons as the second argument.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.