@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

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 }