Search
 
SCRIPT & CODE EXAMPLE
 

CSS

scss variables

$base-color: #c6538c;
Comment

SCSS variables

$font-stack:    Helvetica, sans-serif;
$primary-color: #333;

body {
  font: 100% $font-stack;
  color: $primary-color;
}
Comment

variables scss

// SCSS variables

$darkcolor: #605C4D;
$large: 350px;

section{
	background-color: $darkcolor;
  	height: $large;
}
Comment

scss variables

$base-color: #c6538c;
$border-dark: rgba($base-color, 0.88);

.alert {
  border: 1px solid $border-dark;
}
Comment

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;
}
Comment

variables in sass

$white:: #fff;

body {
  color: $white;
}
Comment

how to set scss variables

$main-background: hsl(233, 47%, 7%);
$card-background: hsl(244, 38%, 16%);
$accent: hsl(277, 64%, 61%);
$primary: hsl(0, 0%, 100%);
$paragraph: hsla(0, 0%, 100%, 0.75);
$stats-heading: hsla(0, 0%, 100%, 0.6);
Comment

how to make a scss variable

$variableName = item

$gray = #404040

body{
	background:$gray; 
}
Comment

PREVIOUS NEXT
Code Example
Css :: bootstrap modal resize with jquery 
Css :: css cell spacing 
Css :: center absolute element 
Css :: how to remove css from element using jquery 
Css :: make hr black 
Css :: how to center a list in html 
Css :: css color black 
Css :: pure css tabs 
Css :: *+* css 
Css :: how to increase text height css 
Css :: css scrollbar width 
Css :: Error: Could not find "stylelint-csstree-validator" 
Css :: lynx install bash 
Css :: css td vertical align 
Css :: css font variant small caps 
Css :: css disabled hover style 
Css :: css change text color 
Css :: had to add a tint to a picture on css 
Css :: webkit box shadow not working 
Css :: add tailwindcss to angular 
Css :: customize scroll bar css 
Css :: flex box writing sideways text top to bottom 
Css :: input of type radio css 
Css :: css clip 
Css :: materialize css 
Css :: padding bottom and top css in same ligne 
Css :: css button style rectangle 
Css :: css animation box shadow 
Css :: scss darken 
Css :: dropdown size based on text 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =