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