« 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/colors.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/colors.js')
-rw-r--r--src/util/colors.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/util/colors.js b/src/util/colors.js
index 01c55024..3a7ce8f3 100644
--- a/src/util/colors.js
+++ b/src/util/colors.js
@@ -19,31 +19,3 @@ export function getColors(primary) {
 
     return {primary, dim, bg};
 }
-
-export function getLinkThemeString(color) {
-    if (!color) return '';
-
-    const { primary, dim } = getColors(color);
-    return `--primary-color: ${primary}; --dim-color: ${dim}`;
-}
-
-export function getThemeString(color, additionalVariables = []) {
-    if (!color) return '';
-
-    const { primary, dim, bg } = getColors(color);
-
-    const variables = [
-        `--primary-color: ${primary}`,
-        `--dim-color: ${dim}`,
-        `--bg-color: ${bg}`,
-        ...additionalVariables
-    ].filter(Boolean);
-
-    if (!variables.length) return '';
-
-    return (
-        `:root {\n` +
-        variables.map(line => `    ` + line + ';\n').join('') +
-        `}`
-    );
-}