UNPKG

@3xpo/svelte-colour-picker

Version:

A highly customizable color picker component library

26 lines (25 loc) 789 B
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' }, color: { rgb: 'rgb'.toUpperCase(), hsv: 'hsv'.toUpperCase(), hex: 'hex'.toUpperCase() }, changeTo: 'Change to ' }; export const defaultA11yTexts = { contrast: 'Contrast :', nbGradeSummary: (count) => count ? `⚠️ ${count} contrast grade${count === 1 ? '' : 's'} fail${count === 1 ? 's' : ''}` : 'Contrast grade information', guidelines: `Learn more at <a href="https://webaim.org/articles/contrast/" target="_blank">WebAIM contrast guide</a>` };