Eliminating Code Redundancy in UI Alerts with the 'currentColor' CSS Value
Channel: 3arbaoui Mehdi
Date: 2023-01-19

In this lesson, we'll use the "currentColor" CSS value to reduce the code redundancy of an "alert" user interface that has two states, "success" and "danger". 

By using "currentColor" for the "border" property, we can eliminate the need to repeat the same color value for both states and instead inherit it from the parent element's color property.

-------------
Twitter: https://twitter.com/arbaoui_mehdi

#css #frontend