« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/colors.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/colors.js b/src/util/colors.js
index 3a7ce8f3..f568557a 100644
--- a/src/util/colors.js
+++ b/src/util/colors.js
@@ -17,5 +17,9 @@ export function getColors(primary) {
     const dim = `hsl(${Math.round(h)}deg, ${Math.round(s * 50)}%, ${Math.round(l * 80)}%)`;
     const bg = `hsla(${Math.round(h)}deg, ${Math.round(s * 15)}%, 12%, 0.80)`;
 
-    return {primary, dim, bg};
+    return {
+        primary, dim, bg,
+        rgb: [r, g, b],
+        hsl: [h, s, l],
+    };
 }