Home / CSS Tips Generated By ChatGPT / The Power of currentColor Keyword in CSS Use currentColor to apply color properties like border-color or box-shadow based on the current text color. Source Code .element { color: red; border: 2px solid currentColor; /* Border color will be red */ }