Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import { Schema } from "effect";
import { useCSSVariable } from "uniwind";
const decodeThemeColor = Schema.decodeUnknownSync(Schema.Union([Schema.String, Schema.Undefined]));
/**
* Typed wrapper around `useCSSVariable` that returns an optional color string for use
* in React Native style props (backgroundColor, tintColor, etc.).
*
* Usage: `const color = useThemeColor("--color-icon");`
*/
export function useThemeColor(variable: `--color-${string}`): string | undefined {
return decodeThemeColor(useCSSVariable(variable));
}