-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve parsing of color formats in parseColorToRgba
The code for parsing different color formats has been refactored to significantly improve its coherence and maintainability. Each color type's parsing now uses a consistent structure of destructuring the parsed values and returning color in specific format. In addition, replaced the hexToRgb conversion function with the parseHex function to reduce complexity.
- Loading branch information
1 parent
c45a610
commit f3b7049
Showing
1 changed file
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters