<?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 Re: Could not resolve function 'color' in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467409#M24227</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/218132"&gt;@pawel_p&lt;/a&gt;&amp;nbsp;, where did you find the `color()` function? You should be able to set the variables like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set header_bg_color = theme.header.background_color.color %}
{% set footer_bg_color = theme.footer.background_color.color %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also access the opacity like this:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set header_bg_opacity = theme.header.background_color.opacity %}
{% set footer_bg_opcaity = theme.footer.background_color.opacity %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 14:51:10 GMT</pubDate>
    <dc:creator>Teun</dc:creator>
    <dc:date>2021-07-27T14:51:10Z</dc:date>
    <item>
      <title>Could not resolve function 'color'</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467390#M24224</link>
      <description>&lt;P&gt;I have an error in my CSS file saying "Could not resolve function 'color'" on the line where I have the theme override specific styles:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/* Theme Override Specific style */
{% set header_bg_color = color(theme.header.background_color) %}
{% set footer_bg_color = color(theme.footer.background_color) %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current setting in fields.json are as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "label": "Website header",
    "name": "header",
    "type": "group",
    "children": [
      {
        "label": "Background color",
        "name": "background_color",
        "type": "color",
        "default": {
          "color": "#EFEFEF",
          "opacity": 100
        }
      }
    ]
  },
  {
    "label": "Website footer",
    "name": "footer",
    "type": "group",
    "children": [
      {
        "label": "Background color",
        "name": "background_color",
        "type": "color",
        "default": {
          "color": "#EFEFEF",
          "opacity": 100
        }
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help if you have an idea why I have these errors: '&lt;SPAN&gt;Error:&lt;/SPAN&gt; Cannot resolve property' and '&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Syntax error&lt;/SPAN&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnak you&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 14:39:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467390#M24224</guid>
      <dc:creator>pawel_p</dc:creator>
      <dc:date>2021-07-27T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve function 'color'</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467409#M24227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/218132"&gt;@pawel_p&lt;/a&gt;&amp;nbsp;, where did you find the `color()` function? You should be able to set the variables like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set header_bg_color = theme.header.background_color.color %}
{% set footer_bg_color = theme.footer.background_color.color %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also access the opacity like this:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set header_bg_opacity = theme.header.background_color.opacity %}
{% set footer_bg_opcaity = theme.footer.background_color.opacity %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 14:51:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467409#M24227</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2021-07-27T14:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve function 'color'</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467425#M24228</link>
      <description>&lt;P&gt;Thanks. I manage to fix that before you sen the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The color() function I saw in a boilerplate theme, when i created a example in a Design Tool.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 15:10:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Could-not-resolve-function-color/m-p/467425#M24228</guid>
      <dc:creator>pawel_p</dc:creator>
      <dc:date>2021-07-27T15:10:30Z</dc:date>
    </item>
  </channel>
</rss>

