Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to use variables in css

:root {
  --clr-primary-1: hsl(205, 86%, 17%);
}

.container{
  background-color: var(--clr-primary-3);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #variables #css
ADD COMMENT
Topic
Name
3+4 =