Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propose directory structure for CSS files #45

Open
akrawchyk opened this issue Apr 7, 2016 · 1 comment
Open

Propose directory structure for CSS files #45

akrawchyk opened this issue Apr 7, 2016 · 1 comment

Comments

@akrawchyk
Copy link
Contributor

We should provide more structure to the SASS source files directory to bootstrap code organization and be consistent across projects. This should be agnostic to the choice of CSS library we use, however we should definitely take their organization methodology into consideration:

I'm also a fan of SUITCSS's base file for small global adjustments on top of normalize.css.

@heyitsolivia
Copy link

Thinking about something like this— providing just enough structure, but not too much that it gets in the way. Larger projects (like Service Year?) might need more structure but I think that should be decided on a per project basis.

scss/
|
|-- components/              # All reusable components
|   |-- _buttons.scss
|   |-- _header.scss
|   |-- _navigation.scss
|   |-- _typography.scss
|   ...
|
|-- utilities/               # Helper utility classes
|   |-- _spacing.sass
|   |-- _type.scss
|   ...
|
|-- mixins/                  # Sass Mixins
|   |-- _ease-animation.scss
|   |-- _background-cover.sass
|   |-- _type-underline.scss
|   ...
|
|-- _base.scss               # Base layout
|-- _settings.scss           # Settings
`-- app.scss                 # Imports/includes

@akrawchyk akrawchyk changed the title Propose directory structure for SASS files Propose directory structure for CSS files Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants