Baseline Widely CSS
light-dark()
The light-dark() CSS function accepts two colors and uses one depending on the current color scheme.
Baseline Status
Widely Available
Since 2024-05-13
First Core Launch
Firefox 120
2023-11-21
Core-3 Stability
174d
Last: Safari (2024-05-13)
BCD Keys Mapped
1
Group: CSS
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Firefox | desktop | 120 | 2023-11-21 |
| Firefox for Android | mobile | 120 | 2023-11-21 |
| Chrome | desktop | 123 | 2024-03-19 |
| Chrome Android | mobile | 123 | 2024-03-19 |
| Edge | desktop | 123 | 2024-03-22 |
| Safari | desktop | 17.5 | 2024-05-13 |
| Safari on iOS | mobile | 17.5 | 2024-05-13 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.types.color.light-dark | CSS | 174d |