{"id":14956,"date":"2016-02-02T06:30:42","date_gmt":"2016-02-02T13:30:42","guid":{"rendered":"http:\/\/vanseodesign.com\/?p=14956"},"modified":"2015-12-30T11:50:09","modified_gmt":"2015-12-30T18:50:09","slug":"sass-directory-structures","status":"publish","type":"post","link":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/","title":{"rendered":"Sass: Directory Structures That Help You Maintain Your Code"},"content":{"rendered":"<p>As projects grows larger, the need to modularize directory and file structure increases. This is particularly true if you want to create code that can be used in other projects, in components and patterns across one or more projects, or in templates you share with others.<\/p>\n<p><!--more--><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png\" alt=\"Hexanol Structure\" width=\"660\" height=\"342\" class=\"aligncenter size-full wp-image-14958\" srcset=\"https:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png 660w, https:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol-300x155.png 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><figcaption>Structure of a 2-Hexanol molecule<\/figcaption><\/figure>\n<p>Last week I talked about <a href=\"http:\/\/vanseodesign.com\/css\/sass-the-import-directive\/\">the @import directive<\/a> and how you could use it to create a more maintainable file and folder structure. I showed you one simple structure I learned and I promised to show you some other structures I\u2019ve come across.<\/p>\n<p>I have a few to share and I\u2019ll talk about some of the commonalities between them to help you choose one or develop a structure that works for you.<\/p>\n<h2 id=\"simplestructure\">Simple Structure<\/h2>\n<p>I hope you don\u2019t mind if I start with the <a href=\"http:\/\/thesassway.com\/beginner\/how-to-structure-a-sass-project\">simple directory structure<\/a> I mentioned last week. Here it is as a reminder.<\/p>\n<ul>\n<li>modules\/\n<ul>\n<li>_color.scss<\/li>\n<li>_typography.scss<\/li>\n<\/ul>\n<\/li>\n<li>partials\/\n<ul>\n<li>_base.scss<\/li>\n<li>_navigation.scss<\/li>\n<\/ul>\n<\/li>\n<li>vendor\/\n<ul>\n<li>_ico-moon.scss<\/li>\n<\/ul>\n<\/li>\n<li>main.scss<\/li>\n<\/ul>\n<p>The vendor folder holds 3rd party code. The partials folder is for code you want to include and compile. The modules folder is for code you want to include, but don\u2019t want to compile.<\/p>\n<p>Note that this structure allows you to distinguish between your code and 3rd party code and it allows you to distinguish between code you want to compile and code you don\u2019t want to compile. That\u2019s what this organization does.<\/p>\n<p>The names of the files and folders can be changed to whatever you want. The key is this structure allows you to keep your code separate from 3rd party code and it allows you to separate your code between that which should be compiled into CSS and that which shouldn\u2019t be compiled.<\/p>\n<h2 id=\"the7-1pattern\">The 7&#8211;1 Pattern<\/h2>\n<p>Another structure I came across is the <a href=\"http:\/\/www.sitepoint.com\/architecture-sass-project\/\">7&#8211;1 pattern from Hugo Giraudel<\/a>. Here\u2019s how you might set up a directory along with some examples of files that would be in each folder.<\/p>\n<ul>\n<li>base\/\n<ul>\n<li>_reset.scss<\/li>\n<li>_typography.scss<\/li>\n<li>_color.scss<\/li>\n<\/ul>\n<\/li>\n<li>components\/\n<ul>\n<li>_buttons.scss<\/li>\n<li>_navigation.scss<\/li>\n<li>_gallery.scss<\/li>\n<\/ul>\n<\/li>\n<li>layout\/\n<ul>\n<li>_header.scss<\/li>\n<li>_grid.scss<\/li>\n<li>_sidebar.scss<\/li>\n<\/ul>\n<\/li>\n<li>pages\/\n<ul>\n<li>_home.scss<\/li>\n<li>_about.scss<\/li>\n<li>_contact.scss<\/li>\n<\/ul>\n<\/li>\n<li>themes\/\n<ul>\n<li>_theme.scss<\/li>\n<li>_admin.scss<\/li>\n<\/ul>\n<\/li>\n<li>helpers\/ (or utils\/)\n<ul>\n<li>_variables.scss<\/li>\n<li>_functions.scss<\/li>\n<li>_mixins.scss<\/li>\n<\/ul>\n<\/li>\n<li>vendors\/\n<ul>\n<li>_bootstrap.scss<\/li>\n<li>_jquery-ui.scss<\/li>\n<\/ul>\n<\/li>\n<li>main.scss<\/li>\n<\/ul>\n<p>The <strong>base folder<\/strong> holds boilerplate content. It holds the styles every page of your site should receive.<\/p>\n<p>The <strong>components folder<\/strong> holds all your micro layout files. Your styles for buttons and navigation and similar page components.<\/p>\n<p>Your macro layout files go in the <strong>layouts folder<\/strong>. Styles for major sections of the layout like a header or footer and styles for a grid system would belong here.<\/p>\n<p>If you have styles specific to individual pages on your site, you can place them in the <strong>pages folder<\/strong>. For example it\u2019s not uncommon for the home page of your site to require page specific styles that no other page receives.<\/p>\n<p>The <strong>themes folder<\/strong> holds files that create project specific themes. For example one section of your site might use a color scheme with primary colors, while another section builds a color scheme based on neutrals and earth tones.<\/p>\n<p>The <strong>helpers or utils folder<\/strong> holds Sass tools, helper files, variables, and config files. These files won\u2019t be compiled.<\/p>\n<p>Finally the <strong>vendors folder<\/strong> holds 3rd party code and the <strong>main.scss<\/strong> file uses @import statements to include the other files.<\/p>\n<p>Here are some additional resources for this pattern<\/p>\n<ul>\n<li><a href=\"http:\/\/sass-guidelin.es\/#the-7-1-pattern\">The 7&#8211;1 pattern<\/a><\/li>\n<li><a href=\"https:\/\/scotch.io\/tutorials\/aesthetic-sass-1-architecture-and-style-organization\">Aesthetic Sass 1: Architecture and Style Organization<\/a><\/li>\n<\/ul>\n<h2 id=\"smacssbemarchitecture\">SMACSS\/BEM Architecture<\/h2>\n<p>A number of people have written about setting up directory structures based on either a <a href=\"http:\/\/vanseodesign.com\/css\/smacss-introduction\/\">SMACSS<\/a> or <a href=\"http:\/\/vanseodesign.com\/css\/block-element-modifier\/\">BEM architecture<\/a>. I want to present four different, albeit similar, structures that build on each other and also incorporate some ideas from the 7&#8211;1 pattern.<\/p>\n<p>Ryan Burgess leveraged some ideas from SMACSS when setting up <a href=\"https:\/\/blog.evernote.com\/tech\/2014\/12\/17\/evernote-handles-sass-architecture\/\">this simple structure<\/a> for Evernote. They used four folders, Base, Layout, Modules, and Themes<\/p>\n<ul>\n<li><strong>Base<\/strong> holds vendor code, helpers, mixins, variables, and general selector styles (body, h1, p, a, etc.).<\/li>\n<li><strong>Layout<\/strong> holds macro layout styles.<\/li>\n<li><strong>Modules<\/strong> holds micro layouts styles.<\/li>\n<li><strong>Themes<\/strong> holds any type of page specific styles.<\/li>\n<\/ul>\n<p>Notice the distinction between micro and macro layout as well as the distinction for page specific styles and a general catchall for files with non-compiled code and general styles.<\/p>\n<p><a href=\"http:\/\/geek-rocket.de\/frontend-development\/scss-styleguide-with-bem-oocss-smacss\/\">Tim Hartmann<\/a> and <a href=\"http:\/\/bramsmulders.com\/how-i-improved-my-workflow-with-smacss-sass.html\">Bram Smulders<\/a> shared similar four folder structures.<\/p>\n<ul>\n<li><strong>Base<\/strong> holds vendor code, helpers, mixins, variables, and general selector styles (body, h1, p, a, etc.).<\/li>\n<li><strong>Layout<\/strong> holds macro layout styles.<\/li>\n<li><strong>Modules<\/strong> holds micro layout styles.<\/li>\n<li><strong>State<\/strong> holds state specific code, how buttons look on hover and similar.<\/li>\n<\/ul>\n<p>Again there\u2019s the distinction between macro and micro layout styles as well as a folder that holds non-compiled code and general styles. The difference here is a State folder for state styles instead of a Themes folder for page specific styles.<\/p>\n<p><a href=\"https:\/\/mattstauffer.co\/blog\/organizing-css-oocss-smacss-and-bem\">Matt Staffer<\/a> shared the organization his company used to help them keep a SMACSS-inspired structure.<\/p>\n<ul>\n<li><strong>_base.scss<\/strong> is for vendor code and styles on base elements (html, body, ul, p, etc.).<\/li>\n<li><strong>_layout.scss<\/strong> is for macro layout styles.<\/li>\n<li><strong>_modules.scss<\/strong> is for micro layout styles.<\/li>\n<li><strong>_other.scss<\/strong> is for whatever doesn\u2019t fit in first three.<\/li>\n<li><strong>_shame.scss<\/strong> is for code you feel ashamed of and plan to improve.<\/li>\n<\/ul>\n<p>It\u2019s similar to the previous two structures, though note that these are files and not folders. The <strong>_other.scss<\/strong> file is the catchall and there\u2019s a <strong>_shame.scss<\/strong> file to nag you into improving the code it contains.<\/p>\n<p>One last SMACSS based organization comes from <a href=\"http:\/\/4digits.net\/blog\/sass\/modular-css-organisation-with-smacss-sass.html\">Johannes Dreller<\/a>. It adds another directory to the ones we\u2019ve seen so far. Here\u2019s Johannes\u2019 structure along with some files each might hold.<\/p>\n<ul>\n<li>vendor\/\n<ul>\n<li>_bootstrap.scss<\/li>\n<li>_jquery-ui.scss<\/li>\n<\/ul>\n<\/li>\n<li>base\/\n<ul>\n<li>_functions.scss<\/li>\n<li>_mixins.scss<\/li>\n<li>_variables.scss<\/li>\n<li>_base.scss<\/li>\n<\/ul>\n<\/li>\n<li>layout\/\n<ul>\n<li>_grid.scss<\/li>\n<li>_header.scss<\/li>\n<li>_sidebar.scss<\/li>\n<\/ul>\n<\/li>\n<li>module\/\n<ul>\n<li>_navigations.scss<\/li>\n<li>_buttons.scss<\/li>\n<li>_forms.scss<\/li>\n<\/ul>\n<\/li>\n<li>state\/\n<ul>\n<li>_state.scss<\/li>\n<\/ul>\n<\/li>\n<li>hacks\/\n<ul>\n<li>_shame.scss<\/li>\n<\/ul>\n<\/li>\n<li>main.scss<\/li>\n<\/ul>\n<p>The addition is the vendor folder, which is used to hold 3rd party content. The layout and module folders still distinguish macro and micro layout styles. State changes go in the state folder. Non-compiled code and general styles go in the base folder. The hacks folder takes the shame file and there\u2019s a main.scss to @import all the necessary files.<\/p>\n<h2 id=\"others\">Others<\/h2>\n<p>Matthieu Larcher &amp; Fabien Zibi present <a href=\"http:\/\/docssa.info\/#fileStructure\">DoCSSa\u2019s four folder organization<\/a>. <\/p>\n<ul>\n<li>base\/\n<ul>\n<li>__base.scss<\/li>\n<li>_config.scss<\/li>\n<li>project\/<\/li>\n<li>utils\/<\/li>\n<\/ul>\n<\/li>\n<li>components\/\n<ul>\n<li>_components.scss<\/li>\n<li>button\/<\/li>\n<li>tabs\/<\/li>\n<\/ul>\n<\/li>\n<li>specifics\/\n<ul>\n<li>_specifics.scss<\/li>\n<li>modal.scss<\/li>\n<li>navigation.scss<\/li>\n<\/ul>\n<\/li>\n<li>vendor\/\n<ul>\n<li>_vendor.scss<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>This structure is similar to the others I\u2019ve mentioned. The base folder holds boilerplate styles in the project folder and Sass tools in the utils folder. The files directly in the base folder are for code needed in both subfolders.<\/p>\n<p>Components is for micro layout and specifics is a catchall for most everything else. In both cases the files directly in the folder are for those used in the subfolders. Finally there\u2019s a vendor folder for 3rd party code.<\/p>\n<p>The last structure I\u2019ll mention comes from <a href=\"https:\/\/medium.com\/@wanderingmatt\/a-little-structure-for-your-large-sass-project-7fe19ab647fa\">Matthew Anderson<\/a> and it adds some new ideas for organizing the directory.<\/p>\n<ul>\n<li>framework\/<\/li>\n<li>modules\/<\/li>\n<li>vendor\/<\/li>\n<li>sections\/<\/li>\n<li>_bootstrap.scss<\/li>\n<li>_section.scss<\/li>\n<\/ul>\n<p>First the familiar. The vendor folder holds 3rd part code, modules holds partials that contain reusable UI patterns and components. The framework folder holds all project wide and ideally project agnostic code.<\/p>\n<p>The sections folder is similar to the shame or hacks folder. It\u2019s not necessarily code you\u2019re ashamed of, but it\u2019s code you\u2019ve yet to optimize or refactor or generally improve.<\/p>\n<p>The two files are new. _bootstrap.scss isn\u2019t from Twitter\u2019s Bootstrap. It\u2019s a file that bootstraps the necessary files through @import statements.<\/p>\n<p>_section.scss represents any file will become a compiled CSS stylesheet. These files will import _bootstrap.scss as well as any other project files necessary.<\/p>\n<h2 id=\"closingthoughts\">Closing Thoughts<\/h2>\n<p>I hope seeing examples of how others organize their Sass files and folders helps you understand some of the ways people <a href=\"http:\/\/vanseodesign.com\/css\/scalable-maintainable\/\">modularize their code<\/a> to keep it organized and maintainable.<\/p>\n<p>What I hope you to take away from the structures I\u2019ve mentioned is the idea that there\u2019s no single way to <a href=\"http:\/\/vanseodesign.com\/css\/how-to-organize-css-files\/\">organize your stylesheets<\/a> and directories, though there are common themes in the organization others have come up with.<\/p>\n<ul>\n<li>Micro and macro layout styles<\/li>\n<li>Boilerplate (global site) styles<\/li>\n<li>Tools and utility files<\/li>\n<li>Page and site theme specific styles<\/li>\n<li>3rd party code<\/li>\n<li>Shame files<\/li>\n<\/ul>\n<p>These are some of the common things that others think worth keeping separate. You might decide you don\u2019t need to keep macro and micro layout styles separate and prefer to keep them together. You might not use 3rd part code on a project. See these commonalities as suggestions and not anything you absolutely have to use.<\/p>\n<p>You can organize your files and folders however you think best. Just keep in mind that you should organize them in some meaningful way that helps you find and isolate your styles and code in a way that makes sense to you.<\/p>\n<p>Next week I want to talk about another <a href=\"http:\/\/vanseodesign.com\/css\/sass-at-rules-and-directives\/\">Sass directive<\/a>, @extend. It allows a selector to inherit styles from other selectors so you can <a href=\"http:\/\/vanseodesign.com\/css\/dry-principles\/\">write DRYer code<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As projects grows larger, the need to modularize directory and file structure increases. This is particularly true if you want to create code that can be used in other projects, in components and patterns across one or more projects, or in templates you share with others.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[98,126,280],"series":[],"class_list":["post-14956","post","type-post","status-publish","format-standard","hentry","category-css","tag-modular","tag-sass","tag-structure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sass: Directory Structures To Maintain Your Code<\/title>\n<meta name=\"description\" content=\"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sass: Directory Structures To Maintain Your Code\" \/>\n<meta property=\"og:description\" content=\"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/\" \/>\n<meta property=\"og:site_name\" content=\"Vanseo Design\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-02T13:30:42+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png\" \/>\n<meta name=\"author\" content=\"Steven Bradley\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Steven Bradley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/\"},\"author\":{\"name\":\"Steven Bradley\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/#\\\/schema\\\/person\\\/470cda6ba835fb52596b2e26bcbd8fe4\"},\"headline\":\"Sass: Directory Structures That Help You Maintain Your Code\",\"datePublished\":\"2016-02-02T13:30:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/\"},\"wordCount\":1532,\"commentCount\":13,\"image\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/vanseodesign.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/hexanol.png\",\"keywords\":[\"modular\",\"sass\",\"structure\"],\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/\",\"url\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/\",\"name\":\"Sass: Directory Structures To Maintain Your Code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/vanseodesign.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/hexanol.png\",\"datePublished\":\"2016-02-02T13:30:42+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/#\\\/schema\\\/person\\\/470cda6ba835fb52596b2e26bcbd8fe4\"},\"description\":\"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#primaryimage\",\"url\":\"http:\\\/\\\/vanseodesign.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/hexanol.png\",\"contentUrl\":\"http:\\\/\\\/vanseodesign.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/hexanol.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/sass-directory-structures\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vanseodesign.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/vanseodesign.com\\\/css\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sass: Directory Structures That Help You Maintain Your Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/#website\",\"url\":\"https:\\\/\\\/vanseodesign.com\\\/\",\"name\":\"Vanseo Design\",\"description\":\"Helping you build search engine friendly websites\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vanseodesign.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vanseodesign.com\\\/#\\\/schema\\\/person\\\/470cda6ba835fb52596b2e26bcbd8fe4\",\"name\":\"Steven Bradley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"\\\/\\\/www.gravatar.com\\\/avatar\\\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png\",\"url\":\"\\\/\\\/www.gravatar.com\\\/avatar\\\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png\",\"contentUrl\":\"\\\/\\\/www.gravatar.com\\\/avatar\\\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png\",\"caption\":\"Steven Bradley\"},\"sameAs\":[\"https:\\\/\\\/www.vanseodesign.com\\\/about\\\/\"],\"url\":\"https:\\\/\\\/vanseodesign.com\\\/author\\\/vangogh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sass: Directory Structures To Maintain Your Code","description":"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/","og_locale":"en_US","og_type":"article","og_title":"Sass: Directory Structures To Maintain Your Code","og_description":"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.","og_url":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/","og_site_name":"Vanseo Design","article_published_time":"2016-02-02T13:30:42+00:00","og_image":[{"url":"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png","type":"","width":"","height":""}],"author":"Steven Bradley","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Steven Bradley","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#article","isPartOf":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/"},"author":{"name":"Steven Bradley","@id":"https:\/\/vanseodesign.com\/#\/schema\/person\/470cda6ba835fb52596b2e26bcbd8fe4"},"headline":"Sass: Directory Structures That Help You Maintain Your Code","datePublished":"2016-02-02T13:30:42+00:00","mainEntityOfPage":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/"},"wordCount":1532,"commentCount":13,"image":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#primaryimage"},"thumbnailUrl":"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png","keywords":["modular","sass","structure"],"articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/","url":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/","name":"Sass: Directory Structures To Maintain Your Code","isPartOf":{"@id":"https:\/\/vanseodesign.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#primaryimage"},"image":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#primaryimage"},"thumbnailUrl":"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png","datePublished":"2016-02-02T13:30:42+00:00","author":{"@id":"https:\/\/vanseodesign.com\/#\/schema\/person\/470cda6ba835fb52596b2e26bcbd8fe4"},"description":"Meaningful directory structures can help you maintain your code. Here are a few ways you can organize the files and folders in your Sass project.","breadcrumb":{"@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vanseodesign.com\/css\/sass-directory-structures\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#primaryimage","url":"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png","contentUrl":"http:\/\/vanseodesign.com\/blog\/wp-content\/uploads\/2015\/12\/hexanol.png"},{"@type":"BreadcrumbList","@id":"https:\/\/vanseodesign.com\/css\/sass-directory-structures\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vanseodesign.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/vanseodesign.com\/css\/"},{"@type":"ListItem","position":3,"name":"Sass: Directory Structures That Help You Maintain Your Code"}]},{"@type":"WebSite","@id":"https:\/\/vanseodesign.com\/#website","url":"https:\/\/vanseodesign.com\/","name":"Vanseo Design","description":"Helping you build search engine friendly websites","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vanseodesign.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vanseodesign.com\/#\/schema\/person\/470cda6ba835fb52596b2e26bcbd8fe4","name":"Steven Bradley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"\/\/www.gravatar.com\/avatar\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png","url":"\/\/www.gravatar.com\/avatar\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png","contentUrl":"\/\/www.gravatar.com\/avatar\/0f47bf400c3c1bafe06ee2884405baaa?s=96&#038;r=pg&#038;d=https%3A%2F%2Fvanseodesign.com%2Fblog%2Fwp-content%2Fthemes%2Fvanseo-design%2Fimages%2Fgravatar.png","caption":"Steven Bradley"},"sameAs":["https:\/\/www.vanseodesign.com\/about\/"],"url":"https:\/\/vanseodesign.com\/author\/vangogh\/"}]}},"_links":{"self":[{"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/posts\/14956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/comments?post=14956"}],"version-history":[{"count":3,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/posts\/14956\/revisions"}],"predecessor-version":[{"id":14964,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/posts\/14956\/revisions\/14964"}],"wp:attachment":[{"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/media?parent=14956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/categories?post=14956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/tags?post=14956"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/vanseodesign.com\/wp-json\/wp\/v2\/series?post=14956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}