scss variable to css variable
$color-black: #000000;
body {
--color: #{$color-black};
}
scss variable to css variable
$color-black: #000000;
body {
--color: #{$color-black};
}
SCSS variables
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
scss variables
$base-color: #c6538c;
how to declare a variable in SASS
$variablename: value;
sass variable
$base-color: #c6538c;
$border-dark: rgba($base-color, 0.88);
.alert {
border: 1px solid $border-dark;
}
variables scss
// SCSS variables
$darkcolor: #605C4D;
$large: 350px;
section{
background-color: $darkcolor;
height: $large;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us