Source: src/postcss/Common/_colors.css, line 1
1 Structure
We use postcss with a gulp process to create and compile individual CSS files for each project we create.
The steps we take to do this are:
- create a file and name it according to the project.#, eg: zikomo-core.css
- import the post css files we want to include - by only including what the project needs, we can ensure the minimal possible css file size.
- Common classes - these are pre-created classes we can use individually or combined to help crteate the UI we want directly in out html / components
- widgets - these are more specific and detailed BEM classes that require a specific structure. Normally only one widget class (with optional modifier classes) will be used on a parent element, and will affect html tags contained within. See the widgets section for more details.
- Vendor classes - these are for third party plug ins, such as flickity, date pickers etc