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: calmer login and setup pages with an accent sign-in button (#15731)
Michael Han8cc613ac0eca
diff --git a/studio/frontend/src/components/ui/light-rays.tsx b/studio/frontend/src/components/ui/light-rays.tsxdeleted file mode 100644index bc6c873a4d6..00000000000--- a/studio/frontend/src/components/ui/light-rays.tsx+++ /dev/null@@ -1,146 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-only-// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0--import { motion } from "motion/react";-import { type CSSProperties, useState } from "react";--import { cn } from "@/lib/utils";--interface LightRaysProps extends React.HTMLAttributes<HTMLDivElement> {- ref?: React.Ref<HTMLDivElement>;- count?: number;- color?: string;- blur?: number;- speed?: number;- length?: string;-}--type LightRay = {- id: string;- left: number;- rotate: number;- width: number;- swing: number;- delay: number;- duration: number;- intensity: number;-};--const createRays = (count: number, cycle: number): LightRay[] => {- if (count <= 0) return [];-- return Array.from({ length: count }, (_, index) => {- const left = 8 + Math.random() * 84;- const rotate = -28 + Math.random() * 56;- const width = 160 + Math.random() * 160;- const swing = 0.8 + Math.random() * 1.8;- const delay = Math.random() * cycle;- const duration = cycle * (0.75 + Math.random() * 0.5);- const intensity = 0.6 + Math.random() * 0.5;-- return {- id: `${index}-${Math.round(left * 10)}`,- left,- rotate,- width,- swing,- delay,- duration,- intensity,- };- });-};--const Ray = ({- left,- rotate,- width,- swing,- delay,- duration,- intensity,-}: LightRay) => {- return (- <motion.div- className="pointer-events-none absolute -top-[12%] left-[var(--ray-left)] h-[var(--light-rays-length)] w-[var(--ray-width)] origin-top -translate-x-1/2 rounded-full bg-gradient-to-b from-[color-mix(in_srgb,var(--light-rays-color)_70%,transparent)] to-transparent opacity-0 mix-blend-screen blur-[var(--light-rays-blur)]"- style={- {- "--ray-left": `${left}%`,- "--ray-width": `${width}px`,- } as CSSProperties- }- initial={{ rotate: rotate }}- animate={{- opacity: [0, intensity, 0],- rotate: [rotate - swing, rotate + swing, rotate - swing],- }}- transition={{- duration: duration,- repeat: Number.POSITIVE_INFINITY,- ease: "easeInOut",- delay: delay,- repeatDelay: duration * 0.1,- }}- />- );-};--export function LightRays({- className,- style,- count = 7,- color = "rgba(160, 210, 255, 0.2)",- blur = 36,- speed = 14,- length = "70vh",- ref,- ...props-}: LightRaysProps) {- const cycleDuration = Math.max(speed, 0.1);- const [rays] = useState(() => createRays(count, cycleDuration));-- return (- <div- ref={ref}- className={cn(- "pointer-events-none absolute inset-0 isolate overflow-hidden rounded-[inherit]",- className,- )}- style={- {- "--light-rays-color": color,- "--light-rays-blur": `${blur}px`,- "--light-rays-length": length,- ...style,- } as CSSProperties- }- {...props}- >- <div className="absolute inset-0 overflow-hidden">- <div- aria-hidden- className="absolute inset-0 opacity-60"- style={- {- background:- "radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--light-rays-color) 45%, transparent), transparent 70%)",- } as CSSProperties- }- />- <div- aria-hidden- className="absolute inset-0 opacity-60"- style={- {- background:- "radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--light-rays-color) 35%, transparent), transparent 75%)",- } as CSSProperties- }- />- {rays.map((ray) => (- <Ray key={ray.id} {...ray} />- ))}- </div>- </div>- );-}diff --git a/studio/frontend/src/features/auth/change-password-page.tsx b/studio/frontend/src/features/auth/change-password-page.tsxindex a88b943a4d2..40f2e3ee115 100644--- a/studio/frontend/src/features/auth/change-password-page.tsx+++ b/studio/frontend/src/features/auth/change-password-page.tsx@@ -1,22 +1,13 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-import { LightRays } from "@/components/ui/light-rays";import { Card } from "@/components/ui/card";import { AuthForm } from "./components/auth-form";export function ChangePasswordPage() {return (<div className="relative flex min-h-[calc(100dvh-var(--studio-titlebar-height,0px))] items-center justify-center overflow-hidden bg-background px-4 py-8 sm:px-6 sm:py-10 md:px-10">- <LightRays- count={6}- color="rgba(34, 197, 94, 0.1)"- blur={34}- speed={15}- length="70vh"- className="opacity-35 dark:opacity-15"- />- <Card className="relative z-10 w-full max-w-sm rounded-3xl px-5 py-6 shadow-[0_8px_32px_rgba(0,0,0,0.06)] ring-0 dark:shadow-none sm:px-6 sm:py-8">+ <Card className="relative z-10 w-full max-w-sm rounded-3xl px-5 py-6 shadow-[0_4px_18px_-2px_rgba(0,0,0,0.16)] ring-0 dark:shadow-[var(--composer-shadow)] sm:px-6 sm:py-8"><AuthForm mode="change-password" /></Card></div>diff --git a/studio/frontend/src/features/auth/components/auth-form.tsx b/studio/frontend/src/features/auth/components/auth-form.tsxindex ef5b2b8f708..305e7d667d2 100644--- a/studio/frontend/src/features/auth/components/auth-form.tsx+++ b/studio/frontend/src/features/auth/components/auth-form.tsx@@ -562,9 +562,10 @@ export function AuthForm({ mode }: AuthFormProps): ReactElement | null {)}<Button- variant="dark"+ variant="primary"type="submit"- className="mx-auto flex w-fit"+ size="hero"+ className="mx-auto flex h-[2.967em] w-fit bg-control-accent px-[1.56em] pt-0 pb-[0.07em] [font-family:var(--font-heading)] text-[0.9375rem] font-semibold tracking-[0.02em] text-control-accent-foreground hover:bg-control-accent/85"disabled={loading ||statusLoading ||diff --git a/studio/frontend/src/features/auth/login-page.tsx b/studio/frontend/src/features/auth/login-page.tsxindex 2f5875091c9..814186f17af 100644--- a/studio/frontend/src/features/auth/login-page.tsx+++ b/studio/frontend/src/features/auth/login-page.tsx@@ -1,22 +1,13 @@// SPDX-License-Identifier: AGPL-3.0-only// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0-import { LightRays } from "@/components/ui/light-rays";import { Card } from "@/components/ui/card";import { AuthForm } from "./components/auth-form";export function LoginPage() {return (<div className="relative flex min-h-[calc(100dvh-var(--studio-titlebar-height,0px))] items-center justify-center overflow-hidden bg-background px-4 py-8 sm:px-6 sm:py-10 md:px-10">- <LightRays- count={6}- color="rgba(34, 197, 94, 0.1)"- blur={34}- speed={15}- length="70vh"- className="opacity-35 dark:opacity-15"- />- <Card className="relative z-10 w-full max-w-sm rounded-3xl px-7 py-8 shadow-[0_8px_32px_rgba(0,0,0,0.06)] ring-0 dark:shadow-none sm:px-8 sm:py-10">+ <Card className="relative z-10 w-full max-w-sm rounded-3xl px-7 py-8 shadow-[0_4px_18px_-2px_rgba(0,0,0,0.16)] ring-0 dark:shadow-[var(--composer-shadow)] sm:px-8 sm:py-10"><AuthForm mode="login" /></Card></div>