Updated
#298Added 'disabled' to the list of context classes
hx.palette.context(selection, undefined) would return undefined instead of the selection. This was introduced accidentally as part of 1.3.0. // adds the 'hx-positive' class to the element, and removes all other context classes
hx.palette.context('.my-element', 'positive')// gets the context of the element (by looking at the class of the element)
hx.palette.context('.my-element')// adds the 'hx-text-positive' class to the element, and removes all other text context classes
hx.palette.context('.my-element', 'positive')// gets the context of the element (by looking at the class of the element)
hx.palette.textContext('.my-element')// adds the 'hx-background-positive' class to the element, and removes all other background context classes
hx.palette.context('.my-element', 'positive')// gets the context of the element (by looking at the class of the element)
hx.palette.backgroundContext('.my-element')!important flag to the styles added by palette to make sure when the palette classes are added, the colors are applied.