@broxus/js-core
Version:
MobX-based JavaScript Core library
23 lines (22 loc) • 1.05 kB
JavaScript
export const successColor = '#3e8c3e';
export const warningColor = '#fab254';
export const errorColor = '#d33131';
export function labelStyle(color = 'inherit') {
return `
background-color: ${color}50;
border-left: 3px solid ${color};
border-radius: 2px;
display: inline;
font-size: 1em;
font-weight: bold;
line-height: 1rem;
padding: 3px 4px 0 4px`;
}
export const baseLabelStyle = labelStyle('#767676');
export const successLabelStyle = labelStyle(successColor);
export const warningLabelStyle = labelStyle(warningColor);
export const errorLabelStyle = labelStyle(errorColor);
export const successTextStyle = `color: ${successColor}; display: inline; font-weight: 400; font-family: monospace;`;
export const warningTextStyle = `color: ${warningColor}; display: inline; font-weight: 400; font-family: monospace;`;
export const errorTextStyle = `color: ${errorColor}; display: inline; font-weight: 400; font-family: monospace;`;
export const inheritTextStyle = 'color: inherit; display: inline; font-weight: 400; font-family: monospace;';