Skip to content

Conversation

@SlickSlime
Copy link
Contributor

@SlickSlime SlickSlime commented Jun 6, 2025

Description

Added support for CSS named colors (like "red", "blue" etc) as discussed.

Related issues

@SlickSlime SlickSlime marked this pull request as ready for review June 6, 2025 06:33
@CatHood0 CatHood0 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 11, 2025
@CatHood0 CatHood0 self-requested a review June 11, 2025 23:59
/// A map of color names to their hexadecimal representations.
///
/// Source: https://www.w3.org/TR/css-color-4/#named-colors
Map<String, String> _colorNameToHexMap = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you convert this map in a constant one?

@CatHood0 CatHood0 merged commit b41b466 into CatHood0:master Jul 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not supporting CSS named colors

2 participants