No Login Data Private Local Save

light‑dark() Function Tester - Online Color Switch

7
0
0
0

light-dark() Function Tester

Test and preview the CSS light-dark() color function. Define colors for light & dark modes, preview them side-by-side, and copy ready-to-use CSS code.

Chrome 123+ Firefox 120+ Safari 17.5+ Edge 123+ IE ❌
Light
Dark
Apply as:
Light Mode
Preview
Sample Card

This text adapts to your chosen color.

Action Button
Bordered element
Dark Mode
Preview
Sample Card

This text adapts to your chosen color.

Action Button
Bordered element
Preset Color Schemes
Generated CSS
background-color: light-dark(#ffffff, #1a1a1a);

Tip: Use light-dark() inside elements that have color-scheme: light dark set on them (or an ancestor).

Frequently Asked Questions