ITCSS stands for Inverted Triangle CSS and it helps you make project CSS scalable and maintainable.
One of the key principles of ITCSS is that it separates your CSS codebase into several sections (called layers) which take form of the inverted triangle. These layers are present in Chisel as following folders inside the
Used with preprocessors and contain font, color definitions, etc.
Globally used mixins and functions. It’s important not to output any CSS in the first two layers.
Reset and/or normalize styles, box-sizing definition, etc. This is the first layer which generates actual CSS.
Styling for bare HTML elements (like H1, A, etc.). These come with default styling from the browser so you can redefine them here.
class-based selectors which define undecorated design patterns, for example, media object known from OOCSS
Specific UI components. This is where the majority of your work takes place and our UI components are often composed of Objects and Components
Utilities and helper classes with the ability to override anything which goes before in the triangle, eg. hide helper class
Chisel's addition to the original ITCSS structure. This is where you can place the vendor's specific CSS.
The main file where other stylesheets are imported, does not write styles directly to this file.
When starting to work with ITCSS in Chisel, try to follow the existing code structure and examples.
For more detailed introduction to ITCSS, check out the blog post ITCSS: Scalable and Maintainable CSS Architecture