# Astro gradient

Gradients derived from Astro'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/astro-build
- Brand colors: https://brandsweets.com/colors/brands/astro-build · Brand page: https://brandsweets.com/b/astro-build
- Palette: primary #3178c6, secondary #54b9ff, accents #4bf3c8
- Source: https://astro.build (extracted 2026-09-03)

## Brand gradient

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

## Hero background

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

- CSS: `linear-gradient(135deg in oklab, #263d57 0%, #597890 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#263d57] to-[#597890]`
- Contrast (worst point): white 4.65:1 AA · black 1.89:1 fail · banding medium · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.263d57-597890?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. L shifted −0.08 so white ink passes AA on the surface and both states (worst 4.72:1).

- CSS: `linear-gradient(180deg in oklch shorter hue, #236cb9 0%, #00549f 100%)`
- Tailwind: `bg-linear-to-b/oklch from-[#236cb9] to-[#00549f]`
- Contrast (worst point): white 5.36:1 AA · black 2.77:1 fail · banding high · ink #ffffff
- Maker: https://brandsweets.com/gradients/new/v1.236cb9-00549f?a=180&in=oklch&hue=shorter
- Hover: `linear-gradient(180deg in oklch shorter hue, #2e75c3 0%, #0f5da8 100%)`
- Active: `linear-gradient(180deg in oklch shorter hue, #1863af 0%, #004b95 100%)`

## Tonal ramp

- CSS: `linear-gradient(135deg in oklch shorter hue, #69b0ff 0%, #3178c6 50%, #00428c 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#69b0ff] via-[#3178c6] to-[#00428c]`
- Contrast (worst point): white 2.27:1 fail · black 2.16:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.69b0ff-3178c6-00428c?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, #3178c6 0%, #35819b 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#3178c6] to-[#35819b]`
- Contrast (worst point): white 4.39:1 AA-large · black 4.61:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.3178c6-35819b?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, #3178c6 0%, #986d2f 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#3178c6] to-[#986d2f]`
- Contrast (worst point): white 4.11:1 AA-large · black 4.54:1 AA · banding high
- Maker: https://brandsweets.com/gradients/new/v1.3178c6-986d2f?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, #3178c6 0%, #c93a57 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#3178c6] to-[#c93a57]`
- Contrast (worst point): white 4.51:1 AA · black 4.22:1 AA-large · banding high
- Maker: https://brandsweets.com/gradients/new/v1.3178c6-c93a57?a=135

## CSS custom properties (brand.css)

```css
:root {
  /* Brand gradient (derived) */
  /* worst-case contrast: white 2.15:1, black 4.63:1 AA */
  --brand-gradient: linear-gradient(135deg in oklab, #3178c6 0%, #54b9ff 100%);
  /* hero — worst-case contrast: white 4.65:1 AA, black 1.89:1; ink passes AA at the worst point */
  --brand-gradient-hero: linear-gradient(135deg in oklab, #263d57 0%, #597890 100%);
  --brand-gradient-hero-ink: #ffffff;
  /* button — worst-case contrast: white 5.36:1 AA, black 2.77:1 */
  --brand-gradient-button: linear-gradient(180deg in oklch shorter hue, #236cb9 0%, #00549f 100%);
  --brand-gradient-button-hover: linear-gradient(180deg in oklch shorter hue, #2e75c3 0%, #0f5da8 100%);
  --brand-gradient-button-active: linear-gradient(180deg in oklch shorter hue, #1863af 0%, #004b95 100%);
  --brand-gradient-button-ink: #ffffff;
}
```

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