@atlaskit/lozenge
Version:
A lozenge is a visual indicator used to highlight an item's status for quick recognition.
10 lines • 333 B
JavaScript
// extract the category and key from the resolved color
export const getThemeStyles = resolvedColor => {
const isAccent = resolvedColor.startsWith('accent-');
const category = isAccent ? 'accent' : 'semantic';
const key = isAccent ? resolvedColor.replace('accent-', '') : resolvedColor;
return {
category,
key
};
};