export const COLORS = [
  "black",
  "brown",
  "red",
  "orange",
  "yellow",
  "green",
  "blue",
  "violet",
  "grey",
  "white",
] as const;

type COLOR = typeof COLORS[number];

export const colorCode = (code: COLOR): number => {
  return COLORS.indexOf(code);
};
