A beginner's guide to using CSS variables
If you look at the backend of a big website coded in CSS, you will encounter many repeating codes. They might be coding for particular text color or text size or even fitting the images to the right size for your screen. The problem comes in when you want to change these codes. Since they are so recurring, they demand global search. Custom properties of CSS variables allow all such values to be stored in one place and can be referenced throughout the document without having to retype it every time.