<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hubl CSS File Structure in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Hubl-CSS-File-Structure/m-p/339855#M16659</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm all for clean and easy to read code,&amp;nbsp;especially for CSS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to structure my CSS files like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.css: (which is required in my base .html file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include './_variables.css' %}&lt;BR /&gt;{% include './_mixins.css' %}
{% include './_grid.css' %}
...&lt;/PRE&gt;&lt;P&gt;_mixins.css:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include './mixins/_grid.css' %}
...&lt;/PRE&gt;&lt;P&gt;And in _grid.css: I want to have access to all the variables in _variables.css and all the included mixins (jinja macros) in mixins/_mixins.css.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not working. I'm getting this error: "Could not resolve function 'x' " x being the function I want to call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use include or import? Neither help in this case though. This is how I structure my SCSS files when I develop in Sass, so I'm very accustomed to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers on this would be greatly appreciated and apologies if this is a duplicate of another post but I haven't found an answer online so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Owen.&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 15:49:18 GMT</pubDate>
    <dc:creator>oevans</dc:creator>
    <dc:date>2020-05-18T15:49:18Z</dc:date>
    <item>
      <title>Hubl CSS File Structure</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-CSS-File-Structure/m-p/339855#M16659</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm all for clean and easy to read code,&amp;nbsp;especially for CSS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to structure my CSS files like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.css: (which is required in my base .html file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include './_variables.css' %}&lt;BR /&gt;{% include './_mixins.css' %}
{% include './_grid.css' %}
...&lt;/PRE&gt;&lt;P&gt;_mixins.css:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% include './mixins/_grid.css' %}
...&lt;/PRE&gt;&lt;P&gt;And in _grid.css: I want to have access to all the variables in _variables.css and all the included mixins (jinja macros) in mixins/_mixins.css.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not working. I'm getting this error: "Could not resolve function 'x' " x being the function I want to call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use include or import? Neither help in this case though. This is how I structure my SCSS files when I develop in Sass, so I'm very accustomed to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers on this would be greatly appreciated and apologies if this is a duplicate of another post but I haven't found an answer online so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Owen.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 15:49:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-CSS-File-Structure/m-p/339855#M16659</guid>
      <dc:creator>oevans</dc:creator>
      <dc:date>2020-05-18T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hubl CSS File Structure</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Hubl-CSS-File-Structure/m-p/339970#M16666</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/126535"&gt;@oevans&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you got any source code and output CSS that we would see? This usually helps quite a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;First&lt;/STRONG&gt; I would check you're output to see how the file is being compiled if at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Second&lt;/STRONG&gt; I would check that your include paths are correct. You get this by right-clicking on the file in the design manager and clicking "Copy Public URL". I'm not sure that the directory dot notation works as this is handled on the backend to ease work for "non-technicals". *speculation*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use &lt;STRONG&gt;include&lt;/STRONG&gt; and not import for hubl generated css.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Third&lt;/STRONG&gt; I work in an almost identical structure, and have no issues. I think your issues stems from the paths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Fourth&lt;/STRONG&gt; and possibly most important when working with hubl and CSS. When you update and save a CSS partial, you will also need to save the CSS master to pull the changes through. Pretty sure the hubl does not compile automatically as it would in a local environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this gets you going! If I can help anymore just let me know!&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 12:36:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Hubl-CSS-File-Structure/m-p/339970#M16666</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-05-28T12:36:09Z</dc:date>
    </item>
  </channel>
</rss>

