---
id: "light-dark"
kind: "web-feature"
canonical: "https://timetostable.com/feature/light-dark"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# light-dark() (`light-dark`)

The light-dark() CSS function accepts two colors and uses one depending on the current color scheme.

- **Group**: CSS
- **Baseline**: Widely Available
- **Newly Available Date**: 2024-05-13
- **Widely Available Date**: 2026-11-13
- **Specification**: https://drafts.csswg.org/css-color-5/#light-dark
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 120 | 2023-11-21 |
| Firefox for Android | 120 | 2023-11-21 |
| Chrome | 123 | 2024-03-19 |
| Chrome Android | 123 | 2024-03-19 |
| Edge | 123 | 2024-03-22 |
| Safari | 17.5 | 2024-05-13 |
| Safari on iOS | 17.5 | 2024-05-13 |

