freeCodeCamp Challenge Guide: Create a custom CSS Variable

Create a custom CSS Variable


Problem Explanation

We need to create a variable name --penguin-skin and give it a value of gray in the penguin class.

Example:

--variable-name: value;

Solutions

Solution 1 (Click to Show/Hide)

In the penguin class we create a variable name --penguin-skin and give it a value of gray:

--penguin-skin: gray;
5 Likes