Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

405 B
Raw Blame
export const getGlobalFontStyle = (fonts: Array<{family: string; weight: number}>) => {
    const families = fonts.map((font) => CSS.escape(font.family)).join(", ");
    return families ? `\n:root:root { --b3-font-family: var(--b3-font-family-emoji-reset), ${families}, var(--b3-font-family-default, sans-serif) }
body, button, input, select, textarea { font-weight: ${fonts[0].weight || 400} }` : "";
};