Skip to content

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.

Studio: Trick or treat sidebar row with Halloween themes and spooky greetings (#15678)

Michael Han39b8a6ce1380
diff --git a/studio/backend/routes/settings.py b/studio/backend/routes/settings.py
index 01115ef8d53..a9b9239cf23 100644
--- a/studio/backend/routes/settings.py
+++ b/studio/backend/routes/settings.py
@@ -4828,6 +4828,17 @@ class PersonalizationAppearance(BaseModel):
"taro",
"wasabi",
"yuzu",
+ "pumpkin",
+ "bloody-valentine",
+ "the-thing",
+ "alien",
+ "gothic",
+ "hexberry",
+ "candycorn",
+ "black-cat",
+ "trick-or-treat",
+ "ghost-ship",
+ "midnight-haunt",
] = "standard"
language: Optional[str] = Field(None, max_length = 20)
customization: PersonalizationCustomization = Field(
diff --git a/studio/frontend/public/Sloth emojis/sloth halloween dead.png b/studio/frontend/public/Sloth emojis/sloth halloween dead.png
new file mode 100644
index 00000000000..6c1159d4541
Binary files /dev/null and b/studio/frontend/public/Sloth emojis/sloth halloween dead.png differ
diff --git a/studio/frontend/public/Sloth emojis/sloth halloween trick or treat.png b/studio/frontend/public/Sloth emojis/sloth halloween trick or treat.png
new file mode 100644
index 00000000000..5dcabb7bc22
Binary files /dev/null and b/studio/frontend/public/Sloth emojis/sloth halloween trick or treat.png differ
diff --git a/studio/frontend/public/Sloth emojis/sloth halloween vampire.png b/studio/frontend/public/Sloth emojis/sloth halloween vampire.png
new file mode 100644
index 00000000000..8e78ef02b24
Binary files /dev/null and b/studio/frontend/public/Sloth emojis/sloth halloween vampire.png differ
diff --git a/studio/frontend/public/Sloth emojis/sloth halloween witch.png b/studio/frontend/public/Sloth emojis/sloth halloween witch.png
new file mode 100644
index 00000000000..92079281bf4
Binary files /dev/null and b/studio/frontend/public/Sloth emojis/sloth halloween witch.png differ
diff --git a/studio/frontend/public/theme-boot.js b/studio/frontend/public/theme-boot.js
index 1e476c4a864..7a12aca066f 100644
--- a/studio/frontend/public/theme-boot.js
+++ b/studio/frontend/public/theme-boot.js
@@ -23,7 +23,8 @@ try {
"cinnamon", "cotton-candy", "dragon-fruit", "earl-grey", "espresso",
"honey", "licorice", "macaron", "matcha", "mint", "neon-cyberpunk",
"oat-milk", "peach", "pina-paraiso", "plum", "tangerine", "taro",
- "wasabi", "yuzu",
+ "wasabi", "yuzu", "pumpkin", "bloody-valentine", "alien", "the-thing",
+ "gothic", "black-cat", "trick-or-treat", "ghost-ship", "midnight-haunt", "hexberry", "candycorn",
];
if (palettes.indexOf(palette) !== -1) {
root.setAttribute("data-palette", palette);
diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsx
index 711c1918559..9338be3fcc8 100644
--- a/studio/frontend/src/app/routes/__root.tsx
+++ b/studio/frontend/src/app/routes/__root.tsx
@@ -5,6 +5,7 @@ import { ImageViewer } from "@/components/image-viewer";
import { useAppShellReadySignal } from "@/components/app-readiness";
import { AppSidebar } from "@/components/app-sidebar";
import { CommandPalette } from "@/components/command-palette";
+import { SpookyDecorations } from "@/features/halloween/spooky-decorations";
import { Navbar } from "@/components/navbar";
import { SidebarEdgeTrigger } from "@/components/sidebar-edge-trigger";
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
@@ -648,6 +649,7 @@ function RootLayout() {
<StopRunningChatsDialog />
<ImageViewer />
{!hideNavbar && <CommandPalette />}
+ {!hideNavbar && <SpookyDecorations />}
{hideNavbar ? (
<main className="flex-1 pt-[var(--studio-hidden-route-top-inset,0px)] [--studio-titlebar-height:var(--studio-hidden-route-top-inset,0px)]">
<RouteBoundary readyWhenCommitted={!routeOwnsReloadReadiness}>
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 73bc6ef17ac..2a2fcc2d59a 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -96,6 +96,12 @@ import {
} from "@/features/audio/workflows";
/* eslint-enable no-restricted-imports */
import { cn } from "@/lib/utils";
+import {
+ hideTrickOrTreatRow,
+ useHalloweenSeasonEnd,
+ useTrickOrTreatVisible,
+} from "@/features/halloween/halloween-store";
+import { TrickOrTreatDialog } from "@/features/halloween/trick-or-treat-dialog";
import { createNavigationNonce } from "@/lib/navigation-nonce";
import { copyToClipboardFrom } from "@/lib/copy-to-clipboard";
import { isTauri } from "@/lib/api-base";
@@ -108,6 +114,7 @@ import { NAV_FLYOUT_INTENT, NAV_TOOLTIP_INTENT } from "@/lib/hover-intent";
import {
Archive03Icon,
Cancel01Icon,
+ CandyIcon,
BadgeInfoIcon,
ChefHatIcon,
CloudIcon,
@@ -1323,6 +1330,9 @@ export function AppSidebar() {
const settingsShortcutLabel = useShortcutLabel("openSettings");
const keyboardShortcutsLabel = useShortcutLabel("openKeyboardShortcuts");
const isOwner = useIsAccountOwner();
+ const showTrickOrTreat = useTrickOrTreatVisible();
+ const [trickOrTreatOpen, setTrickOrTreatOpen] = useState(false);
+ useHalloweenSeasonEnd();
const { pathname, search, href } = useRouterState({
select: (s) => ({
pathname: s.location.pathname,
@@ -6226,6 +6236,35 @@ export function AppSidebar() {
</NavItem>
);
})}
+ {showTrickOrTreat && (
+ <NavItem
+ icon={CandyIcon}
+ label={t("halloween.navLabel")}
+ active={trickOrTreatOpen}
+ testId="nav-row-trick-or-treat"
+ className="group/halloween-item relative"
+ onClick={() => setTrickOrTreatOpen(true)}
+ >
+ <button
+ type="button"
+ aria-label={t("halloween.hideFromSidebar")}
+ data-testid="nav-row-trick-or-treat-hide"
+ onClick={(e) => {
+ e.stopPropagation();
+ hideTrickOrTreatRow();
+ }}
+ className="sidebar-row-action pr-2.5! group-hover/halloween-item:opacity-100 group-hover/halloween-item:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto group-data-[collapsible=icon]:hidden"
+ >
+ <span className="sidebar-row-action-glyph">
+ <HugeiconsIcon
+ icon={Cancel01Icon}
+ strokeWidth={1.75}
+ className="size-4"
+ />
+ </span>
+ </button>
+ </NavItem>
+ )}
{/* Unpinned destinations, behind one row. */}
{overflowNavIds.length > 0 && (
<SidebarMenuItem>
@@ -6390,6 +6429,10 @@ export function AppSidebar() {
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
+ <TrickOrTreatDialog
+ open={trickOrTreatOpen}
+ onOpenChange={setTrickOrTreatOpen}
+ />
{/* Pinned, the user's sections and Projects, in the order they were dragged into.
Recents stays last, under them all. */}
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index 7096970ea7b..14d3be2537a 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -385,6 +385,8 @@ import { useRagAvailabilityStore } from "@/features/rag/api/rag-availability";
import { ThreadDocumentsBar } from "@/features/rag/components/thread-documents-bar";
import { KnowledgeBaseComposerButton } from "@/features/rag/components/knowledge-base-composer-button";
import { useUserProfileStore } from "@/features/profile/stores/user-profile-store";
+import { useSpookyGreetings } from "@/features/halloween/halloween-store";
+import { buildSpookyWelcome } from "@/features/halloween/spooky-greetings";
import { usePublishedFrame } from "@/features/settings/hooks/use-published-frame";
import { useVoiceSettingsStore } from "@/features/settings/stores/voice-settings-store";
import { applyQwenThinkingParams } from "@/features/chat/utils/qwen-params";
@@ -2697,7 +2699,12 @@ const pickRandom = <T,>(arr: T[]): T =>
// same mascot. Greeting varies by local time; name-bearing lines drop the
// name when none is set. Text is a message key, translated at render so a
// language switch updates the open greeting.
-type Welcome = { key: TranslationKey; name?: string; sloth: string };
+type Welcome = {
+ key: TranslationKey;
+ name?: string;
+ sloth: string;
+ enlarge?: boolean;
+};
const DEFAULT_WELCOME: Welcome = {
key: "welcome.onYourMind",
sloth: "sloth magnify final.png",
@@ -2748,14 +2755,19 @@ const ThreadWelcome: FC<{
const displayName = useUserProfileStore((s) => s.displayName);
const nickname = useUserProfileStore((s) => s.nickname);
const showGreetingSloth = useUserProfileStore((s) => s.showGreetingSloth);
+ const spooky = useSpookyGreetings();
const [welcome, setWelcome] = useState<Welcome>(DEFAULT_WELCOME);
const t = useT();
useEffect(() => {
const raw = nickname.trim() || (displayName.trim().split(/\s+/)[0] ?? "");
const name = raw.length > 20 ? `${raw.slice(0, 20)}…` : raw;
- setWelcome(buildWelcome(new Date().getHours(), name));
- }, [displayName, nickname]);
+ setWelcome(
+ spooky
+ ? buildSpookyWelcome(name)
+ : buildWelcome(new Date().getHours(), name),
+ );
+ }, [displayName, nickname, spooky]);
const currentEmojiSrc = `Sloth emojis/${welcome.sloth}`;
@@ -2769,7 +2781,10 @@ const ThreadWelcome: FC<{
{showGreetingSloth && !incognito && (
<MascotImg
src={currentEmojiSrc}
- className="unsloth-welcome-sloth size-[calc(44px*var(--ui-space-scale,1))] -translate-y-[2px]"
+ className={cn(
+ "unsloth-welcome-sloth size-[calc(44px*var(--ui-space-scale,1))] -translate-y-[2px]",
+ welcome.enlarge && "scale-[1.15]",
+ )}
/>
)}
<h1 className="aui-thread-welcome-message-inner unsloth-welcome-title fade-in slide-in-from-bottom-1 animate-in text-3xl tracking-[-0.02em] duration-200">
diff --git a/studio/frontend/src/features/auth/components/auth-form.tsx b/studio/frontend/src/features/auth/components/auth-form.tsx
index b236817da74..8b3e7dba63e 100644
--- a/studio/frontend/src/features/auth/components/auth-form.tsx
+++ b/studio/frontend/src/features/auth/components/auth-form.tsx
@@ -8,6 +8,8 @@ import { sessionAccount, useLoginMode } from "../account-session";
import { fetchAuthStatus, loginFromForm, loginWithPassword, setLoginMode, type TokenResponse } from "../login-client";
import { Button } from "@/components/ui/button";
import { MascotImg } from "@/components/mascot-img";
+import { useSpookyGreetings } from "@/features/halloween/halloween-store";
+import { pickSpookySloth } from "@/features/halloween/spooky-greetings";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Link, useNavigate } from "@tanstack/react-router";
@@ -76,6 +78,9 @@ export function AuthForm({ mode }: AuthFormProps): ReactElement | null {
password: string;
token: TokenResponse;
} | null>(null);
+ const spooky = useSpookyGreetings();
+ const [halloweenSloth] = useState(pickSpookySloth);
+ const spookySloth = isLoginMode && spooky ? halloweenSloth : null;
useEffect(() => {
if (deadlineAt === null) {
@@ -362,8 +367,13 @@ export function AuthForm({ mode }: AuthFormProps): ReactElement | null {
<div className="w-full space-y-7">
<div className="flex flex-col items-center gap-1.5 text-center">
<MascotImg
- src="Sloth emojis/large sloth wave.png"
+ src={
+ spookySloth
+ ? `Sloth emojis/${spookySloth.sloth}`
+ : "Sloth emojis/large sloth wave.png"
+ }
className="mx-auto mb-2 h-20 w-20 object-contain"
+ style={spookySloth?.enlarge ? { scale: "1.15" } : undefined}
/>
<h2 className="font-semibold text-[26px] text-foreground leading-tight tracking-[-0.02em]">{title}</h2>
<p className="text-muted-foreground text-sm">{subtitle}</p>
diff --git a/studio/frontend/src/features/halloween/halloween-store.ts b/studio/frontend/src/features/halloween/halloween-store.ts
new file mode 100644
index 00000000000..9ace70dbab9
--- /dev/null
+++ b/studio/frontend/src/features/halloween/halloween-store.ts
@@ -0,0 +1,178 @@
+// 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 { useEffect, useState } from "react";
+import { create } from "zustand";
+import { persist } from "zustand/middleware";
+import { syncAcrossWindows } from "../../lib/sync-across-windows.ts";
+import {
+ type ColorThemeId,
+ HALLOWEEN_THEME_IDS,
+ type HalloweenThemeId,
+ isColorThemeId,
+ isHalloweenThemeId,
+} from "../settings/lib/color-themes.ts";
+import {
+ getPalette,
+ setPalette,
+ usePalette,
+} from "../settings/stores/theme-store.ts";
+
+export const HALLOWEEN_STORAGE_KEY = "unsloth_halloween";
+
+/** Local time: the season ends at the user's own midnight. */
+export function isHalloweenSeason(now: Date = new Date()): boolean {
+ return now.getMonth() === 9;
+}
+
+export function msUntilSeasonChange(now: Date = new Date()): number {
+ const year = now.getFullYear();
+ const next = isHalloweenSeason(now)
+ ? new Date(year, 10, 1)
+ : new Date(now.getMonth() < 9 ? year : year + 1, 9, 1);
+ return next.getTime() - now.getTime();
+}
+
+// setTimeout overflows past ~24.8 days and sleep stalls timers, so re-arm in bounded steps.
+const SEASON_CHECK_MAX_MS = 6 * 60 * 60 * 1000;
+
+type HalloweenState = {
+ spookyGreetings: boolean;
+ decorations: boolean;
+ // Year the row was hidden; it stays hidden for that October.
+ hiddenYear: number | null;
+ restorePalette: ColorThemeId | null;
+ setSpookyGreetings: (on: boolean) => void;
+ setDecorations: (on: boolean) => void;
+};
+
+export const useHalloweenStore = create<HalloweenState>()(
+ persist(
+ (set) => ({
+ spookyGreetings: false,
+ decorations: true,
+ hiddenYear: null,
+ restorePalette: null,
+ setSpookyGreetings: (spookyGreetings) => set({ spookyGreetings }),
+ setDecorations: (decorations) => set({ decorations }),
+ }),
+ {
+ name: HALLOWEEN_STORAGE_KEY,
+ partialize: ({
+ spookyGreetings,
+ decorations,
+ hiddenYear,
+ restorePalette,
+ }) => ({
+ spookyGreetings,
+ decorations,
+ hiddenYear,
+ restorePalette,
+ }),
+ merge: (persisted, current) => {
+ const p = (persisted ?? {}) as Partial<HalloweenState>;
+ return {
+ ...current,
+ spookyGreetings: p.spookyGreetings === true,
+ decorations: p.decorations !== false,
+ hiddenYear: typeof p.hiddenYear === "number" ? p.hiddenYear : null,
+ restorePalette:
+ isColorThemeId(p.restorePalette) &&
+ !isHalloweenThemeId(p.restorePalette)
+ ? p.restorePalette
+ : null,
+ };
+ },
+ },
+ ),
+);
+
+// Another tab can pick the theme to restore; reread it before this one consumes or rewrites it.
+syncAcrossWindows(useHalloweenStore);
+
+export function pickHalloweenTheme(id: HalloweenThemeId): void {
+ const current = getPalette();
+ if (!isHalloweenThemeId(current)) {
+ useHalloweenStore.setState({ restorePalette: current });
+ }
+ setPalette(id);
+}
+
+export function pickRandomHalloweenTheme(): HalloweenThemeId {
+ const current = getPalette();
+ const choices = HALLOWEEN_THEME_IDS.filter((id) => id !== current);
+ const id = choices[Math.floor(Math.random() * choices.length)];
+ pickHalloweenTheme(id);
+ return id;
+}
+
+function restoreNormalTheme(): void {
+ if (isHalloweenThemeId(getPalette())) {
+ setPalette(useHalloweenStore.getState().restorePalette ?? "standard");
+ }
+ useHalloweenStore.setState({ restorePalette: null });
+}
+
+export function removeHalloween(now: Date = new Date()): void {
+ restoreNormalTheme();
+ useHalloweenStore.setState({
+ spookyGreetings: false,
+ hiddenYear: now.getFullYear(),
+ });
+}
+
+export function hideTrickOrTreatRow(now: Date = new Date()): void {
+ useHalloweenStore.setState({ hiddenYear: now.getFullYear() });
+}
+
+export function showTrickOrTreatRow(): void {
+ useHalloweenStore.setState({ hiddenYear: null });
+}
+
+export function useTrickOrTreatVisible(): boolean {
+ const hiddenYear = useHalloweenStore((s) => s.hiddenYear);
+ const now = new Date();
+ return isHalloweenSeason(now) && hiddenYear !== now.getFullYear();
+}
+
+export function useSpookyGreetings(): boolean {
+ const on = useHalloweenStore((s) => s.spookyGreetings);
+ return on && isHalloweenSeason();
+}
+
+export function useSpookyDecorations(): boolean {
+ const on = useHalloweenStore((s) => s.decorations);
+ const { palette } = usePalette();
+ return on && isHalloweenSeason() && isHalloweenThemeId(palette);
+}
+
+/** Outside October, restore the pre-Halloween theme; reads the live date, so a stale flag never undoes an October pick. */
+export function useHalloweenSeasonEnd(): void {
+ const { palette } = usePalette();
+ const [inSeason, setInSeason] = useState(() => isHalloweenSeason());
+ useEffect(() => {
+ let timer: ReturnType<typeof setTimeout> | undefined;
+ const check = () => {
+ clearTimeout(timer);
+ setInSeason(isHalloweenSeason());
+ timer = setTimeout(
+ check,
+ Math.min(msUntilSeasonChange(), SEASON_CHECK_MAX_MS),
+ );
+ };
+ check();
+ window.addEventListener("focus", check);
+ document.addEventListener("visibilitychange", check);
+ return () => {
+ clearTimeout(timer);
+ window.removeEventListener("focus", check);
+ document.removeEventListener("visibilitychange", check);
+ };
+ }, []);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: inSeason only triggers the recheck at a boundary.
+ useEffect(() => {
+ if (!isHalloweenSeason() && isHalloweenThemeId(palette)) {
+ restoreNormalTheme();
+ }
+ }, [palette, inSeason]);
+}
diff --git a/studio/frontend/src/features/halloween/pumpkin-icon.ts b/studio/frontend/src/features/halloween/pumpkin-icon.ts
new file mode 100644
index 00000000000..2663254d7c9
--- /dev/null
+++ b/studio/frontend/src/features/halloween/pumpkin-icon.ts
@@ -0,0 +1,16 @@
+// 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 type { IconSvgElement } from "@hugeicons/react";
+
+// MingCute "pumpkin-line" (Apache-2.0, github.com/Richard9394/MingCute); a filled outline, so no stroke.
+export const PumpkinIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "m13.843 19.214l.636-.772a1 1 0 0 0-1.309.032zm-3.686 0l.673-.74a1 1 0 0 0-1.31-.032zm-1.441.68l.173.984zM3.068 13.78l-.984.174zm3.217-7.675l-.174-.984zm3.318 1.29l-.707.706a1 1 0 0 0 1.503-.1zm4.794 0L13.6 8a1 1 0 0 0 1.503.1zm3.319-1.29l-.174.985zm3.216 7.675l.985.174zm-5.647 6.113l.173-.985zM14 4a1 1 0 1 0 0-2zm-2 16v1c.967 0 1.825-.417 2.517-1.047l-.674-.739l-.673-.74c-.411.375-.808.526-1.17.526zm-1.843-.786l-.674.74C10.175 20.583 11.033 21 12 21v-2c-.362 0-.759-.151-1.17-.526zm-1.441.68l.173.984a4.1 4.1 0 0 0 1.904-.892l-.636-.772l-.636-.772a2.1 2.1 0 0 1-.98.467zM3.068 13.78l-.984.174c.364 2.064 1.237 3.884 2.407 5.15c1.162 1.258 2.726 2.068 4.398 1.773l-.173-.984l-.174-.985c-.775.137-1.7-.206-2.582-1.16c-.873-.946-1.6-2.398-1.907-4.141zm3.217-7.675l-.174-.984c-1.673.294-2.865 1.59-3.526 3.17c-.667 1.59-.865 3.6-.501 5.663l.984-.174l.985-.173c-.307-1.744-.121-3.357.376-4.544c.503-1.198 1.254-1.836 2.03-1.973zm3.318 1.29l.708-.708c-1.135-1.136-2.62-1.845-4.2-1.566l.174.984l.173.985c.734-.13 1.597.168 2.438 1.01zM12 6V5c-1.315 0-2.408.761-3.192 1.789l.795.606l.796.606C10.95 7.277 11.517 7 12 7zm2.397 1.395l.795-.606C14.408 5.76 13.315 5 12 5v2c.483 0 1.05.277 1.601 1.001zm0 0l.707.707c.841-.843 1.704-1.14 2.438-1.01l.174-.986l.173-.984c-1.58-.279-3.065.43-4.2 1.566zm3.319-1.289l-.174.985c.775.137 1.527.775 2.029 1.973c.497 1.188.683 2.8.376 4.544l.985.173l.985.174c.363-2.064.165-4.073-.502-5.664c-.661-1.579-1.853-2.875-3.526-3.17zm3.216 7.675l-.985-.173c-.307 1.743-1.034 3.195-1.907 4.14c-.882.955-1.807 1.297-2.582 1.16l-.174.986l-.173.984c1.672.295 3.236-.515 4.398-1.772c1.17-1.267 2.044-3.087 2.407-5.151zm-5.647 6.113l.173-.985a2.1 2.1 0 0 1-.979-.467l-.636.772l-.635.772c.545.45 1.185.766 1.903.892zM8 13h1c0-1.356.24-2.594.631-3.593c.397-1.01.923-1.71 1.447-2.082l-.578-.816l-.578-.816c-.942.667-1.666 1.743-2.153 2.984C7.278 9.93 7 11.418 7 13zm5.5-6.491l-.578.816c.524.371 1.05 1.071 1.447 2.082c.392 1 .631 2.237.631 3.593h2c0-1.582-.278-3.07-.77-4.323c-.486-1.24-1.21-2.317-2.152-2.984zm-3 12.982l.578-.816c-.524-.371-1.05-1.071-1.447-2.082C9.24 15.593 9 14.356 9 13H7c0 1.582.278 3.07.77 4.323c.486 1.24 1.21 2.317 2.152 2.984zM16 13h-1c0 1.356-.24 2.594-.631 3.593c-.397 1.01-.923 1.71-1.447 2.082l.578.816l.578.816c.942-.667 1.666-1.743 2.153-2.984C16.722 16.07 17 14.582 17 13zm-4-7h1c0-.254.16-.824.482-1.36c.153-.254.308-.443.439-.556c.14-.122.165-.084.079-.084V2c-.586 0-1.061.288-1.39.572c-.337.294-.62.667-.842 1.039C11.339 4.324 11 5.254 11 6z",
+ fill: "currentColor",
+ key: "0",
+ },
+ ],
+];
diff --git a/studio/frontend/src/features/halloween/spider-webs.ts b/studio/frontend/src/features/halloween/spider-webs.ts
new file mode 100644
index 00000000000..4fe610b52e2
--- /dev/null
+++ b/studio/frontend/src/features/halloween/spider-webs.ts
@@ -0,0 +1,90 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+export type WebPlacement = "top-right" | "bottom-right" | "top";
+
+export type SpiderWeb = {
+ placement: WebPlacement;
+ // Corner webs span `size` square; a top web is twice as wide as tall.
+ size: number;
+ left?: string;
+ spokes: string;
+ threads: string;
+};
+
+type Rand = () => number;
+
+const between = (rand: Rand, min: number, max: number) =>
+ min + rand() * (max - min);
+const f = (n: number) => n.toFixed(1);
+
+// 100-unit frame, anchor at the origin, opening towards +x/+y.
+function drawWeb(rand: Rand, from: number, to: number) {
+ const count = Math.round(between(rand, 6, 9));
+ const spokes = Array.from({ length: count }, (_, i) => {
+ const t = count === 1 ? 0.5 : i / (count - 1);
+ const angle =
+ ((from + (to - from) * t + between(rand, -3, 3)) * Math.PI) / 180;
+ return {
+ dx: Math.cos(angle),
+ dy: Math.sin(angle),
+ length: between(rand, 78, 100),
+ };
+ });
+ const spokePath = spokes
+ .map((s) => `M0 0L${f(s.dx * s.length)} ${f(s.dy * s.length)}`)
+ .join("");
+
+ const rings = Math.round(between(rand, 6, 9));
+ let threads = "";
+ for (let r = 1; r <= rings; r++) {
+ const radius = 92 * (r / (rings + 0.6)) ** 1.08;
+ for (let i = 0; i < spokes.length - 1; i++) {
+ const a = spokes[i];
+ const b = spokes[i + 1];
+ if (radius > Math.min(a.length, b.length) - 2 || rand() < 0.06) {
+ continue;
+ }
+ const ra = radius * between(rand, 0.96, 1.04);
+ const rb = radius * between(rand, 0.96, 1.04);
+ const ax = a.dx * ra;
+ const ay = a.dy * ra;
+ const bx = b.dx * rb;
+ const by = b.dy * rb;
+ // Silk between two spokes bows towards the hub.
+ const sag = between(rand, 0.84, 0.92);
+ threads += `M${f(ax)} ${f(ay)}Q${f(((ax + bx) / 2) * sag)} ${f(((ay + by) / 2) * sag)} ${f(bx)} ${f(by)}`;
+ }
+ }
+ const first = spokes[0];
+ const last = spokes[spokes.length - 1];
+ threads += `M${f(first.dx * first.length)} ${f(first.dy * first.length)}Q${f(((first.dx + last.dx) / 2) * 70)} ${f(((first.dy + last.dy) / 2) * 70)} ${f(last.dx * last.length)} ${f(last.dy * last.length)}`;
+ return { spokes: spokePath, threads };
+}
+
+export function rollSpiderWebs(rand: Rand = Math.random): SpiderWeb[] {
+ if (rand() >= 0.5) {
+ return [];
+ }
+ // No left corners: the sidebar is there.
+ const spots: WebPlacement[] = ["top-right", "bottom-right", "top"];
+ const count = rand() < 0.4 ? 2 : 1;
+ const picks = Array.from(
+ { length: count },
+ () => spots.splice(Math.floor(rand() * spots.length), 1)[0],
+ );
+ return picks.map((placement) =>
+ placement === "top"
+ ? {
+ placement,
+ size: Math.round(between(rand, 70, 110)),
+ left: `${between(rand, 35, 80).toFixed(1)}%`,
+ ...drawWeb(rand, 12, 168),
+ }
+ : {
+ placement,
+ size: Math.round(between(rand, 95, 165)),
+ ...drawWeb(rand, 4, 86),
+ },
+ );
+}
diff --git a/studio/frontend/src/features/halloween/spooky-decorations.tsx b/studio/frontend/src/features/halloween/spooky-decorations.tsx
new file mode 100644
index 00000000000..bc3c2d9d51b
--- /dev/null
+++ b/studio/frontend/src/features/halloween/spooky-decorations.tsx
@@ -0,0 +1,238 @@
+// 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 { cn } from "@/lib/utils";
+import { useRouterState } from "@tanstack/react-router";
+import { useReducedMotionConfig } from "motion/react";
+import {
+ type CSSProperties,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+} from "react";
+import { useSpookyDecorations } from "./halloween-store";
+import { type SpiderWeb, rollSpiderWebs } from "./spider-webs";
+
+type Visitor =
+ | { kind: "spider"; id: number; left: string; drop: number }
+ | {
+ kind: "bats";
+ id: number;
+ top: string;
+ flip: boolean;
+ bats: { delay: number; offset: number; scale: number }[];
+ };
+
+// The drop; the spider then hangs until the page changes.
+const SPIDER_MS = 3500;
+const BATS_MS = 9000;
+
+const between = (min: number, max: number) => min + Math.random() * (max - min);
+
+const px = (n: number) => `calc(${n}px*var(--ui-space-scale,1))`;
+
+function Web({ web }: { web: SpiderWeb }) {
+ const top = web.placement === "top";
+ return (
+ <svg
+ aria-hidden="true"
+ viewBox={top ? "-100 0 200 100" : "0 0 100 100"}
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ className={cn(
+ "absolute opacity-30",
+ top && "top-0 -translate-x-1/2",
+ web.placement === "top-right" && "top-0 right-0 -scale-x-100",
+ web.placement === "bottom-right" && "right-0 bottom-0 -scale-100",
+ )}
+ style={{
+ left: web.left,
+ width: px(top ? web.size * 2 : web.size),
+ height: px(web.size),
+ }}
+ >
+ <path d={web.spokes} strokeWidth="1" vectorEffect="non-scaling-stroke" />
+ <path
+ d={web.threads}
+ strokeWidth="0.75"
+ vectorEffect="non-scaling-stroke"
+ />
+ </svg>
+ );
+}
+
+// Font Awesome 7 "spider" (solid), CC BY 4.0 (fontawesome.com).
+function Spider() {
+ return (
+ <svg
+ aria-hidden="true"
+ viewBox="0 0 640 640"
+ className="spooky-spider-body"
+ fill="currentColor"
+ >
+ <path d="M433.3 33c11.9-3.5 24.4 2.7 29 13.9l.8 2.3l40 136c2.5 8.4.1 17.5-6.1 23.7L432.9 273l76.4-20.8l19.9-59.8l.9-2.3c5-11.1 17.7-16.8 29.5-12.9s18.5 16.1 15.8 28l-.7 2.4l-24 72c-2.5 7.6-8.7 13.4-16.5 15.6L443.1 320l91.1 24.8c7.7 2.1 13.9 8 16.5 15.6l24 72l.7 2.4c2.7 11.9-4.1 24.1-15.8 28c-11.8 3.9-24.5-1.8-29.5-12.9l-.9-2.3l-19.9-59.8l-76.4-20.8l64.1 64.1c6.1 6.1 8.5 15.1 6.2 23.4l-40 144l-.8 2.3c-4.4 11.3-16.8 17.7-28.8 14.4S414.3 600 416.4 588l.5-2.4l36.2-130.5l-37.2-37.2C415 470 372.4 512 320 512s-95-42-96-94.1l-37 37l36 122.3l.6 2.4c2.2 11.9-4.9 23.9-16.8 27.4s-24.4-2.7-29-13.9l-.8-2.3l-40-136c-2.5-8.4-.1-17.5 6.1-23.8l64.1-64.1l-76.4 20.8l-19.9 59.8l-.9 2.3c-5 11.1-17.7 16.8-29.5 12.9s-18.5-16.1-15.8-28l.7-2.4l24-72c2.5-7.6 8.7-13.4 16.5-15.6l91.1-24.8l-91.1-24.8c-7.7-2.1-13.9-8-16.5-15.6l-24-72l-.7-2.4c-2.7-11.9 4.1-24.1 15.8-28S105 178.9 110 190l.9 2.3l19.9 59.8l76.4 20.8l-64.1-64.1c-6.2-6.2-8.5-15.3-6.1-23.7l40-136l.8-2.3c4.6-11.3 17.1-17.4 29-13.9s19 15.5 16.8 27.4l-.6 2.4L187 185l53 53c1-43.3 36.4-78.1 79.9-78.1s78.9 34.8 79.9 78.2l53.1-53.1l-36-122.3l-.6-2.4c-2.2-12 4.9-23.9 16.8-27.4z" />
+ </svg>
+ );
+}
+
+// Material Design Icons "bat", Apache-2.0 (github.com/Templarian/MaterialDesign).
+function Bat() {
+ return (
+ <svg
+ aria-hidden="true"
+ viewBox="0.5 6.5 23 12.5"
+ className="spooky-bat-wings"
+ fill="currentColor"
+ >
+ <path d="M.75 8S5 7 8 9c0 0 .5 3.75 2.5 3.75V11s.5 1 1.5 1s1.5-1 1.5-1v1.75C15.5 12.75 16 9 16 9c3-2 7.25-1 7.25-1c-2 1-2.25 4.5-2.25 4.5c-4 0-4 3.25-4 3.25c-5-1-5 2.75-5 2.75s0-3.75-5-2.75c0 0 0-3.25-4-3.25C3 12.5 2.75 9 .75 8" />
+ </svg>
+ );
+}
+
+// Reduced motion keeps the visits but fades them in place.
+export function SpookyDecorations() {
+ const on = useSpookyDecorations();
+ // Follows Studio's Reduce motion setting, which can override the system one.
+ const reduced = useReducedMotionConfig();
+ const [visitors, setVisitors] = useState<Visitor[]>([]);
+ const href = useRouterState({ select: (s) => s.location.href });
+ // biome-ignore lint/correctness/useExhaustiveDependencies: each page rolls its own webs.
+ const webs = useMemo(() => rollSpiderWebs(), [href]);
+ const nextId = useRef(0);
+
+ // biome-ignore lint/correctness/useExhaustiveDependencies: each page rolls its own visitors.
+ useEffect(() => {
+ setVisitors([]);
+ if (!on) {
+ return;
+ }
+ const timers = new Set<ReturnType<typeof setTimeout>>();
+ const later = (ms: number, fn: () => void) => {
+ const t = setTimeout(() => {
+ timers.delete(t);
+ fn();
+ }, ms);
+ timers.add(t);
+ };
+ const visit = (v: Visitor, ms?: number) => {
+ // Hidden tabs skip visits rather than queue them.
+ if (document.hidden) {
+ return;
+ }
+ setVisitors((list) => [...list, v]);
+ if (ms !== undefined) {
+ later(ms + 500, () =>
+ setVisitors((list) => list.filter((x) => x.id !== v.id)),
+ );
+ }
+ };
+ const spider = () => {
+ visit({
+ kind: "spider",
+ id: nextId.current++,
+ left: `${between(35, 92).toFixed(1)}%`,
+ drop: Math.round(between(90, 230)),
+ });
+ };
+ const bats = () => {
+ const count = 1 + Math.floor(Math.random() * 3);
+ visit(
+ {
+ kind: "bats",
+ id: nextId.current++,
+ top: `${between(8, 32).toFixed(1)}%`,
+ flip: Math.random() < 0.5,
+ bats: Array.from({ length: count }, (_, i) => ({
+ delay: i * between(0.25, 0.6),
+ offset: Math.round(between(-24, 24)),
+ scale: between(0.7, 1.1),
+ })),
+ },
+ BATS_MS + 2000,
+ );
+ later(between(30_000, 60_000), bats);
+ };
+ // A page gets a spider or bats, never both: a quarter of the time each.
+ const roll = Math.random();
+ if (roll < 0.25) {
+ later(between(2000, 6000), spider);
+ } else if (roll < 0.5) {
+ later(between(2000, 6000), bats);
+ }
+ return () => {
+ for (const t of timers) {
+ clearTimeout(t);
+ }
+ };
+ }, [on, href]);
+
+ if (!on) {
+ return null;
+ }
+ return (
+ <div
+ aria-hidden="true"
+ data-testid="spooky-decorations"
+ className={cn(
+ "pointer-events-none fixed inset-0 z-[45] overflow-hidden text-foreground",
+ reduced && "spooky-still",
+ )}
+ >
+ {webs.map((web) => (
+ <Web key={web.placement} web={web} />
+ ))}
+ {visitors.map((v) =>
+ v.kind === "spider" ? (
+ <div
+ key={v.id}
+ className="spooky-spider"
+ style={
+ {
+ left: v.left,
+ "--spooky-drop": `${v.drop}px`,
+ "--spooky-ms": `${SPIDER_MS}ms`,
+ animationDuration: `${SPIDER_MS}ms`,
+ } as CSSProperties
+ }
+ >
+ <Spider />
+ </div>
+ ) : (
+ <div
+ key={v.id}
+ className="spooky-bats"
+ style={
+ {
+ top: v.top,
+ transform: v.flip ? "scaleX(-1)" : undefined,
+ } as CSSProperties
+ }
+ >
+ {v.bats.map((b, i) => (
+ <div
+ // biome-ignore lint/suspicious/noArrayIndexKey: a flock never reorders.
+ key={i}
+ className="spooky-bat"
+ style={
+ {
+ "--spooky-ms": `${BATS_MS}ms`,
+ animationDuration: `${BATS_MS}ms`,
+ animationDelay: `${b.delay}s`,
+ marginTop: b.offset,
+ } as CSSProperties
+ }
+ >
+ {/* Sized here, not on the flying element: scale there shortens the flight too. */}
+ <div style={{ scale: b.scale }}>
+ <Bat />
+ </div>
+ </div>
+ ))}
+ </div>
+ ),
+ )}
+ </div>
+ );
+}
diff --git a/studio/frontend/src/features/halloween/spooky-greetings.ts b/studio/frontend/src/features/halloween/spooky-greetings.ts
new file mode 100644
index 00000000000..c7e87d655de
--- /dev/null
+++ b/studio/frontend/src/features/halloween/spooky-greetings.ts
@@ -0,0 +1,71 @@
+// 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 type { TranslationKey } from "@/i18n";
+
+export type SpookyWelcome = {
+ key: TranslationKey;
+ name?: string;
+ sloth: string;
+ enlarge?: boolean;
+};
+
+const TRICK_OR_TREAT = "sloth halloween trick or treat.png";
+const WITCH = "sloth halloween witch.png";
+const DEAD = "sloth halloween dead.png";
+const VAMPIRE = "sloth halloween vampire.png";
+const CHEEKY = "large sloth cheeky.png";
+const SHOCK = "sloth shock large.png";
+// Wide drawings fill less of the square canvas, so they render slightly larger.
+const ENLARGED = new Set([TRICK_OR_TREAT, WITCH, VAMPIRE]);
+
+// [key, key with {name} or null, sloth pictures to pick from]
+type Line = [TranslationKey, TranslationKey | null, string[]];
+
+const LINES: Line[] = [
+ ["halloween.greeting.pumpkins", null, [TRICK_OR_TREAT]],
+ ["halloween.greeting.brewing", null, [WITCH]],
+ [
+ "halloween.greeting.trickOrTreat",
+ null,
+ [TRICK_OR_TREAT, CHEEKY, DEAD, SHOCK],
+ ],
+ ["halloween.greeting.manor", "halloween.greeting.manorName", [VAMPIRE]],
+ ["halloween.greeting.spirits", null, [SHOCK]],
+ [
+ "halloween.greeting.mysteries",
+ null,
+ [TRICK_OR_TREAT, WITCH, DEAD, VAMPIRE, SHOCK, CHEEKY],
+ ],
+ ["halloween.greeting.conjure", null, [WITCH]],
+];
+
+const HALLOWEEN_SLOTHS = [TRICK_OR_TREAT, WITCH, DEAD, VAMPIRE];
+
+const HALLOWEEN: Line = [
+ "halloween.greeting.happyHalloween",
+ "halloween.greeting.happyHalloweenName",
+ [...HALLOWEEN_SLOTHS, SHOCK],
+];
+
+const pick = <T>(items: T[]): T =>
+ items[Math.floor(Math.random() * items.length)];
+
+export function pickSpookySloth(): { sloth: string; enlarge: boolean } {
+ const sloth = pick(HALLOWEEN_SLOTHS);
+ return { sloth, enlarge: ENLARGED.has(sloth) };
+}
+
+export function buildSpookyWelcome(
+ name: string,
+ now: Date = new Date(),
+): SpookyWelcome {
+ const pool =
+ now.getMonth() === 9 && now.getDate() >= 30 ? [...LINES, HALLOWEEN] : LINES;
+ const [key, namedKey, sloths] = pick(pool);
+ const sloth = pick(sloths);
+ const enlarge = ENLARGED.has(sloth);
+ return name && namedKey
+ ? { key: namedKey, name, sloth, enlarge }
+ : { key, sloth, enlarge };
+}
diff --git a/studio/frontend/src/features/halloween/trick-or-treat-dialog.tsx b/studio/frontend/src/features/halloween/trick-or-treat-dialog.tsx
new file mode 100644
index 00000000000..c5c03d26f90
--- /dev/null
+++ b/studio/frontend/src/features/halloween/trick-or-treat-dialog.tsx
@@ -0,0 +1,305 @@
+// 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 {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogTitle,
+} from "@/components/ui/dialog";
+import { Switch } from "@/components/ui/switch";
+import {
+ COLOR_THEMES,
+ HALLOWEEN_THEME_IDS,
+} from "@/features/settings/lib/color-themes";
+import { usePalette } from "@/features/settings/stores/theme-store";
+import { useT } from "@/i18n";
+import {
+ ChevronLeftStandardIcon,
+ ChevronRightStandardIcon,
+} from "@/lib/chevron-icons";
+import { cn } from "@/lib/utils";
+import { CandyIcon, Moon02Icon, SkullIcon } from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
+import {
+ type ReactElement,
+ type ReactNode,
+ isValidElement,
+ useState,
+} from "react";
+import {
+ pickHalloweenTheme,
+ pickRandomHalloweenTheme,
+ removeHalloween,
+ useHalloweenStore,
+} from "./halloween-store";
+import { PumpkinIcon } from "./pumpkin-icon";
+
+function NightSky() {
+ return (
+ <svg
+ aria-hidden="true"
+ viewBox="0 0 400 140"
+ className="pointer-events-none absolute inset-x-0 top-0 h-36 w-full text-foreground opacity-[0.14]"
+ fill="currentColor"
+ >
+ <circle cx="70" cy="22" r="2" />
+ <circle cx="318" cy="16" r="1.5" />
+ <circle cx="352" cy="64" r="2" />
+ <circle cx="36" cy="96" r="1.5" />
+ <path d="M96 30a18 18 0 1 0 14 30a14 14 0 1 1-14-30z" />
+ <path d="M300 34c4-6 10-7 14-4c2-4 6-4 8 0c4-3 10-2 14 4c-5-1-8 1-10 4c-2-2-4-2-6 0c-2-2-4-2-6 0c-2-3-6-5-14-4z" />
+ <path d="M258 72c3-4 7-5 10-3c1-3 4-3 6 0c3-2 7-1 10 3c-4-1-6 1-7 3c-1-1-3-1-4 0c-1-1-3-1-4 0c-2-2-4-3-11-3z" />
+ </svg>
+ );
+}
+
+// Fluent Emoji "spider web" (high contrast), MIT (github.com/microsoft/fluentui-emoji).
+function SpiderWebIcon() {
+ return (
+ <svg
+ aria-hidden="true"
+ viewBox="2 2 28 28"
+ fill="currentColor"
+ className="size-[calc(22px*var(--ui-space-scale,1))]"
+ >
+ <path d="M29.93 16.29c.02-.03.05-.07.06-.11v-.01c.01-.02.01-.04.02-.06c0-.02.01-.04.01-.07v-.08c0-.02-.01-.04-.01-.06v-.01c0-.02-.01-.04-.02-.05v-.01l-.03-.06c-.01-.02-.02-.03-.03-.05l-.01-.01c-.01-.02-.03-.03-.04-.05a.2.2 0 0 0-.05-.04l-.01-.01a.2.2 0 0 1-.06-.04c-2.58-1.39-4-3.3-4.2-5.67c-.16-1.81.46-3.23.46-3.24v-.01c.01-.02.02-.04.02-.06v-.01c.01-.02.01-.04.01-.06v-.16a.3.3 0 0 0-.03-.11s0-.01-.01-.01a.2.2 0 0 0-.03-.05c-.01-.02-.03-.04-.04-.05v-.01l-.01-.01l-.02-.02l-.02-.02l-.01-.01c-.02-.01-.03-.03-.05-.04c0 0-.01 0-.01-.01c-.01 0-.03-.01-.04-.02c0 0-.01 0-.01-.01c-.02-.01-.04-.02-.06-.02h-.01c-.02-.01-.04-.01-.06-.01h-.17c-.02 0-.04.01-.06.01c-2.81.84-5.16.5-6.98-1.04c-1.38-1.16-1.95-2.6-1.95-2.61l-.03-.06c-.01-.02-.02-.03-.03-.05l-.01-.01c-.01-.02-.03-.03-.04-.05l-.04-.04l-.01-.01c-.03-.02-.07-.05-.11-.06h-.01c-.02-.01-.04-.01-.06-.02c-.04-.01-.06-.02-.08-.02h-.09c-.02 0-.04.01-.06.01h-.01c-.02 0-.03.01-.05.02c0 0-.01 0-.01.01l-.06.03h-.01c-.02.01-.03.02-.05.03l-.01.01c-.02.01-.03.03-.05.04l-.04.04l-.01.01c-.01.02-.02.04-.03.05c-1.39 2.58-3.3 4-5.67 4.2C8.11 6.63 6.69 6 6.68 6h-.01l-.06-.03H6.6c-.02 0-.04-.01-.05-.01h-.16c-.04.01-.08.02-.12.04c0 0-.01 0-.01.01c-.02 0-.04.01-.05.02c-.03.02-.04.03-.06.04h-.01l-.01.01c0 .01 0 .02-.01.02c-.01.01-.01.02-.02.02l-.01.01c-.01.02-.03.04-.04.06c0 0 0 .01-.01.01c0 .01-.01.03-.02.04c0 0 0 .01-.01.01c0 .02-.01.04-.02.07c0 .02-.01.04-.01.06v.15c0 .02.01.04.01.06c.84 2.81.5 5.16-1.04 6.98c-1.16 1.38-2.59 1.94-2.62 1.95l-.06.03h-.01c-.02.01-.03.02-.05.03l-.01.01c-.02.01-.03.03-.05.04l-.01.01c-.01.01-.02.03-.04.04l-.01.01c-.02.03-.04.07-.06.11v.01c-.01.02-.01.04-.02.06c0 .02-.01.04-.01.06v.08c0 .02.01.04.01.06v.01c0 .02.01.04.02.05v.01l.03.06c.01.02.02.03.03.05l.01.01c.01.02.03.03.04.05c.01.01.03.03.05.04l.01.01c.02.01.04.02.06.04c2.58 1.39 4 3.3 4.2 5.67c.18 1.84-.44 3.26-.44 3.27v.01c-.01.02-.02.04-.02.06v.01c-.01.02-.01.04-.01.06v.16c.01.04.02.08.04.12c0 0 0 .01.01.01c.01.02.02.04.03.05c.01.02.03.04.04.05v.01l.01.01l.02.02l.02.02l.01.01c.02.01.03.03.05.04c0 0 .01 0 .01.01c.02.01.03.02.05.03c0 0 .01 0 .01.01c.02.01.04.02.06.02h.01c.02.01.04.01.06.01h.15c.02 0 .04-.01.06-.01c2.81-.85 5.16-.5 6.98 1.04c1.38 1.16 1.95 2.6 1.95 2.61l.03.06c.01.02.02.03.03.05l.01.01c.01.02.03.03.04.05l.04.04l.01.01c.03.02.07.05.11.06h.01c.02.01.04.01.06.02c.02 0 .04.01.06.01h.12c.02 0 .03-.01.05-.01h.01a.4.4 0 0 0 .11-.05l.01-.01c.01-.01.03-.02.04-.03l.01-.01c.02-.01.03-.03.04-.04l.01-.01c.01-.01.02-.02.03-.04l.01-.01c.01-.02.02-.03.03-.05c1.39-2.58 3.3-4 5.67-4.2c1.8-.16 3.22.46 3.23.47c.02.01.04.02.06.02h.01c.02.01.04.01.06.01h.17c.04-.01.08-.02.12-.04c0 0 .01 0 .01-.01c.02-.01.04-.02.05-.03c.02-.01.04-.03.05-.04h.01l.01-.01l.02-.02l.02-.02l.01-.01c.01-.02.03-.03.04-.05c0 0 0-.01.01-.01c.01-.02.02-.03.03-.05c0 0 0-.01.01-.01c.01-.02.02-.04.02-.06c.01-.02.01-.04.01-.06v-.15c0-.02-.01-.04-.01-.06c-.84-2.81-.5-5.16 1.04-6.98c1.16-1.38 2.6-1.95 2.61-1.95l.06-.03h.01c.02-.01.03-.02.05-.03l.01-.01c.02-.01.03-.03.05-.04l.04-.04c.01-.04.01-.04.02-.05m-2.13-.79h-4.15c-2.84-1.6-2.08-4.05-1.9-4.52l2.86-2.86c-.08.53-.11 1.15-.06 1.81c.21 2.61 1.68 4.39 3.25 5.57m-16.3 3.86c-.07-.82-.39-1.9-1.41-2.86h4.73l-3.3 3.3c0-.14-.01-.29-.02-.44m5.02-9.23c.1.1.21.2.32.3c.6.51 1.53 1.02 2.85 1.02h.17l-3.34 3.34zm-1 4.66l-3.3-3.3c.14 0 .29 0 .44-.01c.82-.07 1.9-.39 2.86-1.41zm-.71.71h-4.66c.1-.1.2-.21.3-.32c.53-.63 1.07-1.61 1.02-3.02zm.71 1.71v4.67c-.1-.1-.21-.2-.32-.3c-.6-.51-1.53-1.02-2.85-1.02h-.17zm1 0l3.3 3.3c-.14 0-.29 0-.44.01c-.82.07-1.9.39-2.86 1.41zm.71-.71h4.67c-.1.1-.2.21-.3.32c-.53.63-1.07 1.61-1.02 3.02zm0-1l3.3-3.3c0 .14 0 .29.01.44c.07.82.39 1.9 1.41 2.86zm.53-9.83c1.99 1.7 4.29 1.92 6.24 1.64l-2.94 2.94c-3.14.88-4.33-1.39-4.54-1.85V4.35c.32.43.73.89 1.24 1.32m-7.81 1.8c2.61-.21 4.39-1.68 5.57-3.25v4.15c-1.6 2.84-4.05 2.08-4.52 1.9L8.14 7.41c.53.07 1.14.11 1.81.06m-4.26 6.79c1.7-1.99 1.92-4.29 1.64-6.24l2.94 2.94c.88 3.13-1.39 4.33-1.85 4.54H4.37c.43-.32.89-.73 1.32-1.24M4.24 16.5h4.15c2.84 1.6 2.08 4.05 1.9 4.52l-2.86 2.86c.08-.53.11-1.15.06-1.81c-.21-2.61-1.68-4.39-3.25-5.57m10.04 9.83c-1.54-1.31-3.27-1.74-4.87-1.74c-.47 0-.93.04-1.37.1l2.94-2.94c3.14-.88 4.33 1.39 4.54 1.85v4.05c-.32-.43-.73-.89-1.24-1.32m7.81-1.8c-2.61.21-4.39 1.68-5.57 3.25v-4.15c1.6-2.84 4.05-2.08 4.52-1.9l2.86 2.86c-.53-.07-1.14-.11-1.81-.06m4.26-6.79c-1.7 1.99-1.92 4.29-1.64 6.24l-2.94-2.94c-.88-3.14 1.39-4.33 1.85-4.54h4.05c-.43.32-.89.73-1.32 1.24" />
+ </svg>
+ );
+}
+
+function Row({
+ icon,
+ label,
+ description,
+ onClick,
+ trailing,
+}: {
+ icon: typeof CandyIcon | ReactElement;
+ label: string;
+ description?: string;
+ onClick: () => void;
+ trailing: ReactNode;
+}) {
+ return (
+ <button
+ type="button"
+ onClick={onClick}
+ className="flex min-h-[calc(64px*var(--ui-space-scale,1))] w-full cursor-pointer items-center gap-4 rounded-2xl px-4 py-2.5 text-left outline-none transition-colors hover:bg-accent focus-visible:bg-accent"
+ >
+ <span className="flex size-10 shrink-0 items-center justify-center rounded-full bg-primary/12 text-primary">
+ {isValidElement(icon) ? (
+ icon
+ ) : (
+ <HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-5" />
+ )}
+ </span>
+ <span className="flex min-w-0 flex-1 flex-col gap-0.5">
+ <span className="font-medium text-ui-14p5 text-foreground">
+ {label}
+ </span>
+ {description && (
+ <span className="text-muted-foreground text-xs">{description}</span>
+ )}
+ </span>
+ <span className="flex w-11 shrink-0 justify-end">{trailing}</span>
+ </button>
+ );
+}
+
+// A chevron's arms carry its weight, so nudge it 1px towards the point to look centred.
+function ArrowBadge() {
+ return (
+ <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground">
+ <HugeiconsIcon
+ icon={ChevronRightStandardIcon}
+ className="size-4 translate-x-px rtl:-translate-x-px rtl:rotate-180"
+ />
+ </span>
+ );
+}
+
+const SWATCH_OVERRIDE: Partial<
+ Record<(typeof HALLOWEEN_THEME_IDS)[number], string>
+> = {
+ "trick-or-treat":
+ "linear-gradient(135deg, #ffc400 28%, #b35cff 68%, color-mix(in srgb, #b35cff 75%, black) 100%)",
+ gothic:
+ "linear-gradient(135deg, #a78bfa 28%, #e0335e 72%, color-mix(in srgb, #e0335e 75%, black) 100%)",
+ candycorn:
+ "linear-gradient(170deg, #fff6e6 12%, #ff8f1f 42%, #ff8f1f 55%, #ffd84a 85%)",
+};
+
+const swatchBackground = (accent: string) =>
+ `linear-gradient(135deg, ${accent} 30%, color-mix(in srgb, ${accent} 55%, black) 100%)`;
+
+function ThemeGrid() {
+ const { palette } = usePalette();
+ return (
+ <div className="grid grid-cols-2 gap-2 sm:grid-cols-3">
+ {HALLOWEEN_THEME_IDS.map((id) => {
+ // The dark accent in both modes: the light ones are deepened for contrast and read muddy.
+ const { name, dark: colors } = COLOR_THEMES[id];
+ const selected = palette === id;
+ return (
+ <button
+ key={id}
+ type="button"
+ data-palette-value={id}
+ aria-pressed={selected}
+ onClick={() => pickHalloweenTheme(id)}
+ className={cn(
+ "flex min-w-0 cursor-pointer items-center gap-2 rounded-full border py-1.5 pr-3 pl-1.5 text-left outline-none transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring",
+ selected ? "border-primary ring-1 ring-primary" : "border-border",
+ )}
+ >
+ <span
+ aria-hidden="true"
+ className="size-7 shrink-0 rounded-full"
+ style={{
+ background:
+ SWATCH_OVERRIDE[id] ?? swatchBackground(colors.accent),
+ }}
+ />
+ <span className="min-w-0 truncate whitespace-nowrap font-medium text-sm">
+ {name}
+ </span>
+ </button>
+ );
+ })}
+ </div>
+ );
+}
+
+export function TrickOrTreatDialog({
+ open,
+ onOpenChange,
+}: {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+}) {
+ const t = useT();
+ const [view, setView] = useState<"home" | "themes">("home");
+ const spookyGreetings = useHalloweenStore((s) => s.spookyGreetings);
+ const setSpookyGreetings = useHalloweenStore((s) => s.setSpookyGreetings);
+ const decorations = useHalloweenStore((s) => s.decorations);
+ const setDecorations = useHalloweenStore((s) => s.setDecorations);
+
+ return (
+ <Dialog
+ open={open}
+ onOpenChange={(next) => {
+ onOpenChange(next);
+ if (!next) {
+ setView("home");
+ }
+ }}
+ >
+ <DialogContent
+ data-testid="trick-or-treat-dialog"
+ className="gap-0 overflow-x-hidden px-0 pt-0 pb-0 sm:max-w-[min(calc(560px*var(--ui-space-scale,1)),calc(100%-2rem))]"
+ >
+ <div className="pointer-events-none absolute inset-x-0 top-0 h-48 bg-[radial-gradient(110%_100%_at_50%_0%,color-mix(in_oklab,var(--primary)_24%,transparent),transparent_70%)]" />
+ {view === "home" && <NightSky />}
+ {view === "home" ? (
+ <div className="relative flex flex-col">
+ <div className="flex flex-col items-center gap-2.5 px-12 pt-10 pb-7 text-center">
+ <span className="mb-1 flex size-14 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-[0_0_32px_-4px_var(--primary)]">
+ <HugeiconsIcon icon={PumpkinIcon} className="size-9" />
+ </span>
+ <DialogTitle className="font-semibold text-2xl tracking-[-0.01em]">
+ {t("halloween.title")}
+ </DialogTitle>
+ <DialogDescription className="max-w-sm text-muted-foreground text-sm">
+ {t("halloween.description")}
+ </DialogDescription>
+ </div>
+ <div className="flex flex-col gap-1 px-6">
+ <Row
+ icon={Moon02Icon}
+ label={t("halloween.chooseTheme")}
+ onClick={() => setView("themes")}
+ trailing={<ArrowBadge />}
+ />
+ <Row
+ icon={SkullIcon}
+ label={t("halloween.spookyGreetings")}
+ description={t("halloween.spookyGreetingsDescription")}
+ onClick={() => setSpookyGreetings(!spookyGreetings)}
+ trailing={
+ <Switch
+ aria-label={t("halloween.spookyGreetings")}
+ checked={spookyGreetings}
+ tabIndex={-1}
+ className="pointer-events-none"
+ />
+ }
+ />
+ <Row
+ icon={<SpiderWebIcon />}
+ label={t("halloween.decorations")}
+ description={t("halloween.decorationsDescription")}
+ onClick={() => setDecorations(!decorations)}
+ trailing={
+ <Switch
+ aria-label={t("halloween.decorations")}
+ checked={decorations}
+ tabIndex={-1}
+ className="pointer-events-none"
+ />
+ }
+ />
+ <Row
+ icon={CandyIcon}
+ label={t("halloween.surprise")}
+ description={t("halloween.surpriseDescription")}
+ onClick={() => {
+ pickRandomHalloweenTheme();
+ setView("themes");
+ }}
+ trailing={<ArrowBadge />}
+ />
+ </div>
+ <p className="px-12 pt-6 pb-10 text-center text-muted-foreground text-xs italic">
+ {t("halloween.footer")}{" "}
+ <button
+ type="button"
+ data-testid="trick-or-treat-remove"
+ onClick={() => {
+ removeHalloween();
+ onOpenChange(false);
+ }}
+ className="cursor-pointer text-primary underline-offset-2 hover:underline focus-visible:underline focus-visible:outline-none"
+ >
+ {t("halloween.removeNow")}
+ </button>
+ </p>
+ </div>
+ ) : (
+ <div className="relative flex flex-col gap-5 px-6 pt-6 pb-7">
+ <div className="flex items-center gap-2 pr-8">
+ <button
+ type="button"
+ aria-label={t("halloween.back")}
+ onClick={() => setView("home")}
+ className="flex size-8 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:outline-none"
+ >
+ <HugeiconsIcon
+ icon={ChevronLeftStandardIcon}
+ className="size-4 -translate-x-px rtl:translate-x-px rtl:rotate-180"
+ />
+ </button>
+ <DialogTitle className="font-semibold text-lg">
+ {t("halloween.themesTitle")}
+ </DialogTitle>
+ <DialogDescription className="sr-only">
+ {t("halloween.description")}
+ </DialogDescription>
+ </div>
+ <ThemeGrid />
+ </div>
+ )}
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/studio/frontend/src/features/halloween/trick-or-treat-settings-row.tsx b/studio/frontend/src/features/halloween/trick-or-treat-settings-row.tsx
new file mode 100644
index 00000000000..2ad1c9a64af
--- /dev/null
+++ b/studio/frontend/src/features/halloween/trick-or-treat-settings-row.tsx
@@ -0,0 +1,33 @@
+// 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 { Switch } from "@/components/ui/switch";
+import { SettingsRow } from "@/features/settings/components/settings-row";
+import { useT } from "@/i18n";
+import {
+ hideTrickOrTreatRow,
+ isHalloweenSeason,
+ showTrickOrTreatRow,
+ useTrickOrTreatVisible,
+} from "./halloween-store";
+
+export function TrickOrTreatSettingsRow() {
+ const t = useT();
+ const inSidebar = useTrickOrTreatVisible();
+ if (!isHalloweenSeason()) return null;
+ return (
+ <SettingsRow
+ label={t("settings.appearance.trickOrTreat.label")}
+ description={t("settings.appearance.trickOrTreat.description")}
+ >
+ <Switch
+ aria-label={t("settings.appearance.trickOrTreat.label")}
+ data-testid="settings-trick-or-treat-sidebar"
+ checked={inSidebar}
+ onCheckedChange={(on) =>
+ on ? showTrickOrTreatRow() : hideTrickOrTreatRow()
+ }
+ />
+ </SettingsRow>
+ );
+}
diff --git a/studio/frontend/src/features/settings/components/color-theme-select.tsx b/studio/frontend/src/features/settings/components/color-theme-select.tsx
index d35f2b1c3ca..477c791f4d4 100644
--- a/studio/frontend/src/features/settings/components/color-theme-select.tsx
+++ b/studio/frontend/src/features/settings/components/color-theme-select.tsx
@@ -16,11 +16,17 @@ import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { Tick02Icon } from "@/lib/tick-icon";
import { cn } from "@/lib/utils";
import { HugeiconsIcon } from "@hugeicons/react";
+import {
+ isHalloweenSeason,
+ pickHalloweenTheme,
+} from "@/features/halloween/halloween-store";
import {
COLOR_THEMES,
FLAVOR_THEME_IDS,
+ HALLOWEEN_THEME_IDS,
type ColorThemeId,
UNSLOTH_THEME_IDS,
+ isHalloweenThemeId,
} from "../lib/color-themes";
import { usePalette, useTheme } from "../stores/theme-store";
@@ -63,7 +69,9 @@ export function ColorThemeSelect() {
const renderItem = (id: ColorThemeId) => (
<DropdownMenuItem
key={id}
- onSelect={() => setPalette(id)}
+ onSelect={() =>
+ isHalloweenThemeId(id) ? pickHalloweenTheme(id) : setPalette(id)
+ }
data-palette-value={id}
aria-checked={palette === id}
role="menuitemradio"
@@ -111,6 +119,21 @@ export function ColorThemeSelect() {
</div>
</DropdownMenuSubContent>
</DropdownMenuSub>
+ {isHalloweenSeason() && (
+ <DropdownMenuSub>
+ <DropdownMenuSubTrigger className="gap-2.5">
+ <ThemeChip colors={null} />
+ <span className="flex-1 whitespace-nowrap">
+ {t("settings.appearance.palette.halloween")}
+ </span>
+ </DropdownMenuSubTrigger>
+ <DropdownMenuSubContent className="flex max-h-[min(--spacing(112),var(--radix-dropdown-menu-content-available-height))] w-56 flex-col">
+ <div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden">
+ {HALLOWEEN_THEME_IDS.map(renderItem)}
+ </div>
+ </DropdownMenuSubContent>
+ </DropdownMenuSub>
+ )}
</DropdownMenuContent>
</DropdownMenu>
);
diff --git a/studio/frontend/src/features/settings/lib/color-themes.ts b/studio/frontend/src/features/settings/lib/color-themes.ts
index a4e62f67335..2ac15fabd73 100644
--- a/studio/frontend/src/features/settings/lib/color-themes.ts
+++ b/studio/frontend/src/features/settings/lib/color-themes.ts
@@ -31,9 +31,24 @@ export const FLAVOR_THEME_IDS = [
"cotton-candy",
] as const;
+export const HALLOWEEN_THEME_IDS = [
+ "pumpkin",
+ "black-cat",
+ "trick-or-treat",
+ "candycorn",
+ "bloody-valentine",
+ "hexberry",
+ "alien",
+ "ghost-ship",
+ "the-thing",
+ "midnight-haunt",
+ "gothic",
+] as const;
+
export const COLOR_THEME_IDS = [
...UNSLOTH_THEME_IDS,
...FLAVOR_THEME_IDS,
+ ...HALLOWEEN_THEME_IDS,
] as const;
export type ColorThemeId = (typeof COLOR_THEME_IDS)[number];
@@ -394,6 +409,171 @@ export const COLOR_THEMES: Record<ColorThemeId, ColorThemeMeta> = {
surface: "#221a29",
},
},
+ pumpkin: {
+ name: "Pumpkin",
+ light: {
+ accent: "#b84800",
+ background: "#fff3e3",
+ foreground: "#3a1a00",
+ surface: "#ffe7c9",
+ },
+ dark: {
+ accent: "#ff7a00",
+ background: "#1f0f02",
+ foreground: "#ffeedd",
+ surface: "#2b1606",
+ },
+ },
+ "trick-or-treat": {
+ name: "Trick or Treat",
+ light: {
+ accent: "#8f5c00",
+ background: "#fffae6",
+ foreground: "#2e1f00",
+ surface: "#fff0c4",
+ },
+ dark: {
+ accent: "#ffc400",
+ background: "#1a0b24",
+ foreground: "#fff4d6",
+ surface: "#251135",
+ },
+ },
+ "bloody-valentine": {
+ name: "Bloody Valentine",
+ light: {
+ accent: "#c4001f",
+ background: "#fff0f2",
+ foreground: "#3a0510",
+ surface: "#ffe0e6",
+ },
+ dark: {
+ accent: "#ff1f43",
+ background: "#1f0307",
+ foreground: "#ffe3e8",
+ surface: "#2c070d",
+ },
+ },
+ alien: {
+ name: "Alien",
+ light: {
+ accent: "#007a33",
+ background: "#eefff4",
+ foreground: "#032a12",
+ surface: "#dafbe6",
+ },
+ dark: {
+ accent: "#00ff6a",
+ background: "#02130a",
+ foreground: "#d6ffe6",
+ surface: "#051e10",
+ },
+ },
+ "ghost-ship": {
+ name: "Ghost Ship",
+ light: {
+ accent: "#00756a",
+ background: "#ecfffb",
+ foreground: "#03302a",
+ surface: "#d4f8f0",
+ },
+ dark: {
+ accent: "#00e5c8",
+ background: "#021716",
+ foreground: "#d9fff8",
+ surface: "#042420",
+ },
+ },
+ "the-thing": {
+ name: "The Thing",
+ light: {
+ accent: "#0062a8",
+ background: "#eef8ff",
+ foreground: "#04233a",
+ surface: "#dcefff",
+ },
+ dark: {
+ accent: "#3dbcff",
+ background: "#04121f",
+ foreground: "#e0f3ff",
+ surface: "#081c2e",
+ },
+ },
+ "midnight-haunt": {
+ name: "Full Moon",
+ light: {
+ accent: "#2f45d6",
+ background: "#f0f3ff",
+ foreground: "#0c1442",
+ surface: "#dfe5ff",
+ },
+ dark: {
+ accent: "#6f86ff",
+ background: "#060a24",
+ foreground: "#e3e8ff",
+ surface: "#0b1236",
+ },
+ },
+ gothic: {
+ name: "Goth",
+ light: {
+ accent: "#5b21b6",
+ background: "#f7f5f7",
+ foreground: "#1c1519",
+ surface: "#ece8ed",
+ },
+ dark: {
+ accent: "#a78bfa",
+ background: "#0b0a0d",
+ foreground: "#f1ecf2",
+ surface: "#141217",
+ },
+ },
+ hexberry: {
+ name: "Hexberry",
+ light: {
+ accent: "#c2187a",
+ background: "#fff2f8",
+ foreground: "#33061f",
+ surface: "#ffe2f0",
+ },
+ dark: {
+ accent: "#ff4fae",
+ background: "#14060f",
+ foreground: "#ffe6f3",
+ surface: "#1f0a18",
+ },
+ },
+ candycorn: {
+ name: "Candycorn",
+ light: {
+ accent: "#b8520a",
+ background: "#fffaf0",
+ foreground: "#2b1a05",
+ surface: "#fff0d6",
+ },
+ dark: {
+ accent: "#ffc72c",
+ background: "#14100a",
+ foreground: "#ffffff",
+ surface: "#1e170d",
+ },
+ },
+ "black-cat": {
+ name: "Coven",
+ light: {
+ accent: "#6a1fd6",
+ background: "#f6f1ff",
+ foreground: "#120a1c",
+ surface: "#ebe0ff",
+ },
+ dark: {
+ accent: "#a259ff",
+ background: "#08060b",
+ foreground: "#f3eaff",
+ surface: "#110d16",
+ },
+ },
};
const COLOR_THEME_ID_SET: ReadonlySet<string> = new Set(COLOR_THEME_IDS);
@@ -401,3 +581,11 @@ const COLOR_THEME_ID_SET: ReadonlySet<string> = new Set(COLOR_THEME_IDS);
export function isColorThemeId(value: unknown): value is ColorThemeId {
return typeof value === "string" && COLOR_THEME_ID_SET.has(value);
}
+
+export type HalloweenThemeId = (typeof HALLOWEEN_THEME_IDS)[number];
+
+const HALLOWEEN_THEME_ID_SET: ReadonlySet<string> = new Set(HALLOWEEN_THEME_IDS);
+
+export function isHalloweenThemeId(value: unknown): value is HalloweenThemeId {
+ return typeof value === "string" && HALLOWEEN_THEME_ID_SET.has(value);
+}
diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.ts
index c61a5411380..06cb2967cbd 100644
--- a/studio/frontend/src/features/settings/settings-search.ts
+++ b/studio/frontend/src/features/settings/settings-search.ts
@@ -60,6 +60,7 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {
appearance: [
"settings.appearance.theme.label",
"settings.appearance.palette.label",
+ "settings.appearance.trickOrTreat.label",
"settings.appearance.custom.colors.accent",
"settings.appearance.custom.colors.background",
"settings.appearance.custom.colors.foreground",
diff --git a/studio/frontend/src/features/settings/stores/theme-store.ts b/studio/frontend/src/features/settings/stores/theme-store.ts
index bbe3ad290e9..cabc735a94e 100644
--- a/studio/frontend/src/features/settings/stores/theme-store.ts
+++ b/studio/frontend/src/features/settings/stores/theme-store.ts
@@ -6,7 +6,7 @@ import {
COLOR_THEME_IDS,
type ColorThemeId,
isColorThemeId,
-} from "../lib/color-themes";
+} from "../lib/color-themes.ts";
export type Theme = "light" | "dark" | "system";
export type ResolvedTheme = "light" | "dark";
@@ -179,6 +179,10 @@ function getPaletteServerSnapshot(): Palette {
return "standard";
}
+export function getPalette(): Palette {
+ return currentPalette;
+}
+
export function setPalette(next: Palette): void {
if (typeof window === "undefined") return;
currentPalette = next;
diff --git a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx b/studio/frontend/src/features/settings/tabs/appearance-tab.tsx
index 55ebb5feab1..932edc4ccb6 100644
--- a/studio/frontend/src/features/settings/tabs/appearance-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/appearance-tab.tsx
@@ -4,6 +4,7 @@
import { useEffect, useRef } from "react";
import { Switch } from "@/components/ui/switch";
import { useSidebarPin } from "@/hooks/use-sidebar-pin";
+import { TrickOrTreatSettingsRow } from "@/features/halloween/trick-or-treat-settings-row";
import { useT } from "@/i18n";
import {
ActiveColorControl,
@@ -70,6 +71,7 @@ export function AppearanceTab() {
<SettingsRow label={t("settings.appearance.palette.label")}>
<ColorThemeSelect />
</SettingsRow>
+ <TrickOrTreatSettingsRow />
<SettingsRow label={t("settings.appearance.custom.colors.accent")}>
<ActiveColorControl
colorKey="accent"
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index efee8b84ad4..703b5f00c2d 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -629,6 +629,37 @@ export const ar = {
compactEmpty: "لا يوجد ما يمكن ضغطه بعد",
compactUnsupported: "ضغط المحادثة يتطلب نموذج GGUF أو MLX يدعم الأدوات",
},
+ halloween: {
+ navLabel: "حلوى أم خدعة…",
+ title: "حلوى أم خدعة?!",
+ description:
+ "حضّرنا بعض المفاجآت المخيفة لـ Unsloth، وستبقى حتى نهاية أكتوبر.",
+ chooseTheme: "اختر سمة مخيفة",
+ spookyGreetings: "تحيات مخيفة",
+ spookyGreetingsDescription: "يستقبل الكسلان المحادثات الجديدة بإخافة.",
+ decorations: "عناكب وخفافيش",
+ decorationsDescription:
+ "شباك عنكبوت في الزوايا، وعنكبوت أو خفاش بين حين وآخر مع سمة الهالوين.",
+ surprise: "حلوى أم خدعة!",
+ surpriseDescription: "دع الكسلان يختار سمة لك.",
+ themesTitle: "سمات مخيفة",
+ back: "رجوع",
+ footer: "يعود Unsloth إلى طبيعته عند منتصف ليل 1 نوفمبر.",
+ removeNow: "إزالة الآن",
+ hideFromSidebar: "إخفاء من الشريط الجانبي",
+ greeting: {
+ pumpkins: "نُحتت اليقطينات. ما التالي؟",
+ brewing: "هيا نحضّر الجرعة",
+ trickOrTreat: "حلوى أم خدعة؟",
+ manor: "مرحبًا بك في القصر",
+ manorName: "مرحبًا بك في القصر يا {name}",
+ happyHalloween: "هالوين سعيد",
+ happyHalloweenName: "هالوين سعيد يا {name}",
+ spirits: "الأرواح تُصغي…",
+ mysteries: "ما الأسرار التي سنكشفها الليلة؟",
+ conjure: "ماذا أستحضر لك؟",
+ },
+ },
welcome: {
goodToSeeYou: "سعيد برؤيتك",
goodToSeeYouName: "سعيد برؤيتك يا {name}",
@@ -2186,6 +2217,12 @@ export const ar = {
classic: "كلاسيكية",
minimal: "بسيطة",
moreThemes: "المزيد من السمات",
+ halloween: "هالوين",
+ },
+ trickOrTreat: {
+ label: "حلوى أم خدعة",
+ description:
+ "سمات الهالوين وتحيات مخيفة حتى 1 نوفمبر.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index 54796bdf5d7..5855d813c8f 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -629,6 +629,38 @@ export const de = {
compactEmpty: "Noch nichts zu komprimieren",
compactUnsupported: "Die Komprimierung erfordert ein GGUF- oder MLX-Modell mit Tool-Unterstützung",
},
+ halloween: {
+ navLabel: "Süßes oder Saures…",
+ title: "Süßes oder Saures?!",
+ description:
+ "Für Unsloth haben wir ein paar Schauer zusammengebraut, noch bis Ende Oktober.",
+ chooseTheme: "Schauriges Design auswählen",
+ spookyGreetings: "Gruselige Begrüßungen",
+ spookyGreetingsDescription:
+ "Das Faultier begrüßt neue Chats mit einem Schreck.",
+ decorations: "Spinnen und Fledermäuse",
+ decorationsDescription:
+ "Spinnweben in den Ecken und ab und zu eine Spinne oder Fledermaus bei einem Halloween-Design.",
+ surprise: "Süßes oder Saures!",
+ surpriseDescription: "Das Faultier sucht ein Design für dich aus.",
+ themesTitle: "Schaurige Designs",
+ back: "Zurück",
+ footer: "Unsloth wird am 1. November um Mitternacht wieder normal.",
+ removeNow: "Jetzt entfernen",
+ hideFromSidebar: "Aus der Seitenleiste ausblenden",
+ greeting: {
+ pumpkins: "Die Kürbisse sind geschnitzt. Was kommt als Nächstes?",
+ brewing: "Lass uns was zusammenbrauen",
+ trickOrTreat: "Süßes oder Saures?",
+ manor: "Willkommen im Herrenhaus",
+ manorName: "Willkommen im Herrenhaus, {name}",
+ happyHalloween: "Fröhliches Halloween",
+ happyHalloweenName: "Fröhliches Halloween, {name}",
+ spirits: "Die Geister hören zu…",
+ mysteries: "Welche Geheimnisse lüften wir heute Nacht?",
+ conjure: "Was darf ich für dich herbeizaubern?",
+ },
+ },
welcome: {
goodToSeeYou: "Schön, dich zu sehen",
goodToSeeYouName: "Schön, dich zu sehen, {name}",
@@ -2215,6 +2247,12 @@ export const de = {
classic: "Klassisch",
minimal: "Minimal",
moreThemes: "Weitere Designs",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Süßes oder Saures",
+ description:
+ "Halloween-Designs und gruselige Begrüßungen, bis zum 1. November.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 2cc4fd70ed8..3b217511811 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -682,6 +682,38 @@ export const en = {
compactEmpty: "Nothing to compact yet",
compactUnsupported: "Compaction requires a GGUF or MLX model with tool support",
},
+ // The sidebar's October "Trick or treat" row, its dialog, and the spooky chat greetings.
+ halloween: {
+ navLabel: "Trick or treat…",
+ title: "Trick or Treat?!",
+ description:
+ "We’ve been brewing a few frights for Unsloth, here for the rest of October.",
+ chooseTheme: "Choose a frightful theme",
+ spookyGreetings: "Spooky greetings",
+ spookyGreetingsDescription: "The sloth greets new chats with a scare.",
+ decorations: "Spiders and bats",
+ decorationsDescription:
+ "Webs, plus the odd spider or bat.",
+ surprise: "Trick or treat!",
+ surpriseDescription: "Let the sloth pick a theme for you.",
+ themesTitle: "Frightful themes",
+ back: "Back",
+ footer: "Unsloth returns to normal at midnight on November 1.",
+ removeNow: "Remove now",
+ hideFromSidebar: "Hide from sidebar",
+ greeting: {
+ pumpkins: "The pumpkins are carved. What’s next?",
+ brewing: "Let’s get brewing",
+ trickOrTreat: "Trick or treat?",
+ manor: "Welcome to the manor",
+ manorName: "Welcome to the manor, {name}",
+ happyHalloween: "Happy Halloween",
+ happyHalloweenName: "Happy Halloween, {name}",
+ spirits: "The spirits are listening…",
+ mysteries: "What mysteries shall we uncover tonight?",
+ conjure: "What can I conjure up for you?",
+ },
+ },
// The empty chat's greeting; {name} is the user's nickname or first name.
welcome: {
goodToSeeYou: "Good to see you",
@@ -2249,6 +2281,12 @@ export const en = {
classic: "Classic",
minimal: "Minimal",
moreThemes: "More themes",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Trick or treat",
+ description:
+ "Halloween themes and spooky greetings, until November 1.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index b6bb6835897..335cae76b94 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -629,6 +629,38 @@ export const es = {
compactEmpty: "Aún no hay nada que compactar",
compactUnsupported: "La compactación requiere un modelo GGUF o MLX compatible con herramientas",
},
+ halloween: {
+ navLabel: "Truco o trato…",
+ title: "¡¿Truco o trato?!",
+ description:
+ "Hemos preparado algunos sustos para Unsloth, disponibles hasta finales de octubre.",
+ chooseTheme: "Elige un tema terrorífico",
+ spookyGreetings: "Saludos terroríficos",
+ spookyGreetingsDescription:
+ "El perezoso recibe los chats nuevos con un susto.",
+ decorations: "Arañas y murciélagos",
+ decorationsDescription:
+ "Telarañas en las esquinas y alguna araña o murciélago de vez en cuando con un tema de Halloween.",
+ surprise: "¡Truco o trato!",
+ surpriseDescription: "Deja que el perezoso elija un tema por ti.",
+ themesTitle: "Temas terroríficos",
+ back: "Atrás",
+ footer: "Unsloth vuelve a la normalidad a medianoche del 1 de noviembre.",
+ removeNow: "Quitar ahora",
+ hideFromSidebar: "Ocultar de la barra lateral",
+ greeting: {
+ pumpkins: "Las calabazas ya están talladas. ¿Qué sigue?",
+ brewing: "¡A preparar la poción!",
+ trickOrTreat: "¿Truco o trato?",
+ manor: "Te damos la bienvenida a la mansión",
+ manorName: "Te damos la bienvenida a la mansión, {name}",
+ happyHalloween: "¡Feliz Halloween!",
+ happyHalloweenName: "¡Feliz Halloween, {name}!",
+ spirits: "Los espíritus están escuchando…",
+ mysteries: "¿Qué misterios descubriremos esta noche?",
+ conjure: "¿Qué puedo conjurar para ti?",
+ },
+ },
welcome: {
goodToSeeYou: "Me alegra verte",
goodToSeeYouName: "Me alegra verte, {name}",
@@ -2210,6 +2242,12 @@ export const es = {
classic: "Clásica",
minimal: "Minimalista",
moreThemes: "Más temas",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Truco o trato",
+ description:
+ "Temas de Halloween y saludos terroríficos, hasta el 1 de noviembre.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 67ceddfd9b6..6d96970920e 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -629,6 +629,38 @@ export const fr = {
compactEmpty: "Rien à compacter pour le moment",
compactUnsupported: "Le compactage nécessite un modèle GGUF ou MLX prenant en charge les outils",
},
+ halloween: {
+ navLabel: "Un bonbon ou un sort…",
+ title: "Un bonbon ou un sort ?!",
+ description:
+ "Nous avons concocté quelques frayeurs pour Unsloth, jusqu’à la fin d’octobre.",
+ chooseTheme: "Choisissez un thème effrayant",
+ spookyGreetings: "Salutations effrayantes",
+ spookyGreetingsDescription:
+ "Le paresseux accueille les nouvelles discussions avec une frayeur.",
+ decorations: "Araignées et chauves-souris",
+ decorationsDescription:
+ "Des toiles dans les coins, et de temps en temps une araignée ou une chauve-souris avec un thème d’Halloween.",
+ surprise: "Un bonbon ou un sort !",
+ surpriseDescription: "Laissez le paresseux choisir un thème pour vous.",
+ themesTitle: "Thèmes effrayants",
+ back: "Retour",
+ footer: "Unsloth redevient normal à minuit le 1er novembre.",
+ removeNow: "Retirer maintenant",
+ hideFromSidebar: "Masquer de la barre latérale",
+ greeting: {
+ pumpkins: "Les citrouilles sont sculptées. Et ensuite ?",
+ brewing: "Préparons la potion",
+ trickOrTreat: "Un bonbon ou un sort ?",
+ manor: "Bienvenue au manoir",
+ manorName: "Bienvenue au manoir, {name}",
+ happyHalloween: "Joyeux Halloween",
+ happyHalloweenName: "Joyeux Halloween, {name}",
+ spirits: "Les esprits écoutent…",
+ mysteries: "Quels mystères allons-nous percer ce soir ?",
+ conjure: "Que puis-je faire apparaître pour vous ?",
+ },
+ },
welcome: {
goodToSeeYou: "Ravi de vous voir",
goodToSeeYouName: "Ravi de vous voir, {name}",
@@ -2214,6 +2246,12 @@ export const fr = {
classic: "Classique",
minimal: "Minimale",
moreThemes: "Plus de thèmes",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Un bonbon ou un sort",
+ description:
+ "Thèmes d’Halloween et salutations effrayantes, jusqu’au 1er novembre.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 23bde6dda92..f4839bf6794 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -716,6 +716,36 @@ export const he = {
compactEmpty: "אין עדיין מה לכווץ",
compactUnsupported: "כיווץ שיחה דורש מודל GGUF או MLX עם תמיכה בכלים",
},
+ halloween: {
+ navLabel: "ממתק או תעלול…",
+ title: "ממתק או תעלול?!",
+ description: "רקחנו כמה הפחדות בשביל Unsloth, כאן עד סוף אוקטובר.",
+ chooseTheme: "בחירת ערכת נושא מפחידה",
+ spookyGreetings: "ברכות מפחידות",
+ spookyGreetingsDescription: "העצלן מקבל שיחות חדשות בהפחדה.",
+ decorations: "עכבישים ועטלפים",
+ decorationsDescription:
+ "קורי עכביש בפינות, ומדי פעם עכביש או עטלף בערכת נושא של ליל כל הקדושים.",
+ surprise: "ממתק או תעלול!",
+ surpriseDescription: "העצלן יבחר בשבילך ערכת נושא.",
+ themesTitle: "ערכות נושא מפחידות",
+ back: "חזרה",
+ footer: "Unsloth יחזור לרגיל בחצות של 1 בנובמבר.",
+ removeNow: "הסרה עכשיו",
+ hideFromSidebar: "הסתרה מסרגל הצד",
+ greeting: {
+ pumpkins: "הדלעות כבר מגולפות. מה הלאה?",
+ brewing: "בואו נרקח משהו",
+ trickOrTreat: "ממתק או תעלול?",
+ manor: "ברוכים הבאים לאחוזה",
+ manorName: "ברוכים הבאים לאחוזה, {name}",
+ happyHalloween: "ליל כל הקדושים שמח",
+ happyHalloweenName: "ליל כל הקדושים שמח, {name}",
+ spirits: "הרוחות מקשיבות…",
+ mysteries: "אילו תעלומות נגלה הלילה?",
+ conjure: "מה אוכל לכשף בשבילך?",
+ },
+ },
welcome: {
goodToSeeYou: "טוב לראות אותך",
goodToSeeYouName: "טוב לראות אותך, {name}",
@@ -2291,6 +2321,12 @@ export const he = {
classic: "קלאסית",
minimal: "מינימלית",
moreThemes: "ערכות נושא נוספות",
+ halloween: "האלווין",
+ },
+ trickOrTreat: {
+ label: "ממתק או תעלול",
+ description:
+ "ערכות נושא של ליל כל הקדושים וברכות מפחידות, עד 1 בנובמבר.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 73f26b8e38d..12b26026a6e 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -629,6 +629,37 @@ export const hi = {
compactEmpty: "अभी कॉम्पैक्ट करने के लिए कुछ नहीं है",
compactUnsupported: "कॉम्पैक्शन के लिए टूल सपोर्ट वाला GGUF या MLX मॉडल आवश्यक है",
},
+ halloween: {
+ navLabel: "ट्रिक या ट्रीट…",
+ title: "ट्रिक या ट्रीट?!",
+ description:
+ "हमने Unsloth के लिए कुछ डरावनी चीज़ें तैयार की हैं, जो अक्टूबर के अंत तक रहेंगी।",
+ chooseTheme: "एक डरावनी थीम चुनें",
+ spookyGreetings: "डरावने अभिवादन",
+ spookyGreetingsDescription: "स्लॉथ नई चैट का स्वागत एक डर के साथ करता है।",
+ decorations: "मकड़ियाँ और चमगादड़",
+ decorationsDescription:
+ "हैलोवीन थीम पर कोनों में जाले, और कभी-कभी कोई मकड़ी या चमगादड़।",
+ surprise: "ट्रिक या ट्रीट!",
+ surpriseDescription: "स्लॉथ को आपके लिए थीम चुनने दें।",
+ themesTitle: "डरावनी थीम",
+ back: "वापस",
+ footer: "Unsloth 1 नवंबर की आधी रात को सामान्य हो जाएगा।",
+ removeNow: "अभी हटाएँ",
+ hideFromSidebar: "साइडबार से छिपाएं",
+ greeting: {
+ pumpkins: "कद्दू तराशे जा चुके हैं। आगे क्या?",
+ brewing: "चलो, कुछ जादू घोलें",
+ trickOrTreat: "ट्रिक या ट्रीट?",
+ manor: "हवेली में आपका स्वागत है",
+ manorName: "{name}, हवेली में आपका स्वागत है",
+ happyHalloween: "हैप्पी हैलोवीन",
+ happyHalloweenName: "हैप्पी हैलोवीन, {name}",
+ spirits: "आत्माएँ सुन रही हैं…",
+ mysteries: "आज रात हम कौन-से रहस्य खोलेंगे?",
+ conjure: "मैं आपके लिए क्या जादू करूँ?",
+ },
+ },
welcome: {
goodToSeeYou: "आपको देखकर अच्छा लगा",
goodToSeeYouName: "{name}, आपको देखकर अच्छा लगा",
@@ -2192,6 +2223,12 @@ export const hi = {
classic: "क्लासिक",
minimal: "मिनिमल",
moreThemes: "और थीम",
+ halloween: "हैलोवीन",
+ },
+ trickOrTreat: {
+ label: "ट्रिक या ट्रीट",
+ description:
+ "1 नवंबर तक हैलोवीन थीम और डरावने अभिवादन।",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index a11e76bbed2..6c9a827188d 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -2117,6 +2117,12 @@ export const it = {
classic: "Classica",
minimal: "Minimale",
moreThemes: "Altri temi",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Dolcetto o scherzetto",
+ description:
+ "Temi di Halloween e saluti spaventosi, fino al 1° novembre.",
},
custom: {
chatWidth: {
@@ -3419,6 +3425,38 @@ export const it = {
compactEmpty: "Ancora niente da compattare",
compactUnsupported: "La compattazione richiede un modello GGUF o MLX con supporto per gli strumenti",
},
+ halloween: {
+ navLabel: "Dolcetto o scherzetto…",
+ title: "Dolcetto o scherzetto?!",
+ description:
+ "Abbiamo preparato qualche spavento per Unsloth, fino alla fine di ottobre.",
+ chooseTheme: "Scegli un tema da brivido",
+ spookyGreetings: "Saluti da brivido",
+ spookyGreetingsDescription:
+ "Il bradipo accoglie le nuove chat con uno spavento.",
+ decorations: "Ragni e pipistrelli",
+ decorationsDescription:
+ "Ragnatele negli angoli e ogni tanto un ragno o un pipistrello con un tema di Halloween.",
+ surprise: "Dolcetto o scherzetto!",
+ surpriseDescription: "Lascia che il bradipo scelga un tema per te.",
+ themesTitle: "Temi da brivido",
+ back: "Indietro",
+ footer: "Unsloth torna alla normalità alla mezzanotte del 1° novembre.",
+ removeNow: "Rimuovi ora",
+ hideFromSidebar: "Nascondi dalla barra laterale",
+ greeting: {
+ pumpkins: "Le zucche sono intagliate. E adesso?",
+ brewing: "Prepariamo la pozione",
+ trickOrTreat: "Dolcetto o scherzetto?",
+ manor: "Ti diamo il benvenuto nel maniero",
+ manorName: "Ti diamo il benvenuto nel maniero, {name}",
+ happyHalloween: "Buon Halloween",
+ happyHalloweenName: "Buon Halloween, {name}",
+ spirits: "Gli spiriti ci ascoltano…",
+ mysteries: "Quali misteri sveleremo stanotte?",
+ conjure: "Cosa posso evocare per te?",
+ },
+ },
welcome: {
goodToSeeYou: "Che piacere vederti",
goodToSeeYouName: "Che piacere vederti, {name}",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 04826f50e32..ff2c752c511 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -630,6 +630,36 @@ export const ja = {
compactEmpty: "まだ圧縮する内容がありません",
compactUnsupported: "会話の圧縮にはツール対応のGGUFまたはMLXモデルが必要です",
},
+ halloween: {
+ navLabel: "トリック・オア・トリート…",
+ title: "トリック・オア・トリート?!",
+ description: "Unslothに少しだけ怖い仕掛けを用意しました。10月いっぱいお楽しみください。",
+ chooseTheme: "怖いテーマを選ぶ",
+ spookyGreetings: "怖いあいさつ",
+ spookyGreetingsDescription: "新しいチャットでナマケモノが驚かせます。",
+ decorations: "クモとコウモリ",
+ decorationsDescription:
+ "ハロウィンテーマの間、隅にクモの巣が張られ、ときどきクモやコウモリが現れます。",
+ surprise: "トリック・オア・トリート!",
+ surpriseDescription: "ナマケモノにテーマを選んでもらいましょう。",
+ themesTitle: "怖いテーマ",
+ back: "戻る",
+ footer: "Unslothは11月1日の午前0時に元に戻ります。",
+ removeNow: "今すぐ解除",
+ hideFromSidebar: "サイドバーから非表示",
+ greeting: {
+ pumpkins: "かぼちゃのランタンができました。次は何をしましょう?",
+ brewing: "さあ、魔法の薬を作ろう",
+ trickOrTreat: "トリック・オア・トリート?",
+ manor: "屋敷へようこそ",
+ manorName: "{name}さん、屋敷へようこそ",
+ happyHalloween: "ハッピーハロウィン",
+ happyHalloweenName: "{name}さん、ハッピーハロウィン",
+ spirits: "精霊たちが耳を澄ませています…",
+ mysteries: "今夜はどんな謎を解き明かしましょう?",
+ conjure: "どんな魔法をかけましょうか?",
+ },
+ },
welcome: {
goodToSeeYou: "お会いできてうれしいです",
goodToSeeYouName: "{name}さん、お会いできてうれしいです",
@@ -2169,6 +2199,12 @@ export const ja = {
classic: "クラシック",
minimal: "ミニマル",
moreThemes: "その他のテーマ",
+ halloween: "ハロウィン",
+ },
+ trickOrTreat: {
+ label: "トリック・オア・トリート",
+ description:
+ "11月1日まで、ハロウィンのテーマと怖いあいさつを楽しめます。",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index eada14ae25c..e1bb1b4e249 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -629,6 +629,36 @@ export const ko = {
compactEmpty: "아직 압축할 내용이 없습니다",
compactUnsupported: "대화 압축에는 도구를 지원하는 GGUF 또는 MLX 모델이 필요합니다",
},
+ halloween: {
+ navLabel: "트릭 오어 트릿…",
+ title: "트릭 오어 트릿?!",
+ description: "Unsloth를 위해 오싹한 깜짝 선물을 준비했어요. 10월 말까지 만나 보세요.",
+ chooseTheme: "오싹한 테마 선택",
+ spookyGreetings: "오싹한 인사말",
+ spookyGreetingsDescription: "새 채팅을 시작하면 나무늘보가 깜짝 놀래 줘요.",
+ decorations: "거미와 박쥐",
+ decorationsDescription:
+ "할로윈 테마에서 모서리에 거미줄이 생기고, 가끔 거미나 박쥐가 나타납니다.",
+ surprise: "트릭 오어 트릿!",
+ surpriseDescription: "나무늘보가 테마를 골라 드려요.",
+ themesTitle: "오싹한 테마",
+ back: "뒤로",
+ footer: "Unsloth는 11월 1일 자정에 원래대로 돌아가요.",
+ removeNow: "지금 제거",
+ hideFromSidebar: "사이드바에서 숨기기",
+ greeting: {
+ pumpkins: "호박 조각이 끝났어요. 다음은 뭘까요?",
+ brewing: "자, 마법의 물약을 만들어 볼까요",
+ trickOrTreat: "트릭 오어 트릿?",
+ manor: "저택에 오신 것을 환영해요",
+ manorName: "{name}님, 저택에 오신 것을 환영해요",
+ happyHalloween: "해피 핼러윈",
+ happyHalloweenName: "{name}님, 해피 핼러윈",
+ spirits: "영혼들이 듣고 있어요…",
+ mysteries: "오늘 밤엔 어떤 비밀을 밝혀볼까요?",
+ conjure: "무엇을 마법으로 불러낼까요?",
+ },
+ },
welcome: {
goodToSeeYou: "반가워요",
goodToSeeYouName: "{name}님, 반가워요",
@@ -2180,6 +2210,12 @@ export const ko = {
classic: "클래식",
minimal: "미니멀",
moreThemes: "더 많은 테마",
+ halloween: "할로윈",
+ },
+ trickOrTreat: {
+ label: "트릭 오어 트릿",
+ description:
+ "11월 1일까지 핼러윈 테마와 으스스한 인사말을 즐겨 보세요.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 44ca54b788f..81d467fa911 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -629,6 +629,38 @@ export const ptBR = {
compactEmpty: "Ainda não há nada para compactar",
compactUnsupported: "A compactação requer um modelo GGUF ou MLX com suporte a ferramentas",
},
+ halloween: {
+ navLabel: "Doces ou travessuras…",
+ title: "Doces ou travessuras?!",
+ description:
+ "Preparamos alguns sustos para o Unsloth, disponíveis até o fim de outubro.",
+ chooseTheme: "Escolha um tema assustador",
+ spookyGreetings: "Saudações assustadoras",
+ spookyGreetingsDescription:
+ "A preguiça recebe os novos chats com um susto.",
+ decorations: "Aranhas e morcegos",
+ decorationsDescription:
+ "Teias nos cantos e, de vez em quando, uma aranha ou um morcego com um tema de Halloween.",
+ surprise: "Doces ou travessuras!",
+ surpriseDescription: "Deixe a preguiça escolher um tema para você.",
+ themesTitle: "Temas assustadores",
+ back: "Voltar",
+ footer: "O Unsloth volta ao normal à meia-noite de 1º de novembro.",
+ removeNow: "Remover agora",
+ hideFromSidebar: "Ocultar da barra lateral",
+ greeting: {
+ pumpkins: "As abóboras estão esculpidas. E agora?",
+ brewing: "Vamos preparar a poção",
+ trickOrTreat: "Doces ou travessuras?",
+ manor: "Boas-vindas à mansão",
+ manorName: "Boas-vindas à mansão, {name}",
+ happyHalloween: "Feliz Halloween",
+ happyHalloweenName: "Feliz Halloween, {name}",
+ spirits: "Os espíritos estão ouvindo…",
+ mysteries: "Que mistérios vamos desvendar esta noite?",
+ conjure: "O que posso conjurar para você?",
+ },
+ },
welcome: {
goodToSeeYou: "Que bom ver você",
goodToSeeYouName: "Que bom ver você, {name}",
@@ -2202,6 +2234,12 @@ export const ptBR = {
classic: "Clássico",
minimal: "Minimalista",
moreThemes: "Mais temas",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Doces ou travessuras",
+ description:
+ "Temas de Halloween e saudações assustadoras, até 1º de novembro.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 9225e73d965..fba1d660a73 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -629,6 +629,37 @@ export const ru = {
compactEmpty: "Пока нечего сжимать",
compactUnsupported: "Для сжатия нужна модель GGUF или MLX с поддержкой инструментов",
},
+ halloween: {
+ navLabel: "Сладость или гадость…",
+ title: "Сладость или гадость?!",
+ description:
+ "Мы приготовили для Unsloth немного страшилок до конца октября.",
+ chooseTheme: "Выберите жуткую тему",
+ spookyGreetings: "Жуткие приветствия",
+ spookyGreetingsDescription: "Ленивец встречает новые чаты страшилкой.",
+ decorations: "Пауки и летучие мыши",
+ decorationsDescription:
+ "Паутина по углам, а иногда паук или летучая мышь с темой Хэллоуина.",
+ surprise: "Сладость или гадость!",
+ surpriseDescription: "Пусть ленивец выберет тему за вас.",
+ themesTitle: "Жуткие темы",
+ back: "Назад",
+ footer: "Unsloth вернётся к обычному виду в полночь 1 ноября.",
+ removeNow: "Убрать сейчас",
+ hideFromSidebar: "Скрыть с боковой панели",
+ greeting: {
+ pumpkins: "Тыквы вырезаны. Что дальше?",
+ brewing: "Пора варить зелье",
+ trickOrTreat: "Сладость или гадость?",
+ manor: "Добро пожаловать в особняк",
+ manorName: "Добро пожаловать в особняк, {name}",
+ happyHalloween: "С Хэллоуином",
+ happyHalloweenName: "С Хэллоуином, {name}",
+ spirits: "Духи слушают…",
+ mysteries: "Какие тайны мы раскроем этой ночью?",
+ conjure: "Что мне наколдовать для вас?",
+ },
+ },
welcome: {
goodToSeeYou: "Рады вас видеть",
goodToSeeYouName: "Рады вас видеть, {name}",
@@ -2196,6 +2227,12 @@ export const ru = {
classic: "Классическая",
minimal: "Минималистичная",
moreThemes: "Другие темы",
+ halloween: "Хеллоуин",
+ },
+ trickOrTreat: {
+ label: "Сладость или гадость",
+ description:
+ "Темы Хэллоуина и жуткие приветствия до 1 ноября.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 1c9ac14d7e4..abf98546526 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -732,6 +732,38 @@ export const sv = {
compactEmpty: "Inget att komprimera än",
compactUnsupported: "Komprimering kräver en GGUF- eller MLX-modell med verktygsstöd",
},
+ halloween: {
+ navLabel: "Bus eller godis…",
+ title: "Bus eller godis?!",
+ description:
+ "Vi har bryggt ihop lite skräck för Unsloth, här resten av oktober.",
+ chooseTheme: "Välj ett läskigt tema",
+ spookyGreetings: "Läskiga hälsningar",
+ spookyGreetingsDescription:
+ "Sengångaren hälsar nya chattar med en liten skräck.",
+ decorations: "Spindlar och fladdermöss",
+ decorationsDescription:
+ "Spindelnät i hörnen och då och då en spindel eller fladdermus med ett halloweentema.",
+ surprise: "Bus eller godis!",
+ surpriseDescription: "Låt sengångaren välja ett tema åt dig.",
+ themesTitle: "Läskiga teman",
+ back: "Tillbaka",
+ footer: "Unsloth återgår till det normala vid midnatt den 1 november.",
+ removeNow: "Ta bort nu",
+ hideFromSidebar: "Dölj från sidofältet",
+ greeting: {
+ pumpkins: "Pumporna är snidade. Vad händer nu?",
+ brewing: "Dags att brygga",
+ trickOrTreat: "Bus eller godis?",
+ manor: "Välkommen till herrgården",
+ manorName: "Välkommen till herrgården, {name}",
+ happyHalloween: "Glad halloween",
+ happyHalloweenName: "Glad halloween, {name}",
+ spirits: "Andarna lyssnar…",
+ mysteries: "Vilka mysterier ska vi avslöja i natt?",
+ conjure: "Vad kan jag trolla fram åt dig?",
+ },
+ },
welcome: {
goodToSeeYou: "Kul att se dig",
goodToSeeYouName: "Kul att se dig, {name}",
@@ -2362,6 +2394,12 @@ export const sv = {
classic: "Klassisk",
minimal: "Minimal",
moreThemes: "Fler teman",
+ halloween: "Halloween",
+ },
+ trickOrTreat: {
+ label: "Bus eller godis",
+ description:
+ "Halloweenteman och kusliga hälsningar, till 1 november.",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 82280b19733..a5b3383cce0 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -629,6 +629,36 @@ export const zhCN = {
compactEmpty: "暂无可压缩的内容",
compactUnsupported: "对话压缩需要支持工具调用的 GGUF 或 MLX 模型",
},
+ halloween: {
+ navLabel: "不给糖就捣蛋…",
+ title: "不给糖就捣蛋?!",
+ description: "我们为 Unsloth 准备了一些惊吓,持续到十月底。",
+ chooseTheme: "选择一个惊悚主题",
+ spookyGreetings: "惊悚问候",
+ spookyGreetingsDescription: "树懒会在新对话中吓你一跳。",
+ decorations: "蜘蛛和蝙蝠",
+ decorationsDescription:
+ "使用万圣节主题时,角落会有蛛网,偶尔还会出现蜘蛛或蝙蝠。",
+ surprise: "不给糖就捣蛋!",
+ surpriseDescription: "让树懒为你挑选主题。",
+ themesTitle: "惊悚主题",
+ back: "返回",
+ footer: "Unsloth 将于 11 月 1 日零点恢复正常。",
+ removeNow: "立即移除",
+ hideFromSidebar: "从侧边栏隐藏",
+ greeting: {
+ pumpkins: "南瓜灯已经刻好了。接下来做什么?",
+ brewing: "开始熬制魔药吧",
+ trickOrTreat: "不给糖就捣蛋?",
+ manor: "欢迎来到古宅",
+ manorName: "{name},欢迎来到古宅",
+ happyHalloween: "万圣节快乐",
+ happyHalloweenName: "{name},万圣节快乐",
+ spirits: "幽灵们正在聆听……",
+ mysteries: "今晚我们要揭开什么谜团?",
+ conjure: "想让我为你变出什么?",
+ },
+ },
welcome: {
goodToSeeYou: "很高兴见到你",
goodToSeeYouName: "很高兴见到你,{name}",
@@ -2170,6 +2200,12 @@ export const zhCN = {
classic: "经典",
minimal: "极简",
moreThemes: "更多主题",
+ halloween: "万圣节",
+ },
+ trickOrTreat: {
+ label: "不给糖就捣蛋",
+ description:
+ "万圣节主题和惊悚问候,持续到 11 月 1 日。",
},
custom: {
chatWidth: {
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 26e36b5a534..417aa652f91 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -683,7 +683,7 @@
Flavor themes (Theme > More themes). Each sets --th-* seeds per mode; the
block below maps them onto the --*-base tokens, so contrast and custom
colors still apply. */
-:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"])[data-palette] {
+:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"], [data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="the-thing"], [data-palette="alien"], [data-palette="gothic"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="ghost-ship"], [data-palette="midnight-haunt"], [data-palette="hexberry"], [data-palette="candycorn"])[data-palette] {
--background: var(--th-bg);
--foreground-base: var(--th-fg);
--action-base: var(--foreground);
@@ -733,17 +733,17 @@
}
/* Attribute specificity only, so html[data-contrast-adjust] still wins. */
-[data-palette]:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"]) {
+[data-palette]:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"], [data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="the-thing"], [data-palette="alien"], [data-palette="gothic"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="ghost-ship"], [data-palette="midnight-haunt"], [data-palette="hexberry"], [data-palette="candycorn"]) {
--muted-foreground: var(--th-muted);
}
-:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"])[data-palette].dark
+:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"], [data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="the-thing"], [data-palette="alien"], [data-palette="gothic"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="ghost-ship"], [data-palette="midnight-haunt"], [data-palette="hexberry"], [data-palette="candycorn"])[data-palette].dark
:is(.chat-composer-surface, .unsloth-composer-surface, .unsloth-files-panel) {
background-color: color-mix(in srgb, var(--card), var(--th-fg) 4%);
}
/* Collapsed rail takes the page color, as it does in dark mode. */
-:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"])[data-palette]:not(.dark)
+:root:where([data-palette="blueberry"], [data-palette="butterfly-pea"], [data-palette="cherry"], [data-palette="cinnamon"], [data-palette="cotton-candy"], [data-palette="dragon-fruit"], [data-palette="earl-grey"], [data-palette="espresso"], [data-palette="honey"], [data-palette="licorice"], [data-palette="macaron"], [data-palette="matcha"], [data-palette="mint"], [data-palette="neon-cyberpunk"], [data-palette="oat-milk"], [data-palette="peach"], [data-palette="pina-paraiso"], [data-palette="plum"], [data-palette="tangerine"], [data-palette="taro"], [data-palette="wasabi"], [data-palette="yuzu"], [data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="the-thing"], [data-palette="alien"], [data-palette="gothic"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="ghost-ship"], [data-palette="midnight-haunt"], [data-palette="hexberry"], [data-palette="candycorn"])[data-palette]:not(.dark)
[data-collapsible="icon"] [data-sidebar="sidebar"] {
--sidebar-surface: var(--background);
}
@@ -1592,6 +1592,576 @@
--th-chart-5: #c79ae6;
}
+/* Halloween themes (October only). */
+:root[data-palette="pumpkin"]:not(.dark) {
+ --th-bg: #fff3e3;
+ --th-surface: #ffe7c9;
+ --th-raised: #f7e0c1;
+ --th-hover: #efd9b9;
+ --th-border: #c1ac8b;
+ --th-fg: #3a1a00;
+ --th-muted: #6e5f3c;
+ --th-subtle: #a6917d;
+ --th-accent: #b84800;
+ --th-accent-fg: #ffffff;
+ --th-second: #3a7d00;
+ --th-chart-1: #b84800;
+ --th-chart-2: #3a7d00;
+ --th-chart-3: #c48a00;
+ --th-chart-4: #7a2fe0;
+ --th-chart-5: #d1202e;
+ --ring: #3a7d00;
+ --sidebar-ring: #3a7d00;
+ --control-accent: #3a7d00;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #588f22;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(184 72 0 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="pumpkin"].dark {
+ --th-bg: #1f0f02;
+ --th-surface: #2b1606;
+ --th-raised: #33210d;
+ --th-hover: #3b2b14;
+ --th-border: #4b4022;
+ --th-fg: #ffeedd;
+ --th-muted: #bbbc91;
+ --th-subtle: #847365;
+ --th-accent: #ff7a00;
+ --th-accent-fg: #130901;
+ --th-second: #8fe03a;
+ --th-chart-1: #ff7a00;
+ --th-chart-2: #8fe03a;
+ --th-chart-3: #ffc21a;
+ --th-chart-4: #b06bff;
+ --th-chart-5: #ff4a3d;
+ --ring: #8fe03a;
+ --sidebar-ring: #8fe03a;
+ --control-accent: #8fe03a;
+ --control-accent-foreground: #130901;
+ --nav-icon-idle-base: #73ac2c;
+ --composer-shadow: 0 0 40px 6px rgb(255 122 0 / 0.16);
+}
+
+:root[data-palette="trick-or-treat"]:not(.dark) {
+ --th-bg: #fffae6;
+ --th-surface: #fff0c4;
+ --th-raised: #f8e8bf;
+ --th-hover: #f0e0bb;
+ --th-border: #c2b192;
+ --th-fg: #2e1f00;
+ --th-muted: #6f5b58;
+ --th-subtle: #a1977f;
+ --th-accent: #8f5c00;
+ --th-accent-fg: #ffffff;
+ --th-second: #7a2fe0;
+ --th-chart-1: #8f5c00;
+ --th-chart-2: #7a2fe0;
+ --th-chart-3: #c84a00;
+ --th-chart-4: #5f6f00;
+ --th-chart-5: #c20a7f;
+ --ring: #7a2fe0;
+ --sidebar-ring: #7a2fe0;
+ --control-accent: #7a2fe0;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #8e4de1;
+}
+:root[data-palette="trick-or-treat"].dark {
+ --th-bg: #1a0b24;
+ --th-surface: #251135;
+ --th-raised: #2f1a3e;
+ --th-hover: #392247;
+ --th-border: #4c3459;
+ --th-fg: #fff4d6;
+ --th-muted: #c6adb8;
+ --th-subtle: #817474;
+ --th-accent: #ffc400;
+ --th-accent-fg: #100716;
+ --th-second: #d17dff;
+ --th-chart-1: #ffc400;
+ --th-chart-2: #d17dff;
+ --th-chart-3: #ff7a00;
+ --th-chart-4: #fff0b3;
+ --th-chart-5: #3dffa0;
+ --ring: #d17dff;
+ --sidebar-ring: #d17dff;
+ --control-accent: #d17dff;
+ --control-accent-foreground: #100716;
+ --nav-icon-idle-base: #a361c8;
+}
+
+:root[data-palette="bloody-valentine"]:not(.dark) {
+ --th-bg: #fff0f2;
+ --th-surface: #ffe0e6;
+ --th-raised: #f9d8df;
+ --th-hover: #f3cfd8;
+ --th-border: #cca3ae;
+ --th-fg: #3a0510;
+ --th-muted: #7c4759;
+ --th-subtle: #a6868c;
+ --th-accent: #c4001f;
+ --th-accent-fg: #ffffff;
+ --th-second: #b0247a;
+ --th-chart-1: #c4001f;
+ --th-chart-2: #b0247a;
+ --th-chart-3: #6e5a64;
+ --th-chart-4: #d1550e;
+ --th-chart-5: #8b2fd1;
+ --ring: #b0247a;
+ --sidebar-ring: #b0247a;
+ --control-accent: #b0247a;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #bc438c;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(196 0 31 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="bloody-valentine"].dark {
+ --th-bg: #1f0307;
+ --th-surface: #2c070d;
+ --th-raised: #371017;
+ --th-hover: #411921;
+ --th-border: #562b36;
+ --th-fg: #ffe3e8;
+ --th-muted: #cfa3b2;
+ --th-subtle: #84686c;
+ --th-accent: #ff1f43;
+ --th-accent-fg: #130204;
+ --th-second: #ff8ac4;
+ --th-chart-1: #ff1f43;
+ --th-chart-2: #ff8ac4;
+ --th-chart-3: #c8b8c4;
+ --th-chart-4: #ff7a2e;
+ --th-chart-5: #c25cff;
+ --ring: #ff8ac4;
+ --sidebar-ring: #ff8ac4;
+ --control-accent: #ff8ac4;
+ --control-accent-foreground: #130204;
+ --nav-icon-idle-base: #c76895;
+ --composer-shadow: 0 0 40px 6px rgb(255 31 67 / 0.16);
+}
+
+:root[data-palette="alien"]:not(.dark) {
+ --th-bg: #eefff4;
+ --th-surface: #dafbe6;
+ --th-raised: #d4f2df;
+ --th-hover: #ceead8;
+ --th-border: #a0baab;
+ --th-fg: #032a12;
+ --th-muted: #565f5c;
+ --th-subtle: #849f8e;
+ --th-accent: #007a33;
+ --th-accent-fg: #ffffff;
+ --th-second: #b0128a;
+ --th-chart-1: #007a33;
+ --th-chart-2: #b0128a;
+ --th-chart-3: #0080b0;
+ --th-chart-4: #5f8f00;
+ --th-chart-5: #4f6f5c;
+ --ring: #b0128a;
+ --sidebar-ring: #b0128a;
+ --control-accent: #b0128a;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #b9369a;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(0 122 51 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="alien"].dark {
+ --th-bg: #02130a;
+ --th-surface: #051e10;
+ --th-raised: #10251a;
+ --th-hover: #1c2c24;
+ --th-border: #323a38;
+ --th-fg: #d6ffe6;
+ --th-muted: #b0aab2;
+ --th-subtle: #617d6d;
+ --th-accent: #00ff6a;
+ --th-accent-fg: #010b06;
+ --th-second: #ff3dc8;
+ --th-chart-1: #00ff6a;
+ --th-chart-2: #ff3dc8;
+ --th-chart-3: #1ad6ff;
+ --th-chart-4: #c8ff1a;
+ --th-chart-5: #8fb8a0;
+ --ring: #ff3dc8;
+ --sidebar-ring: #ff3dc8;
+ --control-accent: #ff3dc8;
+ --control-accent-foreground: #010b06;
+ --nav-icon-idle-base: #c03399;
+ --composer-shadow: 0 0 40px 6px rgb(0 255 106 / 0.16);
+}
+
+:root[data-palette="ghost-ship"]:not(.dark) {
+ --th-bg: #ecfffb;
+ --th-surface: #d4f8f0;
+ --th-raised: #cef1e7;
+ --th-hover: #c7e9df;
+ --th-border: #98bbb0;
+ --th-fg: #03302a;
+ --th-muted: #516c5c;
+ --th-subtle: #83a29d;
+ --th-accent: #00756a;
+ --th-accent-fg: #ffffff;
+ --th-second: #8a6000;
+ --th-chart-1: #00756a;
+ --th-chart-2: #8a6000;
+ --th-chart-3: #1f5fc8;
+ --th-chart-4: #4f8a00;
+ --th-chart-5: #c8102e;
+ --ring: #8a6000;
+ --sidebar-ring: #8a6000;
+ --control-accent: #8a6000;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #997826;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(0 117 106 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="ghost-ship"].dark {
+ --th-bg: #021716;
+ --th-surface: #042420;
+ --th-raised: #102e27;
+ --th-hover: #1b382d;
+ --th-border: #324c3a;
+ --th-fg: #d9fff8;
+ --th-muted: #b2c6a6;
+ --th-subtle: #637f7c;
+ --th-accent: #00e5c8;
+ --th-accent-fg: #010e0d;
+ --th-second: #ffd23d;
+ --th-chart-1: #00e5c8;
+ --th-chart-2: #ffd23d;
+ --th-chart-3: #5ca8ff;
+ --th-chart-4: #a8ff3d;
+ --th-chart-5: #ff5c7a;
+ --ring: #ffd23d;
+ --sidebar-ring: #ffd23d;
+ --control-accent: #ffd23d;
+ --control-accent-foreground: #010e0d;
+ --nav-icon-idle-base: #c0a333;
+ --composer-shadow: 0 0 40px 6px rgb(0 229 200 / 0.16);
+}
+
+:root[data-palette="the-thing"]:not(.dark) {
+ --th-bg: #eef8ff;
+ --th-surface: #dcefff;
+ --th-raised: #d6e7f6;
+ --th-hover: #d0dfee;
+ --th-border: #a2b2c0;
+ --th-fg: #04233a;
+ --th-muted: #585f67;
+ --th-subtle: #8598a6;
+ --th-accent: #0062a8;
+ --th-accent-fg: #ffffff;
+ --th-second: #c03f00;
+ --th-chart-1: #0062a8;
+ --th-chart-2: #c03f00;
+ --th-chart-3: #4f7590;
+ --th-chart-4: #0a9e86;
+ --th-chart-5: #c8102e;
+ --ring: #c03f00;
+ --sidebar-ring: #c03f00;
+ --control-accent: #c03f00;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #c75b26;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(0 98 168 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="the-thing"].dark {
+ --th-bg: #04121f;
+ --th-surface: #081c2e;
+ --th-raised: #142433;
+ --th-hover: #1f2b39;
+ --th-border: #363b43;
+ --th-fg: #e0f3ff;
+ --th-muted: #b7aba6;
+ --th-subtle: #677784;
+ --th-accent: #3dbcff;
+ --th-accent-fg: #020b13;
+ --th-second: #ff6a1a;
+ --th-chart-1: #3dbcff;
+ --th-chart-2: #ff6a1a;
+ --th-chart-3: #cfeaff;
+ --th-chart-4: #2ee0c0;
+ --th-chart-5: #ff3d5a;
+ --ring: #ff6a1a;
+ --sidebar-ring: #ff6a1a;
+ --control-accent: #ff6a1a;
+ --control-accent-foreground: #020b13;
+ --nav-icon-idle-base: #c0541b;
+ --composer-shadow: 0 0 40px 6px rgb(61 188 255 / 0.16);
+}
+
+:root[data-palette="midnight-haunt"]:not(.dark) {
+ --th-bg: #f0f3ff;
+ --th-surface: #dfe5ff;
+ --th-raised: #d8def7;
+ --th-hover: #d1d7ee;
+ --th-border: #a8adc6;
+ --th-fg: #0c1442;
+ --th-muted: #56596c;
+ --th-subtle: #898faa;
+ --th-accent: #2f45d6;
+ --th-accent-fg: #ffffff;
+ --th-second: #856400;
+ --th-chart-1: #2f45d6;
+ --th-chart-2: #856400;
+ --th-chart-3: #007fa8;
+ --th-chart-4: #8b2fd1;
+ --th-chart-5: #c8102e;
+ --ring: #856400;
+ --sidebar-ring: #856400;
+ --control-accent: #856400;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #957926;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(47 69 214 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="midnight-haunt"].dark {
+ --th-bg: #060a24;
+ --th-surface: #0b1236;
+ --th-raised: #161d3d;
+ --th-hover: #222743;
+ --th-border: #393c50;
+ --th-fg: #e3e8ff;
+ --th-muted: #b9b7b5;
+ --th-subtle: #696e87;
+ --th-accent: #6f86ff;
+ --th-accent-fg: #040616;
+ --th-second: #ffe066;
+ --th-chart-1: #6f86ff;
+ --th-chart-2: #ffe066;
+ --th-chart-3: #3ddcff;
+ --th-chart-4: #d67aff;
+ --th-chart-5: #ff6a8a;
+ --ring: #ffe066;
+ --sidebar-ring: #ffe066;
+ --control-accent: #ffe066;
+ --control-accent-foreground: #040616;
+ --nav-icon-idle-base: #c1ab56;
+ --composer-shadow: 0 0 40px 6px rgb(111 134 255 / 0.16);
+}
+
+:root[data-palette="gothic"]:not(.dark) {
+ --th-bg: #f7f5f7;
+ --th-surface: #ece8ed;
+ --th-raised: #e4dfe6;
+ --th-hover: #ddd7df;
+ --th-border: #b4adb6;
+ --th-fg: #1c1519;
+ --th-muted: #5f5560;
+ --th-subtle: #948a96;
+ --th-accent: #5b21b6;
+ --th-accent-fg: #ffffff;
+ --th-second: #a3173f;
+ --th-chart-1: #5b21b6;
+ --th-chart-2: #a3173f;
+ --th-chart-3: #8a8094;
+ --th-chart-4: #7c3aed;
+ --th-chart-5: #3b3440;
+ --ring: #a3173f;
+ --sidebar-ring: #a3173f;
+ --control-accent: #a3173f;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #b84a68;
+}
+:root[data-palette="gothic"].dark {
+ --th-bg: #0b0a0d;
+ --th-surface: #141217;
+ --th-raised: #1c1920;
+ --th-hover: #242029;
+ --th-border: #3a3340;
+ --th-fg: #f1ecf2;
+ --th-muted: #b3a8b8;
+ --th-subtle: #6f6776;
+ --th-accent: #a78bfa;
+ --th-accent-fg: #0b0a0d;
+ --th-second: #e0335e;
+ --th-chart-1: #a78bfa;
+ --th-chart-2: #e0335e;
+ --th-chart-3: #c9c3d1;
+ --th-chart-4: #7c5cd6;
+ --th-chart-5: #e8b4c4;
+ --ring: #e0335e;
+ --sidebar-ring: #e0335e;
+ --control-accent: #e0335e;
+ --control-accent-foreground: #0b0a0d;
+ --nav-icon-idle-base: #b0365a;
+}
+
+:root[data-palette="hexberry"]:not(.dark) {
+ --th-bg: #fff2f8;
+ --th-surface: #ffe2f0;
+ --th-raised: #fbd8ea;
+ --th-hover: #f5cde2;
+ --th-border: #cea4ba;
+ --th-fg: #33061f;
+ --th-muted: #7d4766;
+ --th-subtle: #a8869a;
+ --th-accent: #c2187a;
+ --th-accent-fg: #ffffff;
+ --th-second: #0d7d60;
+ --th-chart-1: #c2187a;
+ --th-chart-2: #0d7d60;
+ --th-chart-3: #7a4fd1;
+ --th-chart-4: #e86aa8;
+ --th-chart-5: #a88a00;
+ --ring: #0d7d60;
+ --sidebar-ring: #0d7d60;
+ --control-accent: #0d7d60;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #2f9c7d;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(194 24 122 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="hexberry"].dark {
+ --th-bg: #14060f;
+ --th-surface: #1f0a18;
+ --th-raised: #2a1022;
+ --th-hover: #34152b;
+ --th-border: #522245;
+ --th-fg: #ffe6f3;
+ --th-muted: #d79ac0;
+ --th-subtle: #85617a;
+ --th-accent: #ff4fae;
+ --th-accent-fg: #1a0612;
+ --th-second: #5ef0c0;
+ --th-chart-1: #ff4fae;
+ --th-chart-2: #5ef0c0;
+ --th-chart-3: #c9a7ff;
+ --th-chart-4: #ffb3d9;
+ --th-chart-5: #f2e86d;
+ --ring: #5ef0c0;
+ --sidebar-ring: #5ef0c0;
+ --control-accent: #5ef0c0;
+ --control-accent-foreground: #071a14;
+ --nav-icon-idle-base: #3fbf98;
+ --composer-shadow: 0 0 40px 6px rgb(255 79 174 / 0.16);
+}
+:root[data-palette="candycorn"]:not(.dark) {
+ --th-bg: #fffaf0;
+ --th-surface: #fff0d6;
+ --th-raised: #fbe7c6;
+ --th-hover: #f6ddb6;
+ --th-border: #c6b18f;
+ --th-fg: #2b1a05;
+ --th-muted: #7a5a2c;
+ --th-subtle: #a88f6a;
+ --th-accent: #b8520a;
+ --th-accent-fg: #ffffff;
+ --th-second: #8f6a00;
+ --th-chart-1: #b8520a;
+ --th-chart-2: #8f6a00;
+ --th-chart-3: #d07a1a;
+ --th-chart-4: #6e5a3a;
+ --th-chart-5: #c9a000;
+ --ring: #8f6a00;
+ --sidebar-ring: #8f6a00;
+ --control-accent: #8f6a00;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #a58224;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(184 82 10 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="candycorn"].dark {
+ --th-bg: #14100a;
+ --th-surface: #1e170d;
+ --th-raised: #291f11;
+ --th-hover: #332715;
+ --th-border: #4f3d22;
+ --th-fg: #ffffff;
+ --th-muted: #ffe2b8;
+ --th-subtle: #b3936a;
+ --th-accent: #ffc72c;
+ --th-accent-fg: #1a1002;
+ --th-second: #ff7a1a;
+ --th-chart-1: #ffc72c;
+ --th-chart-2: #ff7a1a;
+ --th-chart-3: #ffffff;
+ --th-chart-4: #ffe2b8;
+ --th-chart-5: #e0601a;
+ --ring: #ff7a1a;
+ --sidebar-ring: #ff7a1a;
+ --control-accent: #ff7a1a;
+ --control-accent-foreground: #1a0c02;
+ --nav-icon-idle-base: #ff9a3c;
+ --composer-shadow: 0 0 40px 6px rgb(255 199 44 / 0.16);
+}
+
+/* Halloween keeps its own border on Images and Video: the neutral gray vanishes on its tinted pages. */
+html[data-palette]:not(.dark):where([data-palette="pumpkin"], [data-palette="black-cat"], [data-palette="trick-or-treat"], [data-palette="bloody-valentine"], [data-palette="alien"], [data-palette="ghost-ship"], [data-palette="the-thing"], [data-palette="midnight-haunt"], [data-palette="gothic"], [data-palette="hexberry"], [data-palette="candycorn"]) .diffusion-surface {
+ --border-base: var(--th-border);
+ --input-base: var(--th-border);
+}
+
+:root[data-palette="black-cat"]:not(.dark) {
+ --th-bg: #f6f1ff;
+ --th-surface: #ebe0ff;
+ --th-raised: #e2d8f6;
+ --th-hover: #dacfed;
+ --th-border: #b4a9c5;
+ --th-fg: #120a1c;
+ --th-muted: #4f4759;
+ --th-subtle: #8f8999;
+ --th-accent: #6a1fd6;
+ --th-accent-fg: #ffffff;
+ --th-second: #1c1028;
+ --th-chart-1: #6a1fd6;
+ --th-chart-2: #1c1028;
+ --th-chart-3: #4a3fd1;
+ --th-chart-4: #b0128a;
+ --th-chart-5: #5c5470;
+ --ring: #1c1028;
+ --sidebar-ring: #1c1028;
+ --control-accent: #1c1028;
+ --control-accent-foreground: #ffffff;
+ --nav-icon-idle-base: #3d3248;
+ --composer-shadow:
+ 0 6px 28px -10px rgb(106 31 214 / 0.35),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root[data-palette="black-cat"].dark {
+ --th-bg: #08060b;
+ --th-surface: #110d16;
+ --th-raised: #1c1722;
+ --th-hover: #27212d;
+ --th-border: #3c3545;
+ --th-fg: #f3eaff;
+ --th-muted: #bdb1cb;
+ --th-subtle: #726d79;
+ --th-accent: #a259ff;
+ --th-accent-fg: #050407;
+ --th-second: #dcb8ff;
+ --th-chart-1: #a259ff;
+ --th-chart-2: #dcb8ff;
+ --th-chart-3: #7a5cff;
+ --th-chart-4: #ff5cd6;
+ --th-chart-5: #b8b0c4;
+ --ring: #dcb8ff;
+ --sidebar-ring: #dcb8ff;
+ --control-accent: #dcb8ff;
+ --control-accent-foreground: #050407;
+ --nav-icon-idle-base: #a78cc2;
+ --composer-shadow: 0 0 40px 6px rgb(162 89 255 / 0.16);
+}
+
+:root:where([data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="alien"], [data-palette="ghost-ship"], [data-palette="the-thing"], [data-palette="midnight-haunt"], [data-palette="black-cat"], [data-palette="hexberry"], [data-palette="candycorn"]):not(.dark)
+ :is(.chat-composer-surface, .unsloth-composer-surface):focus-within {
+ box-shadow:
+ 0 8px 34px -10px color-mix(in srgb, var(--th-accent) 45%, transparent),
+ 0 2px 8px -2px rgb(0 0 0 / 0.1);
+}
+:root:where([data-palette="pumpkin"], [data-palette="bloody-valentine"], [data-palette="alien"], [data-palette="ghost-ship"], [data-palette="the-thing"], [data-palette="midnight-haunt"], [data-palette="black-cat"], [data-palette="hexberry"], [data-palette="candycorn"]).dark
+ :is(.chat-composer-surface, .unsloth-composer-surface):focus-within {
+ box-shadow: 0 0 48px 8px color-mix(in srgb, var(--th-accent) 22%, transparent);
+}
+
/* --------------------------------------------------------------------------- */
/* Appearance customization: every rule is gated on a class or attribute appearance-custom-store.ts
sets on <html>, so with none active the stylesheet is stock. Custom colors/fonts are inline vars. */
@@ -2220,6 +2790,7 @@ html[data-chat-font] .aui-root {
.group\/project-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.group\/project-chat-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.group\/projects-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
+ .group\/halloween-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.group\/recent-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
/* The chevron discloses this row's own list, so the row stays lit while hovered. */
.group\/images-item:hover > .relative > .sidebar-nav-btn,
@@ -2235,6 +2806,7 @@ html[data-chat-font] .aui-root {
.dark .group\/project-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.dark .group\/project-chat-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.dark .group\/projects-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
+ .dark .group\/halloween-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.dark .group\/recent-item:hover:not(:has(.sidebar-row-action:hover)) .sidebar-nav-btn,
.dark .group\/images-item:hover > .relative > .sidebar-nav-btn,
.dark .group\/audio-item:hover > .relative > .sidebar-nav-btn,
@@ -6036,3 +6608,97 @@ html[data-find-bar-open] [data-sonner-toaster][data-y-position="top"] {
}
}
+
+.spooky-spider {
+ position: absolute;
+ top: 0;
+ width: calc(26px * var(--ui-space-scale, 1));
+ height: 0;
+ animation-name: spooky-spider-drop;
+ animation-timing-function: ease-in-out;
+ animation-fill-mode: both;
+}
+.spooky-spider::before {
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: calc(13px * var(--ui-space-scale, 1));
+ left: 50%;
+ width: 1px;
+ background: currentColor;
+ opacity: 0.4;
+}
+.spooky-spider-body {
+ position: absolute;
+ bottom: calc(-6px * var(--ui-space-scale, 1));
+ left: 0;
+ width: 100%;
+ opacity: 0.85;
+ transform-origin: 50% 0;
+ animation: spooky-spider-sway 1.6s ease-in-out infinite alternate;
+}
+@keyframes spooky-spider-drop {
+ 0% { height: 0; }
+ 55% { height: calc(var(--spooky-drop) + 8px); }
+ 72% { height: var(--spooky-drop); }
+ 86% { height: calc(var(--spooky-drop) + 3px); }
+ 100% { height: var(--spooky-drop); }
+}
+@keyframes spooky-spider-sway {
+ from { transform: rotate(-5deg); }
+ to { transform: rotate(5deg); }
+}
+.spooky-bats {
+ position: absolute;
+ left: 0;
+ right: 0;
+ height: calc(60px * var(--ui-space-scale, 1));
+}
+.spooky-bat {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: calc(42px * var(--ui-space-scale, 1));
+ opacity: 0.8;
+ animation-name: spooky-bat-fly;
+ animation-timing-function: linear;
+ animation-fill-mode: both;
+}
+.spooky-bat-wings {
+ display: block;
+ width: 100%;
+ transform-origin: 50% 40%;
+ animation: spooky-bat-flap 0.2s ease-in-out infinite alternate;
+}
+@keyframes spooky-bat-fly {
+ 0% { transform: translate(-10vw, 0); }
+ 25% { transform: translate(25vw, -2vh); }
+ 50% { transform: translate(50vw, 1.5vh); }
+ 75% { transform: translate(75vw, -1.5vh); }
+ 100% { transform: translate(110vw, 1vh); }
+}
+@keyframes spooky-bat-flap {
+ from { transform: scaleY(1); }
+ to { transform: scaleY(0.8); }
+}
+/* Reduced motion: the spider fades in place and bats fly without flapping. The global reduced-motion rules would cut both to 0.01ms, so they keep their length. */
+html.force-reduced-motion .spooky-still :is(.spooky-spider, .spooky-bat) {
+ animation-duration: var(--spooky-ms) !important;
+}
+@media (prefers-reduced-motion: reduce) {
+ html:not(.force-motion) .spooky-still :is(.spooky-spider, .spooky-bat) {
+ animation-duration: var(--spooky-ms) !important;
+ }
+}
+.spooky-still .spooky-spider {
+ height: var(--spooky-drop);
+ animation-name: spooky-fade-in;
+}
+.spooky-still :is(.spooky-spider-body, .spooky-bat-wings) {
+ animation: none;
+}
+@keyframes spooky-fade-in {
+ from { opacity: 0; }
+ to { opacity: 0.85; }
+}
+
diff --git a/studio/frontend/src/lib/account-transition.ts b/studio/frontend/src/lib/account-transition.ts
index b89b3ade762..86e85156559 100644
--- a/studio/frontend/src/lib/account-transition.ts
+++ b/studio/frontend/src/lib/account-transition.ts
@@ -67,6 +67,7 @@ export const ACCOUNT_CHROME_KEYS = new Set([
"unsloth_loaded_models_collapsed",
"unsloth_loaded_models_dismissed",
"unsloth-rag-preview-width",
+ "unsloth_halloween",
]);
export const ACCOUNT_CHROME_PREFIXES = [
"unsloth_web_update_dismissed:",
diff --git a/studio/frontend/tests/color-themes.test.ts b/studio/frontend/tests/color-themes.test.ts
index 3382ea880ee..96d954070ca 100644
--- a/studio/frontend/tests/color-themes.test.ts
+++ b/studio/frontend/tests/color-themes.test.ts
@@ -9,6 +9,7 @@ import {
COLOR_THEMES,
COLOR_THEME_IDS,
FLAVOR_THEME_IDS,
+ HALLOWEEN_THEME_IDS,
isColorThemeId,
} from "../src/features/settings/lib/color-themes.ts";
@@ -18,6 +19,7 @@ const read = (path: string) =>
const indexCss = read("../src/index.css");
const themeBoot = read("../public/theme-boot.js");
const backendSettings = read("../../backend/routes/settings.py");
+const SEEDED_THEME_IDS = [...FLAVOR_THEME_IDS, ...HALLOWEEN_THEME_IDS];
test("every non-standard theme is applied by the boot script", () => {
for (const id of COLOR_THEME_IDS) {
@@ -33,8 +35,8 @@ test("the backend accepts every theme id", () => {
assert.deepEqual([...accepted].sort(), [...COLOR_THEME_IDS].sort());
});
-test("every flavor theme has light and dark seed blocks", () => {
- for (const id of FLAVOR_THEME_IDS) {
+test("every flavor and Halloween theme has light and dark seed blocks", () => {
+ for (const id of SEEDED_THEME_IDS) {
assert.ok(
indexCss.includes(`:root[data-palette="${id}"]:not(.dark) {`),
`${id} light`,
@@ -91,8 +93,8 @@ function mix(hex: string, target: string, amount: number): string {
return `#${channel(1)}${channel(3)}${channel(5)}`;
}
-test("flavor accents used as text meet the accent-text floor", () => {
- for (const id of FLAVOR_THEME_IDS) {
+test("flavor and Halloween accents used as text meet the accent-text floor", () => {
+ for (const id of SEEDED_THEME_IDS) {
for (const [mode, selector] of [
["light", `:root[data-palette="${id}"]:not(.dark) {`],
["dark", `:root[data-palette="${id}"].dark {`],
diff --git a/studio/frontend/tests/flavor-accent-surfaces.test.ts b/studio/frontend/tests/flavor-accent-surfaces.test.ts
index d23c8897c66..e0211d66c39 100644
--- a/studio/frontend/tests/flavor-accent-surfaces.test.ts
+++ b/studio/frontend/tests/flavor-accent-surfaces.test.ts
@@ -21,7 +21,7 @@ const vars = new Map<string, string>();
const { applyCustomizationToDocument, DEFAULT_CUSTOMIZATION } = await import(
"../src/features/settings/stores/appearance-custom-store.ts"
);
-const { COLOR_THEMES, FLAVOR_THEME_IDS } = await import(
+const { COLOR_THEMES, FLAVOR_THEME_IDS, HALLOWEEN_THEME_IDS } = await import(
"../src/features/settings/lib/color-themes.ts"
);
@@ -61,7 +61,7 @@ const withAccent = (accent: string) => ({
});
test("custom accents stay readable on each flavor theme's own surfaces", () => {
- for (const id of FLAVOR_THEME_IDS) {
+ for (const id of [...FLAVOR_THEME_IDS, ...HALLOWEEN_THEME_IDS]) {
for (const mode of ["light", "dark"] as const) {
const { background, surface } = COLOR_THEMES[id][mode];
assert.ok(surface, `${id} ${mode} has no surface`);
diff --git a/studio/frontend/tests/halloween-trick-or-treat.test.ts b/studio/frontend/tests/halloween-trick-or-treat.test.ts
new file mode 100644
index 00000000000..7ec137f13da
--- /dev/null
+++ b/studio/frontend/tests/halloween-trick-or-treat.test.ts
@@ -0,0 +1,385 @@
+// 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 assert from "node:assert/strict";
+import { readFileSync } from "node:fs";
+import test from "node:test";
+
+const store = new Map<string, string>();
+const storage = {
+ getItem: (k: string) => store.get(k) ?? null,
+ setItem: (k: string, v: string) => void store.set(k, String(v)),
+ removeItem: (k: string) => void store.delete(k),
+ clear: () => store.clear(),
+ key: (i: number) => [...store.keys()][i] ?? null,
+ get length() {
+ return store.size;
+ },
+};
+let paletteAttr: string | null = null;
+const storageListeners: ((e: { key: string | null }) => void)[] = [];
+Object.assign(globalThis, {
+ localStorage: storage,
+ window: {
+ localStorage: storage,
+ matchMedia: () => ({
+ matches: false,
+ addEventListener: () => undefined,
+ removeEventListener: () => undefined,
+ }),
+ addEventListener: (
+ type: string,
+ fn: (e: { key: string | null }) => void,
+ ) => {
+ if (type === "storage") storageListeners.push(fn);
+ },
+ removeEventListener: () => undefined,
+ },
+ document: {
+ documentElement: {
+ setAttribute: (_: string, v: string) => {
+ paletteAttr = v;
+ },
+ removeAttribute: () => {
+ paletteAttr = null;
+ },
+ classList: { toggle: () => undefined },
+ style: {},
+ },
+ },
+});
+
+const { getPalette, setPalette } = await import(
+ "../src/features/settings/stores/theme-store.ts"
+);
+const {
+ HALLOWEEN_STORAGE_KEY,
+ isHalloweenSeason,
+ msUntilSeasonChange,
+ pickHalloweenTheme,
+ pickRandomHalloweenTheme,
+ removeHalloween,
+ hideTrickOrTreatRow,
+ showTrickOrTreatRow,
+ useHalloweenStore,
+} = await import("../src/features/halloween/halloween-store.ts");
+const { HALLOWEEN_THEME_IDS } = await import(
+ "../src/features/settings/lib/color-themes.ts"
+);
+
+const read = (path: string) =>
+ readFileSync(new URL(path, import.meta.url), "utf8");
+
+test("the season is October in local time", () => {
+ assert.equal(isHalloweenSeason(new Date(2026, 9, 1, 0, 0)), true);
+ assert.equal(isHalloweenSeason(new Date(2026, 9, 31, 23, 59)), true);
+ assert.equal(isHalloweenSeason(new Date(2026, 10, 1, 0, 0)), false);
+ assert.equal(isHalloweenSeason(new Date(2026, 8, 30, 23, 59)), false);
+});
+
+test("a Halloween pick remembers the theme from before, and removing hands it back", () => {
+ setPalette("matcha");
+ pickHalloweenTheme("pumpkin");
+ pickHalloweenTheme("alien");
+ assert.equal(getPalette(), "alien");
+ assert.equal(paletteAttr, "alien");
+ assert.equal(useHalloweenStore.getState().restorePalette, "matcha");
+
+ useHalloweenStore.getState().setSpookyGreetings(true);
+ removeHalloween(new Date(2026, 9, 27));
+ assert.equal(getPalette(), "matcha");
+ const state = useHalloweenStore.getState();
+ assert.equal(state.spookyGreetings, false);
+ assert.equal(state.hiddenYear, 2026);
+ assert.equal(state.restorePalette, null);
+});
+
+test("the sidebar X hides the row without touching the theme, and settings brings it back", () => {
+ setPalette("standard");
+ pickHalloweenTheme("gothic");
+ useHalloweenStore.getState().setSpookyGreetings(true);
+ hideTrickOrTreatRow(new Date(2026, 9, 27));
+ assert.equal(useHalloweenStore.getState().hiddenYear, 2026);
+ assert.equal(getPalette(), "gothic");
+ assert.equal(useHalloweenStore.getState().spookyGreetings, true);
+ showTrickOrTreatRow();
+ assert.equal(useHalloweenStore.getState().hiddenYear, null);
+});
+
+test("removing keeps a theme picked outside Halloween", () => {
+ setPalette("plum");
+ removeHalloween(new Date(2026, 9, 27));
+ assert.equal(getPalette(), "plum");
+});
+
+test("a random pick is always a different Halloween theme", () => {
+ setPalette("standard");
+ for (let i = 0; i < 20; i++) {
+ const before = getPalette();
+ const id = pickRandomHalloweenTheme();
+ assert.ok(HALLOWEEN_THEME_IDS.includes(id));
+ assert.notEqual(id, before);
+ assert.equal(getPalette(), id);
+ }
+ assert.equal(useHalloweenStore.getState().restorePalette, "standard");
+});
+
+test("state survives a switch of account like the theme does", () => {
+ const chrome = read("../src/lib/account-transition.ts").match(
+ /ACCOUNT_CHROME_KEYS = new Set\(\[([\s\S]*?)\]\)/,
+ )?.[1];
+ assert.ok(chrome?.includes(`"${HALLOWEEN_STORAGE_KEY}"`));
+ assert.ok(chrome?.includes(`"palette"`));
+});
+
+test("every spooky greeting has English text, and named lines keep {name}", () => {
+ const source = read("../src/features/halloween/spooky-greetings.ts");
+ const en = read("../src/i18n/locales/en.ts");
+ const keys = [...source.matchAll(/"halloween\.greeting\.(\w+)"/g)].map(
+ (m) => m[1],
+ );
+ assert.equal(keys.length, 10);
+ for (const key of keys) {
+ const line = en.match(new RegExp(`\\n\\s+${key}: "([^"]+)"`))?.[1];
+ assert.ok(line, key);
+ assert.equal(line.includes("{name}"), key.endsWith("Name"), key);
+ }
+});
+
+test("the sidebar row and dialog are gated on the season", () => {
+ const sidebar = read("../src/components/app-sidebar.tsx");
+ assert.match(sidebar, /\{showTrickOrTreat && \(\s*<NavItem/);
+ assert.match(sidebar, /const showTrickOrTreat = useTrickOrTreatVisible\(\);/);
+ assert.match(sidebar, /useHalloweenSeasonEnd\(\);/);
+ assert.ok(
+ sidebar.indexOf('testId="nav-row-trick-or-treat"') <
+ sidebar.indexOf("{/* Unpinned destinations, behind one row. */}"),
+ );
+ assert.match(sidebar, /hideTrickOrTreatRow\(\);/);
+ const appearance = read("../src/features/settings/tabs/appearance-tab.tsx");
+ assert.match(appearance, /<TrickOrTreatSettingsRow \/>/);
+ const select = read(
+ "../src/features/settings/components/color-theme-select.tsx",
+ );
+ assert.match(select, /\{isHalloweenSeason\(\) && \(/);
+});
+
+test("Happy Halloween joins the greetings on October 30 and 31 only", async () => {
+ const { buildSpookyWelcome } = await import(
+ "../src/features/halloween/spooky-greetings.ts"
+ );
+ const draw = (at: Date, name = "") =>
+ new Set(
+ Array.from({ length: 400 }, () => buildSpookyWelcome(name, at).key),
+ );
+ for (const day of [30, 31]) {
+ const keys = draw(new Date(2026, 9, day, 21, 0));
+ assert.ok(keys.has("halloween.greeting.happyHalloween"), `${day}`);
+ assert.equal(keys.size, 8, `${day}: Happy Halloween plus the other seven`);
+ assert.ok(
+ draw(new Date(2026, 9, day, 21, 0), "Ada").has(
+ "halloween.greeting.happyHalloweenName",
+ ),
+ );
+ }
+ const before = draw(new Date(2026, 9, 29, 23, 59));
+ assert.equal(before.size, 7);
+ assert.ok(!before.has("halloween.greeting.happyHalloween"));
+});
+
+test("an open session knows how long until the next season boundary", () => {
+ const hour = 60 * 60 * 1000;
+ const day = 24 * hour;
+ assert.equal(msUntilSeasonChange(new Date(2026, 9, 31, 23, 0)), hour);
+ assert.equal(msUntilSeasonChange(new Date(2026, 9, 1, 0, 0)), 31 * day);
+ assert.equal(msUntilSeasonChange(new Date(2026, 8, 30, 23, 0)), hour);
+ assert.equal(
+ msUntilSeasonChange(new Date(2026, 10, 1, 0, 0)),
+ new Date(2027, 9, 1).getTime() - new Date(2026, 10, 1).getTime(),
+ );
+ const hook = read("../src/features/halloween/halloween-store.ts");
+ assert.match(
+ hook,
+ /Math\.min\(msUntilSeasonChange\(\), SEASON_CHECK_MAX_MS\)/,
+ );
+ assert.match(hook, /addEventListener\("visibilitychange", check\)/);
+ // The restore reads the live date, so a session opened in September honours an October pick.
+ assert.match(
+ hook,
+ /if \(!isHalloweenSeason\(\) && isHalloweenThemeId\(palette\)\)/,
+ );
+});
+
+test("a pick in another tab reaches this tab's restore target", async () => {
+ useHalloweenStore.setState({ restorePalette: null, spookyGreetings: false });
+ storage.setItem(
+ HALLOWEEN_STORAGE_KEY,
+ JSON.stringify({
+ state: {
+ spookyGreetings: true,
+ hiddenYear: null,
+ restorePalette: "matcha",
+ },
+ version: 0,
+ }),
+ );
+ for (const fn of storageListeners) fn({ key: HALLOWEEN_STORAGE_KEY });
+ await new Promise((resolve) => setTimeout(resolve, 0));
+ assert.equal(useHalloweenStore.getState().restorePalette, "matcha");
+ assert.equal(useHalloweenStore.getState().spookyGreetings, true);
+});
+
+test("spiders and bats are on by default and stay off once turned off", async () => {
+ const reread = async (state: Record<string, unknown>) => {
+ storage.setItem(
+ HALLOWEEN_STORAGE_KEY,
+ JSON.stringify({ state, version: 0 }),
+ );
+ for (const fn of storageListeners) fn({ key: HALLOWEEN_STORAGE_KEY });
+ await new Promise((resolve) => setTimeout(resolve, 0));
+ return useHalloweenStore.getState().decorations;
+ };
+ // A save from before the switch existed has no field: on.
+ assert.equal(
+ await reread({ spookyGreetings: false, hiddenYear: null }),
+ true,
+ );
+ assert.equal(await reread({ decorations: false }), false);
+ assert.equal(await reread({ decorations: "nope" }), true);
+
+ const store = read("../src/features/halloween/halloween-store.ts");
+ assert.match(
+ store,
+ /return on && isHalloweenSeason\(\) && isHalloweenThemeId\(palette\);/,
+ );
+ const deco = read("../src/features/halloween/spooky-decorations.tsx");
+ assert.match(deco, /reduced && "spooky-still"/);
+ // Studio's Reduce motion: Off has to win over the system setting.
+ assert.match(deco, /const reduced = useReducedMotionConfig\(\);/);
+ assert.match(
+ deco,
+ /if \(roll < 0\.25\) \{\s*later\([^;]*spider\);\s*\} else if \(roll < 0\.5\) \{\s*later\([^;]*bats\);/,
+ );
+ const css = read("../src/index.css");
+ // The global reduced-motion rules would end the fade at once.
+ assert.match(
+ css,
+ /html:not\(\.force-motion\) \.spooky-still :is\(\.spooky-spider, \.spooky-bat\) \{\s*animation-duration: var\(--spooky-ms\) !important;/,
+ );
+ assert.match(deco, /useMemo\(\(\) => rollSpiderWebs\(\), \[href\]\)/);
+ assert.match(deco, /pointer-events-none fixed inset-0/);
+ const root = read("../src/app/routes/__root.tsx");
+ assert.match(root, /\{!hideNavbar && <SpookyDecorations \/>\}/);
+ const dialog = read("../src/features/halloween/trick-or-treat-dialog.tsx");
+ assert.match(dialog, /onClick=\{\(\) => setDecorations\(!decorations\)\}/);
+});
+
+test("each spooky greeting shows its own Halloween sloths, and every picture exists", async () => {
+ const { buildSpookyWelcome } = await import(
+ "../src/features/halloween/spooky-greetings.ts"
+ );
+ const allowed: Record<string, string[]> = {
+ pumpkins: ["sloth halloween trick or treat.png"],
+ brewing: ["sloth halloween witch.png"],
+ trickOrTreat: [
+ "sloth halloween trick or treat.png",
+ "large sloth cheeky.png",
+ "sloth halloween dead.png",
+ "sloth shock large.png",
+ ],
+ manor: ["sloth halloween vampire.png"],
+ spirits: ["sloth shock large.png"],
+ mysteries: [
+ "sloth halloween trick or treat.png",
+ "sloth halloween witch.png",
+ "sloth halloween dead.png",
+ "sloth halloween vampire.png",
+ "sloth shock large.png",
+ "large sloth cheeky.png",
+ ],
+ conjure: ["sloth halloween witch.png"],
+ happyHalloween: [
+ "sloth halloween trick or treat.png",
+ "sloth halloween witch.png",
+ "sloth halloween dead.png",
+ "sloth halloween vampire.png",
+ "sloth shock large.png",
+ ],
+ };
+ const seen = new Map<string, Set<string>>();
+ for (let i = 0; i < 3000; i++) {
+ const { key, sloth, enlarge } = buildSpookyWelcome(
+ "",
+ new Date(2026, 9, 31, 20, 0),
+ );
+ assert.equal(
+ enlarge,
+ sloth !== "large sloth cheeky.png" &&
+ sloth !== "sloth halloween dead.png" &&
+ sloth !== "sloth shock large.png",
+ sloth,
+ );
+ const line = key.replace("halloween.greeting.", "");
+ assert.ok(allowed[line]?.includes(sloth), `${line}: ${sloth}`);
+ seen.set(line, (seen.get(line) ?? new Set()).add(sloth));
+ }
+ for (const [line, pictures] of Object.entries(allowed)) {
+ assert.equal(
+ seen.get(line)?.size,
+ pictures.length,
+ `${line} uses all its pictures`,
+ );
+ for (const file of pictures) {
+ assert.ok(read(`../public/Sloth emojis/${file}`).length > 0, file);
+ }
+ }
+});
+
+test("the login sloth is one of the four Halloween sloths, only while greetings are on", async () => {
+ const { pickSpookySloth } = await import(
+ "../src/features/halloween/spooky-greetings.ts"
+ );
+ const seen = new Set<string>();
+ for (let i = 0; i < 200; i++) seen.add(pickSpookySloth().sloth);
+ assert.deepEqual([...seen].sort(), [
+ "sloth halloween dead.png",
+ "sloth halloween trick or treat.png",
+ "sloth halloween vampire.png",
+ "sloth halloween witch.png",
+ ]);
+ const form = read("../src/features/auth/components/auth-form.tsx");
+ assert.match(form, /isLoginMode && spooky \? halloweenSloth : null/);
+});
+
+test("spider webs show on half the pages, never by the sidebar, and vary", async () => {
+ const { rollSpiderWebs } = await import(
+ "../src/features/halloween/spider-webs.ts"
+ );
+ assert.deepEqual(
+ rollSpiderWebs(() => 0.5),
+ [],
+ );
+ const seen = new Set<string>();
+ let shown = 0;
+ for (let i = 0; i < 400; i++) {
+ const webs = rollSpiderWebs();
+ if (webs.length > 0) shown++;
+ assert.ok(webs.length <= 2);
+ assert.equal(new Set(webs.map((w) => w.placement)).size, webs.length);
+ for (const web of webs) {
+ assert.ok(["top-right", "bottom-right", "top"].includes(web.placement));
+ assert.match(web.spokes, /^M0 0L/);
+ assert.ok(web.threads.includes("Q"));
+ seen.add(web.spokes);
+ }
+ }
+ assert.ok(shown > 120 && shown < 280, `${shown} of 400 pages had webs`);
+ assert.ok(seen.size > 50, "every web is drawn afresh");
+});
+
+test("the dialog still scrolls vertically on short windows", () => {
+ const dialog = read("../src/features/halloween/trick-or-treat-dialog.tsx");
+ // DialogContent bounds the height and scrolls; hiding all overflow would clip the lower rows.
+ assert.match(dialog, /className="gap-0 overflow-x-hidden px-0/);
+ assert.doesNotMatch(dialog, /className="gap-0 overflow-hidden px-0/);
+});
diff --git a/studio/frontend/tests/login-account-modes.test.ts b/studio/frontend/tests/login-account-modes.test.ts
index 0df00aaa66d..2f19fbf3cb6 100644
--- a/studio/frontend/tests/login-account-modes.test.ts
+++ b/studio/frontend/tests/login-account-modes.test.ts
@@ -135,6 +135,10 @@ function mountForm(
"../login-client": client,
"@/components/ui/button": { Button: "Button" },
"@/components/mascot-img": { MascotImg: "MascotImg" },
+ "@/features/halloween/halloween-store": { useSpookyGreetings: () => false },
+ "@/features/halloween/spooky-greetings": {
+ pickSpookySloth: () => ({ sloth: "", enlarge: false }),
+ },
"@/components/ui/input": { Input: "Input" },
"@/components/ui/label": { Label: "Label" },
"@tanstack/react-router": {