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

Function cloneChatTheme

cli/src/utils/theme-system.ts:1057–1067  ·  view source on GitHub ↗
(input: ChatTheme)

Source from the content-addressed store, hash-verified

1055 * Properly handles nested markdown configuration
1056 */
1057export const cloneChatTheme = (input: ChatTheme): ChatTheme => ({
1058 ...input,
1059 markdown: input.markdown
1060 ? {
1061 ...input.markdown,
1062 headingFg: input.markdown.headingFg
1063 ? { ...input.markdown.headingFg }
1064 : undefined,
1065 }
1066 : undefined,
1067})
1068
1069/**
1070 * Resolve a theme color value with optional fallback

Callers 1

initializeThemeStoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected