• seanwilson 9 months ago

    It's a common UI/web design trick now to brand your color palette more by mixing in a little of your primary color into your "gray" swatch. Gray gets used a lot so this has a subtle but noticeable difference. Tailwind has a few gray swatches you can pick from (https://tailwindcss.com/docs/customizing-colors) where "neutral" is all gray if that's what matches your brand.

    I have a tool for creating Tailwind color palettes you might find interesting here (https://inclusivecolors.com) where you can visualize how the hue of Tailwind's "gray" shifts a little to the left and the saturation goes from high to low as the gray gets lighter (you'll need to load the palette first via "Import" then "Tailwind"), and customise it if you want.

    • ugur2nd 9 months ago

      I see—design rule. And your website is inspiring.

      • seanwilson 9 months ago

        Thanks! Just to add, this article https://www.refactoringui.com/previews/building-your-color-p... is good at explaining why you usually need several shades of gray (as well as shades of other colors) and related design rules.

        • ugur2nd 9 months ago

          I read it, it's a good article. It's probably an article I can recommend in the future when I talk to people about colors.

    • jsheard 9 months ago

      https://tailwindcss.com/docs/customizing-colors

      Their "neutral" is the perfect gray you're looking for.

      Why their "gray" is actually blue, I have no idea.

      • brudgers 9 months ago
        • authorfly 9 months ago

          I read this and applied it when it was first on HN.

          Must have explained it to 3-4 junior engineers/interns, but could never quite find a link back to it.

          Thank you!

          • brudgers 9 months ago

            I read back then too. That it immediately popped to mind from the comment, is an indictment of its impact on my understanding of color.

          • ugur2nd 9 months ago

            Ok. Understand. Thank you.