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.

1.5 KB
Raw Blame
// 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 const RAISED_SURFACE =
  "bg-white shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-card dark:shadow-none";

// library-card: index.css glass hook.
export const CARD_SHADOW =
  "library-card shadow-[0_1px_2px_rgba(0,0,0,0.04),0_4px_16px_rgba(0,0,0,0.06)] dark:shadow-none";

// A selected card dims as a whole, picture included: the ring alone vanished against white previews.
export const SELECTED_TINT =
  "relative after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:bg-[rgb(0_0_0_/_calc(0.08*var(--contrast-wash-gain,1)))] dark:after:bg-[rgb(0_0_0_/_calc(0.18*var(--contrast-wash-gain,1)))]";

export const OVERLAY_CONTROL =
  "bg-white shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-neutral-700 dark:shadow-none";

// Preview cards only: outlined (white on white vanished), solid (blur smeared the picture).
const CONTROL_EDGE =
  "shadow-[0_2px_10px_-2px_rgba(0,0,0,0.24)] ring-1 ring-neutral-100 dark:shadow-none";

export const GLASS_SURFACE = `bg-white text-neutral-900 ${CONTROL_EDGE} dark:bg-neutral-700 dark:text-white dark:ring-0`;

export const GLASS_CONTROL = `${GLASS_SURFACE} hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-600 dark:hover:text-white`;

/** Fits the fullest card: tile, two-line title, two-line footer. */
export const CARD_MIN_HEIGHT =
  "calc(var(--spacing) * 26 + 2.75 * var(--text-ui-13) + 3 * var(--text-ui-11p5))";