@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
19 lines • 815 B
JavaScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable filenames/match-exported */
import { blueGrey, common, grey } from '@mui/material/colors';
import range from 'lodash/range';
// An array of 18 hex color strings.
export var DEFAULT_CHART_COLORS = range(18).map(function (i) {
var colorPalettes = [blueGrey, grey];
var paletteIndex = Math.floor(i / 9);
var colorIndex = (i % 9) * 100 + 100; // Color index will be between 100 - 900
var currentPalette = colorPalettes[paletteIndex % colorPalettes.length];
return currentPalette[colorIndex] || common.black;
});
export default DEFAULT_CHART_COLORS;
//# sourceMappingURL=DEFAULT_CHART_COLORS.js.map