Files

28 lines
505 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Create a custom CSS Variable
---
# Create a custom CSS Variable
2018-10-12 15:37:13 -04:00
---
## Problem Explanation
We need to create a variable name ```--penguin-skin``` and give it a value of ```gray``` in the ```penguin``` class.
2018-10-12 15:37:13 -04:00
**Example:**
2018-10-12 15:37:13 -04:00
```css
--variable-name: value;
```
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
In the ```penguin``` class we create a variable name ```--penguin-skin``` and give it a value of ```gray```:
```css
--penguin-skin: gray;
```
</details>