Skip to content

Commit aa39974

Browse files
authored
improvement(docs): align docs UI with the platform emcn design system (#4962)
* improvement(docs): align docs UI with the platform emcn design system * improvement(docs): build language dropdown options in render scope
1 parent e54daf7 commit aa39974

23 files changed

Lines changed: 706 additions & 648 deletions

apps/docs/app/[lang]/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { i18n } from '@/lib/i18n'
1414
import { serializeJsonLd } from '@/lib/json-ld'
1515
import { source } from '@/lib/source'
1616
import { DOCS_BASE_URL } from '@/lib/urls'
17+
import { season } from '@/app/fonts/season'
1718
import '../global.css'
1819

1920
const inter = Inter({
@@ -84,7 +85,7 @@ export default async function Layout({ children, params }: LayoutProps) {
8485
return (
8586
<html
8687
lang={lang}
87-
className={`${inter.variable} ${geistMono.variable}`}
88+
className={`${inter.variable} ${geistMono.variable} ${season.variable}`}
8889
suppressHydrationWarning
8990
>
9091
<head>
87.5 KB
Binary file not shown.

apps/docs/app/fonts/season.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import localFont from 'next/font/local'
2+
3+
/**
4+
* Season Sans variable font — the platform's UI font, mirrored from
5+
* `apps/sim/app/_styles/fonts/season/season.ts` so docs chip chrome renders
6+
* with the same typeface as the main app. Variable font supports weights
7+
* 300-800.
8+
*/
9+
export const season = localFont({
10+
src: [{ path: './SeasonSansUprightsVF.woff2', weight: '300 800', style: 'normal' }],
11+
display: 'swap',
12+
preload: true,
13+
variable: '--font-season',
14+
fallback: ['system-ui', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans'],
15+
adjustFontFallback: 'Arial',
16+
})

0 commit comments

Comments
 (0)