Skip to content

Instantly share code, notes, and snippets.

@JohnAlbin
Last active December 12, 2015 06:19
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 JohnAlbin/4727999 to your computer and use it in GitHub Desktop.
Save JohnAlbin/4727999 to your computer and use it in GitHub Desktop.
Sass is for Superman – Example 1: Variables and color functions
/**
* @file
* Sass is for Superman - Example 1: Variables and color functions
*/
$blue: rgb(0, 121, 178); /* Create a variable. */
.example {
color: $blue; /* Use a variable */
}
$blue : rgba(#0079b2, 0.5);
$dark-blue : darken(blue, 10%);
.example-2 {
color: $dark-blue;
background-color: $blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment