From accd63d07b5d2ede59d0a117246110be7b535901 Mon Sep 17 00:00:00 2001 From: Thomas Yuill Date: Thu, 16 Oct 2025 13:22:38 -0400 Subject: [PATCH] fix: accent color style application --- lib/utils.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/utils.ts b/lib/utils.ts index 5136555b..c8277283 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -70,16 +70,12 @@ export const getAppConfig = cache(async (headers: Headers): Promise = // generate a hover color for the accent color by mixing it with 20% black export function getStyles(appConfig: AppConfig) { const { accent, accentDark } = appConfig; - const hasCustomAccentColor = - process.env.NODE_ENV === 'development' || accent !== APP_CONFIG_DEFAULTS.accent; - const hasCustomAccentDarkColor = - process.env.NODE_ENV === 'development' || accentDark !== APP_CONFIG_DEFAULTS.accentDark; return [ - hasCustomAccentColor + accent ? `:root { --primary: ${accent}; --primary-hover: color-mix(in srgb, ${accent} 80%, #000); }` : '', - hasCustomAccentDarkColor + accentDark ? `.dark { --primary: ${accentDark}; --primary-hover: color-mix(in srgb, ${accentDark} 80%, #000); }` : '', ]