-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create and use a unified example color palette #12176
Comments
I've extracted the following colors from the website, and annotated them with potential names:
Hopefully these can be of use. |
I think it would be helpful for discussion to make a distinction between what I would call a "theme" and a "palette." A "theme" in my eyes might provide constants like:
A "palette" might provide constants like:
Is this issue just asking for a palette specific to Bevy's branding? Or are we trying to set up a theme for examples to follow? |
I'm primarily interested in a theme here. It would be really useful for improving the look and consistency of the examples, and reducing review time bikeshedding colors. A palette seems like a necessary pre-requisite for that, and a good way to add colors for examples with unusual needs. |
# Objective Fixes #12226 Prior to the `bevy_color` port, `DARK GRAY` used to mean "dark grey." But it is now lighter than `GRAY`, matching the css4 spec. ## Solution Change usages of `css::DARK_GRAY` to `Color::srgb(0.25, 0.25, 0.25)` to restore the examples to their former colors. With one exception: `display_and_visibility`. I think the new color is an improvement. ## Note A lot of these examples could use nicer colors. I'm not trying to revamp everything here. The css4 palette is truly a horror. See #12176 and #12080 for some discussion about alternatives.
…ne#12333) # Objective Fixes bevyengine#12226 Prior to the `bevy_color` port, `DARK GRAY` used to mean "dark grey." But it is now lighter than `GRAY`, matching the css4 spec. ## Solution Change usages of `css::DARK_GRAY` to `Color::srgb(0.25, 0.25, 0.25)` to restore the examples to their former colors. With one exception: `display_and_visibility`. I think the new color is an improvement. ## Note A lot of these examples could use nicer colors. I'm not trying to revamp everything here. The css4 palette is truly a horror. See bevyengine#12176 and bevyengine#12080 for some discussion about alternatives.
When tackling this, we should swap our examples to use |
based on [this unofficial branding palette](bevyengine/bevy#12176 (comment))
What problem does this solve or what need does it fill?
The examples currently use a huge array of colors, for no good reason.
This is hard to modify, distracting and frequently ugly. This problem is particularly bad with text, with everything from fully saturated RED to BLACK to WHITE to 90% grey, 80% grey, GOLD and arbitrarily selected SRGB values being selected.
What solution would you like?
Add a simple
bevy
color palette tobevy_colors
. Include our default clear color in there, and otherwise steal branding colors from the website. Look through the examples and slowly replace all other color palettes.What alternative(s) have you considered?
Use the
tailwind
color palette everywhere. It won't be as coherent (since it's very large) or easy to change (since it has an external definition), but at least it won't be as 80s.Additional context
Encountered during #12163. This work cannot be finalized until that PR is merged.
The text was updated successfully, but these errors were encountered: