svelte-awesome-color-picker
Version:
A highly customizable color picker component library
29 lines (28 loc) • 846 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 ',
swatch: {
ariaTitle: 'saved colors',
ariaLabel: (color) => `select color: ${color}`
}
};
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>`
};