-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
The parseHexColor function (converts CSS hex color strings to Godot r,g,b,a format) is currently duplicated in three component files:
packages/html/src/components/Span.tspackages/html/src/components/Button.tspackages/html/src/components/Input.ts
Extract this into a shared utility at packages/html/src/utils/colorParser.ts and import it from each component.
Additional scope
- Support named CSS colors (
red,blue, etc.) via a lookup table - Support
rgb()/rgba()/hsl()formats - Add unit tests for the color parser
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request