( themeName: ThemeName, env: CliEnv = getCliEnv(), )
| 81 | * In light mode: black (#000000 or 'black') |
| 82 | */ |
| 83 | export function getLogoBlockColor( |
| 84 | themeName: ThemeName, |
| 85 | env: CliEnv = getCliEnv(), |
| 86 | ): string { |
| 87 | const isTruecolor = supportsTruecolor(env) |
| 88 | if (themeName === 'dark') { |
| 89 | return isTruecolor ? '#ffffff' : 'white' |
| 90 | } |
| 91 | return isTruecolor ? '#000000' : 'black' |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Get the accent color for the logo based on theme and terminal capabilities. |
no test coverage detected