MCPcopy Index your code
hub / github.com/simstudioai/sim / getThemeColors

Function getThemeColors

apps/sim/ee/whitelabeling/branding.ts:6–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export type { BrandConfig, ThemeColors }
5
6const 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

Callers 1

getBrandConfigFunction · 0.85

Calls 1

getEnvFunction · 0.90

Tested by

no test coverage detected