// adds the 'hx-background-positive' class to the element, and removes all other background context classes
hx.palette.context('.my-element', 'positive')
hx.palette.backgroundContext('.my-element', undefined) // removes the background context class
hx.palette.backgroundContext('.my-element', 'default')
hx.palette.backgroundContext('.my-element', 'positive')
hx.palette.backgroundContext('.my-element', 'warning')
hx.palette.backgroundContext('.my-element', 'negative')
hx.palette.backgroundContext('.my-element', 'info')
hx.palette.backgroundContext('.my-element', 'action')
hx.palette.backgroundContext('.my-element', 'complement')
hx.palette.backgroundContext('.my-element', 'contrast')
hx.palette.backgroundContext('.my-element', 'disabled')
// gets the context of the element (by looking at the class of the element)
hx.palette.backgroundContext('.my-element')
// adds the 'hx-border-positive' class to the element, and removes all other border context classes
hx.palette.context('.my-element', 'positive')
hx.palette.borderContext('.my-element', undefined) // removes the border context class
hx.palette.borderContext('.my-element', 'default')
hx.palette.borderContext('.my-element', 'positive')
hx.palette.borderContext('.my-element', 'warning')
hx.palette.borderContext('.my-element', 'negative')
hx.palette.borderContext('.my-element', 'info')
hx.palette.borderContext('.my-element', 'action')
hx.palette.borderContext('.my-element', 'complement')
hx.palette.borderContext('.my-element', 'contrast')
hx.palette.borderContext('.my-element', 'disabled')
// gets the context of the element (by looking at the class of the element)
hx.palette.borderContext('.my-element')
// adds the 'hx-positive' class to the element, and removes all other context classes
hx.palette.context('.my-element', 'positive')
hx.palette.context('.my-element', 'positive')
hx.palette.context('.my-element', 'warning')
hx.palette.context('.my-element', 'negative')
hx.palette.context('.my-element', 'info')
hx.palette.context('.my-element', 'action')
hx.palette.context('.my-element', 'complement')
hx.palette.context('.my-element', 'contrast')
hx.palette.context('.my-element', 'disabled')
// 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')
hx.palette.textContext('.my-element', undefined) // removes the text context class
hx.palette.textContext('.my-element', 'default')
hx.palette.textContext('.my-element', 'positive')
hx.palette.textContext('.my-element', 'warning')
hx.palette.textContext('.my-element', 'negative')
hx.palette.textContext('.my-element', 'info')
hx.palette.textContext('.my-element', 'action')
hx.palette.textContext('.my-element', 'complement')
hx.palette.textContext('.my-element', 'contrast')
hx.palette.textContext('.my-element', 'disabled')
// gets the context of the element (by looking at the class of the element)
hx.palette.textContext('.my-element')