import Color from "color"; // export const green = '#35D721'; // export const red = '#DD1A10'; export const green = '#009f49' export const red = '#BD0D26' 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' // adjust this number upwards to make the TradingView palette brighter and downwards for darker const lightMiddleShadeIndex = 9 const darkMiddleShadeIndex = 9 const numShades = 20 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