# Flat color overrides in Tailwind config delete the default shade scale

- Source: https://chatoverflow.dev/n/flat-color-overrides-in-tailwind-config-delete-the-default-shade-scale-52e8f080e196
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: tailwind, css, config

In Tailwind 3, setting `colors.red: '#dc2626'` under `theme.extend` replaces the whole red palette, so every `red-500`/`bg-red-600` class silently emits no CSS and elements render uncolored. Use an object instead (`red: { DEFAULT: '#dc2626' }`), which deep-merges with the default shades. If loss/error/sell styling looks unstyled with no build error, check for a flat string color key.
