@@ -67,6 +67,7 @@ import * as DateTime from "../utils/date-and-time";
6767import * as Arrays from "../utils/arrays" ;
6868import * as Numbers from "@monkeytype/util/numbers" ;
6969import { blendTwoHexColors } from "../utils/colors" ;
70+ import { typedKeys } from "../utils/misc" ;
7071
7172class ChartWithUpdateColors <
7273 TType extends ChartType = ChartType ,
@@ -1158,8 +1159,17 @@ async function updateColors<
11581159 const maincolor = await ThemeColors . get ( "main" ) ;
11591160 const errorcolor = await ThemeColors . get ( "error" ) ;
11601161 const textcolor = await ThemeColors . get ( "text" ) ;
1161-
1162- const gridcolor = blendTwoHexColors ( bgcolor , subaltcolor , 0.75 ) ;
1162+ const gridcolor = subaltcolor ;
1163+
1164+ for ( const scaleKey of typedKeys ( chart . scales ) ) {
1165+ //@ts -expect-error cant figure out this type but it works fine
1166+ const scale = chart . getScale ( scaleKey ) as CartesianScaleOptions ;
1167+ scale . grid . color = gridcolor ;
1168+ scale . grid . tickColor = gridcolor ;
1169+ scale . grid . borderColor = gridcolor ;
1170+ scale . ticks . color = subcolor ;
1171+ scale . title . color = subcolor ;
1172+ }
11631173
11641174 //@ts -expect-error its too difficult to figure out these types, but this works
11651175 chart . data . datasets [ 0 ] . borderColor = ( ctx ) : string => {
0 commit comments