# Tailwind CSS gradient

Gradients derived from Tailwind CSS's published colour tokens (nominative use; no brand assets). Deterministic: the same values are served as `--brand-gradient*` in the brand's brand.css.

- Page: https://brandsweets.com/gradients/brands/tailwind-css
- Brand colors: https://brandsweets.com/colors/brands/tailwind-css · Brand page: https://brandsweets.com/b/tailwind-css
- Palette: primary #06b6d4
- Source: https://tailwindcss.com (extracted 2026-09-02)

## Brand gradient

No secondary or accent — the second stop is derived (analogous +30° at the primary's lightness).

- CSS: `linear-gradient(135deg in oklab, #06b6d4 0%, #37abff 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#06b6d4] to-[#37abff]`
- Contrast (worst point): white 2.42:1 fail · black 8.40:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.06b6d4-37abff?a=135

## Hero background

Chroma ×0.35 so it can carry text; ink black (inkFor at the midpoint). Passes AA for that ink at the worst point (8.41:1) without adjusting L.

- CSS: `linear-gradient(135deg in oklab, #84abb4 0%, #87a8c4 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#84abb4] to-[#87a8c4]`
- Contrast (worst point): white 2.47:1 fail · black 8.41:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.84abb4-87a8c4?a=135

## Button / CTA

ΔL 0.08 top→bottom in the primary's hue (a lit surface, not a rainbow); hover L +0.03, active L −0.03. Black ink passes AA on the surface and both states (worst 6.76:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #2ac3e1 0%, #00a9c7 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#2ac3e1] to-[#00a9c7]`
- Contrast (worst point): white 2.10:1 fail · black 7.50:1 AA · banding high · ink #000000
- Maker: https://brandsweets.com/gradients/new/v1.2ac3e1-00a9c7?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #3acdeb 0%, #00b3d1 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #13b9d7 0%, #00a0bd 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #74f0ff 0%, #06b6d4 50%, #007d97 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#74f0ff] via-[#06b6d4] to-[#007d97]`
- Contrast (worst point): white 1.34:1 fail · black 4.38:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.74f0ff-06b6d4-007d97?a=135&in=oklch&hue=shorter

## Analogous

Partner hue from the analogous rule at the source colour's lightness.

- CSS: `linear-gradient(135deg in oklab, #06b6d4 0%, #06bcad 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#06b6d4] to-[#06bcad]`
- Contrast (worst point): white 2.38:1 fail · black 8.62:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.06b6d4-06bcad?a=135

## Complementary

Partner hue from the complementary rule at the source colour's lightness. ΔH 180° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

- CSS: `linear-gradient(135deg in oklch shorter hue, #06b6d4 0%, #ff714e 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#06b6d4] to-[#ff714e]`
- Contrast (worst point): white 2.42:1 fail · black 7.62:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.06b6d4-ff714e?a=135&in=oklch&hue=shorter

## Triadic

Partner hue from the triadic rule at the source colour's lightness.

- CSS: `linear-gradient(135deg in oklab, #06b6d4 0%, #ff49e2 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#06b6d4] to-[#ff49e2]`
- Contrast (worst point): white 2.42:1 fail · black 7.29:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.06b6d4-ff49e2?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 2.42:1, black 8.40:1 AA */
  --brand-gradient: linear-gradient(135deg in oklab, #06b6d4 0%, #37abff 100%);
  /* hero — worst-case contrast: white 2.47:1, black 8.41:1 AA; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #84abb4 0%, #87a8c4 100%);
  --brand-gradient-hero-ink: #000000;
  /* button — worst-case contrast: white 2.10:1, black 7.50:1 AA */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #2ac3e1 0%, #00a9c7 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #3acdeb 0%, #00b3d1 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #13b9d7 0%, #00a0bd 100%);
  --brand-gradient-button-ink: #000000;
}
```

## Gradient maker

Every maker URL is the gradient's state: `/gradients/new/v1.<hex>-<hex>[_pos]?a=135&in=oklch&hue=shorter&e=soft&g=8`. Hand one to a human, let them refine, and read the link they return.

## Connect an agent

Point any MCP client at the BrandSweets gradients endpoint for the same engine and corpus:

- Endpoint: https://mcp.brandsweets.com/gradients/mcp
- Tools: `make_gradient` (2–5 colours → CSS with the interpolation space, Tailwind v4, SVG, PNG URL, DTCG token + the contrast/banding/gamut report), `brand_gradients` (brand slug or palette → brand gradient, hero, button, variants).
- Resource: `gradients://corpus` — the whole bundled corpus as JSON.
