<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Reactiflux</title>
    <description>The latest articles on Forem by Reactiflux (@reactiflux).</description>
    <link>https://forem.com/reactiflux</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F5370%2Fc110e88c-43d1-4a11-8d19-13295fec7928.jpg</url>
      <title>Forem: Reactiflux</title>
      <link>https://forem.com/reactiflux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/reactiflux"/>
    <language>en</language>
    <item>
      <title>Picking Discord role colors</title>
      <dc:creator>Carl Vitullo</dc:creator>
      <pubDate>Mon, 28 Feb 2022 18:18:41 +0000</pubDate>
      <link>https://forem.com/reactiflux/picking-discord-role-colors-9h</link>
      <guid>https://forem.com/reactiflux/picking-discord-role-colors-9h</guid>
      <description>&lt;p&gt;Reactiflux recently added a role menu to allow members to self-identify their experience and attitude at work, which we make visible in the server by a combination of role colors and role icons. While doing so, I had to wrestle with picking effective colors.&lt;/p&gt;

&lt;p&gt;Discord exposes a palette of colors, but the slate of options isn't very rich. We needed to add colors for a total of 8 similar roles, so it was obvious that we'd need to go beyond what Discord makes available.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi9u4o9z1xt80occc7k5s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi9u4o9z1xt80occc7k5s.png" alt="Discord's role color palette, with 20 colors; ten pairs of bright and faded colors"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We approached this with a couple of goals in mind. We wanted to make it easy to get a rough idea of someone's experience and to give an obvious way to distinguish managers and tech leads. In picking exact colors to use, we were subject to a constraint from Discord as well: role colors must be easy to read for members who use either dark mode or light mode, since we can't select a different color for each.&lt;/p&gt;

&lt;p&gt;For this reason, we chose to use 2 gradients. One to span our 6 individual contributor roles, and another to signify the 2 management track roles. I am in no way a visual designer, but I did my best. I found the tools on &lt;a href="https://colordesigner.io/tools" rel="noopener noreferrer"&gt;colordesigner.io&lt;/a&gt; very helpful for coming up with colors to use, and &lt;a href="https://webaim.org/" rel="noopener noreferrer"&gt;WebAIM&lt;/a&gt; useful to verify contrast ratio.&lt;/p&gt;

&lt;p&gt;I used the &lt;a href="https://colordesigner.io/random-color-generator" rel="noopener noreferrer"&gt;random color generator&lt;/a&gt; to gather a couple of likely candidates for start- and end-colors for the gradient, plugging them into the &lt;a href="https://webaim.org/resources/contrastchecker/" rel="noopener noreferrer"&gt;WebAIM contrast accessibility checker&lt;/a&gt; to verify that the colors had a contrast ratio of at least 3, in both light- and dark-mode.&lt;/p&gt;

&lt;p&gt;Once I had a pair of colors I was happy with, I plugged them into the &lt;a href="https://colordesigner.io/gradient-generator" rel="noopener noreferrer"&gt;gradient generator&lt;/a&gt; to create a set of intermediate colors. It took some trial and error to make sure the entire gradient was sufficiently distinct, and we may iterate on this further.&lt;/p&gt;

&lt;p&gt;I wanted to keep colors from being &lt;em&gt;too&lt;/em&gt; close to each other, while also ensuring they weren't too visually similar to our staff and distinguished member colors.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjrqubkma2pk4zla4dj3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjrqubkma2pk4zla4dj3k.png" alt="Our final set of role colors"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We're pretty happy with these! It may be a small detail, but if names are difficult to read then it's that much more difficult to get to know who's in the community, so the work is worth doing.&lt;/p&gt;

&lt;p&gt;Thanks for reading! Reactiflux is the largest chat community of React developers, it's a great place to get help with learning React, level up your skills, or get advice for your career. Check out our &lt;a href="https://www.reactiflux.com/transcripts" rel="noopener noreferrer"&gt;past Q&amp;amp;As&lt;/a&gt; with notable React community members, and &lt;a href="http://discord.gg/reactiflux" rel="noopener noreferrer"&gt;join the conversation yourself!&lt;/a&gt;&lt;/p&gt;

</description>
      <category>community</category>
      <category>a11y</category>
      <category>discord</category>
    </item>
  </channel>
</rss>
