Sass is the CSS preprocessor. Autoprefixer is also included.
ITCSS is the chosen CSS architecture.
settings
: Global variables, site-wide settings, config switches, etc.tools
: Site-wide mixins and functions.generic
: Low-specificity, far-reaching rulesets (e.g. resets).elements
: the main HTML elements ( base.scss
wil contain the generic styleguide andstructure.scss
most of the used elements).objects
: Common Objects, abstractions, and design patterns.components
: Discrete, complete chunks of UI.utilities
: High-specificity, very explicit selectors. Overrides and helper classes (e.g. .u-hidden {}
)We use BEM syntax.
.block .block__element --modifier
o-
: Objectsc-
: Componentsu-
: Utilitiesis-
, has-
: a temporary, optional state or conditionjs-
: applies a javascript behaviourfx-
: applies animations or visual effectsName the images always in lower case because the server could not recognize camel case or upper case.