From ae51c76308d410f7618f834541447ce89caf2490 Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 6 Oct 2023 15:49:12 -0700 Subject: [PATCH] Adds back primary for example in form elements --- config.json | 3 ++- theme-color.mjs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 7d231cc..9e3526d 100644 --- a/config.json +++ b/config.json @@ -25,7 +25,8 @@ "theme": { "light": "#f8f9fa", "dark": "#343a40", - "accent": "#007aff" + "accent": "#007aff", + "primary": "#007aff" }, "color": { "error": "#ff3b2f", diff --git a/theme-color.mjs b/theme-color.mjs index 26dee85..21dc76a 100644 --- a/theme-color.mjs +++ b/theme-color.mjs @@ -5,8 +5,7 @@ export default function themeColor({ config }) { const defaultLight = '#f8f9fa' const defaultDark = '#343a40' const lightParts = hextohsl(theme['light'] || defaultLight); - const darkParts = hextohsl(theme['dark'] || defaultDark) - const defaultAccent = '#663399' + const defaultAccent = '#007aff' const defaultAccentContrast = defaultDark theme['accent'] = theme['accent'] || defaultAccent theme['accent-contrast'] = theme['accent-contrast'] || defaultAccentContrast