Source: dynamic-data-mapping-form-report-web/src/main/resources/META-INF/resources/js/utils/colors.es.js

/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

const COLORS = [
	'#4b9fff',
	'#ffb46e',
	'#ff5f5f',
	'#50d2a0',
	'#ff73c3',
	'#9be169',
	'#af78ff',
	'#ffd76e',
	'#5fc8ff',
	'#7785ff',
	'#004ad7',
	'#1c5629',
	'#234584',
	'#863a00',
	'#ab1010',
	'#d3d6e0',
	'#0053f0',
	'#226a33',
	'#294f98',
	'#9f4500',
	'#c31212',
	'#e2e4ea',
	'#0b5fff',
	'#287d3c',
	'#2e5aac',
	'#b95000',
	'#da1414',
	'#f1f2f5',
	'#80acff',
	'#5aca75',
	'#89a7e0',
	'#ff8f39',
	'#f48989',
	'#f7f8f9',
	'#b3cdff',
	'#edf9f0',
	'#eef2fa',
	'#fff4ec',
	'#feefef',
	'#393a4a',
];

export default (index) => COLORS[index % COLORS.length];