DEV Community

loading...

Discussion on: "currentColor", the first CSS variable

Collapse
luker profile image
Luke Robinson

My favorite use of currentColor is setting an outline (or border) color on anchors in focus. A quick win to improve keyboard accessibility. For example: a:focus {outline: 3px dotted currentColor;}. Cheers!