The best way to control Claude Code, Codex and more from any computer or phone

main
ts 10 lines 506 Bytes
Raw
1 import { flattenThemeColor, type MobileThemeVariables } from "./mobileTheme";
2
3 /** Native chip parsers need opaque hex instead of CSS rgba or platform-specific alpha order. */
4 export function createNativeComposerTheme(theme: MobileThemeVariables) {
5 const surface = flattenThemeColor(theme["--color-composer-surface"], theme["--color-screen"]);
6 return {
7 text: flattenThemeColor(theme["--color-foreground"], surface),
8 placeholder: flattenThemeColor(theme["--color-placeholder"], surface),
9 };
10 }