Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: drive UI font size through a typography scale instead of the root font size (#7359)
Michael Han8aaf2f78ebcd
diff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.ymlindex 0ad55ebd6de..97eb07b2d8c 100644--- a/.github/workflows/studio-ui-smoke.yml+++ b/.github/workflows/studio-ui-smoke.yml@@ -231,6 +231,15 @@ jobs:mkdir -p logs/playwright_extrapython tests/studio/playwright_extra_ui.py+ - name: UI font size scaling regression (Playwright)+ env:+ BASE_URL: http://127.0.0.1:18894+ STUDIO_PW: ${{ env.STUDIO_EXTRA_NEW_PW }}+ PW_ART_DIR: logs/playwright_fontscale+ run: |+ mkdir -p logs/playwright_fontscale+ python tests/studio/playwright_ui_font_scale.py+- name: Stop second Unslothif: always()run: |@@ -352,6 +361,7 @@ jobs:logs/playwrightlogs/playwright-permissions-*logs/playwright_extra+ logs/playwright_fontscalelogs/playwright_modelcfglogs/playwright_imelogs/studio-permissions-*.logdiff --git a/studio/frontend/src/app/provider.tsx b/studio/frontend/src/app/provider.tsxindex 275c3c6623a..e6c89b9cd7a 100644--- a/studio/frontend/src/app/provider.tsx+++ b/studio/frontend/src/app/provider.tsx@@ -213,7 +213,7 @@ function TauriUpdateLayer({}return (- <div className="pointer-events-none fixed bottom-4 right-4 z-[9998] flex w-[calc(100vw-32px)] max-w-[400px] flex-col items-stretch gap-2">+ <div className="pointer-events-none fixed bottom-4 right-4 z-[9998] flex w-[calc(100vw-2rem)] max-w-[400px] flex-col items-stretch gap-2"><UpdateBannerstatus={update.status}info={update.info}@@ -263,8 +263,8 @@ const MAC_NATIVE_CHROME_STYLE = {const CUSTOM_CHROME_STYLE = {"--studio-titlebar-height": "0px","--studio-custom-titlebar-height": "34px",- "--studio-sidebar-expanded-width": "280px",- "--studio-sidebar-collapsed-width": "48px",+ "--studio-sidebar-expanded-width": "17.5rem",+ "--studio-sidebar-collapsed-width": "3rem","--studio-startup-top-inset": "42px","--studio-content-top-inset": "34px","--studio-hidden-route-top-inset": "34px",@@ -380,7 +380,7 @@ function TauriWrapper({ children }: { children: ReactNode }) {{children}{/* One bottom-right stack so overlays never overlap; they stack with agap, download panel anchored at the corner with banners above. */}- <div className="pointer-events-none fixed bottom-4 right-4 z-[9998] flex w-[calc(100vw-32px)] max-w-[400px] flex-col items-stretch gap-2">+ <div className="pointer-events-none fixed bottom-4 right-4 z-[9998] flex w-[calc(100vw-2rem)] max-w-[400px] flex-col items-stretch gap-2"><WebUpdateBannerpositioned={false}enabled={!WEB_UPDATE_HIDDEN_ROUTES.has(pathname)}diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex 4ba22d48345..a6f64243ad1 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -321,7 +321,7 @@ function NavItem({className="sidebar-nav-btn h-[33px] rounded-full gap-[8.5px] pl-3 pr-2.5 font-medium group-data-[collapsible=icon]:px-2.5 group-data-[collapsible=icon]:!w-[32px] group-data-[collapsible=icon]:mx-auto"><HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-icon! shrink-0 group-hover/menu-button:animate-icon-pop" />- <span className="text-[0.90625rem] leading-[1.1875rem] tracking-nav">{label}</span>+ <span className="text-ui-14p5 leading-ui-19 tracking-nav">{label}</span>{spinner && (<Spinner className="ml-auto size-3.5 shrink-0 text-muted-foreground group-data-[collapsible=icon]:hidden" />)}@@ -904,7 +904,7 @@ export function AppSidebar() {? "sidebar-row-action group-hover/project-chat-item:opacity-100 group-hover/project-chat-item:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto": "sidebar-row-action group-hover/recent-item:opacity-100 group-hover/recent-item:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto";const buttonClass = cn(- "sidebar-nav-btn h-[33px] cursor-pointer rounded-full pr-4 text-[0.90625rem] leading-[1.1875rem] tracking-nav font-medium",+ "sidebar-nav-btn h-[33px] cursor-pointer rounded-full pr-4 text-ui-14p5 leading-ui-19 tracking-nav font-medium",// pl-3 (12px) over the content's pl-1.5 (6px) = 18px, aligning the// title with the nav items above.variant === "project" ? "pl-[39px]" : "pl-3",@@ -939,7 +939,7 @@ export function AppSidebar() {aria-label={translate("shell.dialog.renameChat.placeholder")}className={cn(// No pill or box; edit in place as plain highlighted text.- "text-foreground h-[33px] w-full border-0 bg-transparent pr-4 text-[0.90625rem] leading-[1.1875rem] font-medium tracking-nav outline-none",+ "text-foreground h-[33px] w-full border-0 bg-transparent pr-4 text-ui-14p5 leading-ui-19 font-medium tracking-nav outline-none",variant === "project" ? "pl-[39px]" : "pl-3",)}/>@@ -1185,16 +1185,16 @@ export function AppSidebar() {tabIndex={chatDisabled ? -1 : undefined}>{/* Logo lockup follows the UI font size at half rate:- base + (root - 16px) / 2, written as (base - 8)px + 0.5rem. */}+ base + (root scale - 1) * 8px. Exact base sizes at 16px. */}<imgsrc="/circle-logo-small.png"alt="Unsloth"- className="h-[calc(26px+0.5rem)] w-[calc(26px+0.5rem)] rounded-full object-cover"+ className="h-[calc(26px+0.5rem*var(--ui-font-scale,1))] w-[calc(26px+0.5rem*var(--ui-font-scale,1))] rounded-full object-cover"/>- <span className="font-heading text-[calc(13px+0.5rem)] font-semibold tracking-[0em] leading-none text-black dark:text-white dark:tracking-[0.02em]">+ <span className="font-heading text-[calc(13px+0.5rem*var(--ui-font-scale,1))] font-semibold tracking-[0em] leading-none text-black dark:text-white dark:tracking-[0.02em]">unsloth</span>- <span className="nav-badge ml-0.5 inline-flex items-center justify-center rounded-full border border-nav-beta-border px-[5px] pt-[3px] pb-[2px] text-[calc(0px+0.5rem)] font-medium leading-none tracking-[0.04em] text-nav-fg-muted antialiased subpixel-antialiased shadow-[0_1px_2px_rgba(0,0,0,0.06)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]">+ <span className="nav-badge ml-0.5 inline-flex items-center justify-center rounded-full border border-nav-beta-border px-[5px] pt-[3px] pb-[2px] text-[calc(0.5rem*var(--ui-font-scale,1))] font-medium leading-none tracking-[0.04em] text-nav-fg-muted antialiased subpixel-antialiased shadow-[0_1px_2px_rgba(0,0,0,0.06)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]">{t("shell.beta")}</span></Link>@@ -1221,7 +1221,7 @@ export function AppSidebar() {hidden={isMobile}>{t("shell.navigation.search")}- <kbd className="rounded bg-black/10 px-1 py-px text-[0.625rem] font-medium leading-none dark:bg-white/15">+ <kbd className="rounded bg-black/10 px-1 py-px text-ui-10 font-medium leading-none dark:bg-white/15">{isMacPlatform ? "⌘K" : "Ctrl+K"}</kbd></TooltipContent>@@ -1538,7 +1538,7 @@ export function AppSidebar() {className="sidebar-nav-btn h-[33px] rounded-full gap-[8.5px] pl-3 pr-2.5 font-medium group-hover/recent-item:pr-16 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-8"><HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon! shrink-0" />- <span className="truncate text-[0.90625rem] leading-[1.1875rem] tracking-nav">{project.name}</span>+ <span className="truncate text-ui-14p5 leading-ui-19 tracking-nav">{project.name}</span></SidebarMenuButton>{/* New chat in this project */}<button@@ -1632,7 +1632,7 @@ export function AppSidebar() {// Show more would otherwise match the chat rows.className="sidebar-nav-btn h-[30px] rounded-full pl-9 pr-4 font-medium text-nav-fg-muted!">- <span className="text-[0.8125rem] leading-[1.125rem] tracking-nav">+ <span className="text-ui-13 leading-ui-18 tracking-nav">{showAll ? "Show less" : "Show more"}</span></SidebarMenuButton>@@ -1711,7 +1711,7 @@ export function AppSidebar() {><SidebarMenuButtonisActive={isActiveRun}- className="sidebar-nav-btn h-auto flex-col items-start gap-0.5 py-[5px] rounded-[14px] pl-3 pr-7 text-[0.90625rem] tracking-nav font-medium"+ className="sidebar-nav-btn h-auto flex-col items-start gap-0.5 py-[5px] rounded-[14px] pl-3 pr-7 text-ui-14p5 tracking-nav font-medium"onClick={() => {setSelectedHistoryRunId(run.id);// From Recipes/Export, jump to Train so the run's@@ -1731,7 +1731,7 @@ export function AppSidebar() {<span className="truncate">{getTrainingRunDisplayTitle(run)}</span>- <span className="ml-auto mr-0.5 shrink-0 text-[0.625rem] text-muted-foreground">+ <span className="ml-auto mr-0.5 shrink-0 text-ui-10 text-muted-foreground">{formatRelativeShort(run.started_at)}</span></div>@@ -1832,11 +1832,11 @@ export function AppSidebar() {/></span><div className="flex min-w-0 flex-col gap-px leading-tight group-data-[collapsible=icon]:hidden">- <span className="truncate font-heading text-[0.84375rem] font-semibold text-nav-fg">+ <span className="truncate font-heading text-ui-13p5 font-semibold text-nav-fg">{t("shell.updateAvailable")}</span>{updateVersion && (- <span className="truncate text-[0.71875rem] text-muted-foreground">+ <span className="truncate text-ui-11p5 text-muted-foreground">v{updateVersion}</span>)}@@ -1873,8 +1873,8 @@ export function AppSidebar() {{/* min-w-0 so long names truncate instead of overflowing;pr on the button reserves room for the settings cog */}<div className="flex min-w-0 flex-1 flex-col gap-px leading-tight group-data-[collapsible=icon]:hidden">- <span className="truncate font-heading text-[0.84375rem] tracking-[0.025em] dark:tracking-[0.04em] font-semibold text-nav-fg">{displayTitle}</span>- <span className="truncate text-[0.71875rem] tracking-nav text-muted-foreground">Unsloth</span>+ <span className="truncate font-heading text-ui-13p5 tracking-[0.025em] dark:tracking-[0.04em] font-semibold text-nav-fg">{displayTitle}</span>+ <span className="truncate text-ui-11p5 tracking-nav text-muted-foreground">Unsloth</span></div></SidebarMenuButton></DropdownMenuTrigger>@@ -1882,7 +1882,7 @@ export function AppSidebar() {side="top"align="center"sideOffset={8}- className="app-user-menu menu-soft-surface-up ring-0 w-[256px] px-2.5 py-2.5 font-heading rounded-[20px] border-0"+ className="app-user-menu menu-soft-surface-up ring-0 w-[16rem] px-2.5 py-2.5 font-heading rounded-[20px] border-0"><DropdownMenuGroup><DropdownMenuItemdiff --git a/studio/frontend/src/components/assistant-ui/audio-player.tsx b/studio/frontend/src/components/assistant-ui/audio-player.tsxindex 18f5fe8ddde..51ea6464986 100644--- a/studio/frontend/src/components/assistant-ui/audio-player.tsx+++ b/studio/frontend/src/components/assistant-ui/audio-player.tsx@@ -100,7 +100,7 @@ export const AudioPlayer: FC<AudioPlayerProps> = ({ src }) => {onChange={handleSeek}className="h-1.5 w-full cursor-pointer accent-primary"/>- <div className="flex justify-between text-[0.625rem] text-muted-foreground">+ <div className="flex justify-between text-ui-10 text-muted-foreground"><span>{formatTime(progress)}</span><span>{formatTime(duration)}</span></div>diff --git a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsxindex 5dd4f1c91df..8b2e9e37ea6 100644--- a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx+++ b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx@@ -207,7 +207,7 @@ function DetailRow({}) {if (value == null || value === "") return null;return (- <div className="grid grid-cols-[136px_minmax(0,1fr)] items-start gap-3 text-[0.8125rem]">+ <div className="grid grid-cols-[8.5rem_minmax(0,1fr)] items-start gap-3 text-ui-13"><span className="text-muted-foreground">{label}</span><spanclassName={cn(@@ -336,7 +336,7 @@ export const MessageResponseDetailsSheet: FC<{<Sheet open={open} onOpenChange={onOpenChange}><SheetContentside="right"- className="w-[min(448px,100vw)] p-0 sm:max-w-[448px]"+ className="w-[min(28rem,100vw)] p-0 sm:max-w-[28rem]"><SheetHeader className="border-b p-4"><SheetTitle className="flex items-center gap-2 pr-10 font-heading text-base">diff --git a/studio/frontend/src/components/assistant-ui/message-timing.tsx b/studio/frontend/src/components/assistant-ui/message-timing.tsxindex c602a776cff..e0a111820bd 100644--- a/studio/frontend/src/components/assistant-ui/message-timing.tsx+++ b/studio/frontend/src/components/assistant-ui/message-timing.tsx@@ -86,7 +86,7 @@ export const MessageTiming: FC<{data-slot="message-timing-trigger"aria-label="Message timing"className={cn(- "flex items-center rounded-[10px] p-1 font-mono text-chat-icon-fg text-[0.8125rem] tabular-nums transition-colors hover:bg-chat-icon-bg-hover hover:text-chat-icon-fg-hover",+ "flex items-center rounded-[10px] p-1 font-mono text-chat-icon-fg text-ui-13 tabular-nums transition-colors hover:bg-chat-icon-bg-hover hover:text-chat-icon-fg-hover",className,)}>diff --git a/studio/frontend/src/components/assistant-ui/reasoning.tsx b/studio/frontend/src/components/assistant-ui/reasoning.tsxindex d869cc93ef5..97891e93581 100644--- a/studio/frontend/src/components/assistant-ui/reasoning.tsx+++ b/studio/frontend/src/components/assistant-ui/reasoning.tsx@@ -163,7 +163,7 @@ function ReasoningContent({<CollapsibleContentdata-slot="reasoning-content"className={cn(- "aui-reasoning-content relative overflow-hidden text-foreground/85 text-[0.84375rem] outline-none",+ "aui-reasoning-content relative overflow-hidden text-foreground/85 text-ui-13p5 outline-none","group/collapsible-content ease-out","data-[state=closed]:animate-collapsible-up","data-[state=open]:animate-collapsible-down",diff --git a/studio/frontend/src/components/assistant-ui/sources.tsx b/studio/frontend/src/components/assistant-ui/sources.tsxindex dfc2a19c593..3a7bf14e453 100644--- a/studio/frontend/src/components/assistant-ui/sources.tsx+++ b/studio/frontend/src/components/assistant-ui/sources.tsx@@ -52,7 +52,7 @@ function SourceIcon({<spandata-slot="source-icon-fallback"className={cn(- `flex ${sizeClass} shrink-0 items-center justify-center rounded-sm bg-muted font-medium text-[0.625rem]`,+ `flex ${sizeClass} shrink-0 items-center justify-center rounded-sm bg-muted font-medium text-ui-10`,className,)}{...props}diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 588e56e2410..ff1b87873ab 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -961,9 +961,9 @@ export const Thread: FC<{<ThreadPrimitive.RootclassName="aui-root aui-thread-root @container relative flex min-h-0 min-w-0 flex-1 basis-0 flex-col overflow-hidden"style={{- ["--thread-max-width" as string]: "768px",+ ["--thread-max-width" as string]: "48rem",["--thread-content-max-width" as string]:- "calc(var(--thread-max-width) - 24px)",+ "calc(var(--thread-max-width) - 1.5rem)",}}onDragEnter={onDragEnter}onDragOver={onDragOver}@@ -1142,14 +1142,14 @@ const GeneratedImageViewportOverlay: FC<{/></div><div- className="w-full max-w-[min(100%,736px)] shrink-0 text-center"+ className="w-full max-w-[min(100%,46rem)] shrink-0 text-center"title={overlay.title}><p className="truncate text-xs font-semibold text-foreground/80">Generated image</p>{overlay.metadata ? (- <p className="truncate text-[0.6875rem] font-medium text-muted-foreground">+ <p className="truncate text-ui-11 font-medium text-muted-foreground">{overlay.metadata}</p>) : null}@@ -1390,7 +1390,7 @@ const ComposerAnimated: FC<{disableQueue?: boolean;}> = ({ disabled, threadId, menuSide, disableQueue }) => {return (- <div className="relative mx-auto min-w-0 w-full max-w-[736px]">+ <div className="relative mx-auto min-w-0 w-full max-w-[46rem]"><div className="relative z-10 w-full"><Composerdisabled={disabled}@@ -1570,18 +1570,6 @@ const Composer: FC<{const t = setTimeout(() => writeComposerDraft(draftKey, composerText), 300);return () => clearTimeout(t);}, [composerText, draftKey]);- // Without this the restore effect above puts the sent text back when the- // runtime rebinds on the first message.- const draftKeyRef = useRef(draftKey);- useEffect(() => {- draftKeyRef.current = draftKey;- }, [draftKey]);- const clearStoredDraft = useCallback(() => {- const key = draftKeyRef.current;- if (key) {- writeComposerDraft(key, "");- }- }, []);// react-textarea-autosize re-measures only on value change or window resize,// not on the width swap from expanding, so it keeps the taller height and// leaves a stray blank row. Nudge a resize whenever input width changes.@@ -1732,10 +1720,9 @@ const Composer: FC<{setPendingSend(false);dismissWaitToast();if (text.trim().length > 0 || attachments.length > 0) {- clearStoredDraft();aui.composer().send();}- }, [pendingSend, indexingActive, aui, clearStoredDraft, dismissWaitToast]);+ }, [pendingSend, indexingActive, aui, dismissWaitToast]);// Drop any queued send + toast on unmount (e.g. thread switch).useEffect(@@ -1778,7 +1765,6 @@ const Composer: FC<{flushResourcesSync(() => {aui.composer().setText("");});- clearStoredDraft();startPromptQueue([queuedPrompt],createPromptQueueTarget(),@@ -1812,7 +1798,6 @@ const Composer: FC<{closeOverlay();return;}- clearStoredDraft();setImageToolsEnabled(true);setPendingImageEditReference({threadId: overlay.threadId ?? referenceThreadId,@@ -1830,15 +1815,11 @@ const Composer: FC<{);});closeOverlay();- return;}-- clearStoredDraft();},[aui,canQueueCurrentPrompt,- clearStoredDraft,closeOverlay,composerText,createPromptQueueTarget,@@ -1940,7 +1921,6 @@ const Composer: FC<{flushResourcesSync(() => {aui.composer().setText("");});- clearStoredDraft();startPromptQueue([queuedPrompt], createPromptQueueTarget(), true);}}onSendClick={interceptSend}@@ -3317,7 +3297,7 @@ const PromptQueueStack: FC<{ queueThreadIds: string[] }> = ({</Button></div>) : (- <div className="grid h-10 grid-cols-[minmax(0,1fr)_auto_32px] items-center gap-2.5">+ <div className="grid h-10 grid-cols-[minmax(0,1fr)_auto_2rem] items-center gap-2.5"><div className="flex min-w-0 items-center gap-2.5"><CornerDownRightIcon className="size-4 shrink-0 text-muted-foreground/50" /><div className="truncate text-sm text-muted-foreground">@@ -3329,7 +3309,7 @@ const PromptQueueStack: FC<{ queueThreadIds: string[] }> = ({type="button"variant="ghost"size="sm"- className="h-7 w-[84px] justify-center gap-1 px-0 text-sm font-normal text-muted-foreground/80 hover:text-foreground"+ className="h-7 w-[5.25rem] justify-center gap-1 px-0 text-sm font-normal text-muted-foreground/80 hover:text-foreground"onClick={() => startEditing(item)}><HugeiconsIcon icon={Edit03Icon} strokeWidth={2} />@@ -3565,14 +3545,14 @@ const DiffusionCanvas: FC = () => {canvas.total > 0 ? `step ${canvas.step + 1}/${canvas.total}` : "denoising";return (<div className="aui-diffusion-canvas my-1.5 overflow-hidden rounded-lg border border-primary/20 bg-primary/[0.03]">- <div className="flex items-center gap-2 border-b border-primary/10 px-3 py-1.5 text-[0.6875rem] font-medium text-primary/80">+ <div className="flex items-center gap-2 border-b border-primary/10 px-3 py-1.5 text-ui-11 font-medium text-primary/80"><span className="inline-block size-1.5 animate-pulse rounded-full bg-primary" /><span>Denoising</span><span className="opacity-60">block {canvas.block + 1} - {stepLabel}</span></div>- <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap px-3 py-2 font-mono text-[0.78125rem] leading-relaxed text-foreground/90">+ <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap px-3 py-2 font-mono text-ui-12p5 leading-relaxed text-foreground/90">{canvas.text}</pre></div>@@ -3646,7 +3626,7 @@ const AssistantMessage: FC = () => {return (<MessagePrimitive.Root- className="group/assistant-message aui-assistant-message-root relative mx-auto min-w-0 w-full max-w-(--thread-content-max-width) pt-0.5 pb-4 text-[0.96875rem] [font-weight:410] tracking-[0.01em] dark:tracking-[0.02em]"+ className="group/assistant-message aui-assistant-message-root relative mx-auto min-w-0 w-full max-w-(--thread-content-max-width) pt-0.5 pb-4 text-ui-15p5 [font-weight:410] tracking-[0.01em] dark:tracking-[0.02em]"data-role="assistant"><div className="aui-assistant-message-content wrap-break-word min-w-0 text-[#0d0d0d] dark:text-foreground leading-relaxed">@@ -3676,7 +3656,7 @@ const AssistantMessage: FC = () => {) : (<><div className="pointer-events-none relative h-0 min-w-0">- <MessageResponseModelBadge className="absolute -top-6 left-0 max-w-[min(352px,100%)]" />+ <MessageResponseModelBadge className="absolute -top-6 left-0 max-w-[min(22rem,100%)]" /></div><GeneratingIndicator /><CancelledIndicator />@@ -3759,7 +3739,7 @@ const ForkCountBadge: FC = () => {if (count <= 0) return null;return (<span- className="mx-1 inline-flex items-center gap-1 rounded-sm bg-primary/10 px-1.5 py-0.5 text-[0.625rem] font-medium text-primary"+ className="mx-1 inline-flex items-center gap-1 rounded-sm bg-primary/10 px-1.5 py-0.5 text-ui-10 font-medium text-primary"title={`${count} fork${count === 1 ? "" : "s"} from this message`}><GitBranchIcon strokeWidth={1.75} className="size-3" />@@ -4084,7 +4064,7 @@ const UserMessageAudio: FC = () => {const UserMessage: FC = () => {return (<MessagePrimitive.Root- className="aui-user-message-root fade-in slide-in-from-bottom-1 mx-auto flex w-full max-w-(--thread-content-max-width) animate-in flex-col items-end gap-y-2 pt-6 pb-4 text-[0.96875rem] [font-weight:410] tracking-[0.01em] dark:tracking-[0.02em] duration-150"+ className="aui-user-message-root fade-in slide-in-from-bottom-1 mx-auto flex w-full max-w-(--thread-content-max-width) animate-in flex-col items-end gap-y-2 pt-6 pb-4 text-ui-15p5 [font-weight:410] tracking-[0.01em] dark:tracking-[0.02em] duration-150"data-role="user"><UserMessageAttachments />@@ -4195,7 +4175,7 @@ const BranchPicker: FC<BranchPickerPrimitive.Root.Props> = ({<BranchPickerPrimitive.RoothideWhenSingleBranch={true}className={cn(- "aui-branch-picker-root inline-flex items-center text-chat-icon-fg text-[0.8125rem]",+ "aui-branch-picker-root inline-flex items-center text-chat-icon-fg text-ui-13",className,)}{...rest}@@ -4209,7 +4189,7 @@ const BranchPicker: FC<BranchPickerPrimitive.Root.Props> = ({<ChevronLeftIcon strokeWidth={1.25} className="size-[36px]" /></button></BranchPickerPrimitive.Previous>- <span className="aui-branch-picker-state font-mono text-[0.8125rem] tabular-nums">+ <span className="aui-branch-picker-state font-mono text-ui-13 tabular-nums"><BranchPickerPrimitive.Number />/<BranchPickerPrimitive.Count /></span><BranchPickerPrimitive.Next asChild={true}>diff --git a/studio/frontend/src/components/assistant-ui/tool-ui-knowledge-base.tsx b/studio/frontend/src/components/assistant-ui/tool-ui-knowledge-base.tsxindex 4fbaa227bd4..ec240600727 100644--- a/studio/frontend/src/components/assistant-ui/tool-ui-knowledge-base.tsx+++ b/studio/frontend/src/components/assistant-ui/tool-ui-knowledge-base.tsx@@ -48,7 +48,7 @@ export function CitationBadge({<Badgevariant="outline"size="sm"- className={`rounded-full inline-flex items-center gap-1.5 max-w-[240px] ${+ className={`rounded-full inline-flex items-center gap-1.5 max-w-[15rem] ${clickable? "cursor-pointer hover:bg-accent hover:text-accent-foreground transition-colors": "cursor-default"diff --git a/studio/frontend/src/components/assistant-ui/tool-ui-render-html.tsx b/studio/frontend/src/components/assistant-ui/tool-ui-render-html.tsxindex 93aa4c97a0e..d9c1fbaf6d0 100644--- a/studio/frontend/src/components/assistant-ui/tool-ui-render-html.tsx+++ b/studio/frontend/src/components/assistant-ui/tool-ui-render-html.tsx@@ -123,7 +123,7 @@ const RenderHtmlToolUIImpl: ToolCallMessagePartComponent = ({? "Canvas interrupted": "Canvas unavailable"}</span>- <span className="truncate text-[0.6875rem] leading-none text-muted-foreground">+ <span className="truncate text-ui-11 leading-none text-muted-foreground">{errorText ??(isStaleGeneratingArtifact? "Refresh stopped this preview"diff --git a/studio/frontend/src/components/floating-monitor.tsx b/studio/frontend/src/components/floating-monitor.tsxindex fb1ead3e63a..80501a518c7 100644--- a/studio/frontend/src/components/floating-monitor.tsx+++ b/studio/frontend/src/components/floating-monitor.tsx@@ -102,7 +102,7 @@ export function FloatingMonitor() {initial={{ opacity: 0, scale: 0.9 }}animate={{ opacity: 1, scale: 1 }}exit={{ opacity: 0, scale: 0.9 }}- className="settings-surface fixed bottom-4 right-4 w-64 max-w-[calc(100vw-32px)] resize overflow-hidden rounded-xl border border-border/70 p-3 shadow-border ring-0 backdrop-blur-sm pointer-events-auto cursor-default select-none"+ className="settings-surface fixed bottom-4 right-4 w-64 max-w-[calc(100vw-2rem)] resize overflow-hidden rounded-xl border border-border/70 p-3 shadow-border ring-0 backdrop-blur-sm pointer-events-auto cursor-default select-none"><div className="mb-2 flex items-center justify-between gap-2 border-b border-border/60 pb-2"><div className="flex min-w-0 flex-1 items-center gap-1.5 truncate text-xs font-semibold text-foreground">@@ -139,7 +139,7 @@ export function FloatingMonitor() {className="space-y-3 overflow-hidden"><div className="space-y-1">- <div className="flex justify-between text-[0.6875rem] font-medium font-mono">+ <div className="flex justify-between text-ui-11 font-medium font-mono"><span>{t("settings.resources.liveMonitor.ram")}</span><spanclassName={cn("tabular-nums", usageTextClass(ramPercent))}@@ -159,7 +159,7 @@ export function FloatingMonitor() {{hasGpu && (<div className="space-y-1">- <div className="flex justify-between text-[0.6875rem] font-medium font-mono">+ <div className="flex justify-between text-ui-11 font-medium font-mono"><span className="truncate flex-1 pr-2">{t("settings.resources.liveMonitor.vram")}{" "}{devices.length > 1diff --git a/studio/frontend/src/components/llama-update-banner.tsx b/studio/frontend/src/components/llama-update-banner.tsxindex 25c413ad61f..5baca8ffe2e 100644--- a/studio/frontend/src/components/llama-update-banner.tsx+++ b/studio/frontend/src/components/llama-update-banner.tsx@@ -131,7 +131,7 @@ export function LlamaUpdateBanner({<divclassName={cn(positioned- ? "fixed bottom-4 right-4 z-[9998] w-[calc(100vw-32px)] max-w-[400px]"+ ? "fixed bottom-4 right-4 z-[9998] w-[calc(100vw-2rem)] max-w-[400px]": "pointer-events-auto w-full",)}data-testid="llama-update-banner"@@ -178,7 +178,7 @@ export function LlamaUpdateBanner({{status?.latest_tag ?? ""}</span></p>- <p className="mt-1 text-[0.6875rem] text-muted-foreground/70">+ <p className="mt-1 text-ui-11 text-muted-foreground/70">{sizeLabel ? `${sizeLabel} download · ` : ""}No restart neededafter update</p>@@ -209,7 +209,7 @@ export function LlamaUpdateBanner({<Buttonsize="sm"variant="ghost"- className="h-auto rounded-full px-3 py-2 text-[0.8125rem] font-medium text-foreground"+ className="h-auto rounded-full px-3 py-2 text-ui-13 font-medium text-foreground"onClick={snooze}data-testid="llama-update-snooze-button">@@ -218,7 +218,7 @@ export function LlamaUpdateBanner({<Buttonsize="sm"// Align pill edge with card padding.- className="-mr-1 h-auto rounded-full px-3.5 py-2 text-[0.8125rem]"+ className="-mr-1 h-auto rounded-full px-3.5 py-2 text-ui-13"onClick={handleUpdate}data-testid="llama-update-button">diff --git a/studio/frontend/src/components/section-card.tsx b/studio/frontend/src/components/section-card.tsxindex 6539fb85473..3720cf48bd9 100644--- a/studio/frontend/src/components/section-card.tsx+++ b/studio/frontend/src/components/section-card.tsx@@ -77,7 +77,7 @@ export function SectionCard({<div className="flex items-center gap-2 pb-1"><h3 className="text-sm font-semibold">{title}</h3>{badge && (- <span className="rounded-full bg-control-accent/15 px-2 py-0.5 text-[0.625rem] font-semibold text-control-accent">+ <span className="rounded-full bg-control-accent/15 px-2 py-0.5 text-ui-10 font-semibold text-control-accent">{badge}</span>)}diff --git a/studio/frontend/src/components/shutdown-dialog.tsx b/studio/frontend/src/components/shutdown-dialog.tsxindex e3e6ca99201..8f746c94147 100644--- a/studio/frontend/src/components/shutdown-dialog.tsx+++ b/studio/frontend/src/components/shutdown-dialog.tsx@@ -52,8 +52,8 @@ export function ShutdownDialog({onAfterShutdown?.();document.body.innerHTML = `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;font-family:sans-serif;gap:12px">- <p style="font-size:1.1rem;font-weight:600;margin:0">Unsloth Studio has stopped.</p>- <p style="font-size:0.9rem;color:#888;margin:0">You can now close this tab.</p>+ <p style="font-size:calc(1.1rem * var(--ui-font-scale, 1));font-weight:600;margin:0">Unsloth Studio has stopped.</p>+ <p style="font-size:calc(0.9rem * var(--ui-font-scale, 1));color:#888;margin:0">You can now close this tab.</p></div>`;};diff --git a/studio/frontend/src/components/tauri/startup-screen.tsx b/studio/frontend/src/components/tauri/startup-screen.tsxindex 318a538ad02..74ed2f2cbeb 100644--- a/studio/frontend/src/components/tauri/startup-screen.tsx+++ b/studio/frontend/src/components/tauri/startup-screen.tsx@@ -72,7 +72,7 @@ function DiagnosticsCopyActions({readOnlyvalue={manualReport}onFocus={(event) => event.currentTarget.select()}- className="h-32 w-full max-w-md resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-[0.625rem] text-muted-foreground"+ className="h-32 w-full max-w-md resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-ui-10 text-muted-foreground"/>)}</div>diff --git a/studio/frontend/src/components/tauri/update-banner.tsx b/studio/frontend/src/components/tauri/update-banner.tsxindex 846701ca642..6f5e6558894 100644--- a/studio/frontend/src/components/tauri/update-banner.tsx+++ b/studio/frontend/src/components/tauri/update-banner.tsx@@ -95,7 +95,7 @@ export function UpdateBanner({transition={{ duration: 0.35, ease: EASE_OUT_QUART }}className={cn(positioned- ? "fixed bottom-4 right-4 z-[9999] w-[calc(100vw-32px)] max-w-[400px]"+ ? "fixed bottom-4 right-4 z-[9999] w-[calc(100vw-2rem)] max-w-[400px]": "pointer-events-auto w-full",)}data-testid="tauri-update-banner"@@ -142,7 +142,7 @@ export function UpdateBanner({</span></p>)}- <p className="mt-1 text-[0.6875rem] text-muted-foreground/70">+ <p className="mt-1 text-ui-11 text-muted-foreground/70">{showFailure? "Backend recovered. Diagnostics are still available.": isManualLinuxPackage@@ -166,7 +166,7 @@ export function UpdateBanner({<Buttonsize="sm"variant="ghost"- className="h-auto rounded-full px-3 py-2 text-[0.8125rem] font-medium text-foreground"+ className="h-auto rounded-full px-3 py-2 text-ui-13 font-medium text-foreground"onClick={() => {handleCopyDiagnostics().catch(console.error);}}@@ -176,14 +176,14 @@ export function UpdateBanner({<Buttonsize="sm"variant="ghost"- className="h-auto rounded-full px-3 py-2 text-[0.8125rem] font-medium text-foreground"+ className="h-auto rounded-full px-3 py-2 text-ui-13 font-medium text-foreground"onClick={onDismiss}>Later</Button><Buttonsize="sm"- className="-mr-1 h-auto rounded-full px-3.5 py-2 text-[0.8125rem]"+ className="-mr-1 h-auto rounded-full px-3.5 py-2 text-ui-13"onClick={onInstall}disabled={installDisabled}>@@ -195,14 +195,14 @@ export function UpdateBanner({<Buttonsize="sm"variant="ghost"- className="h-auto rounded-full px-3 py-2 text-[0.8125rem] font-medium text-foreground"+ className="h-auto rounded-full px-3 py-2 text-ui-13 font-medium text-foreground"onClick={onDismiss}>Remind me later</Button><Buttonsize="sm"- className="-mr-1 h-auto rounded-full px-3.5 py-2 text-[0.8125rem]"+ className="-mr-1 h-auto rounded-full px-3.5 py-2 text-ui-13"onClick={onInstall}disabled={installDisabled}>@@ -219,7 +219,7 @@ export function UpdateBanner({readOnly={true}value={manualReport}onFocus={(event) => event.currentTarget.select()}- className="mt-2 h-28 w-full resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-[0.625rem] text-muted-foreground"+ className="mt-2 h-28 w-full resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-ui-10 text-muted-foreground"/>)}</div>diff --git a/studio/frontend/src/components/tauri/update-screen.tsx b/studio/frontend/src/components/tauri/update-screen.tsxindex 64f2e95a872..d37e6873ae3 100644--- a/studio/frontend/src/components/tauri/update-screen.tsx+++ b/studio/frontend/src/components/tauri/update-screen.tsx@@ -72,7 +72,7 @@ function LogViewer({ logs }: { logs: string[] }) {return (<divref={scrollRef}- className="mt-4 h-[180px] w-full max-w-xl overflow-y-auto rounded-lg border border-border/40 bg-muted/30 p-3 font-mono text-[0.6875rem] leading-relaxed text-muted-foreground"+ className="mt-4 h-[180px] w-full max-w-xl overflow-y-auto rounded-lg border border-border/40 bg-muted/30 p-3 font-mono text-ui-11 leading-relaxed text-muted-foreground">{logs.map((line, i) => (<div key={i} className="whitespace-pre-wrap break-all">@@ -197,7 +197,7 @@ export function UpdateScreen({readOnlyvalue={manualReport}onFocus={(event) => event.currentTarget.select()}- className="mt-2 h-32 w-full max-w-xl resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-[0.625rem] text-muted-foreground"+ className="mt-2 h-32 w-full max-w-xl resize-none rounded-lg border border-border/50 bg-muted/30 p-2 font-mono text-ui-10 text-muted-foreground"/>)}diff --git a/studio/frontend/src/components/tauri/window-titlebar.tsx b/studio/frontend/src/components/tauri/window-titlebar.tsxindex 66cc2e1b41a..6a0ff8741a4 100644--- a/studio/frontend/src/components/tauri/window-titlebar.tsx+++ b/studio/frontend/src/components/tauri/window-titlebar.tsx@@ -112,8 +112,8 @@ export function WindowTitlebar({const { pinned, togglePinned } = useSidebarPin();const sidebarWidth = showSidebarSurface? pinned- ? "var(--studio-sidebar-expanded-width,280px)"- : "var(--studio-sidebar-collapsed-width,48px)"+ ? "var(--studio-sidebar-expanded-width,17.5rem)"+ : "var(--studio-sidebar-collapsed-width,3rem)": "0px";const contentBorderLeft = pinned ? `calc(${sidebarWidth} + 12px)` : "0px";@@ -273,7 +273,7 @@ export function WindowTitlebar({draggable={false}className="size-5 shrink-0 rounded-[6px] object-cover"/>- <span className="min-w-0 truncate text-[0.8125rem] font-semibold leading-none tracking-[0.01em] text-nav-fg">+ <span className="min-w-0 truncate text-ui-13 font-semibold leading-none tracking-[0.01em] text-nav-fg">Unsloth Studio</span></div>@@ -325,7 +325,7 @@ export function WindowTitlebar({className="pointer-events-auto absolute top-0 h-full"style={{left: sidebarWidth,- right: "calc(var(--studio-window-control-inset,112px) + 8px)",+ right: "calc(var(--studio-window-control-inset,112px) + 0.5rem)",}}onMouseDown={handleDragMouseDown}onDoubleClick={handleDragDoubleClick}diff --git a/studio/frontend/src/components/ui/calendar.tsx b/studio/frontend/src/components/ui/calendar.tsxindex 6ace64bed6f..6ea80b9c887 100644--- a/studio/frontend/src/components/ui/calendar.tsx+++ b/studio/frontend/src/components/ui/calendar.tsx@@ -93,7 +93,7 @@ function Calendar({table: "w-full border-collapse",weekdays: cn("flex", defaultClassNames.weekdays),weekday: cn(- "text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[0.8rem] select-none",+ "text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-[calc(0.8rem*var(--ui-font-scale,1))] select-none",defaultClassNames.weekday,),week: cn("flex w-full mt-2", defaultClassNames.week),@@ -102,7 +102,7 @@ function Calendar({defaultClassNames.week_number_header,),week_number: cn(- "text-[0.8rem] select-none text-muted-foreground",+ "text-[calc(0.8rem*var(--ui-font-scale,1))] select-none text-muted-foreground",defaultClassNames.week_number,),day: cn(diff --git a/studio/frontend/src/components/ui/chart.tsx b/studio/frontend/src/components/ui/chart.tsxindex 25dc88d1cd1..32da410bb5a 100644--- a/studio/frontend/src/components/ui/chart.tsx+++ b/studio/frontend/src/components/ui/chart.tsx@@ -246,7 +246,7 @@ function ChartTooltipContent({return (<divclassName={cn(- "border-border/50 corner-squircle bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl grid min-w-[128px] items-start",+ "border-border/50 corner-squircle bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl grid min-w-[8rem] items-start",className,)}>diff --git a/studio/frontend/src/components/ui/copyable-error-chip.tsx b/studio/frontend/src/components/ui/copyable-error-chip.tsxindex 6f21b6d829f..b9759f111c2 100644--- a/studio/frontend/src/components/ui/copyable-error-chip.tsx+++ b/studio/frontend/src/components/ui/copyable-error-chip.tsx@@ -53,7 +53,7 @@ export function CopyableErrorChip({<buttontype="button"className={cn(- "flex max-w-[448px] min-w-0 cursor-pointer items-center rounded-md text-left text-xs text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "flex max-w-[28rem] min-w-0 cursor-pointer items-center rounded-md text-left text-xs text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",className,)}>@@ -63,7 +63,7 @@ export function CopyableErrorChip({<PopoverContentalign="start"side="bottom"- className="w-[min(576px,calc(100vw-16px))] gap-2"+ className="w-[min(36rem,calc(100vw-1rem))] gap-2"><div className="flex items-start justify-between gap-2"><span className="text-xs font-medium text-destructive">Error</span>@@ -72,7 +72,7 @@ export function CopyableErrorChip({onClick={handleCopy}aria-label={copied ? "Copied" : "Copy error message"}className={cn(- "inline-flex items-center gap-1 rounded-md border border-border/60 px-2 py-1 text-[0.6875rem] text-muted-foreground transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "inline-flex items-center gap-1 rounded-md border border-border/60 px-2 py-1 text-ui-11 text-muted-foreground transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",copied && "border-emerald-500/40 text-emerald-600 dark:text-emerald-500",)}>diff --git a/studio/frontend/src/components/ui/data-table.tsx b/studio/frontend/src/components/ui/data-table.tsxindex 2391eafa5be..391007b2e65 100644--- a/studio/frontend/src/components/ui/data-table.tsx+++ b/studio/frontend/src/components/ui/data-table.tsx@@ -100,7 +100,7 @@ export function DataTable<TData, TValue>({{row.getVisibleCells().map((cell) => (<TableCellkey={cell.id}- className="border-r border-border/20 last:border-r-0 text-[0.8125rem] py-3 px-4 align-top whitespace-normal"+ className="border-r border-border/20 last:border-r-0 text-ui-13 py-3 px-4 align-top whitespace-normal">{flexRender(cell.column.columnDef.cell, cell.getContext())}</TableCell>diff --git a/studio/frontend/src/components/ui/dialog.tsx b/studio/frontend/src/components/ui/dialog.tsxindex 7b61f02d1f9..6dea1880d9e 100644--- a/studio/frontend/src/components/ui/dialog.tsx+++ b/studio/frontend/src/components/ui/dialog.tsx@@ -89,7 +89,7 @@ function DialogContent({<DialogPrimitive.Contentdata-slot="dialog-content"className={cn(- "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/5 grid max-w-[calc(100%-32px)] gap-6 rounded-4xl px-7 pt-8 pb-7 text-sm ring-1 duration-100 sm:max-w-md top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2",+ "bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/5 grid max-w-[calc(100%-2rem)] gap-6 rounded-4xl px-7 pt-8 pb-7 text-sm ring-1 duration-100 sm:max-w-md top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2",position === "fixed" ? "fixed" : "absolute",className,)}diff --git a/studio/frontend/src/components/ui/input-group.tsx b/studio/frontend/src/components/ui/input-group.tsxindex 56b9bcf63d8..7ec7a2e3d42 100644--- a/studio/frontend/src/components/ui/input-group.tsx+++ b/studio/frontend/src/components/ui/input-group.tsx@@ -29,9 +29,9 @@ const inputGroupAddonVariants = cva(variants: {align: {"inline-start":- "pl-3 has-[>button]:ml-[-4px] has-[>kbd]:ml-[-2.4px] order-first",+ "pl-3 has-[>button]:ml-[-0.25rem] has-[>kbd]:ml-[-0.15rem] order-first","inline-end":- "pr-3 has-[>button]:mr-[-4px] has-[>kbd]:mr-[-2.4px] order-last",+ "pr-3 has-[>button]:mr-[-0.25rem] has-[>kbd]:mr-[-0.15rem] order-last","block-start":"px-3 pt-3 group-has-[>input]/input-group:pt-3 [.border-b]:pb-3 order-first w-full justify-start","block-end":diff --git a/studio/frontend/src/components/ui/sidebar.tsx b/studio/frontend/src/components/ui/sidebar.tsxindex d424b7254c8..0fe82eb428d 100644--- a/studio/frontend/src/components/ui/sidebar.tsx+++ b/studio/frontend/src/components/ui/sidebar.tsx@@ -30,8 +30,8 @@ import { LayoutAlignLeftIcon } from "@hugeicons/core-free-icons"const noop = () => {}-const SIDEBAR_WIDTH = "280px"-const SIDEBAR_WIDTH_ICON = "48px"+const SIDEBAR_WIDTH = "17.5rem"+const SIDEBAR_WIDTH_ICON = "3rem"const SIDEBAR_KEYBOARD_SHORTCUT = "b"type SidebarContextProps = {@@ -228,7 +228,7 @@ function Sidebar({data-sidebar="sidebar"data-slot="sidebar"data-mobile="true"- className="bg-sidebar text-sidebar-foreground w-2/3 max-w-[288px] p-0 [&>button]:hidden"+ className="bg-sidebar text-sidebar-foreground w-2/3 max-w-[18rem] p-0 [&>button]:hidden"side={side}><SheetHeader className="sr-only">@@ -471,7 +471,7 @@ function SidebarGroupLabel({data-slot="sidebar-group-label"data-sidebar="group-label"className={cn(- "text-[#94a3b8] dark:text-[#666] ring-sidebar-ring h-auto pt-3 pb-2 px-4 rounded-md text-[0.625rem] font-semibold uppercase tracking-[0em] group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-1 [&>svg]:size-3 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",+ "text-[#94a3b8] dark:text-[#666] ring-sidebar-ring h-auto pt-3 pb-2 px-4 rounded-md text-ui-10 font-semibold uppercase tracking-[0em] group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-1 [&>svg]:size-3 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",className)}{...props}diff --git a/studio/frontend/src/components/web/update-banner.tsx b/studio/frontend/src/components/web/update-banner.tsxindex dfb181fdf4f..d8ae92bf5f6 100644--- a/studio/frontend/src/components/web/update-banner.tsx+++ b/studio/frontend/src/components/web/update-banner.tsx@@ -79,7 +79,7 @@ export function WebUpdateBanner({transition={{ duration: 0.35, ease: EASE_OUT_QUART }}className={cn(positioned- ? "fixed bottom-4 right-4 z-[9999] w-[calc(100vw-32px)] max-w-[400px]"+ ? "fixed bottom-4 right-4 z-[9999] w-[calc(100vw-2rem)] max-w-[400px]": "pointer-events-auto w-full",)}data-testid="web-update-banner"@@ -132,7 +132,7 @@ export function WebUpdateBanner({href={RELEASE_NOTES_URL}target="_blank"rel="noopener noreferrer"- className="-ml-2 whitespace-nowrap rounded-full px-2.5 py-2 text-[0.8125rem] font-medium text-foreground transition-colors hover:bg-muted"+ className="-ml-2 whitespace-nowrap rounded-full px-2.5 py-2 text-ui-13 font-medium text-foreground transition-colors hover:bg-muted"data-testid="web-update-release-notes-link">Release notes@@ -142,7 +142,7 @@ export function WebUpdateBanner({<Buttonsize="sm"variant="ghost"- className="h-auto rounded-full px-3 py-2 text-[0.8125rem] font-medium text-foreground"+ className="h-auto rounded-full px-3 py-2 text-ui-13 font-medium text-foreground"onClick={snooze}data-testid="web-update-snooze-button">@@ -151,7 +151,7 @@ export function WebUpdateBanner({<Buttonsize="sm"// -mr optically aligns the filled pill's edge with the card padding- className="-mr-1 h-auto rounded-full px-3.5 py-2 text-[0.8125rem]"+ className="-mr-1 h-auto rounded-full px-3.5 py-2 text-ui-13"onClick={handleCopyCommand}data-testid="web-update-copy-button">diff --git a/studio/frontend/src/features/auth/login-page.tsx b/studio/frontend/src/features/auth/login-page.tsxindex 34feccce796..d967328c7f8 100644--- a/studio/frontend/src/features/auth/login-page.tsx+++ b/studio/frontend/src/features/auth/login-page.tsx@@ -16,7 +16,7 @@ export function LoginPage() {length="70vh"className="opacity-35 dark:opacity-15"/>- <Card className="relative z-10 w-full max-w-sm rounded-[40px] px-7 py-8 shadow-border ring-0 sm:px-8 sm:py-10">+ <Card className="relative z-10 w-full max-w-sm rounded-[2.5rem] px-7 py-8 shadow-border ring-0 sm:px-8 sm:py-10"><AuthForm mode="login" /></Card></div>diff --git a/studio/frontend/src/features/chat/artifacts/artifact-card.tsx b/studio/frontend/src/features/chat/artifacts/artifact-card.tsxindex 82a236a3870..531b17522de 100644--- a/studio/frontend/src/features/chat/artifacts/artifact-card.tsx+++ b/studio/frontend/src/features/chat/artifacts/artifact-card.tsx@@ -145,12 +145,12 @@ export function ArtifactCard({<span className="truncate text-sm font-medium leading-tight text-foreground">{isCode ? "HTML Code" : artifact.title}</span>- <span className="truncate text-[0.6875rem] leading-none text-muted-foreground">+ <span className="truncate text-ui-11 leading-none text-muted-foreground">HTML canvas</span></span>{isStreaming && !isCode ? (- <span className="shimmer shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[0.625rem] font-medium text-primary motion-reduce:animate-none">+ <span className="shimmer shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-ui-10 font-medium text-primary motion-reduce:animate-none">Generating</span>) : null}diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsxindex 16176f0f5fc..e46ea0ac46e 100644--- a/studio/frontend/src/features/chat/chat-page.tsx+++ b/studio/frontend/src/features/chat/chat-page.tsx@@ -576,7 +576,7 @@ function CompareShell({{children}</div><div className="shrink-0 bg-background pl-5 pr-5 md:pr-[30px] pb-2 pt-1">- <div className="mx-auto w-full max-w-[768px]">{composer}</div>+ <div className="mx-auto w-full max-w-[48rem]">{composer}</div>{showModelDisclaimer && (<p className="composer-footer-note">LLMs can make mistakes. Double-check responses.@@ -651,7 +651,7 @@ const LoraCompareContent = memo(function LoraCompareContent({handleName="base"header={<div className="shrink-0 px-3 py-1.5">- <span className="text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <span className="text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground">Base Model</span></div>@@ -665,8 +665,8 @@ const LoraCompareContent = memo(function LoraCompareContent({handleName="lora"borderClassName="border-t border-border/60 md:border-t-0 md:border-l"header={- <div className="shrink-0 px-3 py-1.5 text-start md:text-end md:pr-[calc(64px+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]">- <span className="text-[0.625rem] font-semibold uppercase tracking-wider text-primary">+ <div className="shrink-0 px-3 py-1.5 text-start md:text-end md:pr-[calc(4rem+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]">+ <span className="text-ui-10 font-semibold uppercase tracking-wider text-primary">Fine-tuned</span></div>@@ -721,8 +721,8 @@ function GeneralCompareHeader({side === "left"? pinned? "pl-12 pr-3 md:pl-2"- : "pl-12 pr-3 md:pl-[calc(8px+max(0px,var(--studio-mac-traffic-light-inset,0px)-var(--sidebar-width-icon,48px)))]"- : "pl-3 pr-[calc(48px+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",+ : "pl-12 pr-3 md:pl-[calc(0.5rem+max(0px,var(--studio-mac-traffic-light-inset,0px)-var(--sidebar-width-icon,3rem)))]"+ : "pl-3 pr-[calc(3rem+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",)}><ModelSelector@@ -1265,12 +1265,12 @@ function ProjectLanding({className="flex min-h-0 min-w-0 flex-1 basis-0 overflow-y-auto px-5"style={{- ["--thread-max-width" as string]: "768px",+ ["--thread-max-width" as string]: "48rem",} as CSSProperties}>{/* Slightly narrower than the composer max; every block shares this. */}- <div className="mx-auto flex w-full max-w-[704px] flex-col pt-[120px] pb-14">+ <div className="mx-auto flex w-full max-w-[44rem] flex-col pt-[120px] pb-14"><div className="mb-12 flex items-center gap-4"><span className="flex size-13 shrink-0 items-center justify-center rounded-[18px] bg-muted text-foreground/80"><HugeiconsIcon@@ -1279,7 +1279,7 @@ function ProjectLanding({className="size-6.5"/></span>- <h1 className="min-w-0 flex-1 truncate font-sans text-[1.875rem] font-medium leading-tight tracking-normal text-foreground">+ <h1 className="min-w-0 flex-1 truncate font-sans text-ui-30 font-medium leading-tight tracking-normal text-foreground">{projectName}</h1><DropdownMenu>@@ -1349,7 +1349,7 @@ function ProjectLanding({type="button"onClick={() => setProjectTab("chats")}data-active={projectTab === "chats"}- className="h-10 rounded-full px-5 text-[0.875rem] font-semibold transition-colors data-[active=true]:bg-muted data-[active=true]:text-foreground data-[active=false]:text-muted-foreground data-[active=false]:hover:bg-nav-surface-hover"+ className="h-10 rounded-full px-5 text-ui-14 font-semibold transition-colors data-[active=true]:bg-muted data-[active=true]:text-foreground data-[active=false]:text-muted-foreground data-[active=false]:hover:bg-nav-surface-hover">Chats</button>@@ -1357,7 +1357,7 @@ function ProjectLanding({type="button"onClick={() => setProjectTab("sources")}data-active={projectTab === "sources"}- className="h-10 rounded-full px-5 text-[0.875rem] font-semibold transition-colors data-[active=true]:bg-muted data-[active=true]:text-foreground data-[active=false]:text-muted-foreground data-[active=false]:hover:bg-nav-surface-hover"+ className="h-10 rounded-full px-5 text-ui-14 font-semibold transition-colors data-[active=true]:bg-muted data-[active=true]:text-foreground data-[active=false]:text-muted-foreground data-[active=false]:hover:bg-nav-surface-hover">Sources</button>@@ -1425,7 +1425,7 @@ function ProjectLanding({onFocus={(event) => event.currentTarget.select()}maxLength={120}aria-label="Rename chat"- className="w-full border-0 bg-transparent text-[0.9375rem] font-semibold leading-5 text-foreground outline-none"+ className="w-full border-0 bg-transparent text-ui-15 font-semibold leading-5 text-foreground outline-none"/></div></div>@@ -1450,11 +1450,11 @@ function ProjectLanding({className="flex min-h-[58px] min-w-0 flex-1 items-center gap-4 rounded-full px-4 py-2 text-left"><div className="min-w-0 flex-1">- <div className="truncate text-[0.9375rem] font-semibold leading-5 text-foreground">+ <div className="truncate text-ui-15 font-semibold leading-5 text-foreground">{displayTitle}</div></div>- <span className="shrink-0 text-[0.875rem] text-muted-foreground transition-opacity max-md:opacity-0 pointer-coarse:opacity-0 group-hover:opacity-0 group-has-[[data-state=open]]:opacity-0">+ <span className="shrink-0 text-ui-14 text-muted-foreground transition-opacity max-md:opacity-0 pointer-coarse:opacity-0 group-hover:opacity-0 group-has-[[data-state=open]]:opacity-0">{preview?.date ??formatProjectChatDate(item.createdAt)}</span>@@ -3113,14 +3113,14 @@ export function ChatPage({)}<divclassName={cn(- "pointer-events-none absolute top-[var(--studio-content-top-inset,0px)] left-0 right-[10px] z-40 flex h-[var(--studio-chat-header-height,48px)] shrink-0 items-start bg-background pt-[var(--studio-chat-header-padding-top,11px)] pr-[calc(8px+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",+ "pointer-events-none absolute top-[var(--studio-content-top-inset,0px)] left-0 right-[10px] z-40 flex h-[var(--studio-chat-header-height,48px)] shrink-0 items-start bg-background pt-[var(--studio-chat-header-padding-top,11px)] pr-[calc(0.5rem+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",isMobile? "pl-12": pinned? "pl-2"- : "pl-[calc(8px+max(0px,var(--studio-mac-traffic-light-inset,0px)-var(--sidebar-width-icon,48px)))]",+ : "pl-[calc(0.5rem+max(0px,var(--studio-mac-traffic-light-inset,0px)-var(--sidebar-width-icon,3rem)))]",view.mode === "compare" &&- "right-[10px] left-auto w-auto bg-transparent pl-0 pr-[calc(8px+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",+ "right-[10px] left-auto w-auto bg-transparent pl-0 pr-[calc(0.5rem+var(--studio-chat-header-right-inset,var(--studio-window-control-inset,0px)))]",)}><div className="pointer-events-auto flex items-center gap-1">@@ -3149,7 +3149,7 @@ export function ChatPage({/>)}{incognito && view.mode === "single" && (- <div className="flex h-[var(--studio-chat-control-height,34px)] shrink-0 items-center gap-1.5 self-center rounded-full bg-primary/10 px-2.5 font-medium text-[0.8125rem] text-primary">+ <div className="flex h-[var(--studio-chat-control-height,34px)] shrink-0 items-center gap-1.5 self-center rounded-full bg-primary/10 px-2.5 font-medium text-ui-13 text-primary"><HugeiconsIconicon={BubbleChatTemporaryIcon}strokeWidth={2}@@ -3161,7 +3161,7 @@ export function ChatPage({{view.mode !== "compare" && currentProjectId && (<navaria-label="Project location"- className="flex h-[var(--studio-chat-control-height,34px)] min-w-0 items-center gap-1.5 self-center text-[0.84375rem] tracking-nav text-muted-foreground"+ className="flex h-[var(--studio-chat-control-height,34px)] min-w-0 items-center gap-1.5 self-center text-ui-13p5 tracking-nav text-muted-foreground"><ProjectSwitchercurrentProject={currentProject}diff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsxindex 2fa4ec725fe..bfe7c719188 100644--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx@@ -1556,7 +1556,7 @@ export function ChatProvidersSettings({</div><pid="chat-connections-description"- className="max-w-md text-[0.6875rem] leading-snug text-muted-foreground/65 sm:text-right"+ className="max-w-md text-ui-11 leading-snug text-muted-foreground/65 sm:text-right">When off, all connections are disabled.</p>@@ -1616,7 +1616,7 @@ export function ChatProvidersSettings({<span className="truncate text-sm font-medium text-foreground">{provider.name}</span>- <span className="shrink-0 rounded-[6px] border border-control-accent/15 bg-control-accent/8 px-1.5 py-0.5 text-[0.625rem] leading-none text-control-accent">+ <span className="shrink-0 rounded-[6px] border border-control-accent/15 bg-control-accent/8 px-1.5 py-0.5 text-ui-10 leading-none text-control-accent">{provider.models.length}{" "}{provider.models.length === 1 ? "model" : "models"}</span>@@ -1631,7 +1631,7 @@ export function ChatProvidersSettings({) : null}</div><div- className="mt-1 truncate text-[0.6875rem] leading-4 text-muted-foreground/80"+ className="mt-1 truncate text-ui-11 leading-4 text-muted-foreground/80"title={provider.models.join(", ")}>{modelSummary}@@ -1702,7 +1702,7 @@ export function ChatProvidersDialog({<Dialog open={open} onOpenChange={onOpenChange}><DialogContentoverlayClassName="bg-black/50 backdrop-blur-sm"- className="flex max-h-[90dvh] w-[96vw] flex-col gap-0 overflow-y-auto p-8 sm:max-w-none md:max-w-[704px]"+ className="flex max-h-[90dvh] w-[96vw] flex-col gap-0 overflow-y-auto p-8 sm:max-w-none md:max-w-[44rem]"><DialogHeader className="sr-only"><DialogTitle>Connections</DialogTitle>diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsxindex 99d697f6195..672ab2b2d39 100644--- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx+++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx@@ -141,7 +141,7 @@ export function ParamSlider({<div className="space-y-3.5"><div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">{label}</span>{info && <InfoHint>{info}</InfoHint>}@@ -249,7 +249,7 @@ function CollapsibleSection({};const headerClasses = cn(- "flex w-full items-center justify-between text-[0.75rem] font-medium normal-case tracking-[0.04em] text-nav-fg-muted transition-colors focus-visible:outline-none focus-visible:ring-0",+ "flex w-full items-center justify-between text-ui-12 font-medium normal-case tracking-[0.04em] text-nav-fg-muted transition-colors focus-visible:outline-none focus-visible:ring-0",first ? "pt-4 pb-5" : "py-5",);@@ -695,12 +695,12 @@ export function ChatSettingsPanel({{/* Header is outside the scroll area so the scrollbar never shifts the close button. */}<div className="flex h-[48px] shrink-0 items-start gap-2 bg-panel-surface pl-[18px] pr-[16px] pt-[11px]">{isMobile ? (- <span className="flex h-[34px] flex-1 items-center text-[1rem] font-semibold tracking-[0em] dark:tracking-[0.015em] text-nav-fg">+ <span className="flex h-[34px] flex-1 items-center text-ui-16 font-semibold tracking-[0em] dark:tracking-[0.015em] text-nav-fg">Run settings</span>) : (<>- <span className="flex h-[34px] flex-1 items-center text-[1rem] font-semibold tracking-[0em] dark:tracking-[0.015em] text-nav-fg">+ <span className="flex h-[34px] flex-1 items-center text-ui-16 font-semibold tracking-[0em] dark:tracking-[0.015em] text-nav-fg">Run settings</span><Tooltip>@@ -740,7 +740,7 @@ export function ChatSettingsPanel({<div className="flex flex-col gap-3 pt-1">{modelConfig}{showSpecFallback && (- <div className="rounded-lg bg-amber-500/[0.08] px-3 py-2 text-[0.75rem] leading-[1.4] text-nav-fg/80">+ <div className="rounded-lg bg-amber-500/[0.08] px-3 py-2 text-ui-12 leading-[1.4] text-nav-fg/80"><p>{specFallbackReason === "mla_mtp_disabled"? "MTP is disabled by default for this model architecture because it currently runs slower than standard decoding. Choose MTP in the model picker to force it."@@ -757,7 +757,7 @@ export function ChatSettingsPanel({{mtpUpdatable && llamaUpdateStatus?.update_available && (<Buttonsize="sm"- className="corner-squircle mt-2 h-7 text-[0.75rem]"+ className="corner-squircle mt-2 h-7 text-ui-12"onClick={handleMtpUpdate}disabled={llamaUpdating}data-test-id="mtp-update-button"@@ -768,7 +768,7 @@ export function ChatSettingsPanel({</div>)}{showContextVramWarning && (- <p className="text-[0.6875rem] text-amber-500">+ <p className="text-ui-11 text-amber-500">Context length exceeds the estimated VRAM capacity ({ggufMaxContextLength?.toLocaleString()} tokens). Themodel may use system RAM.@@ -812,7 +812,7 @@ export function ChatSettingsPanel({maxLength={80}autoComplete="off"className={cn(- "!h-9 min-h-0 min-w-0 self-stretch !pl-3.5 !pr-2 py-0 text-[0.8125rem] font-medium leading-9 text-nav-fg md:text-[0.8125rem]",+ "!h-9 min-h-0 min-w-0 self-stretch !pl-3.5 !pr-2 py-0 text-ui-13 font-medium leading-9 text-nav-fg md:text-ui-13",presetSaveState.isSaveReady &&"placeholder:text-primary/50",)}@@ -852,7 +852,7 @@ export function ChatSettingsPanel({}applyPreset(p.name);}}- className="flex min-h-9 items-center px-3 py-0 text-[0.8125rem] font-medium leading-[1.4] tracking-nav"+ className="flex min-h-9 items-center px-3 py-0 text-ui-13 font-medium leading-[1.4] tracking-nav">{p.name}</DropdownMenuItem>@@ -874,7 +874,7 @@ export function ChatSettingsPanel({}size="sm"className={cn(- "h-9 w-full rounded-full text-[0.8125rem] font-medium tracking-nav",+ "h-9 w-full rounded-full text-ui-13 font-medium tracking-nav",presetSaveState.isSaveReady &&"bg-primary text-primary-foreground hover:bg-primary/90",)}@@ -889,7 +889,7 @@ export function ChatSettingsPanel({disabled={!(settingsHydrated && activeCustomPreset)}variant="outline"size="sm"- className="h-9 w-full rounded-full text-[0.8125rem] font-medium tracking-nav text-muted-foreground"+ className="h-9 w-full rounded-full text-ui-13 font-medium tracking-nav text-muted-foreground"title={activeCustomPreset? activeBuiltinPreset@@ -908,7 +908,7 @@ export function ChatSettingsPanel({<CollapsibleSection label="Provider" defaultOpen={true}><div className="flex items-center justify-between gap-3 pt-1"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Prompt caching</span><InfoHint>@@ -931,7 +931,7 @@ export function ChatSettingsPanel({{showPromptCacheTtlControl && promptCachingEnabled ? (<div className="flex items-center justify-between gap-3 pt-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Cache TTL</span><InfoHint>@@ -968,7 +968,7 @@ export function ChatSettingsPanel({{showFastModeControl ? (<div className="flex items-center justify-between gap-3 pt-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Fast mode</span><InfoHint>@@ -1056,7 +1056,7 @@ export function ChatSettingsPanel({placeholder="Example: You are a helpful assistant..."aria-label="System prompt"className={cn(- "block size-full resize-none bg-transparent px-3.5 py-2.5 text-left text-[0.8125rem] font-medium leading-relaxed text-nav-fg outline-none placeholder:text-muted-foreground",+ "block size-full resize-none bg-transparent px-3.5 py-2.5 text-left text-ui-13 font-medium leading-relaxed text-nav-fg outline-none placeholder:text-muted-foreground",systemPromptOverflows && "cursor-pointer",)}/>@@ -1202,13 +1202,13 @@ export function ChatSettingsPanel({<div className="space-y-3"><div className="space-y-0.5 px-0.5"><div className="flex items-center justify-between gap-3">- <div className="text-[0.6875rem] font-medium">Prompt editor</div>+ <div className="text-ui-11 font-medium">Prompt editor</div><Buttontype="button"variant="ghost"size="sm"onClick={() => setSystemVariablesOpen((open) => !open)}- className="h-7 gap-1.5 rounded-full px-2.5 text-[0.6875rem] text-muted-foreground"+ className="h-7 gap-1.5 rounded-full px-2.5 text-ui-11 text-muted-foreground"aria-expanded={systemVariablesOpen}><Braces className="size-3.5" />@@ -1221,7 +1221,7 @@ export function ChatSettingsPanel({/></Button></div>- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Use this for longer edits. Save writes back to the activeconfiguration only. Insert variables with {"{{ env }}"}.</p>@@ -1230,16 +1230,16 @@ export function ChatSettingsPanel({<div className="space-y-2 px-0.5"><div className="flex flex-wrap items-start justify-between gap-2"><div className="space-y-0.5">- <div className="text-[0.6875rem] font-medium">+ <div className="text-ui-11 font-medium">Prompt variables</div>- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Define values as JSON below, then use each key in yourprompt, like {"{{ env }}"}.</p></div><div className="flex flex-col items-end gap-1">- <span className="text-[0.625rem] text-muted-foreground">+ <span className="text-ui-10 text-muted-foreground">Built-in, fill in automatically</span><div className="flex flex-wrap justify-end gap-1">@@ -1247,7 +1247,7 @@ export function ChatSettingsPanel({<spankey={token}title={`${token} is replaced automatically when you send`}- className="rounded-full bg-muted px-2 py-0.5 font-mono text-[0.625rem] text-muted-foreground"+ className="rounded-full bg-muted px-2 py-0.5 font-mono text-ui-10 text-muted-foreground">{token}</span>@@ -1272,11 +1272,11 @@ export function ChatSettingsPanel({aria-invalid={Boolean(systemVariablesError)}/>{systemVariablesError ? (- <p className="px-1 text-[0.6875rem] text-destructive">+ <p className="px-1 text-ui-11 text-destructive">{systemVariablesError}</p>) : (- <p className="px-1 text-[0.6875rem] text-muted-foreground">+ <p className="px-1 text-ui-11 text-muted-foreground">Names you don't define are left unchanged, so a stray{" {{ typo }} "}stays visible in the prompt.</p>@@ -1288,7 +1288,7 @@ export function ChatSettingsPanel({onChange={(event) => setSystemPromptDraft(event.target.value)}placeholder="You are a helpful assistant..."fieldSizing="fixed"- className="min-h-[320px] max-h-[48vh] overflow-y-auto border-0 text-sm leading-6 corner-squircle focus-visible:ring-0"+ className="min-h-[20rem] max-h-[48vh] overflow-y-auto border-0 text-sm leading-6 corner-squircle focus-visible:ring-0"rows={14}/></div>@@ -1333,7 +1333,7 @@ export function ChatSettingsPanel({if (isMobile) {return (<Sheet open={open} onOpenChange={onOpenChange}>- <SheetContent side="right" className="w-[288px] p-0 font-heading">+ <SheetContent side="right" className="w-[18rem] p-0 font-heading"><SheetHeader className="sr-only"><SheetTitle>Run settings</SheetTitle><SheetDescription>Chat inference settings</SheetDescription>@@ -1351,7 +1351,7 @@ export function ChatSettingsPanel({data-tour="chat-settings"className={cn("relative z-50 shrink-0 overflow-hidden bg-panel-surface text-panel-surface-fg font-heading",- open ? "w-[272px] border-l border-sidebar-border" : "w-0",+ open ? "w-[17rem] border-l border-sidebar-border" : "w-0",)}style={{height: "calc(100% - var(--studio-custom-titlebar-height, 0px))",@@ -1426,7 +1426,7 @@ function AutoHealToolCallsToggle() {return (<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Auto-Healing Tool Calls</span><InfoHint>@@ -1450,7 +1450,7 @@ function NudgeToolCallsToggle() {return (<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Nudge Tool Calls</span><InfoHint>@@ -1475,7 +1475,7 @@ function ConfirmToolCallsToggle() {<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 flex-col gap-0.5"><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Confirm tool calls</span><InfoHint>@@ -1487,7 +1487,7 @@ function ConfirmToolCallsToggle() {</InfoHint></div>{permissionMode === "full" ? (- <span className="text-[0.6875rem] text-muted-foreground">+ <span className="text-ui-11 text-muted-foreground">Overridden by Full access</span>) : null}@@ -1508,7 +1508,7 @@ function BypassPermissionsToggle() {return (<div className="flex flex-col gap-2"><div className="flex min-w-0 items-center gap-1.5">- <span className="whitespace-nowrap text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="whitespace-nowrap text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Tool permissions</span><InfoHint>@@ -1517,9 +1517,9 @@ function BypassPermissionsToggle() {</InfoHint></div>{/* Full width, styled like the panel selects/preset input. */}- <PermissionModeDropdown triggerClassName="h-9 w-full justify-between rounded-full border-0 bg-[var(--panel-input-surface)] px-3.5 text-[0.8125rem] font-medium text-nav-fg shadow-none hover:bg-[var(--panel-input-surface)]" />+ <PermissionModeDropdown triggerClassName="h-9 w-full justify-between rounded-full border-0 bg-[var(--panel-input-surface)] px-3.5 text-ui-13 font-medium text-nav-fg shadow-none hover:bg-[var(--panel-input-surface)]" />{permissionMode === "full" ? (- <span className="text-[0.6875rem] text-bypass">+ <span className="text-ui-11 text-bypass">Tool calls run with no confirmation and no sandbox.</span>) : null}diff --git a/studio/frontend/src/features/chat/components/chat-search-dialog.tsx b/studio/frontend/src/features/chat/components/chat-search-dialog.tsxindex ea95040f44b..7bf1b4b2aaf 100644--- a/studio/frontend/src/features/chat/components/chat-search-dialog.tsx+++ b/studio/frontend/src/features/chat/components/chat-search-dialog.tsx@@ -83,7 +83,7 @@ export function ChatSearchDialog() {<CommandDialogopen={isOpen}onOpenChange={setOpen}- className="chat-search-surface rounded-3xl! top-1/2 -translate-y-1/2 w-[635px] max-w-[calc(100%-32px)] gap-0 p-0 ring-0 sm:max-w-[635px]"+ className="chat-search-surface rounded-3xl! top-1/2 -translate-y-1/2 w-[635px] max-w-[calc(100%-2rem)] gap-0 p-0 ring-0 sm:max-w-[635px]"overlayClassName="bg-transparent supports-backdrop-filter:backdrop-blur-none"><Command className="rounded-3xl p-0" shouldFilter={false}>@@ -143,10 +143,10 @@ export function ChatSearchDialog() {strokeWidth={2}className="size-4 shrink-0 text-muted-foreground"/>- <span className="min-w-0 flex-1 truncate text-[0.8125rem] font-medium">+ <span className="min-w-0 flex-1 truncate text-ui-13 font-medium">{item.title || "Untitled chat"}</span>- <span className="shrink-0 text-[0.6875rem] text-muted-foreground">+ <span className="shrink-0 text-ui-11 text-muted-foreground">{formatRelative(item.createdAt)}</span></CommandPrimitive.Item>diff --git a/studio/frontend/src/features/chat/components/context-usage-bar.tsx b/studio/frontend/src/features/chat/components/context-usage-bar.tsxindex eeacef66dfb..9c80ce6b117 100644--- a/studio/frontend/src/features/chat/components/context-usage-bar.tsx+++ b/studio/frontend/src/features/chat/components/context-usage-bar.tsx@@ -71,7 +71,7 @@ export const ContextUsageBar: FC<{: `Token usage: ${formatTokenCount(used)} tokens`}className={cn(- "flex items-center gap-2 rounded-[10px] px-2.5 py-1 font-mono text-chat-icon-fg text-[0.8125rem] tabular-nums transition-colors hover:bg-chat-icon-bg-hover hover:text-chat-icon-fg-hover",+ "flex items-center gap-2 rounded-[10px] px-2.5 py-1 font-mono text-chat-icon-fg text-ui-13 tabular-nums transition-colors hover:bg-chat-icon-bg-hover hover:text-chat-icon-fg-hover",className,)}>@@ -149,7 +149,7 @@ export const ContextUsageBar: FC<{</span></div>{hasKnownLimit && percent !== null && percent > 85 ? (- <div className="mt-1 max-w-64 text-[0.6875rem] leading-snug text-muted-foreground/90">+ <div className="mt-1 max-w-64 text-ui-11 leading-snug text-muted-foreground/90">Close to the context limit. Generation will stop at 100%.Increase <span className="font-medium">Context Length</span> inthe chat Settings panel to keep going.diff --git a/studio/frontend/src/features/chat/components/model-load-status.tsx b/studio/frontend/src/features/chat/components/model-load-status.tsxindex 613b5c260b3..6e22c6de4b4 100644--- a/studio/frontend/src/features/chat/components/model-load-status.tsx+++ b/studio/frontend/src/features/chat/components/model-load-status.tsx@@ -54,14 +54,14 @@ export function ModelLoadDescription({{title ? <p className="text-foreground leading-tight font-semibold">{title}</p> : null}{hasProgress ? (<div className="w-full pt-1">- <div className="flex items-center justify-between gap-2 text-[0.625rem] font-medium tracking-[0.08em] text-muted-foreground/80">+ <div className="flex items-center justify-between gap-2 text-ui-10 font-medium tracking-[0.08em] text-muted-foreground/80"><span className="min-w-0 truncate">{labelPrimary}</span><span className="shrink-0 tabular-nums">{Math.round(clampProgress(progressPercent))}%</span></div>{labelSecondary ? (- <div className="truncate pt-0.5 text-[0.625rem] font-medium tracking-[0.08em] text-muted-foreground/60">+ <div className="truncate pt-0.5 text-ui-10 font-medium tracking-[0.08em] text-muted-foreground/60">{labelSecondary}</div>) : null}@@ -96,18 +96,18 @@ export function ModelLoadInlineStatus({const hasProgress = typeof progressPercent === "number";return (- <div className="flex min-w-[320px] items-center gap-2.5 text-muted-foreground" title={title}>+ <div className="flex min-w-[20rem] items-center gap-2.5 text-muted-foreground" title={title}><div className="flex items-center gap-1.5 shrink-0"><Spinner className="size-3.5 shrink-0" /><span className="text-xs">{label}</span></div>{hasProgress ? (<div className="flex min-w-0 flex-[1.35] items-center gap-2.5">- <div className="min-w-[112px] flex-1">+ <div className="min-w-[7rem] flex-1"><Progress value={clampProgress(progressPercent)} className="h-1 bg-foreground/[0.08]" /></div><div- className="flex shrink-0 items-center gap-1 text-[0.625rem] font-medium tracking-[0.08em] text-muted-foreground/80"+ className="flex shrink-0 items-center gap-1 text-ui-10 font-medium tracking-[0.08em] text-muted-foreground/80"title={progressLabel ?? undefined}>{/* Tight inline layout: show only the primary (bytes) chunk;@@ -124,7 +124,7 @@ export function ModelLoadInlineStatus({type="button"size="xs"variant="outline"- className="shrink-0 text-[0.6875rem]"+ className="shrink-0 text-ui-11"onClick={onStop}>Stopdiff --git a/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx b/studio/frontend/src/features/chat/components/openai-code-exec-section.tsxindex 04c88e4eba7..4da97741926 100644--- a/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx+++ b/studio/frontend/src/features/chat/components/openai-code-exec-section.tsx@@ -435,7 +435,7 @@ export function OpenAICodeExecSection({<div className="flex min-w-0 items-center gap-1.5"><labelhtmlFor="openai-container-ttl"- className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg"+ className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Idle timeout</label>@@ -459,7 +459,7 @@ export function OpenAICodeExecSection({ACTIVE pill marks which one (no separate picker). */}<div className="flex flex-col gap-1.5"><div className="flex items-center justify-between gap-2">- <span className="text-[0.6875rem] uppercase tracking-wider text-muted-foreground">+ <span className="text-ui-11 uppercase tracking-wider text-muted-foreground">Containers</span><Button@@ -531,15 +531,15 @@ export function OpenAICodeExecSection({{c.name ?? "(unnamed)"}</span>{isPending ? (- <span className="shrink-0 rounded-sm bg-muted px-1 py-px text-[0.5625rem] font-medium uppercase tracking-wider text-muted-foreground">+ <span className="shrink-0 rounded-sm bg-muted px-1 py-px text-ui-9 font-medium uppercase tracking-wider text-muted-foreground">Creating</span>) : isActive ? (- <span className="shrink-0 rounded-sm bg-primary/15 px-1 py-px text-[0.5625rem] font-medium uppercase tracking-wider text-primary">+ <span className="shrink-0 rounded-sm bg-primary/15 px-1 py-px text-ui-9 font-medium uppercase tracking-wider text-primary">Active</span>) : statusLabel ? (- <span className="shrink-0 rounded-sm bg-muted px-1 py-px text-[0.5625rem] font-medium uppercase tracking-wider text-muted-foreground">+ <span className="shrink-0 rounded-sm bg-muted px-1 py-px text-ui-9 font-medium uppercase tracking-wider text-muted-foreground">{statusLabel}</span>) : null}@@ -548,10 +548,10 @@ export function OpenAICodeExecSection({className="flex min-w-0 items-center gap-1.5 text-muted-foreground"title={c.id}>- <span className="min-w-0 truncate font-mono text-[0.6875rem]">+ <span className="min-w-0 truncate font-mono text-ui-11">{shortContainerId(c.id)}</span>- <span className="shrink-0 text-[0.625rem] uppercase tracking-wider">+ <span className="shrink-0 text-ui-10 uppercase tracking-wider">· {ttlMinutes}m</span></div>diff --git a/studio/frontend/src/features/chat/components/project-switcher.tsx b/studio/frontend/src/features/chat/components/project-switcher.tsxindex 2a170e5a397..a37df882b43 100644--- a/studio/frontend/src/features/chat/components/project-switcher.tsx+++ b/studio/frontend/src/features/chat/components/project-switcher.tsx@@ -57,7 +57,7 @@ export function ProjectSwitcher({className="size-icon shrink-0 text-foreground/70"/><span className="flex min-w-0 flex-1 items-baseline">- <span className="min-w-0 flex max-w-[150px] flex-1 items-baseline truncate font-heading text-[1rem] font-medium leading-tight text-black dark:text-white">+ <span className="min-w-0 flex max-w-[150px] flex-1 items-baseline truncate font-heading text-ui-16 font-medium leading-tight text-black dark:text-white">{label}</span></span>diff --git a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.tsindex 4b3f57b3683..76a310ac33c 100644--- a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts+++ b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts@@ -111,7 +111,7 @@ const MODEL_LOAD_TOAST_CLASSNAMES = {title: "leading-5",description: "mt-0 w-full",cancelButton:- "!h-auto !rounded-none !border-0 !bg-transparent !px-1 !text-[0.6875rem] !font-normal !text-muted-foreground hover:!bg-transparent hover:!text-destructive focus-visible:!text-destructive",+ "!h-auto !rounded-none !border-0 !bg-transparent !px-1 !text-ui-11 !font-normal !text-muted-foreground hover:!bg-transparent hover:!text-destructive focus-visible:!text-destructive",} as const;const MODEL_LOADED_TOAST_CLASSNAMES = {diff --git a/studio/frontend/src/features/chat/permission-mode-select.tsx b/studio/frontend/src/features/chat/permission-mode-select.tsxindex 7e0ecb0c7ed..f3e15947953 100644--- a/studio/frontend/src/features/chat/permission-mode-select.tsx+++ b/studio/frontend/src/features/chat/permission-mode-select.tsx@@ -120,7 +120,7 @@ export function PermissionModeMenuItems({><option.icon className="mt-0.5 size-4 shrink-0" strokeWidth={2} /><span className="flex min-w-0 flex-1 flex-col gap-0.5">- <span className="text-[0.8125rem] leading-tight">{option.label}</span>+ <span className="text-ui-13 leading-tight">{option.label}</span><span className="text-xs font-normal leading-snug text-muted-foreground">{option.description}</span>diff --git a/studio/frontend/src/features/chat/projects-page.tsx b/studio/frontend/src/features/chat/projects-page.tsxindex 494368faec5..e20e5177878 100644--- a/studio/frontend/src/features/chat/projects-page.tsx+++ b/studio/frontend/src/features/chat/projects-page.tsx@@ -367,7 +367,7 @@ export function ProjectsPage() {}}/><div className="flex flex-wrap items-center justify-between gap-4">- <h1 className="text-[1.875rem] font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-[2.125rem]">+ <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">Projects</h1><div className="flex items-center gap-3">@@ -419,7 +419,7 @@ export function ProjectsPage() {<DropdownMenuSubTrigger>Export All Projects</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-52"><DropdownMenuGroup>- <DropdownMenuLabel className="pb-1 pt-2 text-[0.6875rem] font-medium">+ <DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">Combined</DropdownMenuLabel>{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (@@ -430,7 +430,7 @@ export function ProjectsPage() {</DropdownMenuGroup><DropdownMenuSeparator /><DropdownMenuGroup>- <DropdownMenuLabel className="pb-1 pt-2 text-[0.6875rem] font-medium">+ <DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">Per chat</DropdownMenuLabel>{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (@@ -445,7 +445,7 @@ export function ProjectsPage() {<DropdownMenuSubTrigger>Export Projects + Recents</DropdownMenuSubTrigger><DropdownMenuSubContent className="w-52"><DropdownMenuGroup>- <DropdownMenuLabel className="pb-1 pt-2 text-[0.6875rem] font-medium">+ <DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">Combined</DropdownMenuLabel>{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (@@ -456,7 +456,7 @@ export function ProjectsPage() {</DropdownMenuGroup><DropdownMenuSeparator /><DropdownMenuGroup>- <DropdownMenuLabel className="pb-1 pt-2 text-[0.6875rem] font-medium">+ <DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">Per chat</DropdownMenuLabel>{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (@@ -482,7 +482,7 @@ export function ProjectsPage() {{!hasLoaded ? (<div className="mt-16">- <div className="mb-1 flex items-center gap-3 px-5 pb-1 text-[0.8125rem] font-medium text-muted-foreground">+ <div className="mb-1 flex items-center gap-3 px-5 pb-1 text-ui-13 font-medium text-muted-foreground"><span className="flex-1">Name</span><span className="w-40 shrink-0">Modified</span><span className="w-8 shrink-0" />@@ -526,7 +526,7 @@ export function ProjectsPage() {<div className="mt-16">{/* Column header. Name starts at the folder icon's left edge; theright-anchored columns keep Modified over its values. */}- <div className="mb-1 flex items-center gap-3 px-5 pb-1 text-[0.8125rem] font-medium text-muted-foreground">+ <div className="mb-1 flex items-center gap-3 px-5 pb-1 text-ui-13 font-medium text-muted-foreground"><span className="flex-1">Name</span><span className="w-40 shrink-0">Modified</span><span className="w-8 shrink-0" />@@ -571,7 +571,7 @@ export function ProjectsPage() {className="size-5"/></span>- <span className="min-w-0 flex-1 truncate text-[0.9375rem] font-semibold text-foreground">+ <span className="min-w-0 flex-1 truncate text-ui-15 font-semibold text-foreground">{project.name}</span><span className="w-40 shrink-0 text-sm text-muted-foreground">diff --git a/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx b/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsxindex 4b815a7695f..72956055534 100644--- a/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx+++ b/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx@@ -1341,7 +1341,7 @@ function ExportModal({{/* */}<div className="flex flex-col gap-2">- <p className="text-[0.6875rem] font-semibold uppercase tracking-wider text-muted-foreground/60">+ <p className="text-ui-11 font-semibold uppercase tracking-wider text-muted-foreground/60">Export as</p><div className="flex flex-col gap-2">@@ -1390,7 +1390,7 @@ function ExportModal({<p className="mt-1 text-xs text-muted-foreground">ShareGPT format for Unsloth fine-tuning</p>- <code className="mt-2 block w-full truncate rounded-md bg-muted px-2 py-1 font-mono text-[0.625rem] text-muted-foreground/60">+ <code className="mt-2 block w-full truncate rounded-md bg-muted px-2 py-1 font-mono text-ui-10 text-muted-foreground/60">{`{"conversations":[{"from":"human","value":"..."},{"from":"gpt","value":""}]}`}</code></div>@@ -1400,7 +1400,7 @@ function ExportModal({{/* */}<div className="flex flex-col gap-2">- <p className="text-[0.6875rem] font-semibold uppercase tracking-wider text-muted-foreground/60">+ <p className="text-ui-11 font-semibold uppercase tracking-wider text-muted-foreground/60">Format</p><div className="flex items-center gap-1 self-start rounded-lg bg-muted/60 p-1">@@ -1730,7 +1730,7 @@ function PromptListCard({<div className="group rounded-xl border border-border/60 bg-card p-4 flex flex-col gap-2.5 hover:border-border hover:shadow-sm transition-all"><div className="flex items-center gap-2"><span className="font-semibold text-sm flex-1 truncate tracking-tight">{entry.name}</span>- <span className="shrink-0 rounded-full bg-muted px-2 py-0.5 text-[0.6875rem] font-medium text-muted-foreground">+ <span className="shrink-0 rounded-full bg-muted px-2 py-0.5 text-ui-11 font-medium text-muted-foreground">{entry.items.length}</span><div className="flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity">@@ -1779,7 +1779,7 @@ function PromptListCard({</p>))}{entry.items.length > 3 && (- <p className="text-[0.6875rem] text-muted-foreground/50 ml-5">+ <p className="text-ui-11 text-muted-foreground/50 ml-5">+{entry.items.length - 3} more</p>)}diff --git a/studio/frontend/src/features/chat/thread-sidebar.tsx b/studio/frontend/src/features/chat/thread-sidebar.tsxindex 4e2765bebd6..bd1fb9d87ce 100644--- a/studio/frontend/src/features/chat/thread-sidebar.tsx+++ b/studio/frontend/src/features/chat/thread-sidebar.tsx@@ -266,7 +266,7 @@ export function ThreadSidebar({>{item.isFork ? (<span- className="mr-1 rounded-sm bg-primary/10 px-1.5 py-0.5 text-[0.625rem] font-semibold uppercase tracking-wide text-primary"+ className="mr-1 rounded-sm bg-primary/10 px-1.5 py-0.5 text-ui-10 font-semibold uppercase tracking-wide text-primary"title="Forked from another chat">forkdiff --git a/studio/frontend/src/features/data-recipes/pages/data-recipes-page.tsx b/studio/frontend/src/features/data-recipes/pages/data-recipes-page.tsxindex 27584a646fa..7716671151d 100644--- a/studio/frontend/src/features/data-recipes/pages/data-recipes-page.tsx+++ b/studio/frontend/src/features/data-recipes/pages/data-recipes-page.tsx@@ -280,7 +280,7 @@ function LearningRecipeCards({<Badgekey={`${template.title}-${badge}`}variant="outline"- className="h-5 shrink-0 px-1.5 text-[0.625rem] dark:text-zinc-300"+ className="h-5 shrink-0 px-1.5 text-ui-10 dark:text-zinc-300">{badge}</Badge>@@ -288,7 +288,7 @@ function LearningRecipeCards({{extraLearningBadgeCount > 0 ? (<Badgevariant="outline"- className="h-5 shrink-0 px-1.5 text-[0.625rem] dark:text-zinc-300"+ className="h-5 shrink-0 px-1.5 text-ui-10 dark:text-zinc-300">+{extraLearningBadgeCount}</Badge>@@ -296,7 +296,7 @@ function LearningRecipeCards({{isReady ? null : (<Badgevariant="secondary"- className="h-5 shrink-0 px-1.5 text-[0.625rem] dark:text-zinc-300"+ className="h-5 shrink-0 px-1.5 text-ui-10 dark:text-zinc-300">Soon</Badge>@@ -403,7 +403,7 @@ export function DataRecipesPage(): ReactElement {<main className="mx-auto w-full max-w-7xl px-5 py-8 sm:px-9"><div className="flex items-center justify-between gap-4"><div>- <h1 className="text-[1.875rem] font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-[2.125rem]">+ <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">Data Recipes</h1><p className="mt-1 text-sm text-muted-foreground">diff --git a/studio/frontend/src/features/export/components/export-run-panel.tsx b/studio/frontend/src/features/export/components/export-run-panel.tsxindex 86c82935d62..9d938a5ee35 100644--- a/studio/frontend/src/features/export/components/export-run-panel.tsx+++ b/studio/frontend/src/features/export/components/export-run-panel.tsx@@ -278,7 +278,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {</div><div className="flex items-stretch gap-2"><Input- className="min-w-0 flex-1 font-mono text-[0.75rem]"+ className="min-w-0 flex-1 font-mono text-ui-12"value={saveDirectory}onChange={(e) => onSaveDirectoryChange(e.target.value)}spellCheck={false}@@ -303,7 +303,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {<TooltipContent>Browse</TooltipContent></Tooltip></div>- <p className="text-[0.6875rem] text-muted-foreground/70">+ <p className="text-ui-11 text-muted-foreground/70">{saveDirectory !== defaultSaveDirectory ? (<>Default: {defaultSaveDirectory}</>) : (@@ -350,7 +350,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {href="https://huggingface.co/settings/tokens"target="_blank"rel="noopener noreferrer"- className="flex items-center gap-1 text-[0.6875rem] text-emerald-600 hover:text-emerald-700 transition-colors"+ className="flex items-center gap-1 text-ui-11 text-emerald-600 hover:text-emerald-700 transition-colors">Get token<HugeiconsIcon icon={ArrowRight01Icon} className="size-3" />@@ -369,7 +369,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {onChange={(e) => onHfTokenChange(e.target.value)}/></InputGroup>- <p className="text-[0.6875rem] text-muted-foreground/70">+ <p className="text-ui-11 text-muted-foreground/70">Leave empty if already logged in via CLI.</p></div>@@ -427,7 +427,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {</span>) : null}<code- className="select-all break-all font-mono text-[0.75rem] text-foreground/90"+ className="select-all break-all font-mono text-ui-12 text-foreground/90"title={o.path}>{o.path}@@ -503,11 +503,11 @@ export function ExportRunPanel(props: ExportRunPanelProps) {{showProgress && (<div className="flex flex-col gap-2"><div className="flex flex-wrap items-center gap-2">- <span className="rounded-full bg-foreground/10 px-2.5 py-1 text-[0.625rem] font-semibold">+ <span className="rounded-full bg-foreground/10 px-2.5 py-1 text-ui-10 font-semibold">{PHASE_LABELS[run.phase] ?? run.phase}</span>{summaryMethod === "gguf" && run.quantTotal > 1 && (- <span className="text-[0.625rem] tabular-nums text-muted-foreground">+ <span className="text-ui-10 tabular-nums text-muted-foreground">Quant{" "}{Math.min(run.quantIndex + (isExporting ? 1 : 0),@@ -516,10 +516,10 @@ export function ExportRunPanel(props: ExportRunPanelProps) {of {run.quantTotal}</span>)}- <span className="rounded-full border border-border/60 px-2.5 py-1 text-[0.625rem] font-medium tabular-nums text-muted-foreground">+ <span className="rounded-full border border-border/60 px-2.5 py-1 text-ui-10 font-medium tabular-nums text-muted-foreground">{progress}%</span>- <span className="text-[0.625rem] tabular-nums text-muted-foreground/70">+ <span className="text-ui-10 tabular-nums text-muted-foreground/70">{formatElapsed(elapsedSeconds)}</span></div>@@ -536,7 +536,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {/>{run.stage && (<p- className="truncate text-[0.6875rem] text-muted-foreground/80"+ className="truncate text-ui-11 text-muted-foreground/80"title={run.stage}>{run.stage}@@ -552,7 +552,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {<label className="text-xs font-medium text-muted-foreground">Export output</label>- <div className="flex items-center gap-2 text-[0.6875rem] text-muted-foreground/80">+ <div className="flex items-center gap-2 text-ui-11 text-muted-foreground/80"><spanclassName={run.reconnecting@@ -576,7 +576,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) {<divref={logScrollRef}onScroll={handleLogScroll}- className="h-56 w-full overflow-auto rounded-lg border border-border/40 bg-black/85 p-3 font-mono text-[0.6875rem] leading-[1.45] text-emerald-200/90"+ className="h-56 w-full overflow-auto rounded-lg border border-border/40 bg-black/85 p-3 font-mono text-ui-11 leading-[1.45] text-emerald-200/90">{run.logLines.length === 0 ? (<div className="flex h-full items-center justify-center text-muted-foreground/70">diff --git a/studio/frontend/src/features/export/components/method-picker.tsx b/studio/frontend/src/features/export/components/method-picker.tsxindex e240fd44ca9..0ab72b0b4a8 100644--- a/studio/frontend/src/features/export/components/method-picker.tsx+++ b/studio/frontend/src/features/export/components/method-picker.tsx@@ -123,7 +123,7 @@ export function MethodPicker({ value, onChange, disabledMethods = [], disabledRe{m.badge && (<Badgevariant="secondary"- className="text-[0.625rem] px-1.5 py-0"+ className="text-ui-10 px-1.5 py-0">{m.badge}</Badge>diff --git a/studio/frontend/src/features/export/components/quant-picker.tsx b/studio/frontend/src/features/export/components/quant-picker.tsxindex 688e5fb87f7..b8c8e0fc77d 100644--- a/studio/frontend/src/features/export/components/quant-picker.tsx+++ b/studio/frontend/src/features/export/components/quant-picker.tsx@@ -61,7 +61,7 @@ export function QuantPicker({ value, onChange, sizes }: QuantPickerProps) {</a></TooltipContent></Tooltip>- <span className="text-[0.6875rem] text-muted-foreground/70">+ <span className="text-ui-11 text-muted-foreground/70">— select one or more</span></div>@@ -90,10 +90,10 @@ export function QuantPicker({ value, onChange, sizes }: QuantPickerProps) {)}{q.label}{sizeLabel && (- <span className="text-[0.625rem] opacity-60">{sizeLabel}</span>+ <span className="text-ui-10 opacity-60">{sizeLabel}</span>)}{q.recommended && !active && (- <span className="rounded-full bg-emerald-100 px-1.5 py-0 text-[0.5625rem] font-semibold text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300">+ <span className="rounded-full bg-emerald-100 px-1.5 py-0 text-ui-9 font-semibold text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300">rec</span>)}@@ -103,13 +103,13 @@ export function QuantPicker({ value, onChange, sizes }: QuantPickerProps) {</div>{value.length > 0 && (<div className="flex items-center gap-3">- <span className="text-[0.6875rem] text-muted-foreground">+ <span className="text-ui-11 text-muted-foreground">{value.length} selected</span><buttontype="button"onClick={() => onChange([])}- className="text-[0.6875rem] text-muted-foreground/70 hover:text-foreground transition-colors"+ className="text-ui-11 text-muted-foreground/70 hover:text-foreground transition-colors">Clear all</button>diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsxindex 80235846d1f..fc305552531 100644--- a/studio/frontend/src/features/export/export-page.tsx+++ b/studio/frontend/src/features/export/export-page.tsx@@ -895,7 +895,7 @@ export function ExportPage() {<GuidedTour {...tour.tourProps} /><div className="mb-8 flex flex-col gap-0.5">- <h1 className="text-[1.875rem] font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-[2.125rem]">+ <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">Export Model</h1><p className="text-sm text-muted-foreground">@@ -964,21 +964,21 @@ export function ExportPage() {<TabsTriggervalue="local"indicatorClassName="hub-tab-toggle-pill rounded-full"- className="h-9 rounded-full border-0 px-3 text-[0.78125rem] text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground"+ className="h-9 rounded-full border-0 px-3 text-ui-12p5 text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground">Local Model</TabsTrigger><TabsTriggervalue="checkpoint"indicatorClassName="hub-tab-toggle-pill rounded-full"- className="h-9 rounded-full border-0 px-3 text-[0.78125rem] text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground"+ className="h-9 rounded-full border-0 px-3 text-ui-12p5 text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground">Fine-tuned</TabsTrigger><TabsTriggervalue="hf"indicatorClassName="hub-tab-toggle-pill rounded-full"- className="h-9 rounded-full border-0 px-3 text-[0.78125rem] text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground"+ className="h-9 rounded-full border-0 px-3 text-ui-12p5 text-muted-foreground hover:text-foreground data-active:text-foreground data-[state=active]:text-foreground">Hugging Face</TabsTrigger>@@ -1289,7 +1289,7 @@ export function ExportPage() {<span className="block min-w-0 flex-1 truncate">{model?.display_name ?? id}</span>- <span className="ml-auto shrink-0 text-[0.625rem] text-muted-foreground">+ <span className="ml-auto shrink-0 text-ui-10 text-muted-foreground">{source}</span></ComboboxItem>@@ -1300,15 +1300,15 @@ export function ExportPage() {</Combobox></div>{isLoadingLocalModels ? (- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">Scanning local models...</p>) : localModelsError ? (- <p className="text-[0.625rem] text-red-500">+ <p className="text-ui-10 text-red-500">{localModelsError}</p>) : (- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{exportableLocalModels.length > 0? `${exportableLocalModels.length} local/cached models found`: "No local models found. Enter path manually."}@@ -1318,7 +1318,7 @@ export function ExportPage() {)}<div className="rounded-xl bg-foreground/[0.04] p-3">- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Direct model exports currently support GGUF only.</p></div>@@ -1327,7 +1327,7 @@ export function ExportPage() {{sourceMode === "checkpoint" && (<div className="rounded-xl bg-foreground/[0.04] p-3 flex flex-col gap-2">- <span className="text-[0.6875rem] font-medium text-muted-foreground uppercase tracking-wider">+ <span className="text-ui-11 font-medium text-muted-foreground uppercase tracking-wider">Training Info</span><div className="grid grid-cols-1 gap-x-6 gap-y-1.5 text-xs sm:grid-cols-2">@@ -1374,7 +1374,7 @@ export function ExportPage() {key={step}className="flex items-start gap-2 text-xs text-muted-foreground">- <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-foreground/10 text-[0.625rem] font-semibold">+ <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-foreground/10 text-ui-10 font-semibold">{i + 1}</span>{step}@@ -1422,7 +1422,7 @@ export function ExportPage() {<div className="space-y-2"><div className="flex items-center justify-between"><div className="text-sm font-medium">Precision</div>- <span className="text-[0.6875rem] text-muted-foreground/70">+ <span className="text-ui-11 text-muted-foreground/70">— select one or more</span></div>@@ -1479,7 +1479,7 @@ export function ExportPage() {{f.label}{f.needsCalibration ? " *" : ""}</span>- <span className="text-[0.625rem] text-muted-foreground">+ <span className="text-ui-10 text-muted-foreground">{f.hint}</span></span>@@ -1492,7 +1492,7 @@ export function ExportPage() {{selectedFormats.length > 0 && (<div className="flex flex-wrap items-center gap-x-3 gap-y-1">- <span className="text-[0.6875rem] text-muted-foreground">+ <span className="text-ui-11 text-muted-foreground">{selectedFormats.length} selected:{" "}{selectedFormats.map(@@ -1506,7 +1506,7 @@ export function ExportPage() {<buttontype="button"onClick={() => setSelectedFormats(["16-bit"])}- className="text-[0.6875rem] text-muted-foreground/70 hover:text-foreground transition-colors"+ className="text-ui-11 text-muted-foreground/70 hover:text-foreground transition-colors">Reset to 16-bit</button>@@ -1515,7 +1515,7 @@ export function ExportPage() {)}{hubMultiFormat && (- <div className="text-[0.6875rem] text-amber-600 dark:text-amber-500">+ <div className="text-ui-11 text-amber-600 dark:text-amber-500">Hub export supports one format at a time (each writes tothe repository root). Select a single format, or exportlocally to produce several at once.@@ -1527,13 +1527,13 @@ export function ExportPage() {MERGED_FORMATS.find((f) => f.value === v)?.needsCalibration,) && (- <div className="text-[0.6875rem] text-muted-foreground">+ <div className="text-ui-11 text-muted-foreground">* calibrates on data (uses a small calibration set).</div>)}{!hasNvidia && (- <div className="text-[0.6875rem] text-muted-foreground">+ <div className="text-ui-11 text-muted-foreground">No NVIDIA GPU detected: compressed-tensors formats arehidden. 16-bit and portable FP8/INT8 (torchao) stillwork here and load in vLLM.diff --git a/studio/frontend/src/features/hub/catalog/catalog-states.tsx b/studio/frontend/src/features/hub/catalog/catalog-states.tsxindex 693b5b40c0b..513f1c21c83 100644--- a/studio/frontend/src/features/hub/catalog/catalog-states.tsx+++ b/studio/frontend/src/features/hub/catalog/catalog-states.tsx@@ -38,20 +38,20 @@ export function NetworkErrorState({<HugeiconsIcon icon={icon} strokeWidth={1.6} className="size-5" /></div><div className="space-y-1">- <p className="text-[0.875rem] font-semibold tracking-tight text-foreground">+ <p className="text-ui-14 font-semibold tracking-tight text-foreground">{title}</p>- <p className="max-w-md text-[0.78125rem] leading-5 text-muted-foreground">+ <p className="max-w-md text-ui-12p5 leading-5 text-muted-foreground">{body}</p>- <p className="text-[0.6875rem] text-muted-foreground/70">{message}</p>+ <p className="text-ui-11 text-muted-foreground/70">{message}</p></div><div className="flex flex-wrap items-center justify-center gap-2">{onSwitchDevice ? (<buttontype="button"onClick={onSwitchDevice}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.1] dark:bg-white/[0.06] dark:hover:bg-white/[0.1]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.1] dark:bg-white/[0.06] dark:hover:bg-white/[0.1]">On Device</button>@@ -59,7 +59,7 @@ export function NetworkErrorState({<buttontype="button"onClick={onRetry}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]"><HugeiconsIconicon={Refresh01Icon}@@ -92,10 +92,10 @@ export function DiscoverFetchMoreState({<HugeiconsIcon icon={FilterIcon} strokeWidth={1.5} className="size-5" /></div><div className="space-y-1">- <p className="text-[0.875rem] font-semibold tracking-tight text-foreground">+ <p className="text-ui-14 font-semibold tracking-tight text-foreground">No matches yet</p>- <p className="max-w-md text-[0.78125rem] leading-5 text-muted-foreground">+ <p className="max-w-md text-ui-12p5 leading-5 text-muted-foreground">Scanned {scannedCount.toLocaleString()} results. Load another page tokeep searching Hugging Face.</p>@@ -105,7 +105,7 @@ export function DiscoverFetchMoreState({<buttontype="button"onClick={onClearFilters}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.1] dark:bg-white/[0.06] dark:hover:bg-white/[0.1]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.1] dark:bg-white/[0.06] dark:hover:bg-white/[0.1]">Clear filters</button>@@ -114,7 +114,7 @@ export function DiscoverFetchMoreState({type="button"onClick={onFetchMore}disabled={isLoadingMore}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.04] disabled:cursor-not-allowed disabled:opacity-50 dark:hover:bg-white/[0.05]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.04] disabled:cursor-not-allowed disabled:opacity-50 dark:hover:bg-white/[0.05]"><HugeiconsIconicon={Refresh01Icon}@@ -141,7 +141,7 @@ export function DiscoverFetchMoreFooter({<div className="relative z-10 flex flex-col items-center gap-2 rounded-[16px] bg-card px-4 py-4 text-center">{/* Only warn about hidden results when a filter is actually narrowing them. */}{hasActiveFilters && (- <p className="text-[0.71875rem] leading-4 text-muted-foreground">+ <p className="text-ui-11p5 leading-4 text-muted-foreground">Some results may be hidden by your filters.</p>)}@@ -149,7 +149,7 @@ export function DiscoverFetchMoreFooter({type="button"onClick={onFetchMore}disabled={isLoadingMore}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.1] disabled:cursor-not-allowed disabled:opacity-50 dark:bg-white/[0.06] dark:hover:bg-white/[0.1]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-foreground/[0.06] px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.1] disabled:cursor-not-allowed disabled:opacity-50 dark:bg-white/[0.06] dark:hover:bg-white/[0.1]"><HugeiconsIconicon={Refresh01Icon}@@ -175,10 +175,10 @@ export function InventoryErrorState({<HugeiconsIcon icon={CloudOffIcon} strokeWidth={1.6} className="size-5" /></div><div className="space-y-1">- <p className="text-[0.875rem] font-semibold tracking-tight text-foreground">+ <p className="text-ui-14 font-semibold tracking-tight text-foreground">Couldn't load your library</p>- <p className="max-w-md text-[0.78125rem] leading-5 text-muted-foreground">+ <p className="max-w-md text-ui-12p5 leading-5 text-muted-foreground">Something went wrong reading your downloaded{" "}{isDataset ? "datasets" : "models"}. Check that the backend is runningand try again.@@ -187,7 +187,7 @@ export function InventoryErrorState({<buttontype="button"onClick={onRetry}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]"><HugeiconsIcon icon={Refresh01Icon} strokeWidth={1.75} className="size-3.5" />Try again@@ -213,10 +213,10 @@ export function EmptyState({<HugeiconsIcon icon={icon} strokeWidth={1.5} className="size-5" /></div><div className="space-y-1">- <p className="text-[0.875rem] font-semibold tracking-tight text-foreground">+ <p className="text-ui-14 font-semibold tracking-tight text-foreground">{title}</p>- <p className="max-w-md text-[0.78125rem] leading-5 text-muted-foreground">+ <p className="max-w-md text-ui-12p5 leading-5 text-muted-foreground">{body}</p></div>diff --git a/studio/frontend/src/features/hub/catalog/dataset-download-section.tsx b/studio/frontend/src/features/hub/catalog/dataset-download-section.tsxindex ade8d2de305..81c75ca8811 100644--- a/studio/frontend/src/features/hub/catalog/dataset-download-section.tsx+++ b/studio/frontend/src/features/hub/catalog/dataset-download-section.tsx@@ -126,7 +126,7 @@ export function DatasetDownloadSection({}><div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2">- <span className="flex items-center gap-1.5 text-[0.75rem] text-muted-foreground">+ <span className="flex items-center gap-1.5 text-ui-12 text-muted-foreground">{isDownloaded && <DotTag tone="success" label="On device" />}{!isDownloaded && isPartial && !downloading && (<Tooltip>diff --git a/studio/frontend/src/features/hub/catalog/dot-tag.tsx b/studio/frontend/src/features/hub/catalog/dot-tag.tsxindex 5ae1be53d01..5c2a0c8d1a8 100644--- a/studio/frontend/src/features/hub/catalog/dot-tag.tsx+++ b/studio/frontend/src/features/hub/catalog/dot-tag.tsx@@ -36,7 +36,7 @@ export function DotTag({return (<spanclassName={cn(- "inline-flex h-5 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border border-border/60 bg-transparent px-2 text-[0.6875rem] font-medium leading-none text-muted-foreground",+ "inline-flex h-5 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border border-border/60 bg-transparent px-2 text-ui-11 font-medium leading-none text-muted-foreground",className,)}>diff --git a/studio/frontend/src/features/hub/catalog/download-card.tsx b/studio/frontend/src/features/hub/catalog/download-card.tsxindex 9bc64ced0ed..8016a9406d2 100644--- a/studio/frontend/src/features/hub/catalog/download-card.tsx+++ b/studio/frontend/src/features/hub/catalog/download-card.tsx@@ -140,7 +140,7 @@ export function CardUpdateButton({e.stopPropagation();onClick();}}- className="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-amber-500/[0.07] pl-2 pr-2.5 text-[0.75rem] font-medium text-amber-800/90 transition-colors duration-150 hover:bg-amber-500/[0.12] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-amber-500/25 dark:bg-amber-400/[0.08] dark:text-amber-200/85 dark:hover:bg-amber-400/[0.16]"+ className="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-amber-500/[0.07] pl-2 pr-2.5 text-ui-12 font-medium text-amber-800/90 transition-colors duration-150 hover:bg-amber-500/[0.12] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-amber-500/25 dark:bg-amber-400/[0.08] dark:text-amber-200/85 dark:hover:bg-amber-400/[0.16]"><HugeiconsIconicon={ArrowReloadHorizontalIcon}diff --git a/studio/frontend/src/features/hub/catalog/external-link-confirm-dialog.tsx b/studio/frontend/src/features/hub/catalog/external-link-confirm-dialog.tsxindex 6922428c497..b17898a8e0a 100644--- a/studio/frontend/src/features/hub/catalog/external-link-confirm-dialog.tsx+++ b/studio/frontend/src/features/hub/catalog/external-link-confirm-dialog.tsx@@ -54,10 +54,10 @@ export function ExternalLinkConfirmDialog() {</AlertDialogHeader>{pendingUrl && (<div className="min-w-0 rounded-[12px] bg-muted/50 px-3 py-2.5 text-left">- <p className="truncate text-[0.8125rem] font-medium text-foreground">+ <p className="truncate text-ui-13 font-medium text-foreground">{hostOf(pendingUrl)}</p>- <p className="mt-0.5 break-all text-[0.71875rem] leading-[1rem] text-muted-foreground">+ <p className="mt-0.5 break-all text-ui-11p5 leading-ui-16 text-muted-foreground">{pendingUrl}</p></div>diff --git a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsxindex 9345874a53a..b3d5f45dedd 100644--- a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx+++ b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx@@ -128,7 +128,7 @@ const FIT_BADGE: Record<GgufFitClass, FitBadgeMeta> = {/** Chip styling matching the on-device list's StatChip, no icon. */const CHIP_BASE =- "inline-flex h-5 shrink-0 items-center justify-center whitespace-nowrap rounded-full border px-2 text-[0.71875rem] font-medium tabular-nums leading-3 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]";+ "inline-flex h-5 shrink-0 items-center justify-center whitespace-nowrap rounded-full border px-2 text-ui-11p5 font-medium tabular-nums leading-3 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]";const CHIP_DEFAULT ="border-foreground/15 bg-muted text-foreground/85 dark:border-border/60 dark:bg-white/[0.04] dark:text-foreground/85";const CHIP_ACTIVE =@@ -184,7 +184,7 @@ function QuantBadge({// group's `overflow-hidden` sacrifices the trailing status tags instead.<spanclassName={cn(- "inline-flex shrink-0 cursor-help items-center gap-1.5 whitespace-nowrap text-[0.78125rem] font-medium tracking-tight tabular-nums",+ "inline-flex shrink-0 cursor-help items-center gap-1.5 whitespace-nowrap text-ui-12p5 font-medium tracking-tight tabular-nums",active ? "text-control-accent" : "text-foreground",)}>@@ -914,7 +914,7 @@ export function GgufDownloadCard({{/* Quant label + status tags travel together as one left-alignedgroup so the fit-info icon never floats orphaned from its tags;only the chevron pins right, the standard select affordance. */}- <span className="flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-[0.75rem] text-muted-foreground">+ <span className="flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ui-12 text-muted-foreground">{selected ? (<QuantBadgequant={selectedLabel ?? selected.quant}@@ -923,7 +923,7 @@ export function GgufDownloadCard({active={Boolean(selectedIsActive)}/>) : (- <span className="text-[0.78125rem] text-muted-foreground">+ <span className="text-ui-12p5 text-muted-foreground">Select quantization</span>)}@@ -1126,7 +1126,7 @@ export function GgufDownloadCard({<buttontype="button"onClick={() => void refresh()}- className="self-start px-1 text-[0.6875rem] text-status-warning underline-offset-2 transition-colors hover:underline"+ className="self-start px-1 text-ui-11 text-status-warning underline-offset-2 transition-colors hover:underline">Couldn't refresh quantizations. Retry</button>diff --git a/studio/frontend/src/features/hub/catalog/gguf-status-cards.tsx b/studio/frontend/src/features/hub/catalog/gguf-status-cards.tsxindex c7f402159b2..f4f4fb27d2f 100644--- a/studio/frontend/src/features/hub/catalog/gguf-status-cards.tsx+++ b/studio/frontend/src/features/hub/catalog/gguf-status-cards.tsx@@ -34,7 +34,7 @@ export function GgufDownloadStatusCard({<div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2"><spanclassName={cn(- "flex min-w-0 items-center gap-2 text-[0.78125rem]",+ "flex min-w-0 items-center gap-2 text-ui-12p5",tone === "danger" ? "text-destructive" : "text-muted-foreground",)}>@@ -91,7 +91,7 @@ export function GgufDownloadingFallbackCard({<div className="flex w-full flex-col gap-2"><DownloadCard job={job} progress={progress}><div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2">- <span className="flex min-w-0 items-center gap-2 text-[0.78125rem] text-muted-foreground">+ <span className="flex min-w-0 items-center gap-2 text-ui-12p5 text-muted-foreground">{progress.variant && <DotTag tone="gguf" label={progress.variant} />}<span className="truncate">Downloading…</span></span>diff --git a/studio/frontend/src/features/hub/catalog/hub-detail-view.tsx b/studio/frontend/src/features/hub/catalog/hub-detail-view.tsxindex e7d176442af..78e1d0a4209 100644--- a/studio/frontend/src/features/hub/catalog/hub-detail-view.tsx+++ b/studio/frontend/src/features/hub/catalog/hub-detail-view.tsx@@ -69,7 +69,7 @@ export function HubDetailView({<buttontype="button"onClick={onBack}- className="-ml-1.5 inline-flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-full pl-1.5 pr-2.5 text-[0.78125rem] font-medium text-muted-foreground transition-colors hover:bg-foreground/[0.05] hover:text-foreground dark:hover:bg-white/[0.06]"+ className="-ml-1.5 inline-flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-full pl-1.5 pr-2.5 text-ui-12p5 font-medium text-muted-foreground transition-colors hover:bg-foreground/[0.05] hover:text-foreground dark:hover:bg-white/[0.06]"><HugeiconsIconicon={ArrowLeft01Icon}diff --git a/studio/frontend/src/features/hub/catalog/hub-option-menu.tsx b/studio/frontend/src/features/hub/catalog/hub-option-menu.tsxindex fc50075d708..5a11c474d4a 100644--- a/studio/frontend/src/features/hub/catalog/hub-option-menu.tsx+++ b/studio/frontend/src/features/hub/catalog/hub-option-menu.tsx@@ -173,7 +173,7 @@ export function HubOptionMenu<T extends string>({aria-label={ariaLabel}title={title}className={cn(- "field-trigger hub-menu-trigger field-soft field-filter inline-flex h-9 shrink-0 cursor-pointer items-center justify-between gap-2.5 rounded-full pl-3 pr-2.5 text-[0.78125rem] transition-colors",+ "field-trigger hub-menu-trigger field-soft field-filter inline-flex h-9 shrink-0 cursor-pointer items-center justify-between gap-2.5 rounded-full pl-3 pr-2.5 text-ui-12p5 transition-colors","focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",className,)}@@ -205,7 +205,7 @@ export function HubOptionMenu<T extends string>({collisionPadding={12}onCloseAutoFocus={(event) => event.preventDefault()}className={cn(- "hub-menu-instant menu-soft-surface w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(var(--radix-popover-content-available-width),calc(100vw-16px))] rounded-[14px] p-1 ring-0",+ "hub-menu-instant menu-soft-surface w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(var(--radix-popover-content-available-width),calc(100vw-1rem))] rounded-[14px] p-1 ring-0",contentClassName,)}>diff --git a/studio/frontend/src/features/hub/catalog/hub-section-row.tsx b/studio/frontend/src/features/hub/catalog/hub-section-row.tsxindex bd4d4d6bed1..e580c17a73d 100644--- a/studio/frontend/src/features/hub/catalog/hub-section-row.tsx+++ b/studio/frontend/src/features/hub/catalog/hub-section-row.tsx@@ -58,7 +58,7 @@ export const HubSectionRow = memo(function HubSectionRow({type="button"onClick={onOpenList}aria-label={`See all ${title}`}- className="hub-section-title group/section -mx-1 inline-flex cursor-pointer items-center gap-1.5 rounded-md px-1 text-[1.125rem] font-semibold tracking-[-0.02em] text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="hub-section-title group/section -mx-1 inline-flex cursor-pointer items-center gap-1.5 rounded-md px-1 text-ui-18 font-semibold tracking-[-0.02em] text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring">{title}<HugeiconsIcondiff --git a/studio/frontend/src/features/hub/catalog/local-dataset-card.tsx b/studio/frontend/src/features/hub/catalog/local-dataset-card.tsxindex 6b878a69c95..a4e6e5c9f5a 100644--- a/studio/frontend/src/features/hub/catalog/local-dataset-card.tsx+++ b/studio/frontend/src/features/hub/catalog/local-dataset-card.tsx@@ -25,7 +25,7 @@ export function LocalDatasetCard({<div className="hub-download-card"><div className="group/dl flex items-center"><div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2">- <span className="flex min-w-0 items-center gap-1.5 text-[0.75rem] text-muted-foreground">+ <span className="flex min-w-0 items-center gap-1.5 text-ui-12 text-muted-foreground"><DotTag tone="success" label="On device" />{source !== "hf_cache" && (<span className="truncate text-muted-foreground/85">diff --git a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsxindex 3baa13dbda1..9f42b9ef34c 100644--- a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx+++ b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx@@ -138,15 +138,15 @@ function BaseModelReference({</div><div className="min-w-0 flex-1"><div className="flex min-w-0 items-center gap-1.5">- <span className="shrink-0 text-[0.6875rem] font-medium text-muted-foreground">+ <span className="shrink-0 text-ui-11 font-medium text-muted-foreground">{baseModelSourceLabel(baseModelSource)}</span>- <span className="truncate text-[0.75rem] font-medium text-foreground">+ <span className="truncate text-ui-12 font-medium text-foreground">{baseModel}</span></div>{baseModelSummary && (- <p className="mt-0.5 truncate text-[0.6875rem] text-muted-foreground">+ <p className="mt-0.5 truncate text-ui-11 text-muted-foreground">{baseModelSummary}</p>)}@@ -424,7 +424,7 @@ export function LocalOnDeviceCard({return (<div className="flex w-full flex-col gap-2">{showOldCacheHint && (- <div className="flex items-start gap-2 rounded-[12px] border border-amber-500/20 bg-amber-500/8 px-3 py-2 text-[0.75rem] leading-5 text-amber-700 dark:text-amber-300">+ <div className="flex items-start gap-2 rounded-[12px] border border-amber-500/20 bg-amber-500/8 px-3 py-2 text-ui-12 leading-5 text-amber-700 dark:text-amber-300"><HugeiconsIconicon={Alert02Icon}strokeWidth={1.75}@@ -440,7 +440,7 @@ export function LocalOnDeviceCard({<div className="hub-download-card"><div className="group/dl flex items-center"><div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2">- <span className="flex min-w-0 items-center gap-1.5 text-[0.75rem] text-muted-foreground">+ <span className="flex min-w-0 items-center gap-1.5 text-ui-12 text-muted-foreground"><DotTagtone="success"label={selectedVariantIsActive ? "Loaded" : "On device"}@@ -452,7 +452,7 @@ export function LocalOnDeviceCard({<buttontype="button"disabled={currentVariantState.loading}- className="inline-flex h-6 max-w-[170px] shrink-0 cursor-pointer items-center gap-1.5 rounded-[8px] border border-format-gguf/35 px-2 font-mono text-[0.65625rem] leading-none text-format-gguf transition-colors hover:bg-format-gguf/8 disabled:cursor-not-allowed disabled:opacity-60"+ className="inline-flex h-6 max-w-[170px] shrink-0 cursor-pointer items-center gap-1.5 rounded-[8px] border border-format-gguf/35 px-2 font-mono text-ui-10p5 leading-none text-format-gguf transition-colors hover:bg-format-gguf/8 disabled:cursor-not-allowed disabled:opacity-60"><span className="truncate">{currentVariantState.loading@@ -464,7 +464,7 @@ export function LocalOnDeviceCard({: "Select"}</span>{selectedVariant && (- <span className="shrink-0 font-sans text-[0.625rem] text-muted-foreground tabular-nums">+ <span className="shrink-0 font-sans text-ui-10 text-muted-foreground tabular-nums">{formatBytes(selectedVariant.size_bytes)}</span>)}@@ -503,20 +503,20 @@ export function LocalOnDeviceCard({setVariantOpen(false);}}className={cn(- "mx-2 flex w-[calc(100%-16px)] min-w-0 cursor-pointer items-center gap-2 rounded-[10px] px-2.5 py-2 text-left transition-colors",+ "mx-2 flex w-[calc(100%-1rem)] min-w-0 cursor-pointer items-center gap-2 rounded-[10px] px-2.5 py-2 text-left transition-colors",isSelected? "bg-foreground/[0.07] dark:bg-foreground/[0.12]": "hover:bg-foreground/[0.05] dark:hover:bg-foreground/[0.06]",)}>- <span className="min-w-0 flex-1 truncate font-mono text-[0.75rem] text-format-gguf">+ <span className="min-w-0 flex-1 truncate font-mono text-ui-12 text-format-gguf">{label}</span><span className="flex shrink-0 items-center gap-1.5">{isLoaded && (<DotTag tone="success" label="Loaded" />)}- <span className="text-[0.625rem] text-muted-foreground tabular-nums">+ <span className="text-ui-10 text-muted-foreground tabular-nums">{formatBytes(variant.size_bytes)}</span></span>diff --git a/studio/frontend/src/features/hub/catalog/model-card.tsx b/studio/frontend/src/features/hub/catalog/model-card.tsxindex 236e0ce7468..b042eb1ad03 100644--- a/studio/frontend/src/features/hub/catalog/model-card.tsx+++ b/studio/frontend/src/features/hub/catalog/model-card.tsx@@ -283,14 +283,14 @@ export const ModelCard = memo(function ModelCard({<OwnerAvatarowner={row.owner}repoName={row.repo}- className="size-11 shrink-0 rounded-[14px] text-[1.0625rem] ring-1 ring-white/10"+ className="size-11 shrink-0 rounded-[14px] text-ui-17 ring-1 ring-white/10"remote={false}/><div className="min-w-0 flex-1 space-y-0.5">- <p className="hub-trending-title line-clamp-2 text-[0.84375rem] font-semibold leading-[1rem] text-foreground">+ <p className="hub-trending-title line-clamp-2 text-ui-13p5 font-semibold leading-ui-16 text-foreground">{row.repo}</p>- <span className="hub-trending-owner flex min-w-0 items-center gap-1 text-[0.71875rem] leading-[0.9375rem] text-muted-foreground/80">+ <span className="hub-trending-owner flex min-w-0 items-center gap-1 text-ui-11p5 leading-ui-15 text-muted-foreground/80"><span className="truncate">{row.owner}</span>{row.owner.toLowerCase() === "unsloth" && (<spandiff --git a/studio/frontend/src/features/hub/catalog/model-inspector.tsx b/studio/frontend/src/features/hub/catalog/model-inspector.tsxindex e400abcd4bb..c304738ab19 100644--- a/studio/frontend/src/features/hub/catalog/model-inspector.tsx+++ b/studio/frontend/src/features/hub/catalog/model-inspector.tsx@@ -166,7 +166,7 @@ function StatRow({return (<Tooltip><TooltipTrigger asChild={true}>- <span className="hub-tag-meta inline-flex cursor-default items-center gap-1.5 px-2.5 py-1 text-[0.71875rem] text-muted-foreground transition-colors hover:text-foreground/80">+ <span className="hub-tag-meta inline-flex cursor-default items-center gap-1.5 px-2.5 py-1 text-ui-11p5 text-muted-foreground transition-colors hover:text-foreground/80"><HugeiconsIconicon={icon}strokeWidth={1.75}@@ -208,7 +208,7 @@ function StatusChip({return (<spanclassName={cn(- "inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-full border bg-transparent px-2 text-[0.6875rem] font-medium leading-none",+ "inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-full border bg-transparent px-2 text-ui-11 font-medium leading-none",toneClass,className,)}@@ -248,12 +248,12 @@ function BaseModelSearchChip({<buttontype="button"onClick={() => onSearchHub(searchTerm)}- className="inline-flex h-6 max-w-full cursor-pointer items-center gap-1.5 rounded-full bg-muted px-2.5 text-[0.71875rem] transition-colors hover:bg-muted/80 dark:bg-[rgba(255,255,255,0.04)]"+ className="inline-flex h-6 max-w-full cursor-pointer items-center gap-1.5 rounded-full bg-muted px-2.5 text-ui-11p5 transition-colors hover:bg-muted/80 dark:bg-[rgba(255,255,255,0.04)]">{content}</button>) : (- <span className="inline-flex h-6 max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 text-[0.71875rem] dark:bg-[rgba(255,255,255,0.04)]">+ <span className="inline-flex h-6 max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 text-ui-11p5 dark:bg-[rgba(255,255,255,0.04)]">{content}</span>)}@@ -325,11 +325,11 @@ function ModelStatusChips({>This model may not be supported yet.{unslothSupport.reason && (- <span className="mt-1 block text-[0.65625rem] font-normal text-white/75">+ <span className="mt-1 block text-ui-10p5 font-normal text-white/75">{unslothSupport.reason}</span>)}- <span className="mt-1 block text-[0.65625rem] font-normal text-white/75">+ <span className="mt-1 block text-ui-10p5 font-normal text-white/75">Still downloadable to your Hugging Face cache.</span></TooltipContent>@@ -349,7 +349,7 @@ function ModelStatusChips({>This device has no supported GPU or usable MLX, so only GGUF modelscan run here.- <span className="mt-1 block text-[0.65625rem] font-normal text-white/75">+ <span className="mt-1 block text-ui-10p5 font-normal text-white/75">Still downloadable to your Hugging Face cache.</span></TooltipContent>@@ -368,7 +368,7 @@ function ModelStatusChips({className="tooltip-compact max-w-xs">Estimated 4-bit memory load is around {vramInfo.est} GB.- <span className="mt-1 block text-[0.65625rem] font-normal text-white/75">+ <span className="mt-1 block text-ui-10p5 font-normal text-white/75">{vramDetail}</span></TooltipContent>@@ -502,10 +502,10 @@ export const ModelInspector = memo(function ModelInspector({<HugeiconsIcon icon={CubeIcon} strokeWidth={1.5} className="size-5" /></div><div className="space-y-1">- <p className="text-[0.9375rem] font-semibold tracking-tight text-foreground">+ <p className="text-ui-15 font-semibold tracking-tight text-foreground">Select a {isDataset ? "dataset" : "model"}</p>- <p className="max-w-sm text-[0.78125rem] leading-5 text-muted-foreground">+ <p className="max-w-sm text-ui-12p5 leading-5 text-muted-foreground">{isDataset? "Choose a dataset from the catalog to inspect its download state and details.": "Choose an item from the catalog to inspect its runtime fit, download state, and model card."}@@ -528,7 +528,7 @@ export const ModelInspector = memo(function ModelInspector({model.downloadsAllTime != null ? (<>Downloads (30 days)- <span className="mt-1 block text-[0.65625rem] font-normal text-white/75">+ <span className="mt-1 block text-ui-10p5 font-normal text-white/75">{formatCompact(model.downloadsAllTime)} all time</span></>@@ -582,11 +582,11 @@ export const ModelInspector = memo(function ModelInspector({<OwnerAvatarowner={model.owner}repoName={model.title}- className="size-[60px] rounded-[18px] text-[1.1875rem]"+ className="size-[60px] rounded-[18px] text-ui-19"/><div className="min-w-0 flex-1"><div className="flex min-w-0 items-center gap-1.5">- <h2 className="truncate text-[1.5625rem] font-semibold leading-[1.9375rem] tracking-normal text-foreground">+ <h2 className="truncate text-ui-25 font-semibold leading-ui-31 tracking-normal text-foreground">{model.title}</h2>{model.hubRepoId && (@@ -599,7 +599,7 @@ export const ModelInspector = memo(function ModelInspector({</div>)}</div>- <div className="mt-0.5 flex min-w-0 items-center gap-1 text-[0.9375rem] leading-[1.5rem] text-muted-foreground">+ <div className="mt-0.5 flex min-w-0 items-center gap-1 text-ui-15 leading-ui-24 text-muted-foreground"><span className="truncate">{model.owner}</span>{model.owner.toLowerCase() === "unsloth" && (<span@@ -613,12 +613,12 @@ export const ModelInspector = memo(function ModelInspector({<div className="mt-4 flex flex-wrap items-center gap-1.5">{isDataset && (- <span className="inline-flex shrink-0 items-center rounded-full border border-violet-500/40 bg-transparent px-2 py-0.5 text-[0.71875rem] font-medium text-violet-600 dark:text-violet-400">+ <span className="inline-flex shrink-0 items-center rounded-full border border-violet-500/40 bg-transparent px-2 py-0.5 text-ui-11p5 font-medium text-violet-600 dark:text-violet-400">Dataset</span>)}{!isDataset && (- <span className="inline-flex h-6 items-center gap-1.5 rounded-full bg-muted px-2.5 text-[0.71875rem] font-medium text-foreground dark:bg-[rgba(255,255,255,0.04)]">+ <span className="inline-flex h-6 items-center gap-1.5 rounded-full bg-muted px-2.5 text-ui-11p5 font-medium text-foreground dark:bg-[rgba(255,255,255,0.04)]"><HugeiconsIconicon={CubeIcon}strokeWidth={1.75}@@ -736,12 +736,12 @@ export const ModelInspector = memo(function ModelInspector({<div className="pb-5 pt-5">{selectionHiddenByFilters && (- <p className="mb-3 rounded-[8px] border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[0.71875rem] leading-snug text-muted-foreground">+ <p className="mb-3 rounded-[8px] border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-ui-11p5 leading-snug text-muted-foreground">Current selection is hidden by the active filters or search.</p>)}{metadataUnavailable && (- <p className="mb-3 text-[0.71875rem] leading-snug text-muted-foreground">+ <p className="mb-3 text-ui-11p5 leading-snug text-muted-foreground">Couldn't load full details from Hugging Face. Some fields may beincomplete.</p>diff --git a/studio/frontend/src/features/hub/catalog/model-readme.tsx b/studio/frontend/src/features/hub/catalog/model-readme.tsxindex 42cc55372a8..889b0113993 100644--- a/studio/frontend/src/features/hub/catalog/model-readme.tsx+++ b/studio/frontend/src/features/hub/catalog/model-readme.tsx@@ -126,17 +126,17 @@ function prepareReadmeBody(markdown: string): string {}const PROSE = cn(- "max-w-none text-[0.84375rem] leading-[1.7] text-foreground/85",- "[&_h1]:text-[1.125rem] [&_h1]:font-semibold [&_h1]:tracking-tight [&_h1]:mt-2 [&_h1]:mb-3",- "[&_h2]:text-[0.96875rem] [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2]:mt-5 [&_h2]:mb-2",- "[&_h3]:text-[0.875rem] [&_h3]:font-semibold [&_h3]:mt-4 [&_h3]:mb-1.5",+ "max-w-none text-ui-13p5 leading-[1.7] text-foreground/85",+ "[&_h1]:text-ui-18 [&_h1]:font-semibold [&_h1]:tracking-tight [&_h1]:mt-2 [&_h1]:mb-3",+ "[&_h2]:text-ui-15p5 [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2]:mt-5 [&_h2]:mb-2",+ "[&_h3]:text-ui-14 [&_h3]:font-semibold [&_h3]:mt-4 [&_h3]:mb-1.5","[&_p]:my-2.5 [&_ul]:my-2 [&_ol]:my-2 [&_li]:my-0.5","[&_a]:text-primary [&_a:hover]:underline",- "[&_code]:rounded-md [&_code]:bg-muted/60 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-[0.75rem] [&_code]:font-mono",- "[&_pre]:rounded-[12px] [&_pre]:border [&_pre]:border-border/60 [&_pre]:bg-muted/40 [&_pre]:p-3 [&_pre]:text-[0.75rem] [&_pre]:overflow-x-auto",+ "[&_code]:rounded-md [&_code]:bg-muted/60 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-ui-12 [&_code]:font-mono",+ "[&_pre]:rounded-[12px] [&_pre]:border [&_pre]:border-border/60 [&_pre]:bg-muted/40 [&_pre]:p-3 [&_pre]:text-ui-12 [&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent [&_pre_code]:p-0","[&_blockquote]:border-l-2 [&_blockquote]:border-border/60 [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground",- "[&_table]:my-3 [&_table]:text-[0.78125rem]",+ "[&_table]:my-3 [&_table]:text-ui-12p5","[&_th]:px-2 [&_th]:py-1.5 [&_th]:text-left [&_th]:font-semibold [&_th]:border-b [&_th]:border-border/60","[&_td]:px-2 [&_td]:py-1.5 [&_td]:border-b [&_td]:border-border/40","[&_img]:rounded-[10px] [&_img]:my-2 [&_img]:max-w-full",@@ -300,7 +300,7 @@ function ReadmePlaceholder({aria-busy="true"aria-live="polite">- <div className="flex items-center gap-2 text-[0.78125rem] text-muted-foreground">+ <div className="flex items-center gap-2 text-ui-12p5 text-muted-foreground"><Spinner className="size-3.5" />{message ?? `Loading ${kind === "dataset" ? "dataset" : "model"} card…`}</div>@@ -540,7 +540,7 @@ export function ModelReadme({? current.error: readmeUnavailableMessage(subject);return (- <p className="min-h-[44px] text-[0.78125rem] text-muted-foreground">+ <p className="min-h-[44px] text-ui-12p5 text-muted-foreground">{errorMessage}</p>);@@ -548,7 +548,7 @@ export function ModelReadme({if (!current.body) {return (- <p className="min-h-[44px] text-[0.78125rem] text-muted-foreground">+ <p className="min-h-[44px] text-ui-12p5 text-muted-foreground">{readmeMissingMessage(subject)}</p>);diff --git a/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx b/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsxindex 926c002a65a..cbae1080063 100644--- a/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx+++ b/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx@@ -68,7 +68,7 @@ export function InventoryWarningRow({onRetry: () => void;}) {return (- <div className="mx-5 mt-2 rounded-[8px] border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[0.78125rem] text-muted-foreground">+ <div className="mx-5 mt-2 rounded-[8px] border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-ui-12p5 text-muted-foreground"><div className="flex items-center justify-between gap-3"><span>Some on-device sources couldn't be scanned. Showing available{" "}@@ -76,7 +76,7 @@ export function InventoryWarningRow({</span><buttontype="button"- className="shrink-0 text-[0.75rem] font-medium text-foreground transition-colors hover:text-primary"+ className="shrink-0 text-ui-12 font-medium text-foreground transition-colors hover:text-primary"onClick={onRetry}>Retry@@ -388,7 +388,7 @@ export function DownloadedList({if (!downloadedReady && !hasInventoryRows) {return (- <div className="flex min-h-[240px] items-center justify-center gap-3 text-[0.8125rem] text-muted-foreground">+ <div className="flex min-h-[240px] items-center justify-center gap-3 text-ui-13 text-muted-foreground"><Spinner className="size-4" />Loading local inventory...</div>@@ -416,7 +416,7 @@ export function DownloadedList({<buttontype="button"onClick={onClearFilters}- className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-[0.75rem] font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]"+ className="inline-flex h-8 items-center gap-1.5 rounded-full bg-transparent px-3 text-ui-12 font-medium text-foreground transition-colors hover:bg-foreground/[0.04] dark:hover:bg-white/[0.05]">Show all types</button>@@ -444,7 +444,7 @@ export function DownloadedList({<>{pinnedItems.length > 0 && (<>- <div className="flex items-center gap-1.5 px-1 pb-2 pt-3 text-[0.6875rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="flex items-center gap-1.5 px-1 pb-2 pt-3 text-ui-11 font-semibold uppercase tracking-wider text-muted-foreground"><HugeiconsIconicon={PinIcon}strokeWidth={1.75}@@ -474,7 +474,7 @@ export function DownloadedList({))}</div>{unpinnedItems.length > 0 && (- <div className="px-1 pb-2 pt-2 text-[0.6875rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="px-1 pb-2 pt-2 text-ui-11 font-semibold uppercase tracking-wider text-muted-foreground">All {isDataset ? "datasets" : "models"}</div>)}diff --git a/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx b/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsxindex 156bafba70d..24b3fd49ef1 100644--- a/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx+++ b/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx@@ -188,14 +188,14 @@ function CachedSizeChipLive({<StatChipicon={PackageIcon}value={formatBytes(row.size_bytes)}- className="text-[0.6875rem] text-white/70"+ className="text-ui-11 text-white/70"/></span></li>))}</ul>) : (- <span className="block max-w-52 text-[0.6875rem] leading-4 text-muted-foreground">+ <span className="block max-w-52 text-ui-11 leading-4 text-muted-foreground">{variantMessage}</span>)}@@ -225,7 +225,7 @@ export function StatChip({return (<spanclassName={cn(- "inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-[0.625rem] font-medium leading-none tabular-nums text-muted-foreground/75",+ "inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-ui-10 font-medium leading-none tabular-nums text-muted-foreground/75",className,)}>@@ -482,7 +482,7 @@ export const DiscoverModelRow = memo(function DiscoverModelRow({<div className="flex min-w-0 flex-1 flex-col gap-[3px]"><div className="flex h-[18px] min-w-0 items-center justify-between gap-2"><div className="flex min-w-0 items-center gap-2 pr-2">- <p className="truncate text-[0.75rem] font-medium leading-[1.125rem] tracking-[-0.005em] text-foreground">+ <p className="truncate text-ui-12 font-medium leading-ui-18 tracking-[-0.005em] text-foreground">{row.repo}</p><AccessGlyphs@@ -518,7 +518,7 @@ export const DiscoverModelRow = memo(function DiscoverModelRow({/></div></div>- <div className="flex h-[16px] min-w-0 items-center justify-between gap-2 text-[0.71875rem] leading-[1rem] text-muted-foreground/85">+ <div className="flex h-[16px] min-w-0 items-center justify-between gap-2 text-ui-11p5 leading-ui-16 text-muted-foreground/85"><span className="flex min-w-0 items-center gap-1"><span className="truncate">{row.owner}</span>{row.owner.toLowerCase() === "unsloth" && (@@ -528,7 +528,7 @@ export const DiscoverModelRow = memo(function DiscoverModelRow({/>)}</span>- <span className="shrink-0 text-[0.65625rem] tabular-nums">+ <span className="shrink-0 text-ui-10p5 tabular-nums">{formatRelativeShort(row.result.updatedAt)}</span></div>@@ -666,7 +666,7 @@ export const InventoryRow = memo(function InventoryRow({<span className="hub-chip tabular-nums">{paramLabel}</span>)}{quantLabel && (- <span className="hub-chip font-mono text-[0.65625rem] uppercase">+ <span className="hub-chip font-mono text-ui-10p5 uppercase">{quantLabel}</span>)}@@ -716,7 +716,7 @@ export const InventoryRow = memo(function InventoryRow({) : null;const ownerLine = (- <span className="mt-0.5 flex min-w-0 items-center gap-1 text-[0.71875rem] leading-[0.9375rem] text-muted-foreground/80">+ <span className="mt-0.5 flex min-w-0 items-center gap-1 text-ui-11p5 leading-ui-15 text-muted-foreground/80"><span className="truncate">{subLabel}</span>{subLabel.toLowerCase() === "unsloth" && (<span@@ -817,17 +817,17 @@ export const InventoryRow = memo(function InventoryRow({<OwnerAvatarowner={row.owner}repoName={title}- className="size-8 shrink-0 rounded-[9px] text-[0.75rem]"+ className="size-8 shrink-0 rounded-[9px] text-ui-12"remote={false}/><div className="min-w-0 flex-1"><div className="flex min-w-0 items-center gap-1.5">- <span className="truncate text-[0.78125rem] font-semibold leading-[1rem] text-foreground">+ <span className="truncate text-ui-12p5 font-semibold leading-ui-16 text-foreground">{title}</span>{compactMarkers}</div>- <span className="mt-0.5 flex min-w-0 items-center gap-1.5 text-[0.65625rem] leading-[0.875rem] text-muted-foreground/75">+ <span className="mt-0.5 flex min-w-0 items-center gap-1.5 text-ui-10p5 leading-ui-14 text-muted-foreground/75"><span className="flex min-w-0 items-center gap-1"><span className="truncate">{subLabel}</span>{subLabel.toLowerCase() === "unsloth" && (@@ -851,7 +851,7 @@ export const InventoryRow = memo(function InventoryRow({)}</span></div>- <div className="flex shrink-0 items-center gap-2 text-[0.65625rem] tabular-nums text-muted-foreground/70">+ <div className="flex shrink-0 items-center gap-2 text-ui-10p5 tabular-nums text-muted-foreground/70">{row.kind === "cache" ? (<CachedSizeChiprepoId={row.repoId}@@ -894,7 +894,7 @@ export const InventoryRow = memo(function InventoryRow({/><div className="min-w-0 flex-1"><div className="flex min-w-0 items-center gap-1.5">- <span className="truncate text-[0.84375rem] font-semibold leading-[1.0625rem] text-foreground">+ <span className="truncate text-ui-13p5 font-semibold leading-ui-17 text-foreground">{title}</span>{statusMarkers}@@ -915,11 +915,11 @@ export const InventoryRow = memo(function InventoryRow({cachePath={row.cachePath}/>) : trailing ? (- <span className="truncate text-[0.71875rem] tabular-nums text-muted-foreground/70">+ <span className="truncate text-ui-11p5 tabular-nums text-muted-foreground/70">{trailing}</span>) : sourceLabel ? (- <span className="truncate text-[0.71875rem] text-muted-foreground/55">+ <span className="truncate text-ui-11p5 text-muted-foreground/55">{sourceLabel}</span>) : null}diff --git a/studio/frontend/src/features/hub/catalog/models-header.tsx b/studio/frontend/src/features/hub/catalog/models-header.tsxindex 1702ed6fca7..f0e09508717 100644--- a/studio/frontend/src/features/hub/catalog/models-header.tsx+++ b/studio/frontend/src/features/hub/catalog/models-header.tsx@@ -91,7 +91,7 @@ export function ModelsHeader({<StatPill icon={CpuIcon} label="CPU" value={coreLabel} />{activeCheckpoint && (- <div className="hub-tag-soft ml-1 inline-flex items-center gap-1.5 px-2 py-1 text-[0.71875rem]">+ <div className="hub-tag-soft ml-1 inline-flex items-center gap-1.5 px-2 py-1 text-ui-11p5"><spanclassName="size-1.5 rounded-full bg-emerald-500"aria-hidden="true"@@ -115,7 +115,7 @@ export function ModelsHeader({<buttontype="button"onClick={onEject}- className="-mr-0.5 ml-0.5 inline-flex cursor-pointer items-center gap-1 rounded-md px-1.5 text-[0.6875rem] text-muted-foreground transition-colors hover:text-foreground"+ className="-mr-0.5 ml-0.5 inline-flex cursor-pointer items-center gap-1 rounded-md px-1.5 text-ui-11 text-muted-foreground transition-colors hover:text-foreground"><HugeiconsIconicon={RemoveCircleIcon}diff --git a/studio/frontend/src/features/hub/catalog/models-table.tsx b/studio/frontend/src/features/hub/catalog/models-table.tsxindex 9743526f843..e3cd77f781a 100644--- a/studio/frontend/src/features/hub/catalog/models-table.tsx+++ b/studio/frontend/src/features/hub/catalog/models-table.tsx@@ -140,7 +140,7 @@ export function InventorySortControl({title={selected?.label}// Capped and shrinkable so a long label truncates instead of wrapping// the "On device" heading beside these pills in the narrow split pane.- className="h-8 min-w-[72px] max-w-[124px] shrink text-[0.71875rem]"+ className="h-8 min-w-[72px] max-w-[124px] shrink text-ui-11p5"triggerContent={<span className="flex min-w-0 items-center gap-1"><HugeiconsIcon@@ -176,7 +176,7 @@ export function InventoryTypeFilterControl({title={selected?.label}// Capped and shrinkable so a long label ("Speech to text") truncates// instead of wrapping the "On device" heading beside these pills.- className="h-8 min-w-[72px] max-w-[124px] shrink text-[0.71875rem]"+ className="h-8 min-w-[72px] max-w-[124px] shrink text-ui-11p5"/>);}@@ -230,11 +230,11 @@ export function HubListHeader({<div className="min-w-0 space-y-0.5">{/* truncate keeps the heading on one line and clips a long searchquery with an ellipsis instead of overflowing the pills. */}- <h2 className="truncate text-[1.125rem] font-semibold tracking-[-0.02em] text-foreground">+ <h2 className="truncate text-ui-18 font-semibold tracking-[-0.02em] text-foreground">{title}</h2>{subtitle && (- <p className="text-[0.78125rem] leading-tight text-muted-foreground">+ <p className="text-ui-12p5 leading-tight text-muted-foreground">{subtitle}</p>)}@@ -309,7 +309,7 @@ export function HubListHeader({export function ResultListHeader({ isDataset }: { isDataset: boolean }) {return (- <div className="flex w-full items-center gap-3 px-4 pb-2 text-[0.6875rem] font-medium text-muted-foreground/55">+ <div className="flex w-full items-center gap-3 px-4 pb-2 text-ui-11 font-medium text-muted-foreground/55"><span className={LIST_COLS.model}>{isDataset ? "Dataset" : "Model"}</span><span className={isDataset ? LIST_COLS.caps : LIST_COLS.capsModel}>{isDataset ? "Details" : "Capabilities"}@@ -445,7 +445,7 @@ function CapabilitiesCell({))}{extra > 0 && <span className="hub-chip shrink-0">+{extra}</span>}{shown.length === 0 && taskLabel && (- <span className="truncate text-[0.75rem] text-muted-foreground/75">+ <span className="truncate text-ui-12 text-muted-foreground/75">{taskLabel}</span>)}@@ -454,7 +454,7 @@ function CapabilitiesCell({<TooltipContent side="top" align="start" className="tooltip-compact"><div className="flex flex-col items-start gap-1">{taskLabel && (- <span className="text-[0.6875rem] font-medium text-muted-foreground">+ <span className="text-ui-11 font-medium text-muted-foreground">{taskLabel}</span>)}@@ -642,12 +642,12 @@ export const ResultCard = memo(function ResultCard({<OwnerAvatarowner={row.owner}repoName={row.repo}- className="size-[52px] shrink-0 rounded-[16px] text-[1rem] ring-1 ring-black/5 dark:ring-white/10"+ className="size-[52px] shrink-0 rounded-[16px] text-ui-16 ring-1 ring-black/5 dark:ring-white/10"remote={false}/><div className="flex min-w-0 flex-1 flex-col"><div className="flex min-w-0 items-center gap-2">- <span className="truncate text-[0.9375rem] font-semibold leading-[1.125rem] text-foreground">+ <span className="truncate text-ui-15 font-semibold leading-ui-18 text-foreground">{row.repo}</span><TitleMarkers@@ -659,10 +659,10 @@ export const ResultCard = memo(function ResultCard({onDevice={onDevice}/></div>- <span className="flex min-w-0 items-center gap-1 text-[0.78125rem] leading-[1rem] text-muted-foreground/80">+ <span className="flex min-w-0 items-center gap-1 text-ui-12p5 leading-ui-16 text-muted-foreground/80"><VerifiedOwner owner={row.owner} /></span>- <div className="flex min-w-0 items-center gap-2 overflow-hidden text-[0.71875rem] leading-[1rem] tabular-nums text-muted-foreground/65">+ <div className="flex min-w-0 items-center gap-2 overflow-hidden text-ui-11p5 leading-ui-16 tabular-nums text-muted-foreground/65">{textParts.map((part, index) => (<Fragment key={part.key}>{index > 0 && (@@ -761,12 +761,12 @@ export const ResultGridRow = memo(function ResultGridRow({<OwnerAvatarowner={row.owner}repoName={row.repo}- className="size-9 shrink-0 rounded-[12px] text-[0.8125rem] ring-1 ring-black/5 dark:ring-white/10"+ className="size-9 shrink-0 rounded-[12px] text-ui-13 ring-1 ring-black/5 dark:ring-white/10"remote={false}/><div className="min-w-0 flex-1"><div className="flex min-w-0 items-center gap-1.5">- <span className="truncate text-[0.84375rem] font-semibold leading-[1.0625rem] text-foreground">+ <span className="truncate text-ui-13p5 font-semibold leading-ui-17 text-foreground">{row.repo}</span><TitleMarkers@@ -778,7 +778,7 @@ export const ResultGridRow = memo(function ResultGridRow({onDevice={onDevice}/></div>- <span className="mt-0.5 flex min-w-0 items-center gap-1 text-[0.71875rem] leading-[0.9375rem] text-muted-foreground/80">+ <span className="mt-0.5 flex min-w-0 items-center gap-1 text-ui-11p5 leading-ui-15 text-muted-foreground/80"><VerifiedOwner owner={row.owner} /></span></div>@@ -786,7 +786,7 @@ export const ResultGridRow = memo(function ResultGridRow({<div className={isDataset ? LIST_COLS.caps : LIST_COLS.capsModel}>{isDataset ? (row.summary ? (- <span className="truncate text-[0.75rem] text-muted-foreground/75">+ <span className="truncate text-ui-12 text-muted-foreground/75">{row.summary}</span>) : null@@ -801,7 +801,7 @@ export const ResultGridRow = memo(function ResultGridRow({<divclassName={cn(LIST_COLS.size,- "truncate text-[0.75rem] tabular-nums text-muted-foreground",+ "truncate text-ui-12 tabular-nums text-muted-foreground",)}>{sizeDisplay ?? "—"}@@ -809,7 +809,7 @@ export const ResultGridRow = memo(function ResultGridRow({<divclassName={cn(LIST_COLS.updated,- "truncate text-[0.75rem] tabular-nums text-muted-foreground",+ "truncate text-ui-12 tabular-nums text-muted-foreground",)}>{formatRelativeShort(row.result.updatedAt)}@@ -817,7 +817,7 @@ export const ResultGridRow = memo(function ResultGridRow({<divclassName={cn(LIST_COLS.downloads,- "text-[0.75rem] tabular-nums text-muted-foreground",+ "text-ui-12 tabular-nums text-muted-foreground",)}><StatItem@@ -828,7 +828,7 @@ export const ResultGridRow = memo(function ResultGridRow({<divclassName={cn(LIST_COLS.likes,- "text-[0.75rem] tabular-nums text-muted-foreground",+ "text-ui-12 tabular-nums text-muted-foreground",)}><StatItem@@ -883,12 +883,12 @@ export const ResultSplitRow = memo(function ResultSplitRow({<OwnerAvatarowner={row.owner}repoName={row.repo}- className="size-8 shrink-0 rounded-[9px] text-[0.75rem]"+ className="size-8 shrink-0 rounded-[9px] text-ui-12"remote={false}/><div className="flex min-w-0 flex-1 flex-col"><div className="flex min-w-0 items-center gap-1.5">- <span className="truncate text-[0.78125rem] font-semibold leading-[1rem] text-foreground">+ <span className="truncate text-ui-12p5 font-semibold leading-ui-16 text-foreground">{row.repo}</span><TitleMarkers@@ -900,11 +900,11 @@ export const ResultSplitRow = memo(function ResultSplitRow({onDevice={onDevice}/></div>- <span className="mt-0.5 flex min-w-0 items-center gap-1 text-[0.65625rem] leading-[0.875rem] text-muted-foreground/80">+ <span className="mt-0.5 flex min-w-0 items-center gap-1 text-ui-10p5 leading-ui-14 text-muted-foreground/80"><VerifiedOwner owner={row.owner} /></span></div>- <div className="flex shrink-0 flex-col items-end gap-0.5 text-[0.65625rem] tabular-nums text-muted-foreground/70">+ <div className="flex shrink-0 flex-col items-end gap-0.5 text-ui-10p5 tabular-nums text-muted-foreground/70"><div className="flex items-center gap-2"><span className="inline-flex items-center gap-1"><HugeiconsIcondiff --git a/studio/frontend/src/features/hub/catalog/models-toolbar.tsx b/studio/frontend/src/features/hub/catalog/models-toolbar.tsxindex a123dfca4a4..a12b0b55715 100644--- a/studio/frontend/src/features/hub/catalog/models-toolbar.tsx+++ b/studio/frontend/src/features/hub/catalog/models-toolbar.tsx@@ -194,7 +194,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({aria-checked={tab === "discover"}onClick={() => onTabChange("discover")}className={cn(- "relative z-10 inline-flex h-9 flex-1 items-center justify-center rounded-full px-3 text-[0.78125rem] transition-colors",+ "relative z-10 inline-flex h-9 flex-1 items-center justify-center rounded-full px-3 text-ui-12p5 transition-colors",tab === "discover"? "text-foreground": "text-muted-foreground hover:text-foreground",@@ -208,7 +208,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({aria-checked={tab === "downloaded"}onClick={() => onTabChange("downloaded")}className={cn(- "relative z-10 inline-flex h-9 flex-1 items-center justify-center rounded-full px-3 text-[0.78125rem] transition-colors",+ "relative z-10 inline-flex h-9 flex-1 items-center justify-center rounded-full px-3 text-ui-12p5 transition-colors",tab === "downloaded"? "text-foreground": "text-muted-foreground hover:text-foreground",@@ -261,7 +261,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({: "Search all models"}className={cn(- "field-soft h-9 rounded-full !border-0 pl-10 text-[0.8125rem] placeholder:text-muted-foreground/80 focus-visible:!ring-0",+ "field-soft h-9 rounded-full !border-0 pl-10 text-ui-13 placeholder:text-muted-foreground/80 focus-visible:!ring-0",hasTrailing ? "pr-10" : "pr-4",)}/>@@ -306,7 +306,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({onClick={onManageLocalFolders}className={cn(triggerBase,- "field-filter inline-flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-[0.78125rem]",+ "field-filter inline-flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-ui-12p5",)}><HugeiconsIcon@@ -365,7 +365,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({role="checkbox"aria-checked={fitOnDeviceOnly}onClick={() => onFitOnDeviceOnlyChange(!fitOnDeviceOnly)}- className="flex w-full cursor-pointer select-none items-center gap-2 rounded-[10px] px-3 py-2 text-left text-[0.78125rem] text-muted-foreground transition-colors hover:text-foreground"+ className="flex w-full cursor-pointer select-none items-center gap-2 rounded-[10px] px-3 py-2 text-left text-ui-12p5 text-muted-foreground transition-colors hover:text-foreground"><Checkboxchecked={fitOnDeviceOnly}diff --git a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsxindex 5b11a0dbade..2b0f2c3a8dd 100644--- a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx+++ b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx@@ -186,7 +186,7 @@ export function OnDeviceFoldersDialog({overlayClassName="bg-black/20 backdrop-blur-none"><DialogHeader className="border-b border-border/60 px-5 py-4">- <DialogTitle className="text-[0.9375rem]">+ <DialogTitle className="text-ui-15">On-device locations</DialogTitle><DialogDescription className="sr-only">@@ -197,7 +197,7 @@ export function OnDeviceFoldersDialog({<div className="space-y-4 px-5 py-4"><div className="rounded-[14px] border border-border/70 bg-muted/20 p-3">- <div className="mb-2 flex items-center gap-2 text-[0.75rem] font-medium text-foreground">+ <div className="mb-2 flex items-center gap-2 text-ui-12 font-medium text-foreground"><HugeiconsIconicon={FolderAddIcon}strokeWidth={1.75}@@ -222,7 +222,7 @@ export function OnDeviceFoldersDialog({void handleAdd(path);}}placeholder="Paste model folder or file path"- className="field-soft h-9 rounded-full pl-9 pr-3 font-mono text-[0.75rem] placeholder:font-sans"+ className="field-soft h-9 rounded-full pl-9 pr-3 font-mono text-ui-12 placeholder:font-sans"/></div><div className="flex shrink-0 items-center gap-2">@@ -252,7 +252,7 @@ export function OnDeviceFoldersDialog({size="sm"onClick={() => void handleAdd(path)}disabled={!path.trim() || pending !== null}- className="h-9 rounded-full px-3 text-[0.78125rem]"+ className="h-9 rounded-full px-3 text-ui-12p5">{pending === "add" ? (<Spinner className="size-3.5" />@@ -271,14 +271,14 @@ export function OnDeviceFoldersDialog({</div>{error ? (- <div className="rounded-[10px] border border-destructive/20 bg-destructive/5 px-3 py-2 text-[0.75rem] text-destructive">+ <div className="rounded-[10px] border border-destructive/20 bg-destructive/5 px-3 py-2 text-ui-12 text-destructive">{error}</div>) : null}<div className="overflow-hidden rounded-[14px] border border-border/70"><div className="flex h-10 items-center justify-between border-b border-border/60 px-3">- <span className="text-[0.75rem] font-medium text-foreground">+ <span className="text-ui-12 font-medium text-foreground">Indexed locations</span><Tooltip>@@ -305,12 +305,12 @@ export function OnDeviceFoldersDialog({<div className="max-h-64 overflow-y-auto">{loading ? (- <div className="flex h-24 items-center justify-center gap-2 text-[0.75rem] text-muted-foreground">+ <div className="flex h-24 items-center justify-center gap-2 text-ui-12 text-muted-foreground"><Spinner className="size-3.5" />Loading locations...</div>) : sortedFolders.length === 0 ? (- <div className="flex h-28 flex-col items-center justify-center gap-2 px-4 text-center text-[0.75rem] text-muted-foreground">+ <div className="flex h-28 flex-col items-center justify-center gap-2 px-4 text-center text-ui-12 text-muted-foreground"><HugeiconsIconicon={FolderOpenIcon}strokeWidth={1.75}@@ -327,8 +327,8 @@ export function OnDeviceFoldersDialog({className={cn("grid min-h-12 w-full items-center gap-3 border-b border-border/50 px-3 py-2 last:border-b-0",isTauri- ? "grid-cols-[32px_minmax(0,1fr)_32px_32px]"- : "grid-cols-[32px_minmax(0,1fr)_32px]",+ ? "grid-cols-[2rem_minmax(0,1fr)_2rem_2rem]"+ : "grid-cols-[2rem_minmax(0,1fr)_2rem]",)}><div className="flex size-8 shrink-0 items-center justify-center rounded-[9px] bg-muted text-muted-foreground">@@ -340,14 +340,14 @@ export function OnDeviceFoldersDialog({</div><div className="min-w-0 overflow-hidden"><p- className="block w-full truncate text-[0.78125rem] font-medium text-foreground"+ className="block w-full truncate text-ui-12p5 font-medium text-foreground"title={pathTail(folder.path)}>{pathTail(folder.path)}</p><Tooltip><TooltipTrigger asChild={true}>- <p className="block w-full truncate font-mono text-[0.65625rem] text-muted-foreground">+ <p className="block w-full truncate font-mono text-ui-10p5 text-muted-foreground">{folder.path}</p></TooltipTrigger>diff --git a/studio/frontend/src/features/hub/catalog/owner-avatar.tsx b/studio/frontend/src/features/hub/catalog/owner-avatar.tsxindex 9c557b0e5e8..ac8bee9ade9 100644--- a/studio/frontend/src/features/hub/catalog/owner-avatar.tsx+++ b/studio/frontend/src/features/hub/catalog/owner-avatar.tsx@@ -13,10 +13,10 @@ import {type AvatarSize = "xs" | "sm" | "md" | "lg";const SIZES: Record<AvatarSize, string> = {- xs: "size-5 rounded-[8px] text-[0.5625rem]",- sm: "size-7 rounded-[10px] text-[0.6875rem]",- md: "size-9 rounded-[12px] text-[0.8125rem]",- lg: "size-12 rounded-[15px] text-[1rem]",+ xs: "size-5 rounded-[8px] text-ui-9",+ sm: "size-7 rounded-[10px] text-ui-11",+ md: "size-9 rounded-[12px] text-ui-13",+ lg: "size-12 rounded-[15px] text-ui-16",};const AVATAR_IMAGE_RETRY_BASE_MS = 60_000;diff --git a/studio/frontend/src/features/hub/catalog/owner-scope-toggle.tsx b/studio/frontend/src/features/hub/catalog/owner-scope-toggle.tsxindex 01b8c1a4e2b..d2870a09c4a 100644--- a/studio/frontend/src/features/hub/catalog/owner-scope-toggle.tsx+++ b/studio/frontend/src/features/hub/catalog/owner-scope-toggle.tsx@@ -29,7 +29,7 @@ export function OwnerScopeToggle({ariaLabel="Publisher scope"align="end"// Extra gap before the chevron; min-width keeps the pill readable.- className="h-8 min-w-[96px] gap-1.5 text-[0.71875rem]"+ className="h-8 min-w-[96px] gap-1.5 text-ui-11p5"/>);}diff --git a/studio/frontend/src/features/hub/catalog/recent-searches.tsx b/studio/frontend/src/features/hub/catalog/recent-searches.tsxindex 3b4c17e6fe9..a7fd10900f2 100644--- a/studio/frontend/src/features/hub/catalog/recent-searches.tsx+++ b/studio/frontend/src/features/hub/catalog/recent-searches.tsx@@ -30,13 +30,13 @@ export function RecentSearches({onMouseDown={(event) => event.preventDefault()}><div className="flex items-center justify-between gap-2 px-2.5 pb-1.5 pt-1">- <span className="text-[0.6875rem] font-semibold uppercase tracking-[0.04em] text-muted-foreground/70">+ <span className="text-ui-11 font-semibold uppercase tracking-[0.04em] text-muted-foreground/70">Recent searches</span><buttontype="button"onClick={onClear}- className="hub-recent-clear rounded-full px-2 py-0.5 text-[0.71875rem] font-medium text-muted-foreground transition-colors hover:text-foreground"+ className="hub-recent-clear rounded-full px-2 py-0.5 text-ui-11p5 font-medium text-muted-foreground transition-colors hover:text-foreground">Clear all</button>@@ -55,7 +55,7 @@ export function RecentSearches({strokeWidth={1.75}className="size-4 shrink-0 text-muted-foreground/70"/>- <span className="truncate text-[0.8125rem] text-foreground">+ <span className="truncate text-ui-13 text-foreground">{query}</span></button>diff --git a/studio/frontend/src/features/hub/catalog/safetensors-download-card.tsx b/studio/frontend/src/features/hub/catalog/safetensors-download-card.tsxindex d91fb94d3d5..0f219267c00 100644--- a/studio/frontend/src/features/hub/catalog/safetensors-download-card.tsx+++ b/studio/frontend/src/features/hub/catalog/safetensors-download-card.tsx@@ -199,7 +199,7 @@ export function SafetensorsDownloadCard({}><div className="relative flex h-9 min-w-0 flex-1 items-center pl-3 pr-2">- <span className="flex items-center gap-1.5 text-[0.75rem] text-muted-foreground">+ <span className="flex items-center gap-1.5 text-ui-12 text-muted-foreground">{(isActive || isDownloaded) && (<DotTagtone="success"diff --git a/studio/frontend/src/features/hub/catalog/sampling-settings-dialog.tsx b/studio/frontend/src/features/hub/catalog/sampling-settings-dialog.tsxindex 9f2e5c0d02b..bc86a6302c0 100644--- a/studio/frontend/src/features/hub/catalog/sampling-settings-dialog.tsx+++ b/studio/frontend/src/features/hub/catalog/sampling-settings-dialog.tsx@@ -53,7 +53,7 @@ function SettingsSection({<div className="border-t border-border/50 pb-5 pt-5 first:border-t-0 first:pt-0"><divclassName={cn(- "pb-4 text-[0.6875rem] font-semibold uppercase tracking-wider text-muted-foreground",+ "pb-4 text-ui-11 font-semibold uppercase tracking-wider text-muted-foreground",labelClassName,)}>@@ -80,7 +80,7 @@ function ToggleRow({return (<div className="flex items-center justify-between gap-3"><div className="flex min-w-0 items-center gap-1.5">- <span className="text-[0.8125rem] font-medium text-nav-fg">{label}</span>+ <span className="text-ui-13 font-medium text-nav-fg">{label}</span>{info && <InfoHint>{info}</InfoHint>}</div><Switch@@ -251,7 +251,7 @@ export function SamplingSettingsButton({ className }: { className?: string }) {}placeholder="Instructions sent before every conversation."aria-label="System prompt"- className="min-h-[84px] resize-y text-[0.8125rem]"+ className="min-h-[84px] resize-y text-ui-13"/></SettingsSection>@@ -264,7 +264,7 @@ export function SamplingSettingsButton({ className }: { className?: string }) {/>{reasoningEffortLevels.length > 0 && (<div className="flex items-center justify-between gap-3">- <span className="text-[0.8125rem] font-medium text-nav-fg">+ <span className="text-ui-13 font-medium text-nav-fg">Reasoning effort</span><HubOptionMenu@@ -276,7 +276,7 @@ export function SamplingSettingsButton({ className }: { className?: string }) {onValueChange={setReasoningEffort}ariaLabel="Reasoning effort"align="end"- className="h-8 text-[0.71875rem]"+ className="h-8 text-ui-11p5"/></div>)}diff --git a/studio/frontend/src/features/hub/catalog/shared.tsx b/studio/frontend/src/features/hub/catalog/shared.tsxindex f9451b9325b..94040ad3e0f 100644--- a/studio/frontend/src/features/hub/catalog/shared.tsx+++ b/studio/frontend/src/features/hub/catalog/shared.tsx@@ -57,7 +57,7 @@ const CAPABILITY_TONE: Record<CapabilityKey, string> = {export function AccessChip({ label }: { label: string }) {return (- <span className="inline-flex h-6 shrink-0 items-center rounded-full border border-amber-500/30 bg-amber-500/8 px-2 text-[0.6875rem] font-medium leading-none text-amber-700 dark:text-amber-300">+ <span className="inline-flex h-6 shrink-0 items-center rounded-full border border-amber-500/30 bg-amber-500/8 px-2 text-ui-11 font-medium leading-none text-amber-700 dark:text-amber-300">{label}</span>);@@ -144,7 +144,7 @@ export function CapabilityPill({<spanaria-label={iconOnly ? capability.label : undefined}className={cn(- "inline-flex h-6 shrink-0 items-center rounded-full text-[0.71875rem] font-medium",+ "inline-flex h-6 shrink-0 items-center rounded-full text-ui-11p5 font-medium",iconOnly ? "w-6 justify-center px-0" : "gap-1.5 px-2.5",CAPABILITY_TONE[capability.key],)}diff --git a/studio/frontend/src/features/hub/catalog/transport-conflict-dialog.tsx b/studio/frontend/src/features/hub/catalog/transport-conflict-dialog.tsxindex 8cf5e53df98..7fe21268881 100644--- a/studio/frontend/src/features/hub/catalog/transport-conflict-dialog.tsx+++ b/studio/frontend/src/features/hub/catalog/transport-conflict-dialog.tsx@@ -60,7 +60,7 @@ export function TransportConflictDialog({if (!o) onCancel();}}>- <AlertDialogContent className="sm:!max-w-[352px]">+ <AlertDialogContent className="sm:!max-w-[22rem]"><AlertDialogHeader><AlertDialogTitle>Different transport mode</AlertDialogTitle><AlertDialogDescription>{description}</AlertDialogDescription>diff --git a/studio/frontend/src/features/hub/catalog/transport-toggle.tsx b/studio/frontend/src/features/hub/catalog/transport-toggle.tsxindex ce6472db92e..bd6222094aa 100644--- a/studio/frontend/src/features/hub/catalog/transport-toggle.tsx+++ b/studio/frontend/src/features/hub/catalog/transport-toggle.tsx@@ -40,7 +40,7 @@ export function TransportToggle() {return (<fieldsetaria-label="Download transport"- className="hub-tag-soft m-0 inline-flex h-[26px] min-w-0 items-center gap-0.5 rounded-full border-0 p-0.5 text-[0.6875rem]"+ className="hub-tag-soft m-0 inline-flex h-[26px] min-w-0 items-center gap-0.5 rounded-full border-0 p-0.5 text-ui-11">{OPTIONS.map((opt) => {const active = mode === opt.value;diff --git a/studio/frontend/src/features/hub/components/hf-token-indicator.tsx b/studio/frontend/src/features/hub/components/hf-token-indicator.tsxindex 54de7d9eea5..ef45c648f70 100644--- a/studio/frontend/src/features/hub/components/hf-token-indicator.tsx+++ b/studio/frontend/src/features/hub/components/hf-token-indicator.tsx@@ -40,7 +40,7 @@ export function HfTokenIndicator({ showLabel = false }: HfTokenIndicatorProps =onClick={() => openDialog("general")}aria-label={ariaLabel}className={cn(- "hub-menu-trigger field-soft inline-flex h-9 w-full items-center justify-between gap-2 rounded-[12px] py-0 pl-1.5 pr-3 text-[0.78125rem] font-medium text-foreground transition-colors",+ "hub-menu-trigger field-soft inline-flex h-9 w-full items-center justify-between gap-2 rounded-[12px] py-0 pl-1.5 pr-3 text-ui-12p5 font-medium text-foreground transition-colors","focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",)}>@@ -64,7 +64,7 @@ export function HfTokenIndicator({ showLabel = false }: HfTokenIndicatorProps =</span><spanclassName={cn(- "shrink-0 text-[0.6875rem] font-normal tabular-nums",+ "shrink-0 text-ui-11 font-normal tabular-nums",hasToken ? "text-verified" : "text-muted-foreground/70",)}>@@ -89,7 +89,7 @@ export function HfTokenIndicator({ showLabel = false }: HfTokenIndicatorProps =className={cn(// Solid circle reads optically larger than the flat HTTP/Xet box, so// keep it 22px to sit within the row rather than bulging above it.- "inline-flex h-[22px] w-[22px] items-center justify-center rounded-full text-[0.71875rem] transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "inline-flex h-[22px] w-[22px] items-center justify-center rounded-full text-ui-11p5 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",hasToken? "hub-tag-soft text-muted-foreground hover:text-foreground/80": "bg-destructive text-destructive-foreground hover:bg-destructive/90",diff --git a/studio/frontend/src/features/hub/components/page-heading.tsx b/studio/frontend/src/features/hub/components/page-heading.tsxindex d627eb99959..06dfcd922d0 100644--- a/studio/frontend/src/features/hub/components/page-heading.tsx+++ b/studio/frontend/src/features/hub/components/page-heading.tsx@@ -13,7 +13,7 @@ type PageHeadingProps = {};const TITLE_CLASS =- "text-[1.875rem] font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-[2.125rem]";+ "text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34";export function PageHeading({title,@@ -38,7 +38,7 @@ export function PageHeading({<h1 className={TITLE_CLASS}>{title}</h1>)}{subtitle ? (- <p className="mt-2 text-[0.8125rem] leading-[1.1875rem] text-muted-foreground">+ <p className="mt-2 text-ui-13 leading-ui-19 text-muted-foreground">{subtitle}</p>) : null}diff --git a/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx b/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsxindex 9359825fe3e..3e5a86a8797 100644--- a/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx+++ b/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx@@ -108,7 +108,7 @@ function DownloadRow({ jobKey }: { jobKey: string }) {return (<li className="flex flex-col gap-1.5 py-2.5 pl-4 pr-3"><div className="flex items-center gap-2">- <span className="min-w-0 flex-1 truncate text-[0.78125rem] font-medium text-foreground">+ <span className="min-w-0 flex-1 truncate text-ui-12p5 font-medium text-foreground">{job.repoId}<span className="text-muted-foreground">{variantSuffix(job)}</span></span>@@ -165,7 +165,7 @@ function DownloadRow({ jobKey }: { jobKey: string }) {/>) : null}{terminal || job.state === "cancelling" || job.error ? (- <div className="px-0 text-[0.6875rem] text-muted-foreground tabular-nums">+ <div className="px-0 text-ui-11 text-muted-foreground tabular-nums"><StatusLine job={job} /></div>) : null}@@ -229,9 +229,9 @@ export function DownloadManagerPanel({</TooltipContent></Tooltip>) : (- <div className="hub-download-panel pointer-events-auto w-[min(400px,calc(100vw-32px))] overflow-hidden">+ <div className="hub-download-panel pointer-events-auto w-[min(400px,calc(100vw-2rem))] overflow-hidden"><div className="flex items-center gap-2 border-b border-foreground/[0.07] py-2 pl-4 pr-3">- <span className="min-w-0 flex-1 truncate text-[0.78125rem] font-semibold text-foreground">+ <span className="min-w-0 flex-1 truncate text-ui-12p5 font-semibold text-foreground">{headerLabel}</span><buttondiff --git a/studio/frontend/src/features/hub/download-manager/download-progress-bar.tsx b/studio/frontend/src/features/hub/download-manager/download-progress-bar.tsxindex e730ab6a78d..9005435aa14 100644--- a/studio/frontend/src/features/hub/download-manager/download-progress-bar.tsx+++ b/studio/frontend/src/features/hub/download-manager/download-progress-bar.tsx@@ -41,7 +41,7 @@ export function DownloadProgressBar({style={{ left: `${exactPercent}%` }}/></div>- <div className="flex items-center justify-between gap-2 text-[0.65625rem] text-muted-foreground tabular-nums">+ <div className="flex items-center justify-between gap-2 text-ui-10p5 text-muted-foreground tabular-nums"><span>{formatBytes(progress.downloadedBytes)}{totalLabel && ` / ${totalLabel}`}diff --git a/studio/frontend/src/features/hub/hub-page.tsx b/studio/frontend/src/features/hub/hub-page.tsxindex 3352d4e479c..9fc452b4edd 100644--- a/studio/frontend/src/features/hub/hub-page.tsx+++ b/studio/frontend/src/features/hub/hub-page.tsx@@ -1606,7 +1606,7 @@ export function ModelsPage() {/></div>) : (- <div className="hidden min-h-0 flex-1 items-center justify-center px-6 text-center text-[0.8125rem] text-muted-foreground lg:flex">+ <div className="hidden min-h-0 flex-1 items-center justify-center px-6 text-center text-ui-13 text-muted-foreground lg:flex">Select a model to preview its details.</div>)diff --git a/studio/frontend/src/features/hub/hub.css b/studio/frontend/src/features/hub/hub.cssindex 2fe6b90c154..8dc6dac6171 100644--- a/studio/frontend/src/features/hub/hub.css+++ b/studio/frontend/src/features/hub/hub.css@@ -469,7 +469,7 @@}.hub-page .hub-focused-heading {- font-size: 1.125rem;+ font-size: calc(1.125rem * var(--ui-font-scale, 1));font-weight: 600;letter-spacing: 0;color: var(--foreground);@@ -798,8 +798,8 @@.hub-download-fab {position: relative;display: inline-flex;- width: 44px;- height: 44px;+ width: 2.75rem;+ height: 2.75rem;cursor: pointer;align-items: center;justify-content: center;@@ -832,16 +832,16 @@top: -3px;right: -3px;display: inline-flex;- width: 18px;- min-width: 18px;- height: 18px;+ width: 1.125rem;+ min-width: 1.125rem;+ height: 1.125rem;align-items: center;justify-content: center;border-radius: 9999px;padding-inline: 0;background-color: var(--status-success);color: var(--primary-foreground);- font-size: 0.65625rem;+ font-size: calc(0.65625rem * var(--ui-font-scale, 1));font-weight: 600;line-height: 1;font-variant-numeric: tabular-nums;@@ -1082,7 +1082,7 @@display: flex;flex-wrap: wrap;align-items: center;- gap: 8px;+ gap: 0.5rem;}.hub-readme-prose :is(p, div):has(> a:nth-of-type(2) > img) > br {@@ -1107,19 +1107,19 @@@apply so the cascade is explicit and predictable. */.hub-action-btn {display: inline-flex;- height: 36px;+ height: 2.25rem;cursor: pointer;align-items: center;justify-content: center;- gap: 8px;+ gap: 0.5rem;white-space: nowrap;border-radius: 9999px;background-color: transparent;- padding-left: 12px;- padding-right: 12px;- font-size: 0.8125rem;+ padding-left: 0.75rem;+ padding-right: 0.75rem;+ font-size: calc(0.8125rem * var(--ui-font-scale, 1));font-weight: 500;- line-height: 1.125rem;+ line-height: calc(1.125rem * var(--ui-font-scale, 1));letter-spacing: -0.025em;color: var(--foreground);transition: color 150ms, background-color 150ms;@@ -1141,8 +1141,8 @@embedded SVG — locks to 16px so swapping icons or replacing thespinner can't drift the layout. */.hub-action-btn svg {- width: 16px;- height: 16px;+ width: 1rem;+ height: 1rem;flex-shrink: 0;}@@ -1154,19 +1154,19 @@so the height aligns with adjacent ghost buttons. */.hub-run-action-btn {display: inline-flex;- height: 36px;+ height: 2.25rem;cursor: pointer;align-items: center;justify-content: center;- gap: 6.4px;+ gap: 0.4rem;white-space: nowrap;border-radius: 9999px;background-color: var(--status-success);- padding-left: 16px;- padding-right: 16px;- font-size: 0.8125rem;+ padding-left: 1rem;+ padding-right: 1rem;+ font-size: calc(0.8125rem * var(--ui-font-scale, 1));font-weight: 600;- line-height: 1.125rem;+ line-height: calc(1.125rem * var(--ui-font-scale, 1));letter-spacing: -0.025em;color: var(--primary-foreground);transition: background-color 150ms, transform 150ms;@@ -1189,8 +1189,8 @@}.hub-run-action-btn svg {- width: 14.4px;- height: 14.4px;+ width: 0.9rem;+ height: 0.9rem;flex-shrink: 0;}@@ -1200,8 +1200,8 @@.hub-cta-indicator {position: relative;display: inline-flex;- width: 16px;- height: 16px;+ width: 1rem;+ height: 1rem;flex-shrink: 0;align-items: center;justify-content: center;@@ -1232,11 +1232,11 @@`.group/dl` ancestor for the hover scope (the Hub download row). */.hub-row-action {position: absolute;- right: 4px;+ right: 0.25rem;top: 50%;display: inline-flex;- width: 28px;- height: 28px;+ width: 1.75rem;+ height: 1.75rem;transform: translateY(-50%);align-items: center;justify-content: center;@@ -1261,8 +1261,8 @@}.hub-row-action svg {- width: 16px;- height: 16px;+ width: 1rem;+ height: 1rem;flex-shrink: 0;}}@@ -1271,9 +1271,9 @@.hub-page .field-trigger.field-filter {color: var(--muted-foreground);font-weight: 400;- padding-top: 4px;- padding-bottom: 4px;- line-height: 1.25rem;+ padding-top: 0.25rem;+ padding-bottom: 0.25rem;+ line-height: calc(1.25rem * var(--ui-font-scale, 1));}.hub-page .field-trigger.field-filter:hover {@@ -1284,13 +1284,13 @@display: inline-flex;flex-shrink: 0;align-items: center;- gap: 6.4px;- height: 32px;- padding-inline: 11.2px;+ gap: 0.4rem;+ height: 2rem;+ padding-inline: 0.7rem;border-radius: 9999px;border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);background-color: color-mix(in srgb, var(--foreground) 2.5%, transparent);- font-size: 0.75rem;+ font-size: calc(0.75rem * var(--ui-font-scale, 1));line-height: 1;color: var(--muted-foreground);white-space: nowrap;@@ -1478,7 +1478,7 @@@layer utilities {.hub-chip {- @apply inline-flex items-center gap-1 rounded-full px-2 py-[3px] text-[0.6875rem] font-medium leading-none;+ @apply inline-flex items-center gap-1 rounded-full px-2 py-[3px] text-ui-11 font-medium leading-none;background-color: color-mix(in srgb, var(--foreground) 5%, transparent);color: var(--muted-foreground);}@@ -1488,7 +1488,7 @@}.hub-meta-tag {- @apply inline-flex h-[18px] shrink-0 items-center gap-1 rounded-full px-2 text-[0.6875rem] font-medium leading-none;+ @apply inline-flex h-[18px] shrink-0 items-center gap-1 rounded-full px-2 text-ui-11 font-medium leading-none;background-color: color-mix(in srgb, var(--foreground) 5%, transparent);color: var(--muted-foreground);}diff --git a/studio/frontend/src/features/model-picker/components/chat-template-editor-dialog.tsx b/studio/frontend/src/features/model-picker/components/chat-template-editor-dialog.tsxindex c212cb4b7ba..5326bebac67 100644--- a/studio/frontend/src/features/model-picker/components/chat-template-editor-dialog.tsx+++ b/studio/frontend/src/features/model-picker/components/chat-template-editor-dialog.tsx@@ -126,13 +126,13 @@ export function ChatTemplateEditorDialog({setError(null);}}readOnly={readOnly}- className="min-h-[320px] max-h-[50vh] overflow-y-auto border-0 font-mono text-xs leading-5 corner-squircle focus-visible:ring-0"+ className="min-h-[20rem] max-h-[50vh] overflow-y-auto border-0 font-mono text-xs leading-5 corner-squircle focus-visible:ring-0"rows={14}spellCheck={false}placeholder={defaultLoading ? "Loading model default..." : ""}/>{readOnly ? null : (- <div className="flex items-center justify-between gap-3 px-0.5 text-[0.6875rem]">+ <div className="flex items-center justify-between gap-3 px-0.5 text-ui-11"><spanclassName={overLimit ? "text-amber-500" : "text-muted-foreground"}>diff --git a/studio/frontend/src/features/model-picker/components/model-config-page.tsx b/studio/frontend/src/features/model-picker/components/model-config-page.tsxindex 9500cf4be2e..ee208dc0bc1 100644--- a/studio/frontend/src/features/model-picker/components/model-config-page.tsx+++ b/studio/frontend/src/features/model-picker/components/model-config-page.tsx@@ -54,13 +54,13 @@ import { NumericValueInput } from "./numeric-value-input";const ROW_CLASS = "flex min-h-8 items-center justify-between gap-3";const LABEL_CLASS =- "min-w-0 truncate text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg";+ "min-w-0 truncate text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg";const LABEL_CLASS_WRAP =- "min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg";+ "min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg";const CONTROL_SURFACE ="rounded-full border-transparent bg-black/[0.04] dark:bg-white/[0.05] hover:bg-black/[0.06] dark:hover:bg-white/[0.1]";-const SELECT_TRIGGER_CLASS = `grid h-8 min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-1 ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-[0.8125rem]! font-medium text-nav-fg focus-visible:ring-0 focus-visible:border-transparent [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate [&>svg]:shrink-0`;-const NUMBER_INPUT_CLASS = `h-8 w-[92px] ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-right text-[0.8125rem] font-medium text-nav-fg outline-none focus-visible:ring-0`;+const SELECT_TRIGGER_CLASS = `grid h-8 min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-1 ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-ui-13! font-medium text-nav-fg focus-visible:ring-0 focus-visible:border-transparent [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate [&>svg]:shrink-0`;+const NUMBER_INPUT_CLASS = `h-8 w-[92px] ${CONTROL_SURFACE} pl-3 pr-2 py-0 text-right text-ui-13 font-medium text-nav-fg outline-none focus-visible:ring-0`;const KV_CACHE_DTYPE_DEFAULT = "f16";const SPECULATIVE_TYPE_LABELS: Record<(typeof SPECULATIVE_TYPES)[number], string> =@@ -107,7 +107,7 @@ function ChatTemplateSetting({</div><div className="flex shrink-0 items-center gap-2">{readOnly ? null : (- <span className="text-[0.75rem] text-muted-foreground">+ <span className="text-ui-12 text-muted-foreground">{config.chatTemplateOverride ? "Custom" : "Default"}</span>)}@@ -115,7 +115,7 @@ function ChatTemplateSetting({type="button"size="sm"variant="ghost"- className={`h-8 px-3 text-[0.8125rem] ${CONTROL_SURFACE}`}+ className={`h-8 px-3 text-ui-13 ${CONTROL_SURFACE}`}onClick={onEditTemplate}>{readOnly ? "View" : "Edit"}@@ -370,7 +370,7 @@ function GpuMemorySettings({key={d.index}className="flex items-center justify-between gap-3">- <span className="min-w-0 truncate text-[0.75rem] text-nav-fg/80">+ <span className="min-w-0 truncate text-ui-12 text-nav-fg/80">GPU {d.index}: {d.name}{d.memoryTotalGb? ` · ${Math.round(d.memoryTotalGb)} GB`@@ -812,10 +812,10 @@ export function ModelConfigPage({</button>)}<div className="min-w-0 flex-1">- <div className="text-[0.625rem] font-semibold uppercase leading-none tracking-wider text-muted-foreground">+ <div className="text-ui-10 font-semibold uppercase leading-none tracking-wider text-muted-foreground">Run settings</div>- <div className="mt-1.5 truncate text-[0.875rem] font-semibold leading-tight text-nav-fg">+ <div className="mt-1.5 truncate text-ui-14 font-semibold leading-tight text-nav-fg">{target.displayName}</div></div>@@ -868,7 +868,7 @@ export function ModelConfigPage({{isActiveModel &&loadedMaxContextLength != null &&contextValue > loadedMaxContextLength && (- <p className="text-[0.6875rem] text-amber-500">+ <p className="text-ui-11 text-amber-500">Exceeds estimated VRAM capacity ({loadedMaxContextLength.toLocaleString()} tokens). The modelmay use system RAM.@@ -890,7 +890,7 @@ export function ModelConfigPage({<div className={ROW_CLASS}><div className="flex min-w-0 items-center gap-1.5">- <span className="min-w-0 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-muted-foreground">+ <span className="min-w-0 text-ui-13 font-medium leading-[1.25] tracking-nav text-muted-foreground">Advanced settings</span><InfoHint>@@ -943,7 +943,7 @@ export function ModelConfigPage({/><labelhtmlFor={rememberId}- className="cursor-pointer select-none truncate text-[0.8125rem] text-nav-fg"+ className="cursor-pointer select-none truncate text-ui-13 text-nav-fg">Remember for this model</label>diff --git a/studio/frontend/src/features/model-picker/components/model-selector.tsx b/studio/frontend/src/features/model-picker/components/model-selector.tsxindex 009210a4b50..cda6e49e24f 100644--- a/studio/frontend/src/features/model-picker/components/model-selector.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector.tsx@@ -232,13 +232,13 @@ function ModelSelectorTrigger({</span>) : null}<span className="flex min-w-0 flex-1 items-baseline">- <span className="min-w-0 flex flex-1 items-baseline truncate font-heading text-[1rem] font-medium leading-tight text-black dark:text-white">+ <span className="min-w-0 flex flex-1 items-baseline truncate font-heading text-ui-16 font-medium leading-tight text-black dark:text-white">{currentModel?.name ?? "Select model"}{showCloudIndicator ? (<HugeiconsIconicon={CloudIcon}strokeWidth={1.75}- className="relative top-[2.5px] ml-1.5 mr-[5.76px] size-3.5 shrink-0 text-muted-foreground"+ className="relative top-[0.15625rem] ml-1.5 mr-[0.36rem] size-3.5 shrink-0 text-muted-foreground"/>) : null}</span>@@ -505,16 +505,16 @@ function ModelSelectorContent({data-tour={dataTour}onKeyDown={handlePickerEntryKeyDown}className={cn(- "unsloth-model-selector-menu menu-soft-surface ring-0 max-w-[calc(100vw-16px)] min-w-0 gap-0",+ "unsloth-model-selector-menu menu-soft-surface ring-0 max-w-[calc(100vw-1rem)] min-w-0 gap-0",visibleConfigTarget- ? "w-[min(468px,calc(100vw-16px))] px-4 pt-4 pb-4"+ ? "w-[min(468px,calc(100vw-1rem))] px-4 pt-4 pb-4": cn("pt-4 pb-0 pl-4",// Sized so the left-packed row keeps uniform gaps and the last// dropdown's right gap matches the pill's left gap (pl-4 vs pr-4).hasExternal- ? "w-[min(614px,calc(100vw-16px))] pr-4"- : "w-[min(506px,calc(100vw-16px))] pr-2",+ ? "w-[min(614px,calc(100vw-1rem))] pr-4"+ : "w-[min(506px,calc(100vw-1rem))] pr-2",),className,)}@@ -881,7 +881,7 @@ function ExternalModelPicker({) : (grouped.map((group) => (<div key={group.providerId}>- <div className="flex items-center gap-2 px-2.5 py-1.5 text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="flex items-center gap-2 px-2.5 py-1.5 text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground"><ExternalProviderLogoproviderType={group.models[0]?.providerType}className="size-3.5"diff --git a/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx b/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsxindex 9ce708b8ecd..00a3e5d5634 100644--- a/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx@@ -154,7 +154,7 @@ export function FolderBrowser({</DialogHeader>{/* Breadcrumb */}- <div className="flex flex-wrap items-center gap-0.5 border-t border-border/50 px-6 py-2 font-mono text-[0.6875rem] text-muted-foreground">+ <div className="flex flex-wrap items-center gap-0.5 border-t border-border/50 px-6 py-2 font-mono text-ui-11 text-muted-foreground">{crumbs.length === 0 ? (<span className="text-muted-foreground/60">(loading…)</span>) : (@@ -185,7 +185,7 @@ export function FolderBrowser({type="button"onClick={() => navigate(s, showHidden)}disabled={loading}- className="rounded-full border border-border/50 px-2 py-0.5 font-mono text-[0.625rem] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:opacity-40"+ className="rounded-full border border-border/50 px-2 py-0.5 font-mono text-ui-10 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:opacity-40"title={s}>{s.length > 36 ? `…${s.slice(-33)}` : s}@@ -237,14 +237,14 @@ export function FolderBrowser({)}{data.model_files_here !== undefined &&data.model_files_here > 0 && (- <div className="border-t border-border/30 px-6 py-1.5 text-[0.625rem] text-foreground/70">+ <div className="border-t border-border/30 px-6 py-1.5 text-ui-10 text-foreground/70">{data.model_files_here} model file{data.model_files_here === 1 ? "" : "s"} in this folder.Click "Use this folder" to scan it.</div>)}{data.truncated === true && (- <div className="border-t border-border/30 px-6 py-1.5 text-[0.625rem] text-muted-foreground/70">+ <div className="border-t border-border/30 px-6 py-1.5 text-ui-10 text-muted-foreground/70">Showing first {data.entries.length} entries. Narrow the pathto see more.</div>@@ -273,7 +273,7 @@ export function FolderBrowser({/><span className="truncate font-mono">{e.name}</span>{e.has_models && (- <span className="ml-auto shrink-0 rounded-full border border-border/50 px-1.5 py-0 text-[0.5625rem] uppercase tracking-wider text-muted-foreground">+ <span className="ml-auto shrink-0 rounded-full border border-border/50 px-1.5 py-0 text-ui-9 uppercase tracking-wider text-muted-foreground">models</span>)}diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsxindex 89d936ae28d..aeb0fcf40fd 100644--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx@@ -321,7 +321,7 @@ function ListLabel({divider ? "mt-3 border-t border-border/50 pt-3" : "pt-3",)}>- <span className="flex items-center gap-1.5 text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <span className="flex items-center gap-1.5 text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground">{icon}{children}</span>@@ -526,7 +526,7 @@ function ModelRow({><span className="flex min-w-0 flex-1 items-baseline">{owner && !hideOwner ? (- <span className="inline-flex min-w-0 max-w-[45%] shrink items-baseline text-[0.8125rem] text-muted-foreground/90">+ <span className="inline-flex min-w-0 max-w-[45%] shrink items-baseline text-ui-13 text-muted-foreground/90"><span className="truncate">{owner}</span><span className="shrink-0 text-muted-foreground/45">/</span></span>@@ -576,25 +576,25 @@ function ModelRow({</span>)}{vramStatus === "exceeds" && (- <span className="text-[0.5625rem] font-medium !text-red-700 !bg-red-50 dark:!text-red-300 dark:!bg-red-500/15 px-1.5 py-0.5 rounded">+ <span className="text-ui-9 font-medium !text-red-700 !bg-red-50 dark:!text-red-300 dark:!bg-red-500/15 px-1.5 py-0.5 rounded">OOM</span>)}{vramStatus === "tight" && (- <span className="text-[0.5625rem] font-medium !text-amber-400">TIGHT</span>+ <span className="text-ui-9 font-medium !text-amber-400">TIGHT</span>)}{paramLabel ? (- <span className="rounded-md border border-border/60 px-1.5 py-px text-[0.625rem] font-medium text-muted-foreground tabular-nums">+ <span className="rounded-md border border-border/60 px-1.5 py-px text-ui-10 font-medium text-muted-foreground tabular-nums">{paramLabel}</span>) : null}{parsed.texts.map((text) => (- <span key={text} className="text-[0.625rem] text-muted-foreground">+ <span key={text} className="text-ui-10 text-muted-foreground">{text}</span>))}{parsed.size !== undefined ? (- <span className="text-[0.625rem] text-muted-foreground tabular-nums">+ <span className="text-ui-10 text-muted-foreground tabular-nums">{parsed.size}</span>) : null}@@ -614,7 +614,7 @@ function ModelRow({// Optional Hugging Face address line for online/Hub rows, rendered under// whichever tooltip shows so the repo id / URL is always visible on hover.const hubUrlLine = hubUrl ? (- <span className="block mt-1 text-[0.625rem] text-muted-foreground break-all">+ <span className="block mt-1 text-ui-10 text-muted-foreground break-all">{hubUrl}</span>) : null;@@ -622,7 +622,7 @@ function ModelRow({const tooltipBody = vramTooltipText ? (<>{label}- <span className="block text-[0.625rem] mt-1">{vramTooltipText}</span>+ <span className="block text-ui-10 mt-1">{vramTooltipText}</span>{hubUrlLine}</>) : tooltipText ? (@@ -976,11 +976,11 @@ function GgufVariantExpander({redundant; its Vision badge is relayed to the name instead. */}{!onDevice && (<div className="px-2 py-1 flex items-center gap-1.5">- <span className="text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <span className="text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground">Quantizations</span>{hasVision && (- <span className="flex items-center gap-0.5 text-[0.5625rem] font-medium text-indigo-700 dark:text-indigo-300">+ <span className="flex items-center gap-0.5 text-ui-9 font-medium text-indigo-700 dark:text-indigo-300"><HugeiconsIconicon={ViewIcon}className="size-3"@@ -1018,33 +1018,33 @@ function GgufVariantExpander({</span>{v.downloaded ? (<>- <span className="ml-1.5 text-[0.5625rem] font-sans font-medium text-green-600/90 dark:text-green-400/80">+ <span className="ml-1.5 text-ui-9 font-sans font-medium text-green-600/90 dark:text-green-400/80">downloaded</span>{v.update_available ? (- <span className="ml-1.5 text-[0.5625rem] font-sans font-medium text-amber-700 dark:text-amber-300">+ <span className="ml-1.5 text-ui-9 font-sans font-medium text-amber-700 dark:text-amber-300">update available</span>) : null}</>) : v.quant === effectiveRecommended ? (- <span className="ml-1.5 text-[0.5625rem] font-sans font-medium text-primary/70">+ <span className="ml-1.5 text-ui-9 font-sans font-medium text-primary/70">recommended</span>) : null}</span><span className="flex items-center gap-1.5 shrink-0">{oom && (- <span className="text-[0.5625rem] font-medium !text-red-700 !bg-red-50 dark:!text-red-300 dark:!bg-red-500/15 px-1.5 py-0.5 rounded">+ <span className="text-ui-9 font-medium !text-red-700 !bg-red-50 dark:!text-red-300 dark:!bg-red-500/15 px-1.5 py-0.5 rounded">OOM</span>)}{tight && (- <span className="text-[0.5625rem] font-medium !text-amber-400">+ <span className="text-ui-9 font-medium !text-amber-400">TIGHT</span>)}- <span className="text-[0.625rem] text-muted-foreground">+ <span className="text-ui-10 text-muted-foreground">{formatBytes(v.size_bytes)}</span></span>@@ -1316,7 +1316,7 @@ function localPathTooltip(name: string, path: string): ReactNode {return (<><span className="block break-words">{name}</span>- <span className="block mt-1 text-[0.625rem] text-muted-foreground break-all">+ <span className="block mt-1 text-ui-10 text-muted-foreground break-all">{path}</span></>@@ -2786,14 +2786,14 @@ export function HubModelPicker({><span className="flex min-w-0 items-baseline">{owner ? (- <span className="inline-flex min-w-0 max-w-[45%] shrink items-baseline text-[0.8125rem] text-muted-foreground/90">+ <span className="inline-flex min-w-0 max-w-[45%] shrink items-baseline text-ui-13 text-muted-foreground/90"><span className="truncate">{owner}</span><span className="shrink-0 text-muted-foreground/45">/</span></span>) : null}<span className="min-w-0 truncate">{name}</span></span>- <span className="shrink-0 rounded-md bg-black/[0.06] px-1.5 py-px font-mono text-[0.625rem] text-muted-foreground dark:bg-white/[0.1]">+ <span className="shrink-0 rounded-md bg-black/[0.06] px-1.5 py-px font-mono text-ui-10 text-muted-foreground dark:bg-white/[0.1]">{entry.quant}</span>{isLoaded && (@@ -3107,7 +3107,7 @@ export function HubModelPicker({) : (connectedGroups.map((group) => (<div key={group.providerId}>- <div className="flex items-center gap-2 px-2.5 py-1.5 text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="flex items-center gap-2 px-2.5 py-1.5 text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground"><ApiProviderLogoproviderType={group.providerType}className="size-3.5"@@ -3312,7 +3312,7 @@ export function HubModelPicker({ref={fineTunedSectionRef}className="mt-3 flex items-center gap-1 border-t border-border/50 px-2.5 pb-1 pt-3">- <span className="flex items-center gap-1.5 text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <span className="flex items-center gap-1.5 text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground"><HugeiconsIcon icon={TrainIcon} className="size-3.5" />Fine-tuned</span>@@ -3365,7 +3365,7 @@ export function HubModelPicker({type="button"onClick={() => setShowFolderBrowser(true)}title="Browse folders on the server"- className="flex items-center gap-1.5 text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground"+ className="flex items-center gap-1.5 text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground"><HugeiconsIconicon={Folder02Icon}@@ -3446,7 +3446,7 @@ export function HubModelPicker({className="size-3 shrink-0 text-muted-foreground/40"/><span- className="min-w-0 flex-1 truncate font-mono text-[0.625rem] text-muted-foreground/70"+ className="min-w-0 flex-1 truncate font-mono text-ui-10 text-muted-foreground/70"title={f.path}>{f.path}@@ -3484,9 +3484,9 @@ export function HubModelPicker({onClick={() => void handleAddFolder(p)}disabled={folderLoading}title={`Add ${p}`}- className="rounded-full border border-dashed border-border/50 px-2 py-0.5 font-mono text-[0.625rem] text-muted-foreground/70 transition-colors hover:border-foreground/30 hover:bg-accent hover:text-foreground disabled:opacity-40"+ className="rounded-full border border-dashed border-border/50 px-2 py-0.5 font-mono text-ui-10 text-muted-foreground/70 transition-colors hover:border-foreground/30 hover:bg-accent hover:text-foreground disabled:opacity-40">- <span className="text-[0.6875rem] font-semibold">+ <span className="text-ui-11 font-semibold">+</span>{" "}{p.length > 30 ? `...${p.slice(-27)}` : p}@@ -3524,7 +3524,7 @@ export function HubModelPicker({}}}placeholder="/path/to/models"- className="h-6 min-w-0 flex-1 rounded border border-border/50 bg-transparent px-1.5 font-mono text-[0.625rem] text-foreground outline-none placeholder:text-muted-foreground/40 focus:border-foreground/20"+ className="h-6 min-w-0 flex-1 rounded border border-border/50 bg-transparent px-1.5 font-mono text-ui-10 text-foreground outline-none placeholder:text-muted-foreground/40 focus:border-foreground/20"disabled={folderLoading}autoFocus={true}/>@@ -3547,13 +3547,13 @@ export function HubModelPicker({void handleAddFolder();}}disabled={folderLoading || !folderInput.trim()}- className="h-6 shrink-0 rounded border border-border/50 px-1.5 text-[0.625rem] text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40"+ className="h-6 shrink-0 rounded border border-border/50 px-1.5 text-ui-10 text-muted-foreground transition-colors hover:bg-accent disabled:opacity-40">Add</button></div>{folderError && (- <p className="px-0.5 pt-0.5 text-[0.625rem] text-destructive">+ <p className="px-0.5 pt-0.5 text-ui-10 text-destructive">{folderError}</p>)}@@ -4257,7 +4257,7 @@ export function HubModelPicker({<buttontype="button"onClick={onEject}- className="pointer-events-auto inline-flex items-center justify-center gap-2 rounded-md bg-popover px-3 py-2 text-[0.8125rem] font-medium text-destructive shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] transition-colors hover:bg-[color-mix(in_srgb,var(--destructive)_12%,var(--popover))] dark:bg-[color-mix(in_srgb,var(--foreground)_10%,var(--sidebar))] dark:shadow-none dark:hover:bg-[color-mix(in_srgb,var(--destructive)_22%,var(--sidebar))]"+ className="pointer-events-auto inline-flex items-center justify-center gap-2 rounded-md bg-popover px-3 py-2 text-ui-13 font-medium text-destructive shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] transition-colors hover:bg-[color-mix(in_srgb,var(--destructive)_12%,var(--popover))] dark:bg-[color-mix(in_srgb,var(--foreground)_10%,var(--sidebar))] dark:shadow-none dark:hover:bg-[color-mix(in_srgb,var(--destructive)_22%,var(--sidebar))]"title="Eject model"><HugeiconsIcon icon={RemoveCircleIcon} className="size-3.5" />@@ -4382,7 +4382,7 @@ function FineTunedRows({tooltipText={<><span className="block break-words">{adapter.name}</span>- <span className="block mt-1 text-[0.625rem] text-muted-foreground break-all">+ <span className="block mt-1 text-ui-10 text-muted-foreground break-all">{adapter.id}</span></>diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pill-tabs.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pill-tabs.tsxindex 977e7355549..5dd5ca055a9 100644--- a/studio/frontend/src/features/model-picker/components/model-selector/pill-tabs.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector/pill-tabs.tsx@@ -85,7 +85,7 @@ export function PillTabs({className={cn("relative z-10 inline-flex items-center justify-center gap-1.5 rounded-full transition-colors",fit ? "shrink-0" : "min-w-0 flex-1",- compact ? "h-7 px-2.5 text-[0.6875rem]" : "h-9 px-3 text-[0.78125rem]",+ compact ? "h-7 px-2.5 text-ui-11" : "h-9 px-3 text-ui-12p5",value === tab.value? "text-foreground": "text-muted-foreground hover:text-foreground",diff --git a/studio/frontend/src/features/native-intents/components/native-model-chip.tsx b/studio/frontend/src/features/native-intents/components/native-model-chip.tsxindex ffdfdce7ee3..40a6362ce01 100644--- a/studio/frontend/src/features/native-intents/components/native-model-chip.tsx+++ b/studio/frontend/src/features/native-intents/components/native-model-chip.tsx@@ -67,7 +67,7 @@ export function NativeModelChip({}return (- <div className="flex min-w-0 max-w-[544px] items-center gap-2 rounded-lg border border-border/70 bg-muted/70 px-2.5 py-1.5 text-xs">+ <div className="flex min-w-0 max-w-[34rem] items-center gap-2 rounded-lg border border-border/70 bg-muted/70 px-2.5 py-1.5 text-xs"><span className="shrink-0 font-medium text-muted-foreground">Local GGUF</span><span className="min-w-0 flex-1 truncate" title={label}>{label}</span><buttondiff --git a/studio/frontend/src/features/native-intents/components/native-model-drop-overlay.tsx b/studio/frontend/src/features/native-intents/components/native-model-drop-overlay.tsxindex 4ec2c30601e..33b89347567 100644--- a/studio/frontend/src/features/native-intents/components/native-model-drop-overlay.tsx+++ b/studio/frontend/src/features/native-intents/components/native-model-drop-overlay.tsx@@ -36,7 +36,7 @@ export function NativeModelDropOverlay({ state }: { state: NativeModelDropStatereturn (<divclassName={cn(- "pointer-events-none absolute left-1/2 top-4 z-50 w-[clamp(256px,28vw,352px)] max-w-[calc(100vw-16px)] -translate-x-1/2 transition-all duration-200 ease-out",+ "pointer-events-none absolute left-1/2 top-4 z-50 w-[clamp(16rem,28vw,22rem)] max-w-[calc(100vw-1rem)] -translate-x-1/2 transition-all duration-200 ease-out",isIdle ? "-translate-y-1 opacity-0" : "translate-y-0 opacity-100",)}role="status"@@ -60,7 +60,7 @@ export function NativeModelDropOverlay({ state }: { state: NativeModelDropState<div className="truncate text-xs font-medium text-foreground">{title}</div>- <div className="mt-0.5 truncate text-[0.6875rem] leading-4 text-muted-foreground">+ <div className="mt-0.5 truncate text-ui-11 leading-4 text-muted-foreground">{description}</div></div>diff --git a/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx b/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsxindex 376a4998e32..b22e91eaf0f 100644--- a/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx+++ b/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx@@ -286,12 +286,12 @@ export function ModelSelectionStep() {</Tooltip><span className="flex items-center gap-1.5 shrink-0">{fitStatus === "exceeds" && (- <span className="text-[0.5625rem] font-medium !text-red-700 !bg-red-50 dark:!text-red-400 dark:!bg-red-950 px-1.5 py-0.5 rounded">+ <span className="text-ui-9 font-medium !text-red-700 !bg-red-50 dark:!text-red-400 dark:!bg-red-950 px-1.5 py-0.5 rounded">OOM</span>)}{fitStatus === "tight" && (- <span className="text-[0.5625rem] font-medium !text-amber-400">+ <span className="text-ui-9 font-medium !text-amber-400">TIGHT</span>)}diff --git a/studio/frontend/src/features/onboarding/components/steps/model-type-step.tsx b/studio/frontend/src/features/onboarding/components/steps/model-type-step.tsxindex 06162ce9b1c..038b19cdc9e 100644--- a/studio/frontend/src/features/onboarding/components/steps/model-type-step.tsx+++ b/studio/frontend/src/features/onboarding/components/steps/model-type-step.tsx@@ -106,7 +106,7 @@ export function ModelTypeStep(): ReactElement {{isDisabled && (<Badgevariant="secondary"- className="absolute top-2 right-2 text-[0.625rem]"+ className="absolute top-2 right-2 text-ui-10">Coming Soon</Badge>diff --git a/studio/frontend/src/features/onboarding/components/wizard-sidebar.tsx b/studio/frontend/src/features/onboarding/components/wizard-sidebar.tsxindex 81b53dbb7cd..d5e11110ab1 100644--- a/studio/frontend/src/features/onboarding/components/wizard-sidebar.tsx+++ b/studio/frontend/src/features/onboarding/components/wizard-sidebar.tsx@@ -18,15 +18,15 @@ export function WizardSidebar({ returnTo }: { returnTo: string }) {<aside className="w-full shrink-0 bg-muted/70 p-4 md:w-64 md:p-6"><div className="flex items-center gap-3 py-1 md:py-2">{/* Logo lockup follows the UI font size at half rate:- base + (root - 16px) / 2, written as (base - 8)px + 0.5rem. */}+ base + (root scale - 1) * 8px. Exact base sizes at 16px. */}<imgsrc={`${import.meta.env.BASE_URL}sticker.png`}alt="Unsloth"- className="size-[calc(40px+0.5rem)]"+ className="size-[calc(40px+0.5rem*var(--ui-font-scale,1))]"/><div className="flex flex-col">- <span className="font-semibold text-[calc(10px+0.5rem)] leading-tight">Unsloth</span>- <span className="text-[calc(4px+0.5rem)] text-muted-foreground">Studio</span>+ <span className="font-semibold text-[calc(10px+0.5rem*var(--ui-font-scale,1))] leading-tight">Unsloth</span>+ <span className="text-[calc(4px+0.5rem*var(--ui-font-scale,1))] text-muted-foreground">Studio</span></div></div><div className="mt-3 md:mt-0">diff --git a/studio/frontend/src/features/profile/components/profile-personalization-panel.tsx b/studio/frontend/src/features/profile/components/profile-personalization-panel.tsxindex c26ab04e8bd..d403f7fe669 100644--- a/studio/frontend/src/features/profile/components/profile-personalization-panel.tsx+++ b/studio/frontend/src/features/profile/components/profile-personalization-panel.tsx@@ -191,7 +191,7 @@ export function ProfilePersonalizationPanel() {name={previewName}imageUrl={shownAvatar}size="lg"- className="size-[124px] text-[3.15rem]"+ className="size-[124px] text-[calc(3.15rem*var(--ui-font-scale,1))]"/><inputref={fileInputRef}@@ -288,7 +288,7 @@ export function ProfilePersonalizationPanel() {onClick={() => setAvatarShape(shape)}aria-pressed={avatarShape === shape}className={cn(- "inline-flex h-8 items-center rounded-full px-4 text-[0.8125rem] font-medium transition-colors",+ "inline-flex h-8 items-center rounded-full px-4 text-ui-13 font-medium transition-colors",avatarShape === shape? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",@@ -366,7 +366,7 @@ export function ProfilePersonalizationPanel() {shownAvatar === null && "ring-ring-strong hover:ring-ring-strong",)}>- <span className="text-[0.6875rem] font-medium">+ <span className="text-ui-11 font-medium">{t("settings.profile.noneLabel")}</span></button>diff --git a/studio/frontend/src/features/profile/components/user-avatar.tsx b/studio/frontend/src/features/profile/components/user-avatar.tsxindex 2db103c1d42..e883fc5fade 100644--- a/studio/frontend/src/features/profile/components/user-avatar.tsx+++ b/studio/frontend/src/features/profile/components/user-avatar.tsx@@ -21,7 +21,7 @@ const SIZE: Record<"sm" | "md" | "lg", string> = {sm: "size-9 text-xs",md: "size-11 text-sm",/** ~10% larger than `size-24` / `text-2xl` for the edit-profile dialog. */- lg: "size-[106px] text-[1.65rem]",+ lg: "size-[106px] text-[calc(1.65rem*var(--ui-font-scale,1))]",};// Percentage radius keeps the rounded-rectangle proportional across sizes.diff --git a/studio/frontend/src/features/rag/components/document-preview-sheet.tsx b/studio/frontend/src/features/rag/components/document-preview-sheet.tsxindex 9d8b562fd03..d7f6842d83a 100644--- a/studio/frontend/src/features/rag/components/document-preview-sheet.tsx+++ b/studio/frontend/src/features/rag/components/document-preview-sheet.tsx@@ -297,7 +297,7 @@ function PdfPreview({);}-// Resizable preview width (px). Default matches the prior fixed 704px; drag the+// Resizable preview width (px). Default matches the prior fixed 44rem; drag the// left edge to widen. Persisted so it survives reopen.const PREVIEW_WIDTH_KEY = "unsloth-rag-preview-width";const MIN_PREVIEW_WIDTH = 384;diff --git a/studio/frontend/src/features/rag/components/document-status-chip.tsx b/studio/frontend/src/features/rag/components/document-status-chip.tsxindex 2142e3d222a..839541871a1 100644--- a/studio/frontend/src/features/rag/components/document-status-chip.tsx+++ b/studio/frontend/src/features/rag/components/document-status-chip.tsx@@ -28,7 +28,7 @@ export function DocumentStatusChip({size="sm"title={error ?? filename}className={cn(- "rounded-full inline-flex items-center gap-1.5 max-w-[256px]",+ "rounded-full inline-flex items-center gap-1.5 max-w-[16rem]",status === "failed" && "border-destructive/40 text-destructive",)}>diff --git a/studio/frontend/src/features/rag/components/project-sources-panel.tsx b/studio/frontend/src/features/rag/components/project-sources-panel.tsxindex 5bab26d6832..1bbbc58c0c3 100644--- a/studio/frontend/src/features/rag/components/project-sources-panel.tsx+++ b/studio/frontend/src/features/rag/components/project-sources-panel.tsx@@ -77,7 +77,7 @@ export function ProjectSourcesPanel({ projectId }: { projectId: string }) {/></span><div className="space-y-1">- <p className="text-[0.9375rem] font-semibold text-foreground">+ <p className="text-ui-15 font-semibold text-foreground">Give this project context</p><p className="max-w-sm text-sm text-muted-foreground">@@ -94,7 +94,7 @@ export function ProjectSourcesPanel({ projectId }: { projectId: string }) {>Add sources</Button>- <p className="text-[0.6875rem] text-muted-foreground">Or drop files here</p>+ <p className="text-ui-11 text-muted-foreground">Or drop files here</p></div>) : (<div className="flex flex-col gap-4 rounded-[26px] bg-muted/30 px-6 py-5">diff --git a/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx b/studio/frontend/src/features/rag/components/retrieval-settings-section.tsxindex c90a9818c09..9c91360d44e 100644--- a/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx+++ b/studio/frontend/src/features/rag/components/retrieval-settings-section.tsx@@ -75,10 +75,10 @@ function SliderRow({)}><div className="flex items-center justify-between">- <span className="text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">{label}</span>- <span className="text-[0.8125rem] tabular-nums text-muted-foreground">+ <span className="text-ui-13 tabular-nums text-muted-foreground">{format(value)}</span></div>@@ -120,7 +120,7 @@ export function RetrievalSettingsSection() {return (<div className="flex flex-col gap-5 pt-1"><div className="flex flex-col gap-2">- <span className="text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Search mode</span><Select@@ -143,10 +143,10 @@ export function RetrievalSettingsSection() {<div className="flex flex-col gap-2"><div className="flex items-center justify-between">- <span className="text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Passages (top K)</span>- <span className="text-[0.8125rem] tabular-nums text-muted-foreground">+ <span className="text-ui-13 tabular-nums text-muted-foreground">{ragTopK}</span></div>@@ -163,7 +163,7 @@ export function RetrievalSettingsSection() {<div className="flex flex-col gap-3"><div className="flex flex-col">- <span className="flex items-center gap-1.5 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="flex items-center gap-1.5 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Auto-retrieve documents<InfoHint>Auto turns retrieval on for smaller models (9B and below), which@@ -171,7 +171,7 @@ export function RetrievalSettingsSection() {larger ones. On and Off force it either way.</InfoHint></span>- <span className="text-[0.75rem] leading-[1.3] text-muted-foreground">+ <span className="text-ui-12 leading-[1.3] text-muted-foreground">Search attached documents before answering.</span></div>@@ -212,7 +212,7 @@ export function RetrievalSettingsSection() {<div className="flex items-start justify-between gap-3"><div className="flex flex-col">- <span className="flex items-center gap-1.5 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="flex items-center gap-1.5 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">OCR scanned pages<InfoHint>Read text off scanned or image-only PDF pages with the loaded@@ -221,7 +221,7 @@ export function RetrievalSettingsSection() {unaffected.</InfoHint></span>- <span className="text-[0.75rem] leading-[1.3] text-muted-foreground">+ <span className="text-ui-12 leading-[1.3] text-muted-foreground">Transcribe image-only PDF pages when attaching.</span></div>@@ -235,7 +235,7 @@ export function RetrievalSettingsSection() {<div className="flex items-start justify-between gap-3"><div className="flex flex-col">- <span className="flex items-center gap-1.5 text-[0.8125rem] font-medium leading-[1.25] tracking-nav text-nav-fg">+ <span className="flex items-center gap-1.5 text-ui-13 font-medium leading-[1.25] tracking-nav text-nav-fg">Describe figures & charts<InfoHint>Caption PDF figures, charts, tables and diagrams at upload with the@@ -243,7 +243,7 @@ export function RetrievalSettingsSection() {vision model; adds vision calls for detected figures.</InfoHint></span>- <span className="text-[0.75rem] leading-[1.3] text-muted-foreground">+ <span className="text-ui-12 leading-[1.3] text-muted-foreground">Read charts and diagrams when attaching.</span></div>diff --git a/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx b/studio/frontend/src/features/recipe-studio/components/block-sheet.tsxindex ab28d81c258..6aebac66df4 100644--- a/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx+++ b/studio/frontend/src/features/recipe-studio/components/block-sheet.tsx@@ -205,12 +205,12 @@ function BlockSheetButton({{title}</p>{badge ? (- <Badge variant="outline" className="rounded-full text-[0.625rem]">+ <Badge variant="outline" className="rounded-full text-ui-10">{badge}</Badge>) : null}</div>- <p className="break-words text-[0.6875rem] text-muted-foreground">+ <p className="break-words text-ui-11 text-muted-foreground">{description}</p></div>diff --git a/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx b/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsxindex 33993783227..f613c775b3d 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx+++ b/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx@@ -66,7 +66,7 @@ export function ExecutionSidebar({</p><Badgevariant="outline"- className={cn("capitalize text-[0.6875rem]", statusTone(execution.status))}+ className={cn("capitalize text-ui-11", statusTone(execution.status))}>{formatStatus(execution.status)}</Badge>diff --git a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsxindex d51610c447a..3488ac05954 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx+++ b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx@@ -168,7 +168,7 @@ export function ExecutionsView({const value = formatCellValue(rawValue);const isWide = wideColumns.has(name);return (- <div className={cn(isWide ? "min-w-[768px]" : "min-w-[192px]")}>+ <div className={cn(isWide ? "min-w-[48rem]" : "min-w-[12rem]")}><p className="whitespace-pre-wrap break-all">{value}</p></div>);diff --git a/studio/frontend/src/features/recipe-studio/components/inline/inline-category-badges.tsx b/studio/frontend/src/features/recipe-studio/components/inline/inline-category-badges.tsxindex 92c74779fe3..8db276eca39 100644--- a/studio/frontend/src/features/recipe-studio/components/inline/inline-category-badges.tsx+++ b/studio/frontend/src/features/recipe-studio/components/inline/inline-category-badges.tsx@@ -64,7 +64,7 @@ export function InlineCategoryBadges({<Badgekey={`m-${v}-${i}`}variant="secondary"- className="corner-squircle h-4 shrink-0 px-1.5 text-[0.625rem]"+ className="corner-squircle h-4 shrink-0 px-1.5 text-ui-10">{v}</Badge>@@ -76,13 +76,13 @@ export function InlineCategoryBadges({<Badgekey={`${v}-${i}`}variant="secondary"- className="corner-squircle h-4 px-1.5 text-[0.625rem]"+ className="corner-squircle h-4 px-1.5 text-ui-10">{v}</Badge>))}{overflow > 0 && (- <Badge variant="outline" className="corner-squircle h-4 px-1.5 text-[0.625rem]">+ <Badge variant="outline" className="corner-squircle h-4 px-1.5 text-ui-10">+{overflow}</Badge>)}diff --git a/studio/frontend/src/features/recipe-studio/components/inline/inline-field.tsx b/studio/frontend/src/features/recipe-studio/components/inline/inline-field.tsxindex b0127b943b5..76eddd2c9e0 100644--- a/studio/frontend/src/features/recipe-studio/components/inline/inline-field.tsx+++ b/studio/frontend/src/features/recipe-studio/components/inline/inline-field.tsx@@ -17,7 +17,7 @@ export function InlineField({}: InlineFieldProps): ReactElement {return (<div className={cn("grid gap-1.5", className)}>- <p className="text-[0.6875rem] font-semibold uppercase tracking-wide text-muted-foreground">+ <p className="text-ui-11 font-semibold uppercase tracking-wide text-muted-foreground">{label}</p>{children}diff --git a/studio/frontend/src/features/recipe-studio/components/inline/inline-llm.tsx b/studio/frontend/src/features/recipe-studio/components/inline/inline-llm.tsxindex 4074000eca6..36479d2b583 100644--- a/studio/frontend/src/features/recipe-studio/components/inline/inline-llm.tsx+++ b/studio/frontend/src/features/recipe-studio/components/inline/inline-llm.tsx@@ -184,7 +184,7 @@ export function InlineLlm({ config, onUpdate }: InlineLlmProps): ReactElement {</Select></InlineField>)}- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Prompt/system edited on aux nodes.</p></div>diff --git a/studio/frontend/src/features/recipe-studio/components/inline/inline-seed.tsx b/studio/frontend/src/features/recipe-studio/components/inline/inline-seed.tsxindex a80f50f9b11..c4ca2d18347 100644--- a/studio/frontend/src/features/recipe-studio/components/inline/inline-seed.tsx+++ b/studio/frontend/src/features/recipe-studio/components/inline/inline-seed.tsx@@ -74,7 +74,7 @@ export function InlineSeed({</div><div className="min-w-0"><p className="truncate text-xs font-medium">{summary}</p>- <p className="truncate text-[0.6875rem] text-muted-foreground">+ <p className="truncate text-ui-11 text-muted-foreground">{warning ??`${itemsLabel} · limit ${limit} · ${commentsLabel} · ${tokenLabel}`}</p>@@ -106,7 +106,7 @@ export function InlineSeed({placeholder="org/repo"/></InlineField>- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">Load columns in dialog.</p></div>@@ -132,7 +132,7 @@ export function InlineSeed({<p className="truncate text-xs font-medium">{fileName || "No file selected"}</p>- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">{isLocal ? "Structured file" : "Unstructured document"} · configure indialog</p>diff --git a/studio/frontend/src/features/recipe-studio/components/recipe-graph-node.tsx b/studio/frontend/src/features/recipe-studio/components/recipe-graph-node.tsxindex b195b769a1f..9ad483d738f 100644--- a/studio/frontend/src/features/recipe-studio/components/recipe-graph-node.tsx+++ b/studio/frontend/src/features/recipe-studio/components/recipe-graph-node.tsx@@ -338,7 +338,7 @@ function renderNodeBody(<Badgekey={providerName}variant="secondary"- className="corner-squircle font-mono text-[0.6875rem]"+ className="corner-squircle font-mono text-ui-11">{providerName}</Badge>@@ -505,7 +505,7 @@ function RecipeGraphNodeBase({<BaseNodeHeaderTitle className="truncate text-sm">{data.name}</BaseNodeHeaderTitle>- <p className="truncate text-[0.6875rem] text-muted-foreground">+ <p className="truncate text-ui-11 text-muted-foreground">{data.subtype} · {data.title}</p></div>diff --git a/studio/frontend/src/features/recipe-studio/components/recipe-studio-header.tsx b/studio/frontend/src/features/recipe-studio/components/recipe-studio-header.tsxindex 49e9fd75111..af22778ce5f 100644--- a/studio/frontend/src/features/recipe-studio/components/recipe-studio-header.tsx+++ b/studio/frontend/src/features/recipe-studio/components/recipe-studio-header.tsx@@ -104,25 +104,25 @@ export function RecipeStudioHeader({onBlur={closeWorkflowNameEditor}onKeyDown={handleWorkflowNameKeyDown}autoFocus={true}- className="h-7 w-full max-w-[min(352px,50vw)]"+ className="h-7 w-full max-w-[min(22rem,50vw)]"aria-label="Recipe name"/>) : (<buttontype="button"onClick={() => setEditingWorkflowName(true)}- className="max-w-[min(352px,50vw)] truncate text-sm font-semibold text-foreground hover:text-primary"+ className="max-w-[min(22rem,50vw)] truncate text-sm font-semibold text-foreground hover:text-primary"title={workflowName}aria-label={`Edit recipe name: ${workflowName}`}>{workflowName}</button>)}- <Badge variant="secondary" className="h-6 shrink-0 text-[0.625rem]">+ <Badge variant="secondary" className="h-6 shrink-0 text-ui-10">{STATUS_MESSAGE_CLASS[saveTone]}</Badge><span- className="hidden max-w-[192px] truncate text-xs text-muted-foreground sm:inline"+ className="hidden max-w-[12rem] truncate text-xs text-muted-foreground sm:inline"title={savedAtLabel}>{savedAtLabel}@@ -148,7 +148,7 @@ export function RecipeStudioHeader({<PopoverTrigger asChild={true}><buttontype="button"- className={`inline-flex h-6 shrink-0 items-center gap-1 rounded-md border px-2 text-[0.625rem] font-medium ${RECIPE_STUDIO_WARNING_BADGE_TONE}`}+ className={`inline-flex h-6 shrink-0 items-center gap-1 rounded-md border px-2 text-ui-10 font-medium ${RECIPE_STUDIO_WARNING_BADGE_TONE}`}><HugeiconsIcon icon={Alert02Icon} className="size-3" />{warnings.length}diff --git a/studio/frontend/src/features/recipe-studio/components/runtime/execution-progress-island.tsx b/studio/frontend/src/features/recipe-studio/components/runtime/execution-progress-island.tsxindex 67305a457f5..f67019498e4 100644--- a/studio/frontend/src/features/recipe-studio/components/runtime/execution-progress-island.tsx+++ b/studio/frontend/src/features/recipe-studio/components/runtime/execution-progress-island.tsx@@ -132,8 +132,8 @@ export function ExecutionProgressIsland({return (<divclassName={cn(- "w-[clamp(240px,26vw,320px)] max-w-[calc(100vw-16px)] rounded-b-xl border-x border-b bg-card/96 shadow-sm backdrop-blur-sm transition-all",- minimized ? "min-h-[48px]" : "min-h-[136px]",+ "w-[clamp(15rem,26vw,20rem)] max-w-[calc(100vw-1rem)] rounded-b-xl border-x border-b bg-card/96 shadow-sm backdrop-blur-sm transition-all",+ minimized ? "min-h-[3rem]" : "min-h-[8.5rem]",)}aria-live="polite">@@ -156,7 +156,7 @@ export function ExecutionProgressIsland({{showLoadingSpinner && (<Spinner className="size-3.5 text-muted-foreground" />)}- <span className="shrink-0 text-[0.6875rem] text-muted-foreground">+ <span className="shrink-0 text-ui-11 text-muted-foreground">{formatPercent(progressPercent)}</span><button@@ -180,7 +180,7 @@ export function ExecutionProgressIsland({{!minimized && (<>- <div className="grid grid-cols-2 gap-2 px-3 pt-2 text-[0.6875rem] text-muted-foreground sm:grid-cols-4">+ <div className="grid grid-cols-2 gap-2 px-3 pt-2 text-ui-11 text-muted-foreground sm:grid-cols-4"><pclassName="truncate"title={`Done: ${formatMetricValue(execution.progress?.done)}`}@@ -207,7 +207,7 @@ export function ExecutionProgressIsland({</p></div>{showSourceProgress ? (- <div className="mt-1 flex items-center gap-1.5 px-3 text-[0.6875rem] text-muted-foreground">+ <div className="mt-1 flex items-center gap-1.5 px-3 text-ui-11 text-muted-foreground"><HugeiconsIconicon={Flag02Icon}className="size-3.5 shrink-0 text-amber-700 dark:text-amber-300"@@ -217,7 +217,7 @@ export function ExecutionProgressIsland({</p></div>) : (- <div className="mt-1 flex items-center gap-1.5 px-3 text-[0.6875rem] text-muted-foreground">+ <div className="mt-1 flex items-center gap-1.5 px-3 text-ui-11 text-muted-foreground"><HugeiconsIconicon={currentColumnIcon}className="size-3.5 shrink-0"@@ -229,7 +229,7 @@ export function ExecutionProgressIsland({)}{showBatch && (<div- className="mt-1 truncate px-3 text-[0.6875rem] text-muted-foreground"+ className="mt-1 truncate px-3 text-ui-11 text-muted-foreground"title={`Batch: ${execution.batch?.idx ?? "--"}/${execution.batch?.total ?? "--"}`}>Batch: {execution.batch?.idx ?? "--"}/@@ -241,7 +241,7 @@ export function ExecutionProgressIsland({type="button"variant="outline"size="sm"- className="h-7 w-full text-[0.6875rem]"+ className="h-7 w-full text-ui-11"onClick={onViewExecutions}>View run detailsdiff --git a/studio/frontend/src/features/recipe-studio/components/shared/available-references-inline.tsx b/studio/frontend/src/features/recipe-studio/components/shared/available-references-inline.tsxindex a0ed4b5ced6..ec75f59c051 100644--- a/studio/frontend/src/features/recipe-studio/components/shared/available-references-inline.tsx+++ b/studio/frontend/src/features/recipe-studio/components/shared/available-references-inline.tsx@@ -66,7 +66,7 @@ export function AvailableReferencesInline({return (<div className="space-y-1">- <p className="text-[0.625rem] font-medium text-muted-foreground">+ <p className="text-ui-10 font-medium text-muted-foreground">Available references</p><div ref={wrapperRef} className="relative">@@ -83,8 +83,8 @@ export function AvailableReferencesInline({variant="secondary"className={entry.source === "seed"- ? "corner-squircle h-4 border-blue-500/25 bg-blue-500/10 px-1.5 font-mono text-[0.625rem] text-blue-700 dark:text-blue-300"- : "corner-squircle h-4 px-1.5 font-mono text-[0.625rem]"+ ? "corner-squircle h-4 border-blue-500/25 bg-blue-500/10 px-1.5 font-mono text-ui-10 text-blue-700 dark:text-blue-300"+ : "corner-squircle h-4 px-1.5 font-mono text-ui-10"}>{entry.name}@@ -100,8 +100,8 @@ export function AvailableReferencesInline({variant="secondary"className={entry.source === "seed"- ? "corner-squircle h-4 border-blue-500/25 bg-blue-500/10 px-1.5 font-mono text-[0.625rem] text-blue-700 dark:text-blue-300"- : "corner-squircle h-4 px-1.5 font-mono text-[0.625rem]"+ ? "corner-squircle h-4 border-blue-500/25 bg-blue-500/10 px-1.5 font-mono text-ui-10 text-blue-700 dark:text-blue-300"+ : "corner-squircle h-4 px-1.5 font-mono text-ui-10"}>{entry.name}@@ -110,7 +110,7 @@ export function AvailableReferencesInline({{!expanded && hiddenCount > 0 && (<buttontype="button"- className="corner-squircle h-4 px-1.5 text-[0.625rem] text-muted-foreground hover:text-foreground"+ className="corner-squircle h-4 px-1.5 text-ui-10 text-muted-foreground hover:text-foreground"onClick={() => setExpanded(true)}>+{hiddenCount} more@@ -119,7 +119,7 @@ export function AvailableReferencesInline({{expanded && collapsedCount < entries.length && (<buttontype="button"- className="corner-squircle h-4 px-1.5 text-[0.625rem] text-muted-foreground hover:text-foreground"+ className="corner-squircle h-4 px-1.5 text-ui-10 text-muted-foreground hover:text-foreground"onClick={() => setExpanded(false)}>Show lessdiff --git a/studio/frontend/src/features/recipe-studio/dialogs/models/local-recipe-model-selector.tsx b/studio/frontend/src/features/recipe-studio/dialogs/models/local-recipe-model-selector.tsxindex 709bc8e1b87..48229ecdccc 100644--- a/studio/frontend/src/features/recipe-studio/dialogs/models/local-recipe-model-selector.tsx+++ b/studio/frontend/src/features/recipe-studio/dialogs/models/local-recipe-model-selector.tsx@@ -190,7 +190,7 @@ function LocalGgufVariantList({return (<div className="ml-6 mt-1 rounded-lg bg-muted/25 p-1.5">- <div className="mb-1 px-2 text-[0.625rem] font-medium uppercase tracking-wide text-muted-foreground">+ <div className="mb-1 px-2 text-ui-10 font-medium uppercase tracking-wide text-muted-foreground">Quantization</div><div className="space-y-0.5">@@ -210,12 +210,12 @@ function LocalGgufVariantList({{variant.quant}</span>{variant.quant === defaultVariant ? (- <Badge variant="secondary" className="h-4 px-1.5 text-[0.625rem]">+ <Badge variant="secondary" className="h-4 px-1.5 text-ui-10">recommended</Badge>) : null}{variant.downloaded ? (- <Badge variant="outline" className="h-4 px-1.5 text-[0.625rem]">+ <Badge variant="outline" className="h-4 px-1.5 text-ui-10">ready</Badge>) : null}@@ -276,7 +276,7 @@ const SelectorTrigger = forwardRef<HTMLButtonElement, SelectorTriggerProps>({selected.label || "Choose a local model"}</span>{compact ? null : (- <span className="mt-0.5 flex min-w-0 items-center gap-1.5 text-[0.6875rem] text-muted-foreground">+ <span className="mt-0.5 flex min-w-0 items-center gap-1.5 text-ui-11 text-muted-foreground"><span className="truncate">{selected.label? selected.source@@ -292,7 +292,7 @@ const SelectorTrigger = forwardRef<HTMLButtonElement, SelectorTriggerProps>({compact && ggufVariant ? (<Badgevariant="secondary"- className="h-4 px-1.5 font-mono text-[0.625rem]"+ className="h-4 px-1.5 font-mono text-ui-10">{ggufVariant}</Badge>@@ -347,7 +347,7 @@ function LocalModelRow({<span className="block truncate font-medium">{getModelLabel(model)}</span>- <span className="mt-0.5 block truncate text-[0.6875rem] text-muted-foreground">+ <span className="mt-0.5 block truncate text-ui-11 text-muted-foreground">{model.id}</span></span>@@ -356,11 +356,11 @@ function LocalModelRow({<Spinner className="size-3 text-muted-foreground" />) : null}{expandable || directGguf ? (- <Badge variant="secondary" className="h-4 px-1.5 text-[0.625rem]">+ <Badge variant="secondary" className="h-4 px-1.5 text-ui-10">GGUF</Badge>) : null}- <Badge variant="outline" className="h-4 px-1.5 text-[0.625rem]">+ <Badge variant="outline" className="h-4 px-1.5 text-ui-10">{sourceLabel(model)}</Badge></span>@@ -596,7 +596,7 @@ export function LocalRecipeModelSelector({className="menu-soft-surface nodrag nowheel gap-0 overflow-hidden p-0"style={{width:- "min(max(var(--radix-popover-trigger-width), 544px), calc(100vw - 16px))",+ "min(max(var(--radix-popover-trigger-width), 34rem), calc(100vw - 1rem))",}}><div className="flex flex-col">@@ -622,7 +622,7 @@ export function LocalRecipeModelSelector({</div><div- className="nowheel max-h-[min(384px,calc(100vh-192px))] overflow-y-auto overscroll-contain p-1.5"+ className="nowheel max-h-[min(24rem,calc(100vh-12rem))] overflow-y-auto overscroll-contain p-1.5"onWheelCapture={(event) => event.stopPropagation()}><LocalModelResultsdiff --git a/studio/frontend/src/features/recipe-studio/dialogs/preview-dialog.tsx b/studio/frontend/src/features/recipe-studio/dialogs/preview-dialog.tsxindex d8e477c7e02..f2ef34df8c6 100644--- a/studio/frontend/src/features/recipe-studio/dialogs/preview-dialog.tsx+++ b/studio/frontend/src/features/recipe-studio/dialogs/preview-dialog.tsx@@ -653,7 +653,7 @@ function RunDialogBody({/><Badgevariant="outline"- className="rounded-full text-[0.625rem] text-destructive"+ className="rounded-full text-ui-10 text-destructive">Before you run</Badge>diff --git a/studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsx b/studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsxindex 764094593ce..fedd603a9dc 100644--- a/studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsx+++ b/studio/frontend/src/features/recipe-studio/dialogs/seed/seed-dialog.tsx@@ -319,7 +319,7 @@ export function GithubRepoSeedForm({hint="Prefer the server GH_TOKEN / GITHUB_TOKEN env var. Use public_repo for public repos or repo for private repos."/>{usingEnvToken && (- <span className="shrink-0 rounded-md border border-emerald-500/40 bg-emerald-500/10 px-1.5 py-0.5 text-[0.625rem] font-medium text-emerald-700 dark:text-emerald-300">+ <span className="shrink-0 rounded-md border border-emerald-500/40 bg-emerald-500/10 px-1.5 py-0.5 text-ui-10 font-medium text-emerald-700 dark:text-emerald-300">Using server env var</span>)}diff --git a/studio/frontend/src/features/recipe-studio/dialogs/tool-profile/tool-profile-dialog.tsx b/studio/frontend/src/features/recipe-studio/dialogs/tool-profile/tool-profile-dialog.tsxindex 6224745a3f6..802729fcd89 100644--- a/studio/frontend/src/features/recipe-studio/dialogs/tool-profile/tool-profile-dialog.tsx+++ b/studio/frontend/src/features/recipe-studio/dialogs/tool-profile/tool-profile-dialog.tsx@@ -135,11 +135,11 @@ function McpServerCard({<p className="truncate text-sm font-semibold text-foreground">{summaryTitle}</p>- <Badge variant="outline" className="rounded-full text-[0.625rem] uppercase">+ <Badge variant="outline" className="rounded-full text-ui-10 uppercase">{transportLabel}</Badge>{toolsLabel ? (- <Badge variant="secondary" className="rounded-full text-[0.625rem]">+ <Badge variant="secondary" className="rounded-full text-ui-10">{toolsLabel}</Badge>) : null}@@ -680,7 +680,7 @@ export function ToolProfileDialog({<p className="text-xs font-semibold uppercase text-muted-foreground">{providerName}</p>- <Badge variant="outline" className="rounded-full text-[0.625rem]">+ <Badge variant="outline" className="rounded-full text-ui-10">{toolNames.length}</Badge></div>diff --git a/studio/frontend/src/features/recipe-studio/easy/github-crawler-easy-view.tsx b/studio/frontend/src/features/recipe-studio/easy/github-crawler-easy-view.tsxindex 99da4e0caac..77a86e481ca 100644--- a/studio/frontend/src/features/recipe-studio/easy/github-crawler-easy-view.tsx+++ b/studio/frontend/src/features/recipe-studio/easy/github-crawler-easy-view.tsx@@ -147,7 +147,7 @@ export function GithubCrawlerEasyView({<h3 className="text-xs font-semibold uppercase text-muted-foreground">Run settings</h3>- <div className="grid gap-3 sm:grid-cols-[minmax(0,160px)_minmax(0,1fr)]">+ <div className="grid gap-3 sm:grid-cols-[minmax(0,10rem)_minmax(0,1fr)]"><div className="grid gap-1.5"><FieldLabellabel="Rows to generate"diff --git a/studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx b/studio/frontend/src/features/recipe-studio/recipe-studio-page.tsxindex 93a41e02d56..30302b86a7b 100644--- a/studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx+++ b/studio/frontend/src/features/recipe-studio/recipe-studio-page.tsx@@ -670,7 +670,7 @@ export function RecipeStudioPage({/></div><div className="mt-4 space-y-2">- <p className="text-[0.6875rem] font-semibold uppercase tracking-wide text-primary">+ <p className="text-ui-11 font-semibold uppercase tracking-wide text-primary">Best place to start</p><p className="text-sm font-semibold text-foreground">diff --git a/studio/frontend/src/features/recipe-studio/utils/ui-tones.ts b/studio/frontend/src/features/recipe-studio/utils/ui-tones.tsindex b51917a5137..1dc3666687b 100644--- a/studio/frontend/src/features/recipe-studio/utils/ui-tones.ts+++ b/studio/frontend/src/features/recipe-studio/utils/ui-tones.ts@@ -27,10 +27,10 @@ export const RECIPE_STUDIO_USER_NODE_TONE =export const RECIPE_STUDIO_REFERENCE_BADGE_TONES = {user:- "corner-squircle border-amber-500/25 bg-amber-500/10 font-mono text-[0.6875rem] text-amber-700 dark:text-amber-300",+ "corner-squircle border-amber-500/25 bg-amber-500/10 font-mono text-ui-11 text-amber-700 dark:text-amber-300",seed:- "corner-squircle border-blue-500/25 bg-blue-500/10 font-mono text-[0.6875rem] text-blue-700 dark:text-blue-300",- default: "corner-squircle font-mono text-[0.6875rem]",+ "corner-squircle border-blue-500/25 bg-blue-500/10 font-mono text-ui-11 text-blue-700 dark:text-blue-300",+ default: "corner-squircle font-mono text-ui-11",} as const;export const RECIPE_STUDIO_WARNING_BADGE_TONE =diff --git a/studio/frontend/src/features/security/components/remote-code-consent-dialog.tsx b/studio/frontend/src/features/security/components/remote-code-consent-dialog.tsxindex b9ef27a172e..69bab2156ed 100644--- a/studio/frontend/src/features/security/components/remote-code-consent-dialog.tsx+++ b/studio/frontend/src/features/security/components/remote-code-consent-dialog.tsx@@ -111,7 +111,7 @@ function UnsafeFileCard({ file }: { file: UnsafeFile }) {<Badgevariant="outline"className={cn(- "shrink-0 text-[0.625rem] font-semibold uppercase tracking-wide",+ "shrink-0 text-ui-10 font-semibold uppercase tracking-wide",severityTone("CRITICAL"),)}>@@ -134,7 +134,7 @@ function FindingCard({ finding }: { finding: RemoteCodeFinding }) {<Badgevariant="outline"className={cn(- "shrink-0 text-[0.625rem] font-semibold tracking-wide",+ "shrink-0 text-ui-10 font-semibold tracking-wide",severityTone(finding.severity),)}>@@ -266,7 +266,7 @@ export function RemoteCodeConsentDialog() {<p className="text-xs font-medium text-muted-foreground">Our automatic scanner flagged issues including:</p>- <div className="max-h-[224px] min-w-0 space-y-2 overflow-y-auto pr-1">+ <div className="max-h-[14rem] min-w-0 space-y-2 overflow-y-auto pr-1">{unsafeFiles.map((f, i) => (<UnsafeFileCard key={`${f.path}-${i}`} file={f} />))}@@ -279,7 +279,7 @@ export function RemoteCodeConsentDialog() {<p className="text-xs font-medium text-muted-foreground">Our automatic scanner flagged issues including:</p>- <div className="max-h-[352px] min-w-0 space-y-3 overflow-y-auto pr-1">+ <div className="max-h-[22rem] min-w-0 space-y-3 overflow-y-auto pr-1">{findings.map((f, i) => (<FindingCard key={i} finding={f} />))}diff --git a/studio/frontend/src/features/settings/components/api-key-row.tsx b/studio/frontend/src/features/settings/components/api-key-row.tsxindex 32f807dc3d7..7100634942f 100644--- a/studio/frontend/src/features/settings/components/api-key-row.tsx+++ b/studio/frontend/src/features/settings/components/api-key-row.tsx@@ -69,11 +69,11 @@ export function ApiKeyRow({<span className="truncate text-sm font-medium text-foreground" title={apiKey.name}>{apiKey.name}</span>- <code className="shrink-0 font-mono text-[0.6875rem] text-muted-foreground">+ <code className="shrink-0 font-mono text-ui-11 text-muted-foreground">{prefix}</code></div>- <div className="flex flex-wrap gap-x-1.5 text-[0.6875rem] text-muted-foreground">+ <div className="flex flex-wrap gap-x-1.5 text-ui-11 text-muted-foreground"><span>{t("settings.apiKeys.created", {value: relative(apiKey.created_at, t),diff --git a/studio/frontend/src/features/settings/components/api-monitor-console.tsx b/studio/frontend/src/features/settings/components/api-monitor-console.tsxindex 65d37bdf3cb..0f931ff4daa 100644--- a/studio/frontend/src/features/settings/components/api-monitor-console.tsx+++ b/studio/frontend/src/features/settings/components/api-monitor-console.tsx@@ -127,7 +127,7 @@ function MonitorEntry({{compactEndpoint(entry.endpoint)}</span></div>- <div className="mt-1 truncate text-[0.6875rem] text-muted-foreground">+ <div className="mt-1 truncate text-ui-11 text-muted-foreground">{entry.model}</div><div className="mt-2 line-clamp-2 whitespace-pre-wrap break-words text-xs text-muted-foreground">@@ -137,7 +137,7 @@ function MonitorEntry({(entry.status === "running" ? "Waiting..." : "No preview")}</div></div>- <div className="flex shrink-0 items-start gap-2 text-right text-[0.6875rem] text-muted-foreground">+ <div className="flex shrink-0 items-start gap-2 text-right text-ui-11 text-muted-foreground"><div><div>{formatTime(entry.started_at)}</div><div>{formatDuration(entry.duration_ms)}</div>@@ -155,7 +155,7 @@ function MonitorEntry({<div className="border-t border-border/60 p-3 pt-2"><div className="grid gap-2"><div>- <div className="mb-1 flex items-center justify-between gap-2 text-[0.625rem] font-semibold uppercase text-muted-foreground">+ <div className="mb-1 flex items-center justify-between gap-2 text-ui-10 font-semibold uppercase text-muted-foreground"><span>Prompt</span>{entry.prompt_truncated && !detail ? <span>Preview</span> : null}</div>@@ -164,7 +164,7 @@ function MonitorEntry({</pre></div><div>- <div className="mb-1 flex items-center justify-between gap-2 text-[0.625rem] font-semibold uppercase text-muted-foreground">+ <div className="mb-1 flex items-center justify-between gap-2 text-ui-10 font-semibold uppercase text-muted-foreground"><span>Reply</span>{entry.reply_truncated && !detail ? <span>Preview</span> : null}</div>@@ -174,7 +174,7 @@ function MonitorEntry({</div></div>- <div className="mt-3 text-[0.6875rem] text-muted-foreground">+ <div className="mt-3 text-ui-11 text-muted-foreground">{formatTokens(entry)}{entry.context_length ? (<> / {entry.context_length.toLocaleString()} context</>diff --git a/studio/frontend/src/features/settings/components/create-key-form.tsx b/studio/frontend/src/features/settings/components/create-key-form.tsxindex 7267329c144..a16f67f1c13 100644--- a/studio/frontend/src/features/settings/components/create-key-form.tsx+++ b/studio/frontend/src/features/settings/components/create-key-form.tsx@@ -64,7 +64,7 @@ export function CreateKeyForm({onClick={() => setExpiry(p.value)}aria-pressed={active}className={cn(- "inline-flex h-8 items-center rounded-full px-3.5 text-[0.75rem] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "inline-flex h-8 items-center rounded-full px-3.5 text-ui-12 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",active? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",diff --git a/studio/frontend/src/features/settings/components/embedding-model-combobox.tsx b/studio/frontend/src/features/settings/components/embedding-model-combobox.tsxindex 8ab59caf3c6..28df663ec70 100644--- a/studio/frontend/src/features/settings/components/embedding-model-combobox.tsx+++ b/studio/frontend/src/features/settings/components/embedding-model-combobox.tsx@@ -100,7 +100,7 @@ export function EmbeddingModelCombobox({autoHighlight={true}><ComboboxInput- className="h-8 w-full font-mono [&_input]:text-[0.6875rem]"+ className="h-8 w-full font-mono [&_input]:text-ui-11"placeholder={placeholder}aria-label={ariaLabel}disabled={disabled}@@ -123,7 +123,7 @@ export function EmbeddingModelCombobox({selectingRef.current = true;}}>- <span className="truncate font-mono text-[0.6875rem]">{id}</span>+ <span className="truncate font-mono text-ui-11">{id}</span></ComboboxItem>)}</ComboboxList>diff --git a/studio/frontend/src/features/settings/components/key-reveal-card.tsx b/studio/frontend/src/features/settings/components/key-reveal-card.tsxindex 6bf0da9427b..80c93d77706 100644--- a/studio/frontend/src/features/settings/components/key-reveal-card.tsx+++ b/studio/frontend/src/features/settings/components/key-reveal-card.tsx@@ -61,7 +61,7 @@ export function KeyRevealCard({/></button><div className="flex items-center justify-between gap-3 pt-0.5">- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">{t("settings.apiKeys.copyNow")}</p><Buttondiff --git a/studio/frontend/src/features/settings/components/language-select.tsx b/studio/frontend/src/features/settings/components/language-select.tsxindex f9d026b909f..1f388d6f2c1 100644--- a/studio/frontend/src/features/settings/components/language-select.tsx+++ b/studio/frontend/src/features/settings/components/language-select.tsx@@ -37,7 +37,7 @@ export function LanguageSelect() {</SelectTrigger><SelectContentstyle={{- maxHeight: "min(288px, var(--radix-select-content-available-height))",+ maxHeight: "min(18rem, var(--radix-select-content-available-height))",}}><SelectItem value={AUTO_LOCALE}>diff --git a/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx b/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsxindex d9698d881ab..bd8ca69b66d 100644--- a/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx+++ b/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx@@ -45,7 +45,7 @@ function FixedRow({ icon, label }: { icon: IconSvgElement; label: string }) {{/* Spacer where the drag handle sits on movable rows. */}<span className="size-4" aria-hidden="true" /><HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-4" />- <span className="text-[0.8125rem]">{label}</span>+ <span className="text-ui-13">{label}</span></div>);}@@ -93,7 +93,7 @@ function MovableRow({ item }: { item: SidebarMenuItemPref }) {strokeWidth={1.75}className="size-4 text-foreground/80"/>- <span className="text-[0.8125rem] text-foreground">{t(meta.labelKey)}</span>+ <span className="text-ui-13 text-foreground">{t(meta.labelKey)}</span><SwitchclassName="ml-auto"checked={item.visible}diff --git a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx b/studio/frontend/src/features/settings/components/update-studio-instructions.tsxindex 24c69885a24..9854fa54e46 100644--- a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx+++ b/studio/frontend/src/features/settings/components/update-studio-instructions.tsx@@ -91,7 +91,7 @@ function CopyableCommand({type="text"readOnly={true}value={command}- className="min-w-0 flex-1 bg-transparent px-2 py-1.5 font-mono text-[0.6875rem] text-foreground outline-none"+ className="min-w-0 flex-1 bg-transparent px-2 py-1.5 font-mono text-ui-11 text-foreground outline-none"title={command}aria-label={t("settings.about.update.commandText", {label: copyLabel,@@ -187,7 +187,7 @@ function ShellToggleButton({onClick={onClick}aria-pressed={active}className={cn(- "inline-flex h-8 items-center justify-center rounded-full px-3.5 text-[0.75rem] font-medium transition-colors",+ "inline-flex h-8 items-center justify-center rounded-full px-3.5 text-ui-12 font-medium transition-colors",active? "hub-tab-toggle-pill text-foreground": "cursor-pointer text-muted-foreground hover:text-foreground",diff --git a/studio/frontend/src/features/settings/components/uploaded-files-dialog.tsx b/studio/frontend/src/features/settings/components/uploaded-files-dialog.tsxindex f0b2cd40fda..cb5ed0ad34f 100644--- a/studio/frontend/src/features/settings/components/uploaded-files-dialog.tsx+++ b/studio/frontend/src/features/settings/components/uploaded-files-dialog.tsx@@ -513,7 +513,7 @@ export function UploadedFilesView() {title={row.threadId ? `Go to ${row.location}` : `Open ${row.name}`}- className="group/name flex min-w-0 flex-1 basis-[calc(100%-80px)] items-center gap-2.5 overflow-hidden text-left sm:basis-auto"+ className="group/name flex min-w-0 flex-1 basis-[calc(100%-5rem)] items-center gap-2.5 overflow-hidden text-left sm:basis-auto"><span className="flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-[7px] border border-border/50 bg-muted/40">{row.thumb}@@ -522,11 +522,11 @@ export function UploadedFilesView() {<span className="flex min-w-0 items-center gap-2">{/* Floor keeps the name visible when the chip and fixedcolumns squeeze the cell at narrow widths. */}- <span className="min-w-[56px] truncate underline-offset-2 group-hover/name:underline">+ <span className="min-w-[3.5rem] truncate underline-offset-2 group-hover/name:underline">{row.name}</span>{row.typeLabel ? (- <span className="shrink-0 rounded-md bg-black/[0.06] px-1.5 py-px text-[0.5625rem] font-medium uppercase tracking-wide text-muted-foreground dark:bg-white/[0.1]">+ <span className="shrink-0 rounded-md bg-black/[0.06] px-1.5 py-px text-ui-9 font-medium uppercase tracking-wide text-muted-foreground dark:bg-white/[0.1]">{row.typeLabel}</span>) : null}diff --git a/studio/frontend/src/features/settings/components/usage-examples.tsx b/studio/frontend/src/features/settings/components/usage-examples.tsxindex 9da86506bca..ade181f632b 100644--- a/studio/frontend/src/features/settings/components/usage-examples.tsx+++ b/studio/frontend/src/features/settings/components/usage-examples.tsx@@ -454,7 +454,7 @@ function HighlightedCode({[code, language],);return (- <div className="max-w-full overflow-x-auto p-3 pr-16 text-[0.6875rem] leading-relaxed [&_pre]:!m-0 [&_pre]:!whitespace-pre-wrap [&_pre]:!break-words [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-0 [&_pre]:!text-[0.6875rem] [&_pre]:!leading-relaxed [&_code]:!text-[0.6875rem] [&_[data-streamdown=code-block]]:!my-0 [&_[data-streamdown=code-block]]:!border-0 [&_[data-streamdown=code-block]]:!bg-transparent [&_[data-streamdown=code-block]]:!p-0 [&_[data-streamdown=code-block]]:!text-[0.6875rem]">+ <div className="max-w-full overflow-x-auto p-3 pr-16 text-ui-11 leading-relaxed [&_pre]:!m-0 [&_pre]:!whitespace-pre-wrap [&_pre]:!break-words [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-0 [&_pre]:!text-ui-11 [&_pre]:!leading-relaxed [&_code]:!text-ui-11 [&_[data-streamdown=code-block]]:!my-0 [&_[data-streamdown=code-block]]:!border-0 [&_[data-streamdown=code-block]]:!bg-transparent [&_[data-streamdown=code-block]]:!p-0 [&_[data-streamdown=code-block]]:!text-ui-11"><Streamdownmode="static"plugins={{ code: codePlugin }}@@ -668,7 +668,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {onCheckedChange={handleToggleAutoSwitch}aria-label={t("settings.general.modelAutoSwitch.enable")}/>- <span className="text-[0.6875rem] font-medium text-foreground">+ <span className="text-ui-11 font-medium text-foreground">{t("settings.general.modelAutoSwitch.enable")}</span><Tooltip>@@ -686,7 +686,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {/></button></TooltipTrigger>- <TooltipContent className="max-w-[260px] text-[0.6875rem] leading-snug">+ <TooltipContent className="max-w-[260px] text-ui-11 leading-snug">{t("settings.general.modelAutoSwitch.enableDescription")}</TooltipContent></Tooltip>@@ -701,7 +701,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {onCheckedChange={handleToggleTunnel}aria-label={t("settings.apiKeys.secureHttps")}/>- <span className="text-[0.6875rem] font-medium text-foreground">+ <span className="text-ui-11 font-medium text-foreground">{t("settings.apiKeys.secureHttps")}</span>{/* Only when not launched with --secure: the raw 0.0.0.0 port is@@ -720,7 +720,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {/></button></TooltipTrigger>- <TooltipContent className="max-w-[260px] text-[0.6875rem] leading-snug">+ <TooltipContent className="max-w-[260px] text-ui-11 leading-snug">{t("settings.apiKeys.secureHttpsHint")}</TooltipContent></Tooltip>@@ -730,7 +730,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {type="button"onClick={handleCopyUrl}className={cn(- "flex min-w-0 items-center gap-1 rounded px-1.5 py-1 text-[0.6875rem] text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "flex min-w-0 items-center gap-1 rounded px-1.5 py-1 text-ui-11 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",!useTunnel && "opacity-50",)}title={cloudflareUrl}@@ -759,7 +759,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {onClick={() => setLang(tab.id)}aria-pressed={active}className={cn(- "rounded-full px-2.5 py-1 text-[0.6875rem] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",active? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",@@ -778,7 +778,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {onClick={() => setOs("unix")}aria-pressed={os === "unix"}className={cn(- "rounded-full px-2.5 py-1 text-[0.6875rem] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",os === "unix"? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",@@ -791,7 +791,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {onClick={() => setOs("windows")}aria-pressed={os === "windows"}className={cn(- "rounded-full px-2.5 py-1 text-[0.6875rem] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",os === "windows"? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",@@ -805,7 +805,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {<buttontype="button"onClick={handleCopy}- className="absolute right-2 top-2 z-10 flex items-center gap-1 rounded border border-border bg-background/80 px-1.5 py-1 text-[0.6875rem] text-muted-foreground backdrop-blur transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="absolute right-2 top-2 z-10 flex items-center gap-1 rounded border border-border bg-background/80 px-1.5 py-1 text-ui-11 text-muted-foreground backdrop-blur transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"aria-label={t("settings.apiKeys.copySnippet")}><HugeiconsIcon@@ -821,10 +821,10 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {/></div><div className="flex min-w-0 flex-col gap-1.5 border-t border-border px-3 py-2.5">- <span className="text-[0.6875rem] font-semibold text-foreground">+ <span className="text-ui-11 font-semibold text-foreground">{t("settings.apiKeys.codingAgents")}</span>- <span className="text-[0.6875rem] leading-snug text-muted-foreground">+ <span className="text-ui-11 leading-snug text-muted-foreground">{t("settings.apiKeys.codingAgentsHint")}</span><div className="flex min-w-0 flex-wrap items-center gap-1">@@ -846,7 +846,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {: undefined}className={cn(- "flex items-center gap-1 rounded-full px-2.5 py-1 text-[0.6875rem] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "flex items-center gap-1 rounded-full px-2.5 py-1 text-ui-11 font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",active? "hub-tab-toggle-pill text-foreground": "text-muted-foreground hover:text-foreground",@@ -864,13 +864,13 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {})}</div><div className="relative mt-0.5 min-w-0">- <code className="block min-w-0 overflow-x-auto rounded border border-border bg-muted/30 px-2 py-1.5 pr-14 font-mono text-[0.6875rem] text-foreground">+ <code className="block min-w-0 overflow-x-auto rounded border border-border bg-muted/30 px-2 py-1.5 pr-14 font-mono text-ui-11 text-foreground">{agentCommand}</code><buttontype="button"onClick={handleCopyAgent}- className="absolute right-1.5 top-1/2 flex -translate-y-1/2 items-center gap-1 rounded border border-border bg-background/80 px-1.5 py-0.5 text-[0.6875rem] text-muted-foreground backdrop-blur transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="absolute right-1.5 top-1/2 flex -translate-y-1/2 items-center gap-1 rounded border border-border bg-background/80 px-1.5 py-0.5 text-ui-11 text-muted-foreground backdrop-blur transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"aria-label={t("settings.apiKeys.copySnippet")}><HugeiconsIcon@@ -879,7 +879,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {/></button></div>- <span className="text-[0.6875rem] leading-snug text-muted-foreground">+ <span className="text-ui-11 leading-snug text-muted-foreground">{detectedAgents.length > 0? t("settings.apiKeys.codingAgentsDetectedHint", {agents: detectedAgents@@ -889,7 +889,7 @@ export function UsageExamples({ apiKey }: { apiKey?: string | null }) {: t("settings.apiKeys.codingAgentsSwap")}</span></div>- <div className="flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-border px-3 py-2 text-[0.6875rem] text-muted-foreground">+ <div className="flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-border px-3 py-2 text-ui-11 text-muted-foreground"><span>{t("settings.apiKeys.setupDocs")}</span>{DOC_LINKS.map((link) => (<adiff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsxindex 5cb3db2dbd1..7a3a3c58f70 100644--- a/studio/frontend/src/features/settings/settings-dialog.tsx+++ b/studio/frontend/src/features/settings/settings-dialog.tsx@@ -251,10 +251,10 @@ export function SettingsDialog() {className={cn(// Cap at 880px but shrink to the viewport so it doesn't clip on// iPad-portrait widths where a fixed width overflows.- "settings-surface !max-w-[min(880px,calc(100vw-32px))] h-[560px] w-[min(880px,calc(100vw-32px))] p-0 overflow-hidden",+ "settings-surface !max-w-[min(880px,calc(100vw-2rem))] h-[560px] w-[min(880px,calc(100vw-2rem))] p-0 overflow-hidden",// Soft shadow, no outline ring. Pin --radius to the light value so// corner rounding matches in dark mode.- "shadow-border rounded-xl ring-0 [--radius:17.6px]",+ "shadow-border rounded-xl ring-0 [--radius:1.1rem]","max-sm:h-dvh max-sm:w-dvw max-sm:!max-w-none max-sm:rounded-none",)}>@@ -309,7 +309,7 @@ export function SettingsDialog() {<buttontype="button"onClick={() => openResult(tab.id)}- className="flex h-[30px] items-center gap-2.5 rounded-full pl-3 pr-2.5 text-[0.84375rem] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground"+ className="flex h-[30px] items-center gap-2.5 rounded-full pl-3 pr-2.5 text-ui-13p5 font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground">{tab.iconComponent ? (<tab.iconComponent className="size-icon shrink-0" />@@ -327,7 +327,7 @@ export function SettingsDialog() {key={entry}type="button"onClick={() => openResult(tab.id, entry)}- className="flex h-[30px] items-center rounded-full pl-10 pr-2.5 text-left text-[0.875rem] text-foreground transition-colors hover:bg-accent hover:text-accent-foreground"+ className="flex h-[30px] items-center rounded-full pl-10 pr-2.5 text-left text-ui-14 text-foreground transition-colors hover:bg-accent hover:text-accent-foreground"><span className="min-w-0 truncate">{entry}</span></button>@@ -339,7 +339,7 @@ export function SettingsDialog() {) : null}<pclassName={cn(- "pl-4 pt-3 pb-2.5 text-[0.8125rem] font-medium text-muted-foreground max-sm:hidden",+ "pl-4 pt-3 pb-2.5 text-ui-13 font-medium text-muted-foreground max-sm:hidden",results !== null && "hidden",)}>@@ -362,7 +362,7 @@ export function SettingsDialog() {type="button"onClick={() => setActiveTab(tab.id)}className={cn(- "relative flex h-[32px] items-center gap-2.5 rounded-full pl-3 pr-2.5 text-[0.90625rem] leading-[1.1875rem] tracking-nav font-medium transition-colors",+ "relative flex h-[32px] items-center gap-2.5 rounded-full pl-3 pr-2.5 text-ui-14p5 leading-ui-19 tracking-nav font-medium transition-colors","max-sm:shrink-0","focus-visible:outline-none",// The active pill already marks the current tab, so@@ -401,7 +401,7 @@ export function SettingsDialog() {{t(tab.labelKey)}</span>{tab.badgeKey ? (- <span className="relative z-10 ml-auto rounded-full bg-control-accent/10 px-2 py-1 text-[0.625rem] leading-none font-semibold text-control-accent">+ <span className="relative z-10 ml-auto rounded-full bg-control-accent/10 px-2 py-1 text-ui-10 leading-none font-semibold text-control-accent">{t(tab.badgeKey)}</span>) : null}diff --git a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts b/studio/frontend/src/features/settings/stores/appearance-custom-store.tsindex f3618ddca59..0e449092e53 100644--- a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts+++ b/studio/frontend/src/features/settings/stores/appearance-custom-store.ts@@ -510,11 +510,20 @@ export function applyCustomizationToDocument(setVar("--custom-chat-font", null);}+ // The UI font size drives a typography scale factor, never the root font+ // size: rem-based layout geometry must not move with the preference. The+ // scale reaches text through the --text-* / --text-ui-* / --leading-*+ // tokens in index.css.if (c.uiFontSize !== null && c.uiFontSize !== UI_FONT_SIZE_RANGE.default) {- style.fontSize = `${c.uiFontSize}px`;+ setVar("--ui-font-scale", String(c.uiFontSize / UI_FONT_SIZE_RANGE.default));+ el.setAttribute("data-ui-font-size", String(c.uiFontSize));} else {- style.removeProperty("font-size");+ setVar("--ui-font-scale", null);+ el.removeAttribute("data-ui-font-size");}+ // Older builds scaled the root font size directly; clear any stale inline+ // value so layout never scales with the preference again.+ style.removeProperty("font-size");if (c.codeFontSize !== null) {el.setAttribute("data-code-font-size", "");diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsxindex b27a22ddab8..c004f4a16a2 100644--- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx@@ -99,7 +99,7 @@ function MetricTile({return (<div className="flex min-w-0 flex-col gap-2 rounded-md border border-border/60 bg-muted/20 p-3"><div className="flex items-center justify-between gap-3">- <span className="truncate text-[0.6875rem] font-semibold uppercase tracking-[0.08em] text-muted-foreground">+ <span className="truncate text-ui-11 font-semibold uppercase tracking-[0.08em] text-muted-foreground">{label}</span><span@@ -469,7 +469,7 @@ export function ResourcesTab() {description={t("settings.resources.storage.modelsFolderDescription")}className="max-sm:flex-col max-sm:items-start max-sm:gap-2">- <div className="flex min-w-0 items-center gap-2 max-sm:max-w-[calc(100vw-80px)]">+ <div className="flex min-w-0 items-center gap-2 max-sm:max-w-[calc(100vw-5rem)]"><spantitle={modelsFolder?.path}className="min-w-0 max-w-[280px] truncate font-mono text-xs text-muted-foreground max-sm:max-w-[180px]"diff --git a/studio/frontend/src/features/settings/tabs/voice-tab.tsx b/studio/frontend/src/features/settings/tabs/voice-tab.tsxindex ac9265a0a8c..a223b680fdb 100644--- a/studio/frontend/src/features/settings/tabs/voice-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/voice-tab.tsx@@ -525,11 +525,7 @@ export function VoiceTab() {>{hasLabels ? (<Select value={micDeviceId} onValueChange={setMicDeviceId}>- <SelectTrigger- aria-label="Microphone"- className="min-w-56 max-w-72"- size="sm"- >+ <SelectTrigger aria-label="Microphone" className="min-w-56 max-w-72" size="sm"><SelectValue /></SelectTrigger><SelectContent>diff --git a/studio/frontend/src/features/studio/history-card-grid.tsx b/studio/frontend/src/features/studio/history-card-grid.tsxindex e4ebde4aea2..21dc786e34c 100644--- a/studio/frontend/src/features/studio/history-card-grid.tsx+++ b/studio/frontend/src/features/studio/history-card-grid.tsx@@ -408,7 +408,7 @@ export function HistoryCardGrid({tabIndex={0}key={run.id}className={cn(- "group relative flex h-[184px] cursor-pointer flex-col gap-3 rounded-xl border bg-card p-4 text-left transition-colors hover:border-border hover:bg-accent/30",+ "group relative flex h-[11.5rem] cursor-pointer flex-col gap-3 rounded-xl border bg-card p-4 text-left transition-colors hover:border-border hover:bg-accent/30",isRunning? "border-blue-400/50 dark:border-blue-500/30": "border-border/60",@@ -425,14 +425,14 @@ export function HistoryCardGrid({<div className="flex items-center justify-between pr-6"><spanclassName={cn(- "inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[0.625rem] font-semibold",+ "inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-ui-10 font-semibold",badge.className,)}>{isRunning && <Spinner className="size-2.5" />}{formatStatusLabel(wasContinued ? "resumed_later" : run.status, t)}</span>- <span className="text-[0.625rem] text-muted-foreground">+ <span className="text-ui-10 text-muted-foreground">{formatRelativeTime(run.started_at, t)}</span></div>@@ -441,7 +441,7 @@ export function HistoryCardGrid({type="button"size="xs"variant="outline"- className="absolute bottom-3 left-4 h-6 rounded-full px-2.5 text-[0.6875rem] leading-none shadow-sm"+ className="absolute bottom-3 left-4 h-6 rounded-full px-2.5 text-ui-11 leading-none shadow-sm"disabled={isStarting || isResuming}onClick={(e) => {e.stopPropagation();@@ -456,7 +456,7 @@ export function HistoryCardGrid({type="button"size="xs"variant="outline"- className="absolute bottom-3 right-4 h-6 rounded-full px-2.5 text-[0.6875rem] leading-none shadow-sm"+ className="absolute bottom-3 right-4 h-6 rounded-full px-2.5 text-ui-11 leading-none shadow-sm"onClick={async (e) => {e.stopPropagation();// Encode each segment but keep "/" so the /p route matches.@@ -524,7 +524,7 @@ export function HistoryCardGrid({/></div>)}- <div className="flex flex-wrap gap-x-4 gap-y-1 text-[0.6875rem] text-muted-foreground">+ <div className="flex flex-wrap gap-x-4 gap-y-1 text-ui-11 text-muted-foreground"><span>{t("studio.history.loss")}:{" "}{run.final_loss != null ? run.final_loss.toFixed(4) : "--"}diff --git a/studio/frontend/src/features/studio/recent-trainings-section.tsx b/studio/frontend/src/features/studio/recent-trainings-section.tsxindex d7fe494ef04..092732b4863 100644--- a/studio/frontend/src/features/studio/recent-trainings-section.tsx+++ b/studio/frontend/src/features/studio/recent-trainings-section.tsx@@ -22,7 +22,7 @@ export function RecentTrainingsSection() {return (<section className="mt-10">- <h2 className="mb-4 text-[1.125rem] font-semibold tracking-[-0.02em] text-foreground">+ <h2 className="mb-4 text-ui-18 font-semibold tracking-[-0.02em] text-foreground">Recent trainings</h2><HistoryCardGriddiff --git a/studio/frontend/src/features/studio/sections/charts/chart-settings-sheet.tsx b/studio/frontend/src/features/studio/sections/charts/chart-settings-sheet.tsxindex 1fd1e7b75cc..f0f030dace6 100644--- a/studio/frontend/src/features/studio/sections/charts/chart-settings-sheet.tsx+++ b/studio/frontend/src/features/studio/sections/charts/chart-settings-sheet.tsx@@ -251,7 +251,7 @@ export function ChartSettingsSheet(): ReactElement {max={0.9}step={0.01}/>- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">{t("studio.charts.smoothingDescription")}</p></div>diff --git a/studio/frontend/src/features/studio/sections/charts/eval-loss-chart-card.tsx b/studio/frontend/src/features/studio/sections/charts/eval-loss-chart-card.tsxindex ad00fa0c630..b5eeac34f3e 100644--- a/studio/frontend/src/features/studio/sections/charts/eval-loss-chart-card.tsx+++ b/studio/frontend/src/features/studio/sections/charts/eval-loss-chart-card.tsx@@ -70,7 +70,7 @@ export function EvalLossChartCard({tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}tickFormatter={(value) => formatStepTick(Number(value))}interval="preserveStartEnd"/>@@ -81,7 +81,7 @@ export function EvalLossChartCard({axisLine={false}tickMargin={8}tickCount={5}- fontSize="0.625rem"+ fontSize={10}width={DEFAULT_Y_AXIS_WIDTH}tickFormatter={(value) => formatAxisMetric(Number(value))}/>@@ -132,7 +132,7 @@ export function EvalLossChartCard({tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}interval="preserveStartEnd"/><YAxis@@ -140,7 +140,7 @@ export function EvalLossChartCard({axisLine={false}tickMargin={8}tickCount={5}- fontSize="0.625rem"+ fontSize={10}width={DEFAULT_Y_AXIS_WIDTH}/><Linediff --git a/studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx b/studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsxindex 76e779f584e..2a1c14784cb 100644--- a/studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx+++ b/studio/frontend/src/features/studio/sections/charts/grad-norm-chart-card.tsx@@ -78,7 +78,7 @@ export function GradNormChartCard({tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}tickFormatter={(value) => formatStepTick(Number(value))}interval="preserveStartEnd"/>@@ -89,7 +89,7 @@ export function GradNormChartCard({axisLine={false}tickMargin={8}tickCount={5}- fontSize="0.625rem"+ fontSize={10}width={DEFAULT_Y_AXIS_WIDTH}tickFormatter={(value) => {const num = Number(value);diff --git a/studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsx b/studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsxindex 000a32c7660..1a7495b4937 100644--- a/studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsx+++ b/studio/frontend/src/features/studio/sections/charts/learning-rate-chart-card.tsx@@ -76,7 +76,7 @@ export function LearningRateChartCard({tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}tickFormatter={(value) => formatStepTick(Number(value))}interval="preserveStartEnd"/>@@ -87,7 +87,7 @@ export function LearningRateChartCard({axisLine={false}tickMargin={8}tickCount={5}- fontSize="0.625rem"+ fontSize={10}width={DEFAULT_Y_AXIS_WIDTH}tickFormatter={(value) => {const num = Number(value);diff --git a/studio/frontend/src/features/studio/sections/charts/training-loss-chart-card.tsx b/studio/frontend/src/features/studio/sections/charts/training-loss-chart-card.tsxindex 233210a61b2..738305eaca7 100644--- a/studio/frontend/src/features/studio/sections/charts/training-loss-chart-card.tsx+++ b/studio/frontend/src/features/studio/sections/charts/training-loss-chart-card.tsx@@ -96,7 +96,7 @@ export function TrainingLossChartCard({tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}tickFormatter={(value) => formatStepTick(Number(value))}interval="preserveStartEnd"/>@@ -107,7 +107,7 @@ export function TrainingLossChartCard({axisLine={false}tickMargin={8}tickCount={5}- fontSize="0.625rem"+ fontSize={10}width={DEFAULT_Y_AXIS_WIDTH}tickFormatter={(value) => {const num = Number(value);@@ -152,7 +152,7 @@ export function TrainingLossChartCard({value: formatMetric(avgRaw),}),position: "insideTopRight",- fontSize: "0.625rem",+ fontSize: "calc(0.625rem * var(--ui-font-scale, 1))",fill: "#3b82f6",}}/>diff --git a/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx b/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsxindex 1233ea68eff..d20cc0b63d3 100644--- a/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx+++ b/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx@@ -74,15 +74,15 @@ export function HeaderRolePicker({value={currentRole ?? "_none"}onValueChange={(v) => onRoleChange(v === "_none" ? undefined : v)}>- <SelectTrigger className="h-6 w-[90px] text-[0.625rem] px-2 py-0 border-dashed cursor-pointer">+ <SelectTrigger className="h-6 w-[90px] text-ui-10 px-2 py-0 border-dashed cursor-pointer"><SelectValue placeholder="Role..." /></SelectTrigger><SelectContent>- <SelectItem value="_none" className="text-[0.6875rem]">+ <SelectItem value="_none" className="text-ui-11">None</SelectItem>{availableRoles.map((role) => (- <SelectItem key={role} value={role} className="text-[0.6875rem]">+ <SelectItem key={role} value={role} className="text-ui-11">{ROLE_LABELS[role] ?? role}</SelectItem>))}@@ -179,7 +179,7 @@ export function DatasetMappingCard({<Badgekey={col}variant="outline"- className="h-6 text-[0.6875rem] bg-white/60 dark:bg-transparent"+ className="h-6 text-ui-11 bg-white/60 dark:bg-transparent"><span className="font-mono">{col}</span><span className="mx-1 text-muted-foreground/60">→</span>@@ -211,7 +211,7 @@ export function DatasetMappingCard({<><Sparkles className="mr-1.5 h-3.5 w-3.5" />AI Assist- <Badge variant="outline" className="ml-1.5 text-[0.5625rem] px-1 py-0 h-4 font-medium">Beta</Badge>+ <Badge variant="outline" className="ml-1.5 text-ui-9 px-1 py-0 h-4 font-medium">Beta</Badge></>)}</Button>@@ -227,7 +227,7 @@ export function DatasetMappingCard({<span>{advisorNotification}</span></div>{advisorSystemPrompt && (- <div className="pl-5.5 text-[0.6875rem] font-mono text-indigo-600/80 dark:text-indigo-400/80">+ <div className="pl-5.5 text-ui-11 font-mono text-indigo-600/80 dark:text-indigo-400/80"><span className="font-sans font-medium text-indigo-500 dark:text-indigo-400">System:</span>{" "}<span className="break-words">{advisorSystemPrompt}</span></div>@@ -256,7 +256,7 @@ export function DatasetMappingFooter({return (<div className="mt-3 flex flex-col gap-2"><div className="flex items-center justify-between gap-3">- <p className="text-[0.6875rem] text-muted-foreground/70 leading-relaxed">+ <p className="text-ui-11 text-muted-foreground/70 leading-relaxed">Tip: use the role dropdowns in the column headers to assign roles.</p><div className="flex items-center gap-2">diff --git a/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx b/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsxindex b80d587622e..71939aaee22 100644--- a/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx+++ b/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx@@ -261,7 +261,7 @@ export function DatasetPreviewDialog({accessorKey: colName,header: () => (<div className="flex flex-col gap-2">- <span className="font-heading text-[0.8125rem] font-semibold tracking-tight text-foreground">+ <span className="font-heading text-ui-13 font-semibold tracking-tight text-foreground">{colName}</span>{mappingEnabled && (@@ -308,7 +308,7 @@ export function DatasetPreviewDialog({const text = formatCell(value);if (!text) {return (- <span className="text-muted-foreground/40 italic text-[0.8125rem]">+ <span className="text-muted-foreground/40 italic text-ui-13">--</span>);@@ -316,7 +316,7 @@ export function DatasetPreviewDialog({const full = typeof value === "string" ? value : JSON.stringify(value);return (<p- className="text-[0.8125rem] leading-relaxed line-clamp-6"+ className="text-ui-13 leading-relaxed line-clamp-6"title={full}>{text}@@ -331,11 +331,11 @@ export function DatasetPreviewDialog({id: "__system_generated",header: () => (<div className="flex flex-col gap-2">- <span className="font-heading text-[0.8125rem] font-semibold tracking-tight text-foreground">+ <span className="font-heading text-ui-13 font-semibold tracking-tight text-foreground">System <span className="text-muted-foreground font-normal">(generated)</span></span>{mappingEnabled && (- <Badge variant="outline" className="h-6 w-fit text-[0.625rem] px-2 py-0 border-dashed text-muted-foreground">+ <Badge variant="outline" className="h-6 w-fit text-ui-10 px-2 py-0 border-dashed text-muted-foreground">System</Badge>)}@@ -343,7 +343,7 @@ export function DatasetPreviewDialog({),cell: () => (<p- className="text-[0.8125rem] leading-relaxed line-clamp-6 text-muted-foreground italic"+ className="text-ui-13 leading-relaxed line-clamp-6 text-muted-foreground italic"title={datasetSystemPrompt}>{datasetSystemPrompt}@@ -443,7 +443,7 @@ export function DatasetPreviewDialog({<Badgekey={col}variant="outline"- className="text-[0.6875rem] font-mono h-5"+ className="text-ui-11 font-mono h-5">{col}</Badge>@@ -493,7 +493,7 @@ export function DatasetPreviewDialog({{/* Footer */}<div className="mt-3">- <p className="text-[0.6875rem] text-muted-foreground/60 text-center tabular-nums">+ <p className="text-ui-11 text-muted-foreground/60 text-center tabular-nums">Showing {rows.length}{data.total_rows != null &&` of ${data.total_rows.toLocaleString()}`}{" "}@@ -501,7 +501,7 @@ export function DatasetPreviewDialog({</p>{mode === "preview" && mappingEnabled && (- <p className="mt-2 text-[0.6875rem] text-muted-foreground/70 text-center">+ <p className="mt-2 text-ui-11 text-muted-foreground/70 text-center">Mapping is saved automatically. You can start training anytime.</p>)}@@ -540,7 +540,7 @@ function MetaRow({<span className="text-muted-foreground font-medium text-xs w-24 shrink-0">{label}:</span>- <span className="text-foreground text-[0.8125rem] min-w-0">{value}</span>+ <span className="text-foreground text-ui-13 min-w-0">{value}</span></div>);}diff --git a/studio/frontend/src/features/studio/sections/dataset-section.tsx b/studio/frontend/src/features/studio/sections/dataset-section.tsxindex 038462ea8bc..6a3cc8129a3 100644--- a/studio/frontend/src/features/studio/sections/dataset-section.tsx+++ b/studio/frontend/src/features/studio/sections/dataset-section.tsx@@ -728,7 +728,7 @@ export function DatasetSection() {}}}className={cn(- "relative inline-flex h-9 flex-auto cursor-pointer items-center justify-center rounded-full px-3 text-[0.78125rem] font-medium transition-colors",+ "relative inline-flex h-9 flex-auto cursor-pointer items-center justify-center rounded-full px-3 text-ui-12p5 font-medium transition-colors",datasetSource === item.value? "text-foreground": "text-muted-foreground hover:text-foreground",@@ -764,7 +764,7 @@ export function DatasetSection() {<div className="flex min-w-0 flex-col gap-2"><span className="flex items-center gap-1.5 text-xs font-medium text-muted-foreground">{t("studio.dataset.chooseDataset")}- <span className="rounded-full border border-border/70 bg-muted/40 px-2 py-0.5 text-[0.625rem] font-medium text-foreground/80">+ <span className="rounded-full border border-border/70 bg-muted/40 px-2 py-0.5 text-ui-10 font-medium text-foreground/80">{datasetSource === "upload"? t("studio.dataset.localTab"): "Hugging Face"}@@ -1030,7 +1030,7 @@ export function DatasetSection() {</p>)}{pickerTab !== activeSourceTab && (- <p className="text-[0.6875rem] text-muted-foreground">+ <p className="text-ui-11 text-muted-foreground">{t("studio.dataset.browsingSource", {browsing:pickerTab === "local"@@ -1068,7 +1068,7 @@ export function DatasetSection() {<p className="text-xs font-medium text-muted-foreground">{t("studio.dataset.localDatasetMetadata")}</p>- <p className="text-[0.625rem] text-muted-foreground/80">+ <p className="text-ui-10 text-muted-foreground/80">{t("studio.dataset.dataRecipeOutput")}</p></div>@@ -1172,7 +1172,7 @@ export function DatasetSection() {? t("studio.dataset.uploading"): t("studio.dataset.uploadEvalFile")}</Button>- <p className="text-[0.625rem] text-muted-foreground/80">+ <p className="text-ui-10 text-muted-foreground/80">{t("studio.dataset.evalDatasetDescription")}</p></div>@@ -1379,7 +1379,7 @@ export function DatasetSection() {deriveLocalDatasetName(selectedDatasetName)): selectedDatasetName}</p>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{datasetSource === "upload" ? (uploadedFile ? (<>@@ -1433,7 +1433,7 @@ export function DatasetSection() {<span className="block text-xs font-medium text-foreground">{t("studio.dataset.dropFileOrClick")}</span>- <span className="mt-0.5 block truncate text-[0.625rem] text-muted-foreground">+ <span className="mt-0.5 block truncate text-ui-10 text-muted-foreground">{TRAINING_DATASET_UPLOAD_LABEL} · up to {uploadLimitLabel}; {DOCUMENT_REDIRECT_LABEL}</span>diff --git a/studio/frontend/src/features/studio/sections/model-section.tsx b/studio/frontend/src/features/studio/sections/model-section.tsxindex 5acc4a02944..0589fde350f 100644--- a/studio/frontend/src/features/studio/sections/model-section.tsx+++ b/studio/frontend/src/features/studio/sections/model-section.tsx@@ -374,7 +374,7 @@ export function ModelSection() {{model?.path ?? id}</TooltipContent></Tooltip>- <span className="ml-auto shrink-0 text-[0.625rem] text-muted-foreground">+ <span className="ml-auto shrink-0 text-ui-10 text-muted-foreground">{source}</span></ComboboxItem>@@ -385,13 +385,13 @@ export function ModelSection() {</Combobox></div>{isLoadingLocalModels ? (- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{t("studio.model.scanningLocalModels")}</p>) : localModelsError ? (- <p className="text-[0.625rem] text-red-500">{localModelsError}</p>+ <p className="text-ui-10 text-red-500">{localModelsError}</p>) : (- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{trainableLocalModels.length > 0? t("studio.model.localModelsFound", {count: trainableLocalModels.length,@@ -507,7 +507,7 @@ export function ModelSection() {{vramEst != null &&vramEst > 0 &&gpu.available && (- <span className="block text-[0.625rem] mt-1">+ <span className="block text-ui-10 mt-1">{exceeds? t("studio.model.needsVram", {vram: vramEst,@@ -527,17 +527,17 @@ export function ModelSection() {</Tooltip><span className="ml-auto flex items-center gap-1.5 shrink-0">{fitStatus === "exceeds" && (- <span className="text-[0.5625rem] font-medium !text-red-700 !bg-red-50 dark:!text-red-400 dark:!bg-red-950 px-1.5 py-0.5 rounded">+ <span className="text-ui-9 font-medium !text-red-700 !bg-red-50 dark:!text-red-400 dark:!bg-red-950 px-1.5 py-0.5 rounded">OOM</span>)}{fitStatus === "tight" && (- <span className="text-[0.5625rem] font-medium !text-amber-400">+ <span className="text-ui-9 font-medium !text-amber-400">TIGHT</span>)}{detail && (- <span className="text-[0.625rem] text-muted-foreground">+ <span className="text-ui-10 text-muted-foreground">{detail}</span>)}diff --git a/studio/frontend/src/features/studio/sections/params-section.tsx b/studio/frontend/src/features/studio/sections/params-section.tsxindex 2bc3346bb26..029fef4e195 100644--- a/studio/frontend/src/features/studio/sections/params-section.tsx+++ b/studio/frontend/src/features/studio/sections/params-section.tsx@@ -238,7 +238,7 @@ export function ParamsSection(): ReactElement {<div className="flex flex-col gap-2"><span className="flex items-center gap-1.5 text-xs font-medium text-muted-foreground">{t("studio.params.projectName")}- <span className="text-[0.625rem] font-normal text-muted-foreground/70">+ <span className="text-ui-10 font-normal text-muted-foreground/70">{t("studio.params.optional")}</span></span>@@ -248,7 +248,7 @@ export function ParamsSection(): ReactElement {placeholder="customer-support-lora"maxLength={80}/>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{t("studio.params.projectNameDescription")}</p></div>@@ -337,7 +337,7 @@ export function ParamsSection(): ReactElement {max={useEpochs ? epochsSliderMax : maxStepsSliderMax}step={1}/>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{useEpochs? t("studio.params.epochsDescription"): t("studio.params.maxStepsDescription")}@@ -425,7 +425,7 @@ export function ParamsSection(): ReactElement {</ComboboxContent></Combobox></div>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{t("studio.params.contextLengthDescription")}</p></div>@@ -466,7 +466,7 @@ export function ParamsSection(): ReactElement {onChange={(e) => store.setLearningRate(Number(e.target.value))}className="w-full font-mono"/>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{t("studio.params.learningRateDescription")}</p></div>@@ -511,7 +511,7 @@ export function ParamsSection(): ReactElement {}}className="w-full font-mono"/>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{t("studio.params.embeddingLearningRateDescription")}</p></div>@@ -667,7 +667,7 @@ export function ParamsSection(): ReactElement {: [...store.targetModules, mod],);}}- className={`cursor-pointer rounded-full border px-2.5 py-0.5 text-[0.6875rem] font-mono transition-colors ${+ className={`cursor-pointer rounded-full border px-2.5 py-0.5 text-ui-11 font-mono transition-colors ${active? "border-orange-300 bg-orange-50 text-orange-700 dark:border-orange-700 dark:bg-orange-950 dark:text-orange-300": "text-muted-foreground hover:bg-muted/50"@@ -714,7 +714,7 @@ export function ParamsSection(): ReactElement {}`}><p className="text-xs font-medium">{opt.label}</p>- <p className="text-[0.625rem] text-muted-foreground">+ <p className="text-ui-10 text-muted-foreground">{opt.desc}</p></button>diff --git a/studio/frontend/src/features/studio/sections/progress-section.tsx b/studio/frontend/src/features/studio/sections/progress-section.tsxindex 0a65cece48a..105657e2ef2 100644--- a/studio/frontend/src/features/studio/sections/progress-section.tsx+++ b/studio/frontend/src/features/studio/sections/progress-section.tsx@@ -254,25 +254,25 @@ export function ProgressSection({</div>}>- <div className="grid grid-cols-1 gap-5 lg:grid-cols-[minmax(0,1.2fr)_minmax(288px,0.8fr)]">+ <div className="grid grid-cols-1 gap-5 lg:grid-cols-[minmax(0,1.2fr)_minmax(18rem,0.8fr)]"><div className="flex flex-col gap-4"><div className="flex flex-wrap items-center gap-2"><span- className={`rounded-full px-2.5 py-1 text-[0.625rem] font-semibold ${phaseColors[data.phase]}`}+ className={`rounded-full px-2.5 py-1 text-ui-10 font-semibold ${phaseColors[data.phase]}`}>{t(phaseLabelKeys[data.phase])}</span>{data.projectName && (- <span className="rounded-full border border-border/60 px-2.5 py-1 text-[0.625rem] font-medium text-foreground/80">+ <span className="rounded-full border border-border/60 px-2.5 py-1 text-ui-10 font-medium text-foreground/80">{data.projectName}</span>)}- <span className="text-[0.625rem] tabular-nums text-muted-foreground">+ <span className="text-ui-10 tabular-nums text-muted-foreground">{t("studio.progress.epoch", {value: formatNumber(data.currentEpoch, 2),})}</span>- <span className="rounded-full border border-border/60 px-2.5 py-1 text-[0.625rem] font-medium tabular-nums text-muted-foreground">+ <span className="rounded-full border border-border/60 px-2.5 py-1 text-ui-10 font-medium tabular-nums text-muted-foreground">{t("studio.progress.percentComplete", { percent: pct })}</span></div>@@ -394,7 +394,7 @@ function LiveGpuPanel({<selectvalue={selectedGpu}onChange={(e) => setSelectedGpu(Number(e.target.value))}- className="h-6 cursor-pointer rounded-md border border-border bg-popover px-1.5 py-0.5 text-[0.6875rem] text-popover-foreground outline-none hover:bg-muted focus:border-ring transition-colors font-medium appearance-none"+ className="h-6 cursor-pointer rounded-md border border-border bg-popover px-1.5 py-0.5 text-ui-11 text-popover-foreground outline-none hover:bg-muted focus:border-ring transition-colors font-medium appearance-none"title="Select GPU">{gpus.map((device, index) => (@@ -409,7 +409,7 @@ function LiveGpuPanel({</select>)}</div>- <span className="text-[0.6875rem] text-muted-foreground">+ <span className="text-ui-11 text-muted-foreground">{t("studio.progress.live")}</span></div>@@ -527,7 +527,7 @@ function ConfigPopoverButton({<p className="text-xs font-semibold">{t("studio.progress.configLabel")}</p>{configItems.map((group) => (<div key={group.section} className="flex flex-col gap-1">- <p className="text-[0.625rem] font-semibold uppercase tracking-wider text-muted-foreground">+ <p className="text-ui-10 font-semibold uppercase tracking-wider text-muted-foreground">{group.section}</p>{group.rows.map(([label, value]) => (@@ -628,7 +628,7 @@ function MilestoneCallout({<div className="flex items-start justify-between gap-3"><div className="min-w-0">{!showCompletedHint && (- <p className="text-[0.625rem] font-medium uppercase tracking-[0.12em] text-muted-foreground">+ <p className="text-ui-10 font-medium uppercase tracking-[0.12em] text-muted-foreground">{t("studio.training.milestone")}</p>)}@@ -644,7 +644,7 @@ function MilestoneCallout({</p></div>{!showCompletedHint && (- <span className="rounded-full border border-border/60 bg-background/80 px-2 py-0.5 text-[0.625rem] font-medium text-muted-foreground">+ <span className="rounded-full border border-border/60 bg-background/80 px-2 py-0.5 text-ui-10 font-medium text-muted-foreground">50%+</span>)}@@ -674,7 +674,7 @@ function MetricStat({}): ReactElement {return (<div className="min-w-0">- <p className="text-[0.6875rem] text-muted-foreground">{label}</p>+ <p className="text-ui-11 text-muted-foreground">{label}</p><pclassName={`mt-1 text-base font-semibold tabular-nums ${valueClassName ?? ""}`}>diff --git a/studio/frontend/src/features/studio/sections/s3-config-form.tsx b/studio/frontend/src/features/studio/sections/s3-config-form.tsxindex bf8825a968d..e7daffb750d 100644--- a/studio/frontend/src/features/studio/sections/s3-config-form.tsx+++ b/studio/frontend/src/features/studio/sections/s3-config-form.tsx@@ -51,7 +51,7 @@ export function S3ConfigForm() {<p className="text-xs font-medium text-foreground">{t("studio.dataset.s3.title")}</p>- <p className="text-[0.625rem] text-muted-foreground/80">+ <p className="text-ui-10 text-muted-foreground/80">{t("studio.dataset.s3.description")}</p></div>diff --git a/studio/frontend/src/features/studio/sections/training-section.tsx b/studio/frontend/src/features/studio/sections/training-section.tsxindex ae0901c0236..5650b9c1459 100644--- a/studio/frontend/src/features/studio/sections/training-section.tsx+++ b/studio/frontend/src/features/studio/sections/training-section.tsx@@ -140,13 +140,13 @@ export function TrainingSection() {tickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}/><YAxistickLine={false}axisLine={false}tickMargin={8}- fontSize="0.625rem"+ fontSize={10}/><Linetype="monotone"diff --git a/studio/frontend/src/features/studio/studio-page.tsx b/studio/frontend/src/features/studio/studio-page.tsxindex 66495209227..f50dcf51552 100644--- a/studio/frontend/src/features/studio/studio-page.tsx+++ b/studio/frontend/src/features/studio/studio-page.tsx@@ -165,7 +165,7 @@ export function StudioPage(): ReactElement {/><div className="mb-6 flex flex-col gap-0.5 sm:mb-8">- <h1 className="text-[1.875rem] font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-[2.125rem]">+ <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">{t("studio.title")}</h1><p className="text-sm text-muted-foreground">{subtitle}</p>diff --git a/studio/frontend/src/features/studio/training-start-overlay.tsx b/studio/frontend/src/features/studio/training-start-overlay.tsxindex 71db25d3c08..c836b61ce43 100644--- a/studio/frontend/src/features/studio/training-start-overlay.tsx+++ b/studio/frontend/src/features/studio/training-start-overlay.tsx@@ -210,7 +210,7 @@ function DownloadRow({ label, state }: DownloadRowProps): ReactElement | null {<span className="text-xs text-foreground/90">{label}</span>{statusLabel ? (<span- className={`rounded-full px-1.5 py-0.5 text-[0.625rem] font-medium ${isComplete ? "bg-emerald-100 text-emerald-700 ring-1 ring-emerald-200/80 dark:bg-emerald-500/15 dark:text-emerald-300 dark:ring-emerald-500/30" : "bg-muted text-muted-foreground"}`}+ className={`rounded-full px-1.5 py-0.5 text-ui-10 font-medium ${isComplete ? "bg-emerald-100 text-emerald-700 ring-1 ring-emerald-200/80 dark:bg-emerald-500/15 dark:text-emerald-300 dark:ring-emerald-500/30" : "bg-muted text-muted-foreground"}`}>{statusLabel}</span>@@ -221,7 +221,7 @@ function DownloadRow({ label, state }: DownloadRowProps): ReactElement | null {</span></div>{sizeLabel ? (- <div className="text-[0.6875rem] tabular-nums text-muted-foreground">+ <div className="text-ui-11 tabular-nums text-muted-foreground">{sizeLabel}</div>) : null}@@ -233,7 +233,7 @@ function DownloadRow({ label, state }: DownloadRowProps): ReactElement | null {) : null}{state.cachePath ? (<div- className="truncate rounded bg-muted/50 px-2 py-1 text-[0.625rem] text-muted-foreground/70"+ className="truncate rounded bg-muted/50 px-2 py-1 text-ui-10 text-muted-foreground/70"title={state.cachePath}>{formatCachePath(state.cachePath)}@@ -316,7 +316,7 @@ export function TrainingStartOverlay({return (<div className="pointer-events-none absolute inset-0 z-30 flex items-center justify-center rounded-2xl bg-background/45 backdrop-blur-[1px]">- <div className="pointer-events-auto relative flex w-[860px] max-w-[calc(100%-32px)] flex-col items-center">+ <div className="pointer-events-auto relative flex w-[860px] max-w-[calc(100%-2rem)] flex-col items-center"><MascotImg src="unsloth-gem.png" className="size-24 object-contain" /><div className="relative w-full"><AlertDialog open={cancelDialogOpen} onOpenChange={setCancelDialogOpen}>diff --git a/studio/frontend/src/features/tour/components/guided-tour.tsx b/studio/frontend/src/features/tour/components/guided-tour.tsxindex ba12760ef36..c0730d03893 100644--- a/studio/frontend/src/features/tour/components/guided-tour.tsx+++ b/studio/frontend/src/features/tour/components/guided-tour.tsx@@ -270,7 +270,7 @@ export function GuidedTour({onInteractOutside={(e) => e.preventDefault()}className={cn("fixed z-[52] outline-none",- "w-[min(420px,calc(100vw-24px))]",+ "w-[min(420px,calc(100vw-1.5rem))]",)}style={{left: cardPos.left,@@ -313,13 +313,13 @@ export function GuidedTour({<div className="relative p-5"><div className="flex items-start justify-between gap-3"><div className="min-w-0">- <div className="inline-flex items-center gap-2 rounded-full bg-black/[0.04] px-2.5 py-1 text-[0.625rem] font-mono text-foreground/60 ring-1 ring-black/10 dark:bg-white/[0.04] dark:text-zinc-200/75 dark:ring-white/14">+ <div className="inline-flex items-center gap-2 rounded-full bg-black/[0.04] px-2.5 py-1 text-ui-10 font-mono text-foreground/60 ring-1 ring-black/10 dark:bg-white/[0.04] dark:text-zinc-200/75 dark:ring-white/14">{idx + 1}/{total}<span className="size-1 rounded-full bg-control-accent/70" />guided tour</div><DialogPrimitive.Title- className="mt-2 text-[1.125rem] leading-tight"+ className="mt-2 text-ui-18 leading-tight"style={{ fontFamily: "var(--font-serif)" }}>{step?.title ?? "Quick tour"}@@ -383,7 +383,7 @@ export function GuidedTour({</div><div className="h-px bg-gradient-to-r from-transparent via-black/10 to-transparent dark:via-white/14" />- <div className="px-5 py-3 text-[0.6875rem] text-foreground/55 dark:text-zinc-300/65">+ <div className="px-5 py-3 text-ui-11 text-foreground/55 dark:text-zinc-300/65">Tip: `Esc` skips. Tour blocks clicks so you can read.</div></motion.div>diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 38eac3e0c07..f4fa3cfb8dc 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -186,9 +186,7 @@--chart-3: oklch(0.7014 0.1193 197.5897);--chart-4: oklch(0.6926 0.1112 346.5775);--chart-5: oklch(0.7497 0.1003 85.0057);- /* Radius and spacing are px on purpose: only text follows the UI font- size rem base, layout stays fixed. */- --radius: 17.6px;+ --radius: 1.1rem;/* White sidebar against the warm off-white page; the tone difference isthe separator now that the right-edge divider is gone. */--sidebar: #ffffff;@@ -211,7 +209,7 @@--shadow-offset-x: 0px;--shadow-offset-y: 0px;--letter-spacing: 0em;- --spacing: 4px;+ --spacing: 0.25rem;/*--shadow-2xs: 0px 0px 0px 0px hsl(0 0% 0% / 0);*//*--shadow-xs: 0px 0px 0px 0px hsl(0 0% 0% / 0);*//*--shadow-sm:*/@@ -290,7 +288,7 @@button — i.e. (32px − icon-size) / 2. Use as a negative margin on achat-message action bar so the leftmost icon's visual edge alignswith the message text edge. Auto-tracks --icon-size. */- --icon-btn-inset: calc((32px - var(--icon-size)) / 2);+ --icon-btn-inset: calc((2rem - var(--icon-size)) / 2);}.dark {@@ -338,7 +336,7 @@--sidebar-ring: #ececec;--destructive-foreground: oklch(1 0 0);/* Match light's radius so every rounded-* element is the same in both themes. */- --radius: 17.6px;+ --radius: 1.1rem;--font-sans: "Inter Variable", ui-sans-serif, sans-serif, system-ui;--font-serif: Source Serif 4, serif;--font-mono: JetBrains Mono, monospace;@@ -349,7 +347,7 @@--shadow-offset-x: 0px;--shadow-offset-y: 0px;--letter-spacing: 0em;- --spacing: 4px;+ --spacing: 0.25rem;--shadow-2xs: 0px 0px 0px 0px hsl(0 0% 0% / 0);--shadow-xs: 0px 0px 0px 0px hsl(0 0% 0% / 0);--shadow-sm: 0px 0px 0px 0px hsl(0 0% 0% / 0), 0px 1px 2px 0px hsl(0 0% 0% / 0);@@ -687,30 +685,59 @@ html[data-chat-font] .aui-root {}@theme inline {- /* Pin container widths to px so they ignore the UI font size rem base. */- /* Numeric leading is typographic: keep it on the rem base (leading-N- would otherwise pin to px through --spacing). Same values at 16px. */- --leading-3: 0.75rem;- --leading-4: 1rem;- --leading-5: 1.25rem;- --leading-6: 1.5rem;- --leading-7: 1.75rem;- --leading-8: 2rem;- --leading-9: 2.25rem;- --leading-10: 2.5rem;- --container-3xs: 256px;- --container-2xs: 288px;- --container-xs: 320px;- --container-sm: 384px;- --container-md: 448px;- --container-lg: 512px;- --container-xl: 576px;- --container-2xl: 672px;- --container-3xl: 768px;- --container-4xl: 896px;- --container-5xl: 1024px;- --container-6xl: 1152px;- --container-7xl: 1280px;+ /* UI typography scale (Settings > Appearance). Every token multiplies+ its default size by --ui-font-scale, so text follows the preference+ while rem-based layout stays put. Identity at the 16px default. */+ --text-xs: calc(0.75rem * var(--ui-font-scale, 1));+ --text-sm: calc(0.875rem * var(--ui-font-scale, 1));+ --text-base: calc(1rem * var(--ui-font-scale, 1));+ --text-lg: calc(1.125rem * var(--ui-font-scale, 1));+ --text-xl: calc(1.25rem * var(--ui-font-scale, 1));+ --text-2xl: calc(1.5rem * var(--ui-font-scale, 1));+ --text-3xl: calc(1.875rem * var(--ui-font-scale, 1));+ --text-4xl: calc(2.25rem * var(--ui-font-scale, 1));+ /* Arbitrary px sizes from the design, one token per size. */+ --text-ui-8: calc(0.5rem * var(--ui-font-scale, 1));+ --text-ui-9: calc(0.5625rem * var(--ui-font-scale, 1));+ --text-ui-10: calc(0.625rem * var(--ui-font-scale, 1));+ --text-ui-10p5: calc(0.65625rem * var(--ui-font-scale, 1));+ --text-ui-11: calc(0.6875rem * var(--ui-font-scale, 1));+ --text-ui-11p5: calc(0.71875rem * var(--ui-font-scale, 1));+ --text-ui-12: calc(0.75rem * var(--ui-font-scale, 1));+ --text-ui-12p5: calc(0.78125rem * var(--ui-font-scale, 1));+ --text-ui-13: calc(0.8125rem * var(--ui-font-scale, 1));+ --text-ui-13p5: calc(0.84375rem * var(--ui-font-scale, 1));+ --text-ui-14: calc(0.875rem * var(--ui-font-scale, 1));+ --text-ui-14p5: calc(0.90625rem * var(--ui-font-scale, 1));+ --text-ui-15: calc(0.9375rem * var(--ui-font-scale, 1));+ --text-ui-15p5: calc(0.96875rem * var(--ui-font-scale, 1));+ --text-ui-16: calc(1rem * var(--ui-font-scale, 1));+ --text-ui-17: calc(1.0625rem * var(--ui-font-scale, 1));+ --text-ui-18: calc(1.125rem * var(--ui-font-scale, 1));+ --text-ui-19: calc(1.1875rem * var(--ui-font-scale, 1));+ --text-ui-21: calc(1.3125rem * var(--ui-font-scale, 1));+ --text-ui-25: calc(1.5625rem * var(--ui-font-scale, 1));+ --text-ui-30: calc(1.875rem * var(--ui-font-scale, 1));+ --text-ui-34: calc(2.125rem * var(--ui-font-scale, 1));+ /* Exact line-heights paired with the sizes above. */+ --leading-ui-14: calc(0.875rem * var(--ui-font-scale, 1));+ --leading-ui-15: calc(0.9375rem * var(--ui-font-scale, 1));+ --leading-ui-16: calc(1rem * var(--ui-font-scale, 1));+ --leading-ui-17: calc(1.0625rem * var(--ui-font-scale, 1));+ --leading-ui-18: calc(1.125rem * var(--ui-font-scale, 1));+ --leading-ui-19: calc(1.1875rem * var(--ui-font-scale, 1));+ --leading-ui-24: calc(1.5rem * var(--ui-font-scale, 1));+ --leading-ui-31: calc(1.9375rem * var(--ui-font-scale, 1));+ /* Numeric leading is typographic: scale it too (it would+ otherwise pin through --spacing). Same values at 16px. */+ --leading-3: calc(0.75rem * var(--ui-font-scale, 1));+ --leading-4: calc(1rem * var(--ui-font-scale, 1));+ --leading-5: calc(1.25rem * var(--ui-font-scale, 1));+ --leading-6: calc(1.5rem * var(--ui-font-scale, 1));+ --leading-7: calc(1.75rem * var(--ui-font-scale, 1));+ --leading-8: calc(2rem * var(--ui-font-scale, 1));+ --leading-9: calc(2.25rem * var(--ui-font-scale, 1));+ --leading-10: calc(2.5rem * var(--ui-font-scale, 1));/* Reference the :root tokens instead of literal stacks so the runtimefont overrides (Settings > Appearance) reach every font-* utility. */--font-sans: var(--font-sans);@@ -764,7 +791,7 @@ html[data-chat-font] .aui-root {--radius-4xl: calc(var(--radius) + 16px);--font-mono: var(--font-mono);--font-serif: var(--font-serif);- --radius: 17.6px;+ --radius: 1.1rem;--tracking-tighter: 0em;--tracking-tight: 0em;--tracking-wide: calc(var(--tracking-normal) + 0.025em);@@ -1000,7 +1027,7 @@ html[data-chat-font] .aui-root {/* Secondary row action (the pinned-chat unpin button) sits just left ofthe primary "…" options button. */.sidebar-row-action.is-unpin-action {- right: 30px;+ right: 1.875rem;}/* Branch picker chevron buttons sit beside action bar icon buttons@@ -1022,7 +1049,7 @@ html[data-chat-font] .aui-root {}.sidebar-sticky-label {- @apply rounded-none bg-sidebar pt-0 pb-[8px] pl-[16px] pr-4 text-[0.875rem]! leading-[1.0625rem] font-medium normal-case focus-visible:ring-0! focus-visible:outline-none transition-shadow duration-150;+ @apply rounded-none bg-sidebar pt-0 pb-[8px] pl-[16px] pr-4 text-ui-14! leading-ui-17 font-medium normal-case focus-visible:ring-0! focus-visible:outline-none transition-shadow duration-150;/* Muted section-header gray, matching Gemini's "Notebooks"/"Recents".Lightened from #5f6368 so the label reads as a header, clearlylighter than the near-black nav items. */@@ -1092,7 +1119,7 @@ html[data-chat-font] .aui-root {the track just suggests the slider's extent. Same alpha boththemes; the black/white base flips automatically per theme. */.panel-slider [data-slot="slider-track"] {- height: 4px !important;+ height: 0.25rem !important;background-color: rgb(0 0 0 / 0.025) !important;}.dark .panel-slider [data-slot="slider-track"] {@@ -1131,8 +1158,8 @@ html[data-chat-font] .aui-root {background-color: var(--panel-slider-fg) !important;}.panel-slider [data-slot="slider-thumb"] {- width: 14px !important;- height: 14px !important;+ width: 0.875rem !important;+ height: 0.875rem !important;background-color: var(--panel-slider-fg) !important;border-color: var(--panel-slider-fg) !important;transform: none !important;@@ -1161,7 +1188,7 @@ html[data-chat-font] .aui-root {fade-in, just enough to read as interactive without competingwith the slider row's quiet aesthetic. */.panel-number-input {- @apply h-7 min-w-8 shrink-0 rounded-full border-0 bg-transparent px-2 text-right text-[0.8125rem]! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-black/[0.04] focus:bg-black/[0.05] focus-visible:ring-0! focus-visible:outline-none md:text-[0.8125rem]!;+ @apply h-7 min-w-8 shrink-0 rounded-full border-0 bg-transparent px-2 text-right text-ui-13! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-black/[0.04] focus:bg-black/[0.05] focus-visible:ring-0! focus-visible:outline-none md:text-ui-13!;}.dark .panel-number-input {@apply hover:bg-white/[0.04] focus:bg-white/[0.06];@@ -1184,7 +1211,7 @@ html[data-chat-font] .aui-root {}.tooltip-compact {- @apply rounded-[11px] border-transparent bg-black px-2.5 py-1.5 text-[0.6875rem] font-medium leading-snug text-white shadow-md;+ @apply rounded-[11px] border-transparent bg-black px-2.5 py-1.5 text-ui-11 font-medium leading-snug text-white shadow-md;}/* Dialog popups: borderless; chatbox shadow in light, flat card@@ -1217,12 +1244,12 @@ html[data-chat-font] .aui-root {.app-user-menu [data-slot="dropdown-menu-item"],.app-user-menu [data-slot="dropdown-menu-sub-trigger"] {height: 36px;- padding: 0 12px !important;+ padding: 0 0.75rem !important;gap: 9.5px !important;border-radius: 12px;font-weight: 500;- font-size: 0.9375rem;- line-height: 1.25rem;+ font-size: calc(0.9375rem * var(--ui-font-scale, 1));+ line-height: calc(1.25rem * var(--ui-font-scale, 1));letter-spacing: 0;color: var(--nav-fg);}@@ -1340,7 +1367,7 @@ html[data-chat-font] .aui-root {.chat-search-surface {border: none;/* Pin to the dark --radius so rounded-3xl corners stay consistent. */- --radius: 10px;+ --radius: 0.625rem;/* Prominent, wide ChatGPT-style elevation. */box-shadow: 0 24px 70px -16px rgba(0, 0, 0, 0.28),0 8px 24px -12px rgba(0, 0, 0, 0.18);@@ -1382,7 +1409,7 @@ html[data-chat-font] .aui-root {/* Model selector: drop the inset edge ring, keep the soft drop shadow.Pin --radius to the light value so the corners match in both themes. */.unsloth-model-selector-menu.menu-soft-surface {- --radius: 20px;+ --radius: 1.25rem;box-shadow: 0 var(--menu-soft-offset-y) var(--menu-soft-blur)var(--menu-soft-spread) var(--menu-soft-shadow);}@@ -1466,7 +1493,7 @@ html[data-chat-font] .aui-root {}.composer-pill-btn {- @apply flex cursor-pointer items-center gap-1.5 rounded-full py-1.5 pl-2 pr-2.5 text-[0.875rem] font-medium text-muted-foreground/70 transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.1] disabled:cursor-not-allowed disabled:opacity-40;+ @apply flex cursor-pointer items-center gap-1.5 rounded-full py-1.5 pl-2 pr-2.5 text-ui-14 font-medium text-muted-foreground/70 transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.1] disabled:cursor-not-allowed disabled:opacity-40;}/* Caret pills (RAG, MCP): the chevron carries its own whitespace, so the@@ -1554,7 +1581,7 @@ html[data-chat-font] .aui-root {.composer-pill-btn:not([data-keep-label])[data-pill-label]:hover::after {content: attr(data-pill-label);/* Always one nowrap line, so always a full pill. */- @apply pointer-events-none absolute bottom-[calc(100%+6px)] left-1/2 z-50 -translate-x-1/2 rounded-full bg-black px-2.5 py-1.5 text-[0.6875rem] font-medium leading-snug whitespace-nowrap text-white shadow-md;+ @apply pointer-events-none absolute bottom-[calc(100%+6px)] left-1/2 z-50 -translate-x-1/2 rounded-full bg-black px-2.5 py-1.5 text-ui-11 font-medium leading-snug whitespace-nowrap text-white shadow-md;}/* Compact caret pills (RAG, MCP) open their menu on click instead of@@ -1599,7 +1626,7 @@ html[data-chat-font] .aui-root {}.composer-input {- @apply mt-2 mb-1 mx-3 min-h-12 w-[calc(100%-24px)] resize-none overflow-y-auto bg-transparent pl-2 pr-4 pt-2 pb-3 text-sm font-[450] outline-none placeholder:text-muted-foreground focus-visible:ring-0;+ @apply mt-2 mb-1 mx-3 min-h-12 w-[calc(100%-1.5rem)] resize-none overflow-y-auto bg-transparent pl-2 pr-4 pt-2 pb-3 text-sm font-[450] outline-none placeholder:text-muted-foreground focus-visible:ring-0;}.composer-action-wrapper {@@ -1607,7 +1634,7 @@ html[data-chat-font] .aui-root {}.composer-footer-note {- @apply mt-1.5 text-center text-[0.6875rem] tracking-[0em] text-muted-foreground;+ @apply mt-1.5 text-center text-ui-11 tracking-[0em] text-muted-foreground;font-family: var(--font-sans);}@@ -1651,7 +1678,7 @@ html[data-chat-font] .aui-root {@apply flex min-w-0 flex-wrap items-center gap-0.5;order: 1;/* Pull the plus button closer to the composer edge. */- margin-left: -4px;+ margin-left: -0.25rem;}.unsloth-composer-line .unsloth-composer-input {@@ -1662,7 +1689,7 @@ html[data-chat-font] .aui-root {order: 3;margin-left: auto;/* Inset the send circle from the edge, Gemini-style. */- margin-right: -2px;+ margin-right: -0.125rem;}.unsloth-composer-line[data-expanded="true"] .unsloth-composer-input {@@ -1670,15 +1697,15 @@ html[data-chat-font] .aui-root {flex-basis: 100%;width: 100%;/* Sits close to the left edge, near the plus. */- padding-left: 6px;- padding-top: 8px;- padding-bottom: 8px;+ padding-left: 0.375rem;+ padding-top: 0.5rem;+ padding-bottom: 0.5rem;}/* Two-row gap between text and controls. On the line, not the input, sothe placeholder max-height clamp never crops it like padding would. */.unsloth-composer-line[data-expanded="true"] {- row-gap: 12px;+ row-gap: 0.75rem;}.unsloth-composer-line[data-expanded="true"] .unsloth-composer-left {@@ -1694,7 +1721,7 @@ html[data-chat-font] .aui-root {}.unsloth-composer-input {- @apply min-h-[40px] min-w-0 flex-1 resize-none overflow-y-auto bg-transparent pl-0.5 pr-2 py-2 text-[0.9375rem] font-[450] leading-6 outline-none placeholder:text-muted-foreground focus-visible:ring-0;+ @apply min-h-[40px] min-w-0 flex-1 resize-none overflow-y-auto bg-transparent pl-0.5 pr-2 py-2 text-ui-15 font-[450] leading-6 outline-none placeholder:text-muted-foreground focus-visible:ring-0;}.unsloth-composer-plus {@@ -1773,10 +1800,10 @@ html[data-chat-font] .aui-root {/* Right-side Thinking pill (toggle or dropdown). pl-2 matches the leftpills so the hover X is not pushed in too far. */.unsloth-thinking-pill {- @apply inline-flex shrink-0 cursor-pointer items-center gap-1 rounded-full py-1.5 pl-2 pr-2.5 text-[0.875rem] font-medium text-muted-foreground transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.1] disabled:cursor-not-allowed disabled:opacity-40;+ @apply inline-flex shrink-0 cursor-pointer items-center gap-1 rounded-full py-1.5 pl-2 pr-2.5 text-ui-14 font-medium text-muted-foreground transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.1] disabled:cursor-not-allowed disabled:opacity-40;/* Reserve a text line so the icon-only (inactive) pill matches thetext pills' height instead of collapsing to the icon. */- min-height: calc(1lh + 12px);+ min-height: calc(1lh + 0.75rem);}.unsloth-thinking-pill[data-active="true"] {@@ -1791,10 +1818,10 @@ html[data-chat-font] .aui-root {}/* Keep Thinking on the control row in narrow split layouts. */- @container (max-width: 576px) {+ @container (max-width: 36rem) {.unsloth-thinking-pill {@apply size-8 justify-center gap-0 px-0;- min-height: 32px;+ min-height: 2rem;}.unsloth-thinking-label,@@ -1808,14 +1835,14 @@ html[data-chat-font] .aui-root {.unsloth-thinking-pill[data-pill-label]:not([data-state="open"]):hover::after {content: attr(data-pill-label);- @apply pointer-events-none absolute bottom-[calc(100%+6px)] left-1/2 z-50 -translate-x-1/2 rounded-full bg-black px-2.5 py-1.5 text-[0.6875rem] font-medium leading-snug whitespace-nowrap text-white shadow-md;+ @apply pointer-events-none absolute bottom-[calc(100%+6px)] left-1/2 z-50 -translate-x-1/2 rounded-full bg-black px-2.5 py-1.5 text-ui-11 font-medium leading-snug whitespace-nowrap text-white shadow-md;}}/* Smaller tick for selected Thinking options. */.unsloth-tick {- width: 12.8px !important;- height: 12.8px !important;+ width: 0.8rem !important;+ height: 0.8rem !important;}/* Soft elevation; [data-slot] outranks the component ring-1, dropping the border. */@@ -1824,8 +1851,8 @@ html[data-chat-font] .aui-root {item radius (12px) + side gutter (9px), so the curves run parallel.!important beats the global 14px dropdown radius. */border-radius: 21px !important;- padding-top: 8px;- padding-bottom: 8px;+ padding-top: 0.5rem;+ padding-bottom: 0.5rem;/* Side gutter ~matches the 0.5rem top/bottom padding so the hover boxsits evenly inset on all four sides. */padding-left: 9px;@@ -1853,7 +1880,7 @@ html[data-chat-font] .aui-root {[data-slot="dropdown-menu-item"],[data-slot="dropdown-menu-sub-trigger"]) {- @apply gap-3 pl-3 pr-3 py-2 text-[0.875rem];+ @apply gap-3 pl-3 pr-3 py-2 text-ui-14;cursor: pointer;/* Pin hover-box radius so dark matches light (container radius minus theside gutter keeps the curves concentric). */@@ -1861,7 +1888,7 @@ html[data-chat-font] .aui-root {}.unsloth-plus-menu [data-slot="dropdown-menu-label"] {- @apply pl-3 pr-3 py-1.5 text-[0.75rem];+ @apply pl-3 pr-3 py-1.5 text-ui-12;}/* Active (green) items keep their primary text and icon color on hover. */@@ -1905,8 +1932,8 @@ html[data-chat-font] .aui-root {[data-slot="dropdown-menu-sub-trigger"])svg {- width: 18.4px;- height: 18.4px;+ width: 1.15rem;+ height: 1.15rem;}/* Destructive items keep red text and a red-tinted hover, not the grey one. */@@ -2100,15 +2127,15 @@ html[data-chat-font] .aui-root {[data-streamdown="unordered-list"] {list-style-type: disc;list-style-position: outside;- padding-left: 20px;- margin-block: 8px;+ padding-left: 1.25rem;+ margin-block: 0.5rem;}[data-streamdown="ordered-list"] {list-style-type: decimal;list-style-position: outside;- padding-left: 20px;- margin-block: 8px;+ padding-left: 1.25rem;+ margin-block: 0.5rem;}[data-streamdown="list-item"] {@@ -2125,13 +2152,13 @@ html[data-chat-font] .aui-root {.aui-thread-root [data-streamdown="code-block-body"] {/* Keep overlay scrollbars below one-line code. */- padding-bottom: 10px !important;+ padding-bottom: 0.625rem !important;}[data-streamdown="code-block"] {- gap: 4px;- padding: 12px 16px;- border-radius: 24px;+ gap: 0.25rem;+ padding: 0.75rem 1rem;+ border-radius: 1.5rem;/* Wide lines must scroll inside the thread column, not widen past the composer (flex min-width:auto). */max-width: 100%;min-width: 0;@@ -2151,21 +2178,21 @@ html[data-chat-font] .aui-root {/* Chat thread: code slightly smaller by default; step up when the thread column is wide. */.aui-thread-root [data-streamdown="code-block"] {- font-size: 0.8125rem;+ font-size: calc(0.8125rem * var(--ui-font-scale, 1));line-height: 1.55;}.aui-thread-root [data-streamdown="code-block-header"] {- font-size: 0.6875rem;+ font-size: calc(0.6875rem * var(--ui-font-scale, 1));}- @container (min-width: 576px) {+ @container (min-width: 36rem) {.aui-thread-root [data-streamdown="code-block"] {- font-size: 0.875rem;+ font-size: calc(0.875rem * var(--ui-font-scale, 1));}.aui-thread-root [data-streamdown="code-block-header"] {- font-size: 0.75rem;+ font-size: calc(0.75rem * var(--ui-font-scale, 1));}}@@ -2179,7 +2206,7 @@ html[data-chat-font] .aui-root {assistant message so the gap above the action bar is the sameregardless of whether the response ends with a paragraph(margin-bottom: 0 by Tailwind preflight) or a streamdown block- like a code fence (margin-bottom: 16px from `my-4`). Browser+ like a code fence (margin-bottom: 1rem from `my-4`). Browserblock layout doesn't collapse trailing margin into a siblingcontainer, so we zero it explicitly along the deepest`:last-child` path. Streamdown wraps content in several@@ -2228,9 +2255,9 @@ html[data-chat-font] .aui-root {/* Align fenced code blocks with the main chat column even when nested in lists. */.aui-thread-root [data-streamdown="list-item"] > [data-streamdown="code-block"],.aui-thread-root [data-streamdown="list-item"] [data-streamdown="code-block"] {- margin-left: -20px;- width: calc(100% + 20px);- max-width: calc(100% + 20px);+ margin-left: -1.25rem;+ width: calc(100% + 1.25rem);+ max-width: calc(100% + 1.25rem);}.dark .aui-thread-root [data-streamdown="code-block"] {@@ -2595,9 +2622,9 @@ html[data-chat-font] .aui-root {display: grid;grid-template-columns: repeat(8, minmax(0, 1fr));gap: 14px;- width: min(66%, 288px);- padding: 24px;- border-radius: 24px;+ width: min(66%, 18rem);+ padding: 1.5rem;+ border-radius: 1.5rem;}.generated-image-loading-dot {@@ -2698,31 +2725,36 @@ html[data-chat-font] .aui-root {opacity: 1;}-/* Library px font sizes re-based to rem so the UI font size setting scales- them too. Unlayered to beat the layered originals; same values at 16px. */+/* Third-party UI text follows the typography scale. Values equal the+ library defaults at the 16px setting. KaTeX's internal font-size:1px+ sizing trick is layout, not text, and stays untouched. */.before\:text-\[13px\]::before {- /* streamdown citation chip utility. */- font-size: 0.8125rem;+ /* streamdown citation chip utility (class scanned from node_modules). */+ font-size: calc(0.8125rem * var(--ui-font-scale, 1));+}+.recharts-text {+ /* Chart axis/label text; beats the fontSize presentation attribute. */+ font-size: calc(0.625rem * var(--ui-font-scale, 1));}.react-flow__edge-text.react-flow__edge-text {/* Doubled class: react-flow's stylesheet loads after this file, so winon specificity, not order. */- font-size: 0.625rem;+ font-size: calc(0.625rem * var(--ui-font-scale, 1));}.react-flow__attribution.react-flow__attribution {- font-size: 0.625rem;-}-/* Radix hides the select viewport scrollbar; restore the app's thin one.- Doubled attribute beats the runtime-injected [data-radix-select-viewport]- rules on specificity. */-[data-slot="select-content"] [data-radix-select-viewport]::-webkit-scrollbar {- display: block !important;- width: 8px;+ font-size: calc(0.625rem * var(--ui-font-scale, 1));}-.react-flow__node-input.react-flow__node-input,.react-flow__node-default.react-flow__node-default,.react-flow__node-output.react-flow__node-output,.react-flow__node-group.react-flow__node-group {- font-size: 0.75rem;+ font-size: calc(0.75rem * var(--ui-font-scale, 1));+}++/* Radix hides the select viewport scrollbar (the viewport is the scroller+ so menu corners stay rounded); restore the app's thin one. The inline+ scrollbar-width on the viewport handles Firefox. */+[data-slot="select-content"] [data-radix-select-viewport]::-webkit-scrollbar {+ display: block !important;+ width: 8px;}diff --git a/tests/studio/playwright_ui_font_scale.py b/tests/studio/playwright_ui_font_scale.pynew file mode 100644index 00000000000..7dbe36127c5--- /dev/null+++ b/tests/studio/playwright_ui_font_scale.py@@ -0,0 +1,215 @@+# SPDX-License-Identifier: AGPL-3.0-only+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++"""UI font size scaling regression (Settings > Appearance).++Drives the real appearance controls and asserts the typography-scale+contract: text and line heights scale by size/16, the root font size and+layout geometry never move, an explicit Code font size stays fixed, and an+overflowing Radix select scrolls its viewport by keyboard and wheel.++Runs against an already-booted, already-bootstrapped Unsloth:+ BASE_URL=http://127.0.0.1:18894 STUDIO_PW=... python tests/studio/playwright_ui_font_scale.py+"""++import os+import sys+from pathlib import Path++from playwright.sync_api import sync_playwright++sys.path.insert(0, str(Path(__file__).resolve().parent))+from _playwright_robust import wait_for_health # noqa: E402++BASE = os.environ["BASE_URL"]+PW = os.environ["STUDIO_PW"]+ART = Path(os.environ.get("PW_ART_DIR", "logs/playwright_fontscale"))+ART.mkdir(parents = True, exist_ok = True)++SIZES = (12, 20)+DEFAULT = 16+++def step(s):+ print(f"[font-scale] STEP {s}", flush = True)+++def fail(m):+ raise AssertionError(f"[font-scale] FAIL: {m}")+++def near(a, b, tol = 0.35):+ return a is not None and b is not None and abs(a - b) <= tol+++MEASURE_JS = """+() => {+ const fs = (el) => (el ? parseFloat(getComputedStyle(el).fontSize) : null);+ const lh = (el) => (el ? parseFloat(getComputedStyle(el).lineHeight) : null);+ const byText = (txt) =>+ [...document.querySelectorAll("span, h2, label, p")].find(+ (e) => e.textContent.trim() === txt,+ );+ const nav = byText("New chat");+ const sidebar =+ document.querySelector("[data-slot='sidebar-container']") ??+ document.querySelector("aside") ??+ document.querySelector("nav");+ return {+ root: parseFloat(getComputedStyle(document.documentElement).fontSize),+ uiAttr: document.documentElement.getAttribute("data-ui-font-size"),+ navFont: fs(nav),+ navLine: lh(nav),+ sidebarW: sidebar ? sidebar.getBoundingClientRect().width : null,+ };+}+"""+++def measure(page):+ return page.evaluate(MEASURE_JS)+++def set_input(page, label, value):+ field = page.locator(f"input[aria-label='{label}']")+ field.scroll_into_view_if_needed()+ field.fill(str(value))+ page.keyboard.press("Enter")+ page.wait_for_timeout(600)+++def open_appearance(page):+ page.keyboard.press("Control+,")+ page.wait_for_timeout(700)+ if page.get_by_role("dialog").count() == 0:+ page.keyboard.press("Meta+,")+ page.wait_for_timeout(700)+ if page.get_by_role("dialog").count() == 0:+ fail("settings dialog did not open")+ page.get_by_role("dialog").get_by_role("button").filter(+ has_text = "Appearance"+ ).first.click()+ page.wait_for_timeout(600)+++def main():+ wait_for_health(BASE)+ with sync_playwright() as p:+ browser = p.chromium.launch()+ page = browser.new_page(viewport = {"width": 1440, "height": 900})+ page.goto(BASE, wait_until = "networkidle")+ pw_field = page.locator("input[type='password']")+ if pw_field.count():+ pw_field.first.fill(PW)+ page.keyboard.press("Enter")+ page.wait_for_load_state("networkidle")+ page.wait_for_timeout(1500)++ step("baseline at the default size")+ open_appearance(page)+ set_input(page, "UI font size", DEFAULT)+ base = measure(page)+ if base["root"] != 16:+ fail(f"root font size not 16 at default: {base['root']}")+ if base["navFont"] is None or base["sidebarW"] is None:+ fail(f"baseline samples missing: {base}")++ for size in SIZES:+ step(f"UI font size {size}")+ set_input(page, "UI font size", size)+ m = measure(page)+ ratio = size / DEFAULT+ if m["root"] != 16:+ fail(f"root font size moved at {size}: {m['root']}")+ if m["uiAttr"] != str(size):+ fail(f"data-ui-font-size wrong at {size}: {m['uiAttr']}")+ if not near(m["navFont"], base["navFont"] * ratio):+ fail(f"nav font at {size}: {base['navFont']} -> {m['navFont']}")+ if not near(m["navLine"], base["navLine"] * ratio):+ fail(f"nav line-height at {size}: {base['navLine']} -> {m['navLine']}")+ if not near(m["sidebarW"], base["sidebarW"], 0.75):+ fail(f"sidebar width moved at {size}: {base['sidebarW']} -> {m['sidebarW']}")+ page.screenshot(path = str(ART / f"scale-{size}.png"))++ step("explicit Code font size stays fixed under UI 20")+ set_input(page, "Code font size", 13)+ res = page.evaluate(+ """+ () => {+ const pre = document.createElement("pre");+ pre.textContent = "sample";+ document.body.appendChild(pre);+ const size = getComputedStyle(pre).fontSize;+ pre.remove();+ return size;+ }+ """+ )+ if res != "13px":+ fail(f"explicit code font size scaled: {res}")+ code_field = page.locator("input[aria-label='Code font size']")+ code_field.fill("")+ page.keyboard.press("Enter")+ page.wait_for_timeout(400)++ step("overflowing select scrolls its Radix viewport")+ page.get_by_role("dialog").get_by_role("button").filter(+ has_text = "Voice"+ ).first.click()+ page.wait_for_timeout(600)+ page.set_viewport_size({"width": 1440, "height": 480})+ page.locator("[aria-label='Dictation language']").click()+ page.wait_for_timeout(700)+ state = page.evaluate(+ """+ () => {+ const vp = document.querySelector("[data-radix-select-viewport]");+ return vp+ ? { scrollable: vp.scrollHeight > vp.clientHeight, top: vp.scrollTop }+ : null;+ }+ """+ )+ if not state or not state["scrollable"]:+ fail(f"select viewport not scrollable: {state}")+ for _ in range(6):+ page.keyboard.press("ArrowDown")+ page.wait_for_timeout(100)+ kb_top = page.evaluate(+ "() => document.querySelector('[data-radix-select-viewport]').scrollTop"+ )+ if not kb_top > 0:+ fail(f"keyboard did not scroll the select viewport: {kb_top}")+ vp_box = page.locator("[data-radix-select-viewport]").bounding_box()+ page.mouse.move(vp_box["x"] + vp_box["width"] / 2, vp_box["y"] + 40)+ page.mouse.wheel(0, -400)+ page.wait_for_timeout(300)+ wheel_top = page.evaluate(+ "() => document.querySelector('[data-radix-select-viewport]').scrollTop"+ )+ if not wheel_top < kb_top:+ fail(f"wheel did not scroll the select viewport: {kb_top} -> {wheel_top}")+ page.keyboard.press("Escape")+ page.set_viewport_size({"width": 1440, "height": 900})+ page.wait_for_timeout(400)++ step("default restores exactly")+ page.get_by_role("dialog").get_by_role("button").filter(+ has_text = "Appearance"+ ).first.click()+ page.wait_for_timeout(500)+ set_input(page, "UI font size", DEFAULT)+ final = measure(page)+ for key in ("root", "navFont", "navLine", "sidebarW"):+ if not near(final[key], base[key], 0.35):+ fail(f"default drifted for {key}: {base[key]} -> {final[key]}")+ if final["uiAttr"] is not None:+ fail(f"data-ui-font-size present at default: {final['uiAttr']}")++ page.screenshot(path = str(ART / "restored-default.png"))+ browser.close()+ print("[font-scale] PASS", flush = True)+++if __name__ == "__main__":+ main()diff --git a/tests/studio/test_chat_thinking_compact_layout.py b/tests/studio/test_chat_thinking_compact_layout.pyindex a0dc5958f5f..23b67977827 100644--- a/tests/studio/test_chat_thinking_compact_layout.py+++ b/tests/studio/test_chat_thinking_compact_layout.py@@ -22,7 +22,7 @@ def test_narrow_composer_collapses_thinking_to_the_bulb():# Query the composer width instead of the full viewport.assert css.count("container-type: inline-size;") >= 2- compact_start = css.index("@container (max-width: 576px)")+ compact_start = css.index("@container (max-width: 36rem)")compact_end = css.index("/* Smaller tick", compact_start)compact_rule = css[compact_start:compact_end]diff --git a/tests/studio/test_studio_text_descender_clipping.py b/tests/studio/test_studio_text_descender_clipping.pyindex a43d807691a..98fb3b4b133 100644--- a/tests/studio/test_studio_text_descender_clipping.py+++ b/tests/studio/test_studio_text_descender_clipping.py@@ -30,7 +30,7 @@ def _read(path: Path) -> str:def test_model_selector_trigger_label_uses_leading_tight():src = _read(MODEL_SELECTOR)pattern = re.compile(- r'<span\s+className="[^"]*\bmin-w-0\b[^"]*\bflex-1\b[^"]*\btruncate\b[^"]*\bfont-heading\b[^"]*\btext-\[1rem\][^"]*"',+ r'<span\s+className="[^"]*\bmin-w-0\b[^"]*\bflex-1\b[^"]*\btruncate\b[^"]*\bfont-heading\b[^"]*\btext-ui-16[^"]*"',)matches = pattern.findall(src)assert matches, "could not find ModelSelectorTrigger model-name span"diff --git a/tests/studio/test_ui_font_scale_contract.py b/tests/studio/test_ui_font_scale_contract.pynew file mode 100644index 00000000000..62bf80e82b1--- /dev/null+++ b/tests/studio/test_ui_font_scale_contract.py@@ -0,0 +1,147 @@+# SPDX-License-Identifier: AGPL-3.0-only+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++"""UI font size scaling contracts (Settings > Appearance).++The preference must scale typography through the --ui-font-scale tokens,+never by mutating the root font size, so rem-based layout stays put. These+contracts also act as the guard against reintroducing raw pixel typography+that would silently ignore the preference.+"""++import re+from pathlib import Path++REPO = Path(__file__).resolve().parents[2]+SRC = REPO / "studio/frontend/src"+INDEX_CSS = (SRC / "index.css").read_text(encoding = "utf-8")+STORE = (SRC / "features/settings/stores/appearance-custom-store.ts").read_text(+ encoding = "utf-8"+)+SELECT = (SRC / "components/ui/select.tsx").read_text(encoding = "utf-8")++# Raw numeric fontSize props are only allowed where a scaled stylesheet rule+# (.recharts-text) overrides the presentation attribute at render time.+FONTSIZE_PROP_ALLOWED_DIRS = (+ "features/studio/sections/charts",+ "features/studio/sections/training-section.tsx",+)++# Non-visible typography that intentionally stays fixed.+FONTSIZE_STYLE_ALLOWLIST = {+ # Offscreen textarea; 12pt+ suppresses the iOS focus zoom. Never rendered.+ "lib/copy-to-clipboard.ts",+}+++def _frontend_sources():+ for path in sorted(SRC.rglob("*")):+ if path.suffix in {".ts", ".tsx", ".css"}:+ yield path+++def test_preference_writes_a_scale_not_the_root_font_size():+ assert 'setVar("--ui-font-scale"' in STORE+ assert 'el.setAttribute("data-ui-font-size"' in STORE+ # Older builds set an inline root font-size; the applier must clear it.+ assert 'style.removeProperty("font-size")' in STORE+ assert "style.fontSize" not in STORE+++def test_named_text_tokens_scale():+ for token, rem in (+ ("--text-xs", "0.75rem"),+ ("--text-sm", "0.875rem"),+ ("--text-base", "1rem"),+ ("--text-lg", "1.125rem"),+ ):+ assert f"{token}: calc({rem} * var(--ui-font-scale, 1));" in INDEX_CSS+++def test_numeric_leading_scales_with_the_preference():+ for n, rem in ((3, "0.75rem"), (5, "1.25rem"), (6, "1.5rem")):+ assert f"--leading-{n}: calc({rem} * var(--ui-font-scale, 1));" in INDEX_CSS+++def test_ui_token_families_exist():+ assert "--text-ui-11: calc(0.6875rem * var(--ui-font-scale, 1));" in INDEX_CSS+ assert "--text-ui-10p5: calc(0.65625rem * var(--ui-font-scale, 1));" in INDEX_CSS+ assert "--leading-ui-17: calc(1.0625rem * var(--ui-font-scale, 1));" in INDEX_CSS+++def test_explicit_code_font_size_is_never_multiplied():+ match = re.search(+ r"html\[data-code-font-size\][^{]*\{([^}]*)\}", INDEX_CSS+ )+ assert match is not None+ body = match.group(1)+ assert "var(--custom-code-font-size)" in body+ assert "--ui-font-scale" not in body+++def test_radix_select_viewport_owns_the_scroll_state():+ viewport = SELECT[SELECT.index("SelectPrimitive.Viewport") :]+ assert "overflow-y-auto" in viewport.split("</SelectPrimitive.Viewport>")[0]+ # The rounded surface itself must not scroll (WebKit squares its corners).+ content_cls = re.search(r"SelectPrimitive\.Content[\s\S]*?className=\{cn\(\s*\"([^\"]+)\"", SELECT)+ assert content_cls is not None+ assert "overflow-hidden" in content_cls.group(1)+ assert "overflow-y-auto" not in content_cls.group(1)+++def test_no_raw_pixel_text_utilities():+ offenders = []+ for path in _frontend_sources():+ text = path.read_text(encoding = "utf-8")+ for m in re.finditer(r"(?<![\w-])(?:text|leading)-\[[0-9.]+px\]", text):+ offenders.append(f"{path.relative_to(SRC)}: {m.group(0)}")+ assert offenders == [], (+ "Raw px text utilities ignore the UI font size preference; use the "+ f"text-ui-* / leading-ui-* tokens in index.css instead: {offenders[:10]}"+ )+++def test_css_font_sizes_reference_the_scale():+ offenders = []+ for path in _frontend_sources():+ if path.suffix != ".css":+ continue+ text = path.read_text(encoding = "utf-8")+ for m in re.finditer(r"(font-size|line-height):[^;{}]*;", text):+ decl = m.group(0)+ if re.search(r"[0-9.]+(px|rem)", decl) is None:+ continue # unitless ratios and vars scale naturally+ if "--ui-font-scale" in decl:+ continue+ if "1px" in decl:+ continue # library layout tricks (KaTeX-style), not text+ offenders.append(f"{path.relative_to(SRC)}: {decl.strip()[:80]}")+ assert offenders == [], (+ "CSS typography must multiply by var(--ui-font-scale, 1) or be "+ f"allowlisted here with a reason: {offenders[:10]}"+ )+++def test_inline_font_size_styles_reference_the_scale():+ offenders = []+ for path in _frontend_sources():+ rel = str(path.relative_to(SRC))+ if rel in FONTSIZE_STYLE_ALLOWLIST:+ continue+ text = path.read_text(encoding = "utf-8")+ for m in re.finditer(r"fontSize:\s*([\"'][^\"']+[\"']|[0-9.]+)", text):+ value = m.group(1)+ if "--ui-font-scale" in value:+ continue+ if value.replace(".", "").isdigit() and any(+ rel.startswith(d) for d in FONTSIZE_PROP_ALLOWED_DIRS+ ):+ continue # covered by the .recharts-text override+ offenders.append(f"{rel}: fontSize {value}")+ for m in re.finditer(r"fontSize=\{?([0-9.]+)\}?", text):+ if not any(rel.startswith(d) for d in FONTSIZE_PROP_ALLOWED_DIRS):+ offenders.append(f"{rel}: fontSize={m.group(1)}")+ assert offenders == [], (+ "Inline font sizes must scale with var(--ui-font-scale, 1) or be "+ f"documented in the allowlist: {offenders[:10]}"+ )