From 9cd83db52d4af52973bbeeae28126050e7ba0db0 Mon Sep 17 00:00:00 2001 From: kj Date: Wed, 27 Sep 2023 10:49:21 -0700 Subject: [PATCH] Update theme-color.mjs Co-authored-by: Cole Peters --- theme-color.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme-color.mjs b/theme-color.mjs index 0bbbada..26dee85 100644 --- a/theme-color.mjs +++ b/theme-color.mjs @@ -6,10 +6,10 @@ export default function themeColor({ config }) { const defaultDark = '#343a40' const lightParts = hextohsl(theme['light'] || defaultLight); const darkParts = hextohsl(theme['dark'] || defaultDark) - const accentColor = theme['accent'] || '#663399' - const accentContrastColor = theme['accent-contrast'] || defaultDark - theme['accent'] = theme['accent'] || accentColor - theme['accent-contrast'] = theme['accent-contrast'] || accentContrastColor + const defaultAccent = '#663399' + const defaultAccentContrast = defaultDark + theme['accent'] = theme['accent'] || defaultAccent + theme['accent-contrast'] = theme['accent-contrast'] || defaultAccentContrast function colorSteps(color, name) {