geddski / csstyle

MOVED TO https://github.com/csstyle/csstyle a modern approach for crafting beautifully maintainable stylesheets
http://csstyle.io
Other
850 stars 34 forks source link

Sass structure #51

Closed GesJeremie closed 9 years ago

GesJeremie commented 9 years ago

I wanted to share with you the sass structure i'm using with csstyle. I wanted some feedbacks about the "idea".

screen shot 2015-06-26 at 04 50 22

I work always like that:

1 - I do the html layout of the page with a grid system like bootstrap grid. 2 - I create my base components under the components folder and I include them in the html layout. (When I start a new project I have always my default components from previous projects, it's a good foundation ^^') 3 - After that I put in the html the contexts. For example in the screenshot I have a contexts/home/_footer.sass which means I will style the component footer in the home page. I use the @include location(home_footer) system for that.

Like that I still "atomic". I don't put the mess in my base components with 22 options, I just use the convention to render a component following a context.

What do you think guys ?