use css var for highlighting color

This commit is contained in:
Felix Roos 2023-02-19 20:03:12 +01:00
parent 1e3f09f69b
commit 632e8e9634
4 changed files with 7 additions and 10 deletions

View file

@ -23,7 +23,6 @@ export function MiniRepl({
punchcard,
canvasHeight = 200,
theme,
highlightColor,
}) {
drawTime = drawTime || (punchcard ? [0, 4] : undefined);
const evalOnMount = !!drawTime;
@ -72,7 +71,6 @@ export function MiniRepl({
pattern,
active: started && !activeCode?.includes('strudel disable-highlighting'),
getTime: () => scheduler.now(),
color: highlightColor,
});
// keyboard shortcuts