<div class="qm-api-description"><div class="qm-html-paragraph">Adds a background context class to an element. </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-comment">// adds the 'hx-background-positive' class to the element, and removes all other background context classes</span>
hx.palette.context(<span class="hljs-string">'.my-element'</span>, <span class="hljs-string">'positive'</span>)</code></pre></div> </div><