diff --git a/frontend/public/index.html b/frontend/public/index.html index 00e577f6..364fb262 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -38,6 +38,9 @@ + + +
diff --git a/frontend/src/app/Main.tsx b/frontend/src/app/Main.tsx index 2021e7a6..e32bcc49 100644 --- a/frontend/src/app/Main.tsx +++ b/frontend/src/app/Main.tsx @@ -100,12 +100,13 @@ function buildMuiTheme(c: ClaudeTokens, mode: 'light' | 'dark') { }, typography: { fontFamily: c.font.sans, - h1: { fontWeight: 600 }, - h2: { fontWeight: 600 }, - h3: { fontWeight: 600 }, - h5: { fontWeight: 600 }, - h6: { fontWeight: 600 }, - button: { textTransform: 'none' as const, fontWeight: 500 }, + h1: { fontFamily: c.font.sans, fontWeight: 700 }, + h2: { fontFamily: c.font.sans, fontWeight: 700 }, + h3: { fontFamily: c.font.sans, fontWeight: 600 }, + h4: { fontFamily: c.font.sans, fontWeight: 600 }, + h5: { fontFamily: c.font.sans, fontWeight: 600 }, + h6: { fontFamily: c.font.sans, fontWeight: 600 }, + button: { textTransform: 'none' as const, fontWeight: 600 }, }, shape: { borderRadius: c.radius.xl, @@ -113,12 +114,22 @@ function buildMuiTheme(c: ClaudeTokens, mode: 'light' | 'dark') { components: { MuiCssBaseline: { styleOverrides: { + html: { + fontFamily: c.font.sans, + }, body: { backgroundColor: c.bg.page, color: c.text.primary, + fontFamily: c.font.sans, scrollbarWidth: 'thin', scrollbarColor: `${c.border.strong} transparent`, }, + '#root': { + fontFamily: c.font.sans, + }, + 'button, input, textarea, select': { + fontFamily: c.font.sans, + }, '*': { scrollbarWidth: 'thin', scrollbarColor: `${c.border.strong} transparent`, diff --git a/frontend/src/app/components/Layout/AppShell.tsx b/frontend/src/app/components/Layout/AppShell.tsx index a0eb15d6..7c26d13e 100644 --- a/frontend/src/app/components/Layout/AppShell.tsx +++ b/frontend/src/app/components/Layout/AppShell.tsx @@ -47,6 +47,7 @@ import { setInstalling } from '@/shared/state/updateSlice'; import { findBrowserByWebContentsId } from '@/shared/browserRegistry'; import { byPreviewRecency } from '@/shared/previewOrder'; import { useClaudeTokens } from '@/shared/styles/ThemeContext'; +import { font } from '@/shared/styles/typography'; import { ErrorSlime } from '@/app/components/feedback/ErrorSlime'; const SIDEBAR_MIN = 160; @@ -584,9 +585,10 @@ const AppShell: React.FC = () => {