| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Create a custom CSS Variable | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | ## Create a custom CSS Variable
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 15:17:39 +04:00
										 |  |  | <!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds  --> | 
					
						
							|  |  |  | 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 15:17:39 +04:00
										 |  |  | ### Example
 | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-17 15:17:39 +04:00
										 |  |  | ```css | 
					
						
							|  |  |  | --variable-name: value; | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### Solution
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | In the ```penguin``` class we create a variable name ```--penguin-skin``` and give it a value of ```gray```: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```css | 
					
						
							|  |  |  | --penguin-skin: gray; | 
					
						
							|  |  |  | ``` |