Gists for Make Your CSS Variable Names Suck Less on Fixate's blog.
Last active
May 10, 2016 22:57
-
-
Save larrybotha/ae524a3acc39eeb48d360ae0e86eb991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ff-base: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
$ff-alt-alpha: 'Open Sans', sans-serif; | |
$ff-alt-beta: 'Roboto', sans-serif; | |
$ff-icon: 'My Icon Font'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* general...? What if we want 'specific' variables, then? */ | |
$general-heading-color: #3f444a; | |
$general-text-color: darken(#677581, 5%); | |
$general-transition: all 0.3s; | |
/* primary / nav / default - WHAT?! */ | |
$font-family-primary: "Open Sans", sans-serif; | |
$font-family-nav: Roboto, sans-serif; | |
$font-family-default: "Helvetica Neue", Helvetica, Arial, sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { font-size: $fs-h1;} | |
h2 { font-size: $fs-h2;} | |
h3 { font-size: $fs-h3;} | |
h4 { font-size: $fs-h4;} | |
h5 { font-size: $fs-h5;} | |
h6 { font-size: $fs-h6;} | |
.title { font-size: $fs-h1;} | |
.sub-title { font-size: $fs-h3;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* our base color, with one tint, and one shade - body and typogaphry is generally the base colour */ | |
$clr-base: #666; | |
$clr-base-lt: #999; | |
$clr-base-dk: #333; | |
/* primary brand color - skyblue - with shades and tints via Sass functions */ | |
$clr-primary: skyblue; | |
$clr-primary-lt: lighten($clr-primary, 5%); | |
$clr-primary-ltr: lighten($clr-primary, 10%); | |
$clr-primary-dk: darken($clr-primary, 5%); | |
$clr-primary-dkr: darken($clr-primary, 10%); | |
/* secondary brand color - hotpink - with shades and tints via Sass functions */ | |
$clr-secondary: hotpink; | |
$clr-secondary-lt: lighten($clr-secondary, 5%); | |
$clr-secondary-ltr: lighten($clr-secondary, 10%); | |
$clr-secondary-dk: darken($clr-secondary, 5%); | |
$clr-secondary-dkr: darken($clr-secondary, 10%); | |
/* neutrals */ | |
$clr-ntrl-min: #fff; | |
$clr-ntrl-max: #000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* base font size - applied at body / html level */ | |
$fs-base: 16px; | |
/* larger than heading font sizes */ | |
$fs-giga: 80px; | |
$fs-mega: 70px; | |
$fs-kilo: 60px; | |
/* heading font sizes */ | |
$fs-h1: 36px; | |
$fs-h2: 32px; | |
$fs-h3: 28px; | |
$fs-h4: 24px; | |
$fs-h5: 20px; | |
$fs-h6: 18px; | |
/* smaller than heading font sizes */ | |
$fs-milli: 14px; | |
$fs-micro: 10px; | |
$fs-nano: 8px; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment