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 :: linear-gradient tailwind 
Css :: add border to png image using css 
Css :: text background image css 
Css :: css set text color 
Css :: style input field css 
Css :: css 4 modal 
Css :: how to draw rhombus in css 
Css :: flexbox 
Css :: css infinite horizontal scroll 
Css :: scale textarea 
Css :: html style input number buttons 
Css :: npm ERR! 404 Not Found - GET https://registry.npmjs.org/taiwindcss - Not found 
Css :: box shadow 2 sides only 
Css :: gap between two flex items 
Css :: add .css to CKEDITOR 
Css :: rainbow text shadow animation 
Css :: remove black shadow from border css 
Css :: translate in 3d css 
Css :: transition for css 
Css :: difference between inline block and inline-block 
Css :: css toggle switch 
Css :: up arrow css 
Css :: css id selector 
Css :: put a background image in css with absolute layout 
Css :: flexbox css properties 
Css :: how to give a background color strip in html and css 
Css :: css play button on image 
Css :: border bottom css 
Css :: andy bells css reset 
Css :: css folded corner 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =