Add a select few more styles to buttons #3336
-
Description Since #3022 was closed (with good reason in my opinion), I propose this option instead. A select few additional button styles that use preexisting branding. Why This is Needed Currently developers have 5 choices for buttons, realistically 4. These are great, especially when doing something that the style is designed for. The current styles names clearly state what they should do, but they can't quite cover all use cases. For example say I wanted two "Neutral" buttons but with different importance. I would personally use grey for both of them as it is currently, but an additional few style choices would make it much easier to differentiate. Furthermore, there is already a precedent in-app for buttons that could potentially expose or lose lots of user data to have a different style. Alternatives Considered Continue using the existing styling (which does indeed work great for many cases) Additional Details Here are a couple options that would be ideal (any one or more of these would vastly increase flexibility): Outlined red with red text (Danger): White (Seems to be specific to Nitro currently, I anticipate Non-Blurple text being a better option however): Opposite Theme (White for dark mode, Grey for light mode), sort of requires white to be added as well. Opposite Theme Outline with opposite theme text: Branding Yellow and/or Fuchsia (Neutral). Does not exist anywhere in app yet. Blurple outline (not really sure about this one, but saw it in app so here it is): |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 7 replies
-
As it turns out, there are actually a few white buttons in app already, updated the comment for that. |
Beta Was this translation helpful? Give feedback.
-
Discord is moving away from outline buttons as they're bad for accessibility. The white button with blurple text could have its uses though. |
Beta Was this translation helpful? Give feedback.
-
I think custom colors would be the best but since discord won't do that for branding this is the next best thing |
Beta Was this translation helpful? Give feedback.
-
custom colors please! |
Beta Was this translation helpful? Give feedback.
-
In fact, now only two button styles are available to developers. This is a standard (style: 1, 2, 3, 4) that differ only in color. And the second is the link button. It seems to me that it would be more reasonable to make two styles and allow developers to choose colors in a separate parameter. But you can also do it with pre-prepared colors (for example: 1-blurple, 2-gray, 3-green, 4-red, etc.) |
Beta Was this translation helpful? Give feedback.
-
Discord branding's Yellow can be used as "Warning", and the Fuchsia can be used as "Info". |
Beta Was this translation helpful? Give feedback.
-
Greetings, everyone. We just spent a bunch of time going through button possibilities and decided we are not going to add more button styles. In general, we think button styles should be tied to behavior, not the color itself. For example, green to indicate success, red to indicate danger, etc. We also want to ensure that the styles we add to our public API reflect the best practices that we use in the client (outline buttons, for example, can raise accessibility issues). So despite button colors being potentially exciting to devs, we haven't come across compelling semantic reasons to add more within the app. We thought about warning buttons in particular but in nearly all cases we think "danger" semantics suffice. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Greetings, everyone. We just spent a bunch of time going through button possibilities and decided we are not going to add more button styles. In general, we think button styles should be tied to behavior, not the color itself. For example, green to indicate success, red to indicate danger, etc. We also want to ensure that the styles we add to our public API reflect the best practices that we use in the client (outline buttons, for example, can raise accessibility issues).
So despite button colors being potentially exciting to devs, we haven't come across compelling semantic reasons to add more within the app. We thought about warning buttons in particular but in nearly all cases we think …