Skip to content

Studio login: say Unsloth and size the title with the UI font scale - #15759

Merged
danielhanchen merged 2 commits into
mainfrom
studio-login-follows-branding-and-font-scale
Oct 28, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
studio-login-follows-branding-and-font-scale

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) fails on main with two product slips on the new login and change-password layout from #15726 / #15678:

tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding
    studio/frontend/src/features/auth/components/auth-shell.tsx
tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities
    features/auth/components/auth-form.tsx: text-[26px]
  • Branding: the auth footer reads "Unsloth Studio". The app displays itself as "Unsloth" everywhere in the frontend (Call the app Unsloth or Unsloth Studio, never a bare Studio #14473, guarded by the branding contract), and this screen is the first one the desktop app shows.
  • Font scale: the auth title uses a raw text-[26px], so it ignores the UI font-size preference while everything around it scales.

Change

  • auth-shell.tsx: footer label "Unsloth Studio" becomes "Unsloth".
  • index.css: adds --text-ui-28: calc(1.75rem * var(--ui-font-scale, 1)) between --text-ui-25 and --text-ui-30, in the same form as the other text-ui-* tokens.
  • auth-form.tsx: the title uses text-ui-28. Every text-ui-N token renders at 0.9375 x N under the default 15px UI font size, so text-ui-26 would have shrunk the title to 24.4px; text-ui-28 lands on 26.25px, the same look as before, and now follows the font-size preference.

Testing

  • tests/studio/test_tauri_branding_contract.py + tests/studio/test_ui_font_scale_contract.py: 2 failed on main, 22 passed with this change.
  • Before / after on the signed-out login page, built from the merge base and this head. Measured title size: 26px -> 26.25px at the default font size, and 26px -> 35px with the UI font scale at 1.25 (before ignores it).

Screenshots

Default font size: the footer now reads "Unsloth", the title is unchanged.

Login page before and after at the default font size

UI font scale 1.25: the title now scales with the rest of the card.

Login page before and after at UI font scale 1.25

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T12:34:36.210014Z 13f5975 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 7e6850b730

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…size

Every text-ui-N token renders at 0.9375 x N at the default font size, so text-ui-26
shrank the title to 24.4px. text-ui-28 lands on 26.25px by default and still follows
the font size preference.
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 28, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 28, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 13f5975ca5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit d4d0aef into main Oct 28, 2026
0 of 42 checks passed
@danielhanchen
danielhanchen deleted the studio-login-follows-branding-and-font-scale branch October 28, 2026 12:41
shimmyshimmer added a commit that referenced this pull request Oct 29, 2026
## What changed

Brings back the login and setup page design from #15731: a compact,
centered accent Login button and no footer under the card.

#15731 merged at 10:00 UTC; #15726 merged 48 minutes later with its own
login rewrite (full-width button, a new `AuthShell` card and a sloth +
"Unsloth" footer) and replaced it. This restores #15731's
`auth-form.tsx`, `login-page.tsx` and `change-password-page.tsx`, and
removes `auth-shell.tsx`, which nothing else uses.

Kept from later PRs:
- The Halloween sloth on the login card (#15678).
- The title still follows the UI font size (#15759), at #15731's 24px
base.

Login page, left is main, right is this branch.

![Login page, left is main, right is this
branch.](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15903/login_before_after-c859daf01b40.png)

## How it was verified

- `npm run typecheck`, `npm run build`, `npm test` (14371 pass, 0 fail).
- Local Studio: the login page against the `main` bundle, and against
`main` as of #15731.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant