color tints the card, and emphasis sets how strongly. default is a light tint with colored text, subtle a neutral ground with colored text, and strong a solid fill with white text. color takes antd's presets (blue, green, gold and the rest) or a palette from your theme (the default theme adds amber, emerald, teal, sky, indigo, violet, fuchsia, rose and grays like slate and zinc). A name with no ramp, like a hex, is ignored.
- Check strong cards for contrast. White text on the solid fill falls below WCAG AA for 8 of the 20 hues in light mode and 16 in dark mode, with yellow the weakest. Keep strong for short or large text, and use default for body copy.
- Give color a meaning, like a status or a category, and keep the same color for the same meaning across the page.
- With type="inset", the color goes on the frame and the header, and the content keeps its white surface.
- On a colored card, links in the header, extra and actions take the card's text color and an underline, and the header divider follows the text color too.