()
| 4 | export type { BrandConfig, ThemeColors } |
| 5 | |
| 6 | const getThemeColors = (): ThemeColors => { |
| 7 | return { |
| 8 | primaryColor: |
| 9 | getEnv('NEXT_PUBLIC_BRAND_PRIMARY_COLOR') || defaultBrandConfig.theme?.primaryColor, |
| 10 | primaryHoverColor: |
| 11 | getEnv('NEXT_PUBLIC_BRAND_PRIMARY_HOVER_COLOR') || |
| 12 | defaultBrandConfig.theme?.primaryHoverColor, |
| 13 | accentColor: getEnv('NEXT_PUBLIC_BRAND_ACCENT_COLOR') || defaultBrandConfig.theme?.accentColor, |
| 14 | accentHoverColor: |
| 15 | getEnv('NEXT_PUBLIC_BRAND_ACCENT_HOVER_COLOR') || defaultBrandConfig.theme?.accentHoverColor, |
| 16 | backgroundColor: |
| 17 | getEnv('NEXT_PUBLIC_BRAND_BACKGROUND_COLOR') || defaultBrandConfig.theme?.backgroundColor, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Get branding configuration from environment variables |
no test coverage detected