Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

variable in scss

/*This is done by naming a variable with a dollar symbol $ and then referencing it elsewhere
in your code. */
$primary-color: #24a0ed;

.text {
  color: $primary-color;
}
button {
  color: $primary-color;
  border: 2px solid $primary-color;
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #variable #scss
ADD COMMENT
Topic
Name
6+3 =