--- id: 5a9d726c424fe3d0e10cad11 title: Create a custom CSS Variable challengeType: 0 videoUrl: 'https://scrimba.com/c/cQd27Hr' forumTopicId: 301086 dashedName: create-a-custom-css-variable --- # --description-- To create a CSS variable, you just need to give it a name with two hyphens in front of it and assign it a value like this: ```css --penguin-skin: gray; ``` This will create a variable named `--penguin-skin` and assign it the value of `gray`. Now you can use that variable elsewhere in your CSS to change the value of other elements to gray. # --instructions-- In the `penguin` class, create a variable name `--penguin-skin` and give it a value of `gray`. # --hints-- `penguin` class should declare the `--penguin-skin` variable and assign it to `gray`. ```js assert( code.match(/\.penguin\s*\{[^{}]*?--penguin-skin\s*:\s*gr[ae]y\s*;[^{}]*?\}/gi) ); ``` # --seed-- ## --seed-contents-- ```html