Godot has a color picker. Although the flexibility of picking any color sounds great, from a design perspective, my team would rather have a palette configured at the application level, that would be accessible everywhere in the editor where there’s a color picker.
I notice the functionality of adding colors to a palette with the plus button at the bottom of the color picker, but that doesn’t actually do what we want.
Here’s the gist of what we want:
To give colors abstract names, like “background”, “foreground”, “brandPrimary”, brandSecondary", “text”, “dimText”, “emphasisText” and so on.
To define that once in the application and have that palette available everywhere in the Editor, perhaps instead of the colorpicker, perhaps next to in, perhaps in it.
If we change the value of one of those colors in this single-source-of-truth app-level-defined palette, everywhere in the app where that color is used would be updated.
We want to be able to define one or more palettes, in such a way that we could, with one variable, change the entire color scheme of the UI.
To have the entire palette tracked by Git (as it stands right now, git doesn’t notice any change in the repository when we add colors to a palette in the color picker, with that plus button)
We see that something like this is implemented in the Godot editor itself, so the answer is there. We do intend to dive into the source code in the coming months, but I’d love to hear from the community about how this kind of problem is addressed.
Thank you for sharing any thoughts you might have on the matter.