Skip to content

Commit f04718d

Browse files
fix: accent color style application
1 parent a3c3c2c commit f04718d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ export const getAppConfig = cache(async (headers: Headers): Promise<AppConfig> =
7070
// generate a hover color for the accent color by mixing it with 20% black
7171
export function getStyles(appConfig: AppConfig) {
7272
const { accent, accentDark } = appConfig;
73-
const hasCustomAccentColor =
74-
process.env.NODE_ENV === 'development' || accent !== APP_CONFIG_DEFAULTS.accent;
75-
const hasCustomAccentDarkColor =
76-
process.env.NODE_ENV === 'development' || accentDark !== APP_CONFIG_DEFAULTS.accentDark;
73+
const hasCustomAccentColor = 'accent' in appConfig;
74+
const hasCustomAccentDarkColor = 'accentDark' in appConfig;
7775

7876
return [
7977
hasCustomAccentColor

0 commit comments

Comments
 (0)