summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-05 15:10:46 -0500
committerDessalines <tyhou13@gmx.com>2020-03-05 15:10:46 -0500
commit858366c57b959c0b2bc6e2a43ca194084a1ff0d8 (patch)
tree8586bd9ed92d9f62f9e69251e264b738e6c166a6 /ui/src/utils.ts
parent25fa97a20af8ef244bc5e934670a3a81a4eff589 (diff)
Proper comment-node depth coloring.
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index bdd629c7..058be6ae 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -768,6 +768,8 @@ export function postSort(
}
}
+export const colorList: Array<string> = [...Array(10)].map(() => randomHsl());
+
export function randomHsl() {
return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
}