Skip to content

Instantly share code, notes, and snippets.

@alxjrvs
Created October 8, 2014 02:06
Show Gist options
  • Save alxjrvs/6c3d96c14fa1c9b97f94 to your computer and use it in GitHub Desktop.
Save alxjrvs/6c3d96c14fa1c9b97f94 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.button
Click
.button--error
Error
.button--success
Success
.button--pending
Pending
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
//How to name your variables
// First, create a pallette
$red: #FF0000;
$red-light: #FF4C4C;
$red-dark: #7F2626;
$blue: #0014FF;
$green: #0AFF00;
$white: #fff;
//Then create a semantic pallete for your elements.
$button-background: $red-light;
$button-text: $white;
// then use the semantic variable in your css.
.button {
background-color: $button-background;
color: $button-text;
}
.button {
background-color: #FF4C4C;
color: #fff;
}
.button
Click
.button--error
Error
.button--success
Success
.button--pending
Pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment