Skip to content

Conversation

@TimJentzsch
Copy link
Owner

Objective

Close #1.

It's usually a bad idea to hard-code colors, as it makes it harder to use a consistent color-scheme throughout the app.
Instead, we should allow named colors to be used.

Solution

  • A new ColorMap resource can be used to define color names
  • The names can be used instead of hex values in the tags: [c=primary]
  • Should the color for a name be updated, the update is efficiently applied to all usages of that name, without reconstructing the UI hierarchy

@TimJentzsch TimJentzsch merged commit fcec8aa into main Jul 27, 2024
@TimJentzsch TimJentzsch deleted the 1-named-colors branch July 27, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support named colors

2 participants