MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getLogoAccentColor

Function getLogoAccentColor

cli/src/utils/theme-system.ts:98–108  ·  view source on GitHub ↗
(
  themeName: ThemeName,
  env: CliEnv = getCliEnv(),
)

Source from the content-addressed store, hash-verified

96 * Returns the primary green color with appropriate fallback.
97 */
98export function getLogoAccentColor(
99 themeName: ThemeName,
100 env: CliEnv = getCliEnv(),
101): string {
102 const isTruecolor = supportsTruecolor(env)
103 // The primary green color - 'lime' is CSS bright green
104 if (themeName === 'dark') {
105 return isTruecolor ? '#9EFC62' : 'lime'
106 }
107 return isTruecolor ? '#65A83E' : 'green'
108}
109
110const IDE_THEME_INFERENCE = {
111 dark: [

Callers 5

AppFunction · 0.90
LoginModalFunction · 0.90
ProjectPickerScreenFunction · 0.90
FreebuffSupersededScreenFunction · 0.90
WaitingRoomScreenFunction · 0.90

Calls 2

getCliEnvFunction · 0.90
supportsTruecolorFunction · 0.85

Tested by

no test coverage detected