This guide explains the process and reasoning behind modifying the neutral color palette within the shadcn/ui kit for Figma.
You can easily change the neutral colors (such as background, foreground, border, input, muted, etc.) of your components by switching from Neutral to other neutral color families.
Simply select the Neutral color variables in the Theme collection and replace the Neutral color references with your preferred Tailwind color space alternatives such as Slate, Stone or Gray.
Tailwind CSS offers a variety of neutral color palettes (like slate, gray, zinc, neutral, and stone) because a single "gray" rarely fits all design needs. These different neutral palettes aren't just varying shades of pure gray; they are subtly tinted towards other hues, providing designers with more nuanced options. Here's why Tailwind provides them and why you'd choose one over another:
Pure, desaturated gray can sometimes feel stark, cold, or clash with your brand's primary colors. For instance, a cool gray might feel out of place with warm brand colors (reds, oranges, yellows). Tinted neutrals offer better complementation:
The subtle tint of a neutral palette significantly influences the overall feeling of your design:
Using only pure grays can sometimes make a design look flat or "muddy," especially with many shades. Tinted neutrals introduce a subtle complexity and richness, making the design more visually interesting without being overtly colorful.
Multiple neutral options give designers the flexibility to fine-tune their color schemes and achieve their desired aesthetic. It's about offering choices to better serve diverse design requirements.
slate might be a good choice. If it uses a warm terracotta, stone could work well.