import IColor from '@/models/IColor'
import lightness from 'lightness'

const dark = -70
const light = dark * -1

export default [
  {
    label: 'Bleu',
    value: '#bfccdd'
  },
  {
    label: 'Rose',
    value: '#e6ccc6'
  },
  {
    label: 'Orange',
    value: '#ed9374'
  },
  {
    label: 'Jaune',
    value: '#f1dbbd'
  },
  {
    label: 'Vert',
    value: '#cfe4d9'
  },
  {
    label: 'Violet',
    value: '#b487fd'
  },
  {
    label: 'Gris',
    value: '#efedf5'
  },
  {
    label: 'Acier',
    value: '#566274'
  },
  {
    label: 'Vert Brasil',
    value: '#009c3b'
  },
  {
    label: 'Jaune Brasil',
    value: '#ffdf00'
  },
  {
    label: 'Rouge sombre pastel',
    value: '#c03b22'
  },
  {
    label: `Perle d'eau`,
    value: '#76c5bf'
  },
  {
    label: 'Expresso',
    value: '#ab7642'
  },
  {
    label: 'Menthe',
    value: '#b3ffe1'
  },
  {
    label: 'Neige',
    value: '#fff6f6'
  },
  {
    label: 'Rose lavande',
    value: '#eea1eb'
  }
].map(
  (color: IColor): IColor => ({
    ...color,
    darkValue: lightness(color.value, dark).toLowerCase(),
    lightValue: lightness(color.value, light).toLowerCase()
  })
)
