# Figma gradient

Gradients derived from Figma'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/figma
- Brand colors: https://brandsweets.com/colors/brands/figma · Brand page: https://brandsweets.com/b/figma
- Palette: primary #f24e1e, secondary #0d99ff, accents #0d99ff #1abcfe #0acf83 #ff7262 #a259ff
- Source: https://figma.com (extracted 2026-09-02)

## Brand gradient

ΔH 146° > 140° — interpolating in oklch (shorter hue) keeps the midpoint saturated.

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

## Hero background

Chroma ×0.35 so it can carry text; ink white (inkFor at the midpoint). L shifted −0.11 until the ink passes AA at the worst point (4.61:1).

- CSS: `linear-gradient(135deg in oklch shorter hue, #955e4f 0%, #56789a 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#955e4f] to-[#56789a]`
- Contrast (worst point): white 4.61:1 AA · black 3.99:1 AA-large · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.955e4f-56789a?a=135&in=oklch&hue=shorter

## 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. L shifted −0.10 so white ink gets as close as the ±0.1 bound allows to AA on the surface and both states (worst 4.03:1). Ink is below AA (4.03:1 at the worst point) — use it for large text only, or pick a darker/lighter primary for buttons.

- CSS: `linear-gradient(180deg in oklch shorter hue, #dc3800 0%, #bf1000 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#dc3800] to-[#bf1000]`
- Contrast (worst point): white 4.56:1 AA · black 3.29:1 AA-large · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.dc3800-bf1000?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #e7430d 0%, #ca2100 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #d12b00 0%, #b10a00 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #ffaa90 0%, #f24e1e 50%, #ac0800 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#ffaa90] via-[#f24e1e] to-[#ac0800]`
- Contrast (worst point): white 1.84:1 fail · black 2.79:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.ffaa90-f24e1e-ac0800?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, #f24e1e 0%, #f93079 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#f24e1e] to-[#f93079]`
- Contrast (worst point): white 3.57:1 AA-large · black 5.72:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.f24e1e-f93079?a=135

## Complementary

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

- CSS: `linear-gradient(135deg in oklch shorter hue, #f24e1e 0%, #249eb8 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#f24e1e] to-[#249eb8]`
- Contrast (worst point): white 3.15:1 AA-large · black 5.83:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.f24e1e-249eb8?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, #f24e1e 0%, #24a867 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#f24e1e] to-[#24a867]`
- Contrast (worst point): white 3.04:1 AA-large · black 5.88:1 AA · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.f24e1e-24a867?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 2.99:1, black 5.86:1 AA */
  --brand-gradient: linear-gradient(135deg in oklch shorter hue, #f24e1e 0%, #0d99ff 100%);
  /* hero — worst-case contrast: white 4.61:1 AA, black 3.99:1 AA-large; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklch shorter hue, #955e4f 0%, #56789a 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 4.56:1 AA, black 3.29:1 AA-large */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #dc3800 0%, #bf1000 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #e7430d 0%, #ca2100 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #d12b00 0%, #b10a00 100%);
  --brand-gradient-button-ink: #ffffff;
  /* button ink: 4.0:1 — below AA */
}
```

## 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.
