Bootcards – cards-based UI with dual-pane capability for mobile and desktop Ladda for Bootstrap – button loading animation
CSS     Design     Development     Pre-processor     SASS    

Organizing Your CSS / SCSS Code

19. December 2015

I almost completely switched to Sass in the past year. So organzing my CSS code has become a mission of mine πŸ™‚

Structure is especially needed, when you are not the only one working on the design. So that everyone on the team can easily understand and contribute with ease. There are never too many files, as files get combined anyway.

Make your own life easier and for those you work with!

Currently applying the following structure on newer projects:

  1. BASEΒ holds files like resets, typography and foundation structures.
  2. COMPONENTS holds specific module definitions, like buttons, navigation etc.
  3. UTILS holds my own functions, mixins and configuration for the whole project.
  4. LAYOUT holds the main files defining the different layout areasΒ / grid of the project.
  5. SECTIONS holds the definition of pages or sub sections defined.
  6. THEMES holds files for theme switches or front / backend layouts.
  7. VENDORS holds those files that are related to external includes.

Which architecture fits your project & team will vary.

Enjoy coding …

Leave a Reply

Be the First to Comment!

Notify of