Created
August 15, 2012 15:24
-
-
Save mikefowler/3361006 to your computer and use it in GitHub Desktop.
Sass Theming Structure
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
/** | |
* The result of this file structure is ONE *.css file per theme. Making a global change | |
* to _base or _config partial will update all themes that inherit from them. #win | |
*/ | |
@import 'config'; | |
/** | |
* Global | |
*/ | |
body { | |
background-color: $background-color; | |
color: $body-copy-color; | |
} |
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
// Colors | |
$background-color: #eee !default; | |
$body-copy-color: #222 !default; |
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 overrides | |
$background-color: #ccc; | |
$body-copy-color: #111; | |
// Inherit from base... | |
@import 'base'; | |
/** | |
Theme-specific CSS goes here: modules, widgets, plugins, whatever... | |
**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment