← You're writing dark-mode colors twice. `light-dark()` fixes that.
Playground
light-dark() — one rule, both themes
preview
Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.
Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.