Skip to content

Instantly share code, notes, and snippets.

@cemeng
Created June 25, 2012 22:41
Show Gist options
  • Save cemeng/2991909 to your computer and use it in GitHub Desktop.
Save cemeng/2991909 to your computer and use it in GitHub Desktop.
Structuring CSS

Based on Octopress:

Alternative 1

Top Level

stylesheets/application.scss -> includes everything on base

Base

  • stylesheets/base/theme.scss -> define colors
  • stylesheets/base/layout.scss -> layouts
  • stylesheets/base/typography.scss -> fonts
  • stylesheets/base/utilities.scss -> contains functions and mixins

Modules

  • stylesheets/modules/invoice.scss
  • stylesheets/modules/catalogues.scss

Thoughts

Maybe it's too granular - for the base at least.

@chuckd
Copy link

chuckd commented Jun 26, 2012

application

components/
maybe modules -> pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment