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

const dark = -70

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'
  }
].map(
  (color: IColor): IColor => ({
    ...color,
    darkValue: lightness(color.value, dark).toLowerCase()
  })
)
