Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | export const TERMINAL_THEMES = ["default", "grok", "claude"] as const |
| 2 | |
| 3 | export type TerminalTheme = (typeof TERMINAL_THEMES)[number] |
| 4 | |
| 5 | export const TERMINAL_THEME_LABELS: Record<TerminalTheme, string> = { |
| 6 | default: "Default", |
| 7 | grok: "Grok", |
| 8 | claude: "Claude", |
| 9 | } |
| 10 | |
| 11 | export function terminalThemeClass(theme: TerminalTheme = "default") { |
| 12 | return theme === "default" ? "terminal-theme-default" : `terminal-theme-${theme}` |
| 13 | } |
| 14 | |
| 15 | export function terminalThemeLightClass(theme: TerminalTheme = "default") { |
| 16 | return theme === "default" ? "terminal-theme-light" : `terminal-theme-${theme}-light` |
| 17 | } |
| 18 | |
| 19 | export function terminalThemeClasses( |
| 20 | theme: TerminalTheme = "default", |
| 21 | variant: "dark" | "light" = "dark" |
| 22 | ) { |
| 23 | return [ |
| 24 | "terminal-theme", |
| 25 | terminalThemeClass(theme), |
| 26 | variant === "light" ? terminalThemeLightClass(theme) : null, |
| 27 | ].filter(Boolean) as string[] |
| 28 | } |