svelte-awesome-color-picker
Version:
A highly customizable color picker component library
25 lines (24 loc) • 735 B
JavaScript
export const defaultTexts = {
label: {
h: 'hue channel',
s: 'saturation channel',
v: 'brightness channel',
r: 'red channel',
g: 'green channel',
b: 'blue channel',
a: 'alpha channel',
hex: 'hex color',
withoutColor: 'without color'
},
color: {
rgb: 'rgb',
hsv: 'hsv',
hex: 'hex'
},
changeTo: 'change to '
};
export const defaultA11yTexts = {
contrast: 'contrast :',
nbGradeSummary: (count) => count ? `⚠️ ${count} contrast grade${count && 's'} fail` : 'Contrast grade information',
guidelines: `Learn more at <a href="https://webaim.org/articles/contrast/" target="_blank">WebAIM contrast guide</a>`
};