This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Sass framework
girlwithglasses edited this page Oct 27, 2016
·
2 revisions
Chopstick Boilerplate uses chopstick-sass as the Sass framework. This is loaded as a dependency with NPM. When you run gulp
or gulp watch
the files are copied into the vendor
folder.
We use the following layers according to the ITCSS structure.
- Settings: contains global variables and config switches to get you started. These can be overwritten in your project. Simply duplicate the variables you want to change or replace this file.
- Tools: contains mixins and functions.
- Generic: contains ground-zero styles (Normalize.css, resets, box-sizing)
- Elements: contains unclassed HTML elements (type selectors)
- Objects: contains cosmetic-free design patterns
- Components: contains designed components, chunks of UI (these are maintained in the boilerplate as they are specific to this)
- Plugins: contains third-party plugin styles
- Utilities: contains helper classes
- Shame: nasty, hacky, quick-fix CSS
We try to keep the code as modular as possible so you can comment out what you don’t use.
If you want to change something within the Sass framework you have 3 options:
- Change the settings and default appearance by overriding the variables in the settings file of your project.
- Create a pull request on the source code in the chopstick-sass repository.
- Copy the original file into your own project. This means you will have to do manual updates in the future.