Open History to see the last commit
1import { flattenThemeColor, type MobileThemeVariables } from "./mobileTheme";
2
3/** Native chip parsers need opaque hex instead of CSS rgba or platform-specific alpha order. */
4export 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}