Skip to content

Refactor useColorDecoder Hook #1047

@jason4193

Description

@jason4193

Requirement

  • useColorDecoder is quite confusing
  • Original purpose of the hook function is for converting default-x color name to Hex value based on the corresponding theme.
  • Refactor the useColorsDecoder function in the hook which taking the string[] instead of Record<string, string> (specific to assignedColors only)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions