Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
import { useLayoutEffect } from "react";
import { useLocalPreferences } from "@/hooks/useLocalPreferences";
/** Project browser preferences onto text tokens, without scaling the UI or rem. */
export function useReadingTypography(): void {
const { readingTextSize, customReadingTextSize } = useLocalPreferences();
useLayoutEffect(() => {
document.documentElement.dataset.readingTextSize = readingTextSize;
document.documentElement.style.setProperty("--custom-reading-size", `${customReadingTextSize}px`);
}, [readingTextSize, customReadingTextSize]);
}