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 type { AppearanceContrast } from "@akeru/contracts/settings";
export function applyAppearanceContrast(
root: { readonly style: Pick<CSSStyleDeclaration, "setProperty"> },
contrast: AppearanceContrast,
): void {
root.style.setProperty("--appearance-contrast-base", `${Math.min(contrast, 100)}%`);
root.style.setProperty("--appearance-contrast-boost", `${Math.max(contrast - 100, 0)}%`);
root.style.setProperty(
"--appearance-contrast-border-boost",
`${Math.max(contrast - 100, 0) / 4}%`,
);
}