mirror of
https://github.com/hanzo-studio/studio-frontend.git
synced 2026-10-30 18:55:56 +00:00
- Replace all ComfyUI references with Hanzo Studio - Update comfy.org URLs to hanzo.ai/studio.hanzo.ai - Change comfyanonymous to hanzoai - Update Comfy-Org to hanzo-studio - Rename files and directories - Update package names and configurations - Update documentation and README files This is a comprehensive rebranding to align with Hanzo AI's product suite and company identity.
771 B
771 B
@hanzo-studio/tailwind-utils
Shared Tailwind CSS utility functions for the Hanzo Studio Frontend monorepo.
Usage
The cn function combines clsx and tailwind-merge to handle conditional classes and resolve Tailwind conflicts.
import { cn } from '@hanzo-studio/tailwind-utils'
// Use with conditional classes (object)
<div :class="cn('transition-opacity', { 'opacity-75': !isHovered })" />
// Use with conditional classes (ternary)
<button
:class="cn('px-4 py-2', isActive ? 'bg-blue-500' : 'bg-smoke-500')"
/>
Installation
This package is part of the Hanzo Studio Frontend monorepo and is automatically available to all workspace packages.
{
"dependencies": {
"@hanzo-studio/tailwind-utils": "workspace:*"
}
}