A good practise for:
- If you want to customize Bootstrap from SASS ?
- If you only want to work on your own files, not core-modification. ?
- If you want to create multiple-themes for bootstrap ?
- If you want a better way to manage your SASS files ?
bootstrap-sass-theme-seed is a seed for custom theme for twitter bootstrap with SASS
- Twitter bootstrap: 3.1.1
- Bootstrap SASS: 3.1.1 (https://github.com/twbs/bootstrap-sass)
- Clone the repo to
publicfolder - Sass compiling
sass --watch --sourcemap sass:css--watch: listening for changes and auto-update css files--sourcemap: for debuging with Chrome https://coderwall.com/p/tjbktwsass:css: compile from directorysassto directorycss
-
Copy a new theme base
dustin.scssfromsass\themes\base.scss -
Create theme folder (same as theme name) at
sass\themes\ -
Add override sass files from bootstrap then include it after the bootstrap include in theme base
// Core variables and mixins @import "../bootstrap/variables"; @import "basic/variables"; //override some variables of bootstrap @import "../bootstrap/mixins";
Note that should remove !default for variables.