Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Last active May 21, 2023 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/c008c8d0e9c0cee12192373bf77d63a2 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/c008c8d0e9c0cee12192373bf77d63a2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$primary: #334455;
.card {
color: white;
padding: 2rem;
--primary-color: $primary;
}
.card {
--primary-color: #{$primary};
}
.card {
background: var(--primary-color);
}
<div class="card">Card</div>
.card {
color: white;
padding: 2rem;
--primary-color: $primary;
}
.card {
--primary-color: #334455;
}
.card {
background: var(--primary-color);
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment