paint-brush
Optimize Your CSS Length with CSS Variablesby@edemagbenyo
1,136 reads
1,136 reads

Optimize Your CSS Length with CSS Variables

by Edem Agbenyo4mFebruary 15th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

CSS Variables are values we define to be re-used throughout a CSS document. CSS variables are set in one place and referenced at many places like you will set a variable in other programming languages. A variable in CSS is defined by starting it with two dashes, followed by the name of the variable. The var keyword that we use to access a custom variable takes two parameters. The first one is the name the property to be substituted, the second is a fallback value. There is a significant reduction in the number of line in code that was written.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Optimize Your CSS Length with CSS Variables
Edem Agbenyo HackerNoon profile picture
Edem Agbenyo

Edem Agbenyo

@edemagbenyo

I’m a Senior Full Stack Javascript engineer who loves solving problem using technology.

Learn More
LEARN MORE ABOUT @EDEMAGBENYO'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Edem Agbenyo HackerNoon profile picture
Edem Agbenyo@edemagbenyo
I’m a Senior Full Stack Javascript engineer who loves solving problem using technology.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
T
Telegram
Arturmarques
Mytechmint
Coffee-web
Ifront
Ifront
Dev