You are free to contribute to Chopstick via GitHub Pull Requests. We have a couple of simple guidelines we try to follow, of which most are taken from the CSS Tricks Sass Style Guide
- @extends
- Regular styles
- @includes
- Nested selectors
Example:
.weather {
@extends %module;
background: #fff;
@include transition(all 0.3s ease);
> h3 {
border-bottom: 1px solid white;
}
}
Never nest more than three levels deep, never nest more than 50 lines long. This keeps code readable and usable.
Only @include
in the global screen.scss file. Never write SCSS directly in screen.scss. Order of importing is always as described in screen.scss
.
Comments get filtered out when compiling. If you do anything that can not be immediately understood: comment it.