@catho/quantum-storybook-ui
Version:
A **Design System** is the complete set of design standards, documentation, and principles along with the toolkit (UI patterns and code components) to achieve those standards. Over time, these 'systems' are growing in popularity - a very popular one is [Q
34 lines (28 loc) • 665 B
JavaScript
class Colors {
static grey = {
light: '#eceff1',
medium: '#d1d8dc',
harder: '#7b909c',
strong: '#526977',
athens: '#f3f3f5'
};
static blue = {
light: '#03a9f4',
sanjuan: '#294661',
bayoux: '#546B81',
curious: '#1a82e2',
selago: '#e8f2fc'
};
static black = '#000000';
static white = '#FFFFFF';
static pink = {
amaranth: '#e01e5a',
}
static hexToRgba(color, opacity) {
const R = parseInt(color.substring(1, 3), 16);
const G = parseInt(color.substring(3, 5), 16);
const B = parseInt(color.substring(5, 7), 16);
return `rgba(${R}, ${G}, ${B}, ${opacity})`;
}
}
export default Colors;