529 B
529 B
title |
---|
Create a custom CSS Variable |
Create a custom CSS Variable
We need to create a variable name --penguin-skin
and give it a value of gray
in the penguin
class.
Example
--variable-name: value;
Solution
In the penguin
class we create a variable name --penguin-skin
and give it a value of gray
:
--penguin-skin: gray;