Hey Guys,
This post is on CSS.
We are very well aware that most of the type we are repeating same values many times in CSS which is very annoying.
For this problem we have CSS variables and SASS variables but when you have a big project and you have a color variable declared for a particular color.
The problem comes when you want to change that color at just 1 or few places.
The solution is declare new variable - from here the messiness of the variables starts.
So, the solution is use currentColor.
Here is the video.
Here is the github link.
Here is the browser support.
Thanks,
Neha
No comments:
Post a Comment