import Color from "color"; // export const green = '#35D721'; // export const red = '#DD1A10'; // export const green = '#009f49' // export const red = '#BD0D26' export const green = '#20A55D' export const red = '#B22235' export const yellow = '#FFDE00' export const orange = '#F58A00' export const blue = '#1666EB' export const gray = '#969696' export const purple = '#892ABF' export const white = '#FFFFFF' export const black = '#000000' export const colorNames = ['blue', 'gray', 'red', 'green', 'orange', 'purple', 'yellow'] // adjust this number upwards to make the TradingView palette brighter and downwards for darker export const lightMiddleShadeIndex = 9 export const darkMiddleShadeIndex = 9 export const numShades = 20 // if you change this, see vuetify.js colors that hardcode indexes // these parameters are expressed in terms of numShades: export const surfaceShade = 3 export const printContrast = 15; // vuetify darken. values are added/substracted from the middleShadeIndex. use positive numbers here. export const colorContrast = 4; export const darken1 = 3; export const lighten1 = 3; export const darken2 = 6; export const lighten2 = 6; function shadesOf(rgb, middleShadeIndex) { const c = new Color(rgb) const lights = [] const darks = [] const numLightShades = middleShadeIndex + 1 const numDarkShades = numShades - numLightShades for (let j=0; j