currentColor & inherit
Two CSS keywords help you write DRY colour code by referencing colours that are already defined elsewhere.
currentColor
currentColor is a dynamic value that equals the element's current color property. It works in any property that accepts a colour value: border, box-shadow, fill, stroke, background, etc.
inherit
inherit forces a property to use the same computed value as its parent. Colour properties like color inherit naturally, but others such as border-color and background-color do not — inherit makes them do so explicitly.
Practical Uses
Icons that automatically match their surrounding text colour, borders that shift with a theme, and focus rings that match link colour are all clean currentColor use-cases.