From 5206ac7188c9eefd6f1d18050e2831b0f10be8ef Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 27 Nov 2022 22:49:16 -0400 Subject: redesign & refinements for sticky layouting --- src/misc-templates.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/misc-templates.js') diff --git a/src/misc-templates.js b/src/misc-templates.js index 2614aac..2275269 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -4,8 +4,6 @@ import {Track, Album} from './data/things.js'; -import {getColors} from './util/colors.js'; - import { empty, unique, @@ -297,15 +295,29 @@ function unbound_generateCoverLink({ // CSS & color shenanigans -function unbound_getThemeString(color, additionalVariables = []) { +function unbound_getThemeString(color, { + getColors, + + additionalVariables = [], +} = {}) { if (!color) return ''; - const {primary, dim, bg} = getColors(color); + const { + primary, + dark, + dim, + bg, + bgBlack, + shadow, + } = getColors(color); const variables = [ `--primary-color: ${primary}`, + `--dark-color: ${dark}`, `--dim-color: ${dim}`, `--bg-color: ${bg}`, + `--bg-black-color: ${bgBlack}`, + `--shadow-color: ${shadow}`, ...additionalVariables, ].filter(Boolean); -- cgit 1.3.0-6-gf8a5