blockful-io / external-resolver-dapp

https://external-resolver-dapp.vercel.app
0 stars 1 forks source link

refactor: Extract and Reuse Common Hex Color Values Across dApp Components #158

Open eduramme opened 3 weeks ago

eduramme commented 3 weeks ago

Refactor Request

Description

There are several hex color values being used in the codebase that are likely shared across multiple pages and components of the dApp. To improve maintainability and consistency, these hex color values should be extracted into a shared file and reused wherever possible across the project.

Requirements

Additional Information

https://github.com/blockful-io/external-resolver-dapp/pull/152: Image

Possible Solution

Extract the common hex color values to a centralized file and update the codebase to use this file wherever those colors are needed. This can be done by creating a constants or theme file that contains all the color values and importing it into the relevant components.

FrancoAguzzi commented 3 weeks ago

@eduramme clear and concise! This could be called avatar colors or something like, you know? not good to name the const as the color name because if it changes the information would need to be reupdated once again (the const name :))