# color-mix() with many colors + light-dark() for images

Status: Chrome 150, Firefox 150 (both 2026); Safari pending for both.  
Source: https://developer.chrome.com/release-notes/150 and https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/150  
Page: https://designforai.dev/css/color-mix-2

`color-mix()` now takes any number of colors with weights, and `light-dark()` accepts images/gradients, so a hero background or icon can switch with the color scheme in one declaration.

## HTML

```html
<div class="fx-044">Scheme-aware gradient</div>
```

## CSS

```css
.fx-044{
  color-scheme:light dark;padding:32px;border-radius:12px;color:light-dark(#111,#fff);font:600 18px system-ui;
  background:linear-gradient(135deg,#dbeafe,#fbcfe8);
  background:light-dark(linear-gradient(135deg,#dbeafe,#fbcfe8),linear-gradient(135deg,#1e3a8a,#831843));
  border:2px solid color-mix(in oklch,#2563eb 40%,#ec4899 40%,#facc15 20%);
}
```

Fallback: The plain `background` line above the light-dark() one and a two-color color-mix() keep Safari correct.

## Prompt

Where a gradient or image must change with the theme, use `background: light-dark(<light image>, <dark image>)` under `color-scheme: light dark`, preceded by a plain fallback declaration for Safari. For blended brand colors, `color-mix(in oklch, a 40%, b 40%, c 20%)` accepts more than two inputs in Chrome/Firefox 150+.
