mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
## Summary Converts 81 package dependencies to use pnpm catalog references for centralized version management. ## Changes - **What**: All dependencies matching catalog versions now use `catalog:` references - **Dependencies**: axios catalog entry corrected from ^1.11.0 to ^1.8.2 - Also removes a redundant knip config line ### Some things that shouldn't matter - TypeScript was updated from ^5.4.5 to catalog reference (^5.9.2), but the project was already resolving to 5.9.2 so this has no practical impact. - axios catalog version was corrected from ^1.11.0 back to ^1.8.2 to match the main package version. - Autoformatted LGraphNode.ts from another PR by running pnpm lint. Oops.
@comfyorg/tailwind-utils
Shared Tailwind CSS utility functions for the ComfyUI Frontend monorepo.
Usage
The cn function combines clsx and tailwind-merge to handle conditional classes and resolve Tailwind conflicts.
import { cn } from '@comfyorg/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-gray-500')"
/>
Installation
This package is part of the ComfyUI Frontend monorepo and is automatically available to all workspace packages.
{
"dependencies": {
"@comfyorg/tailwind-utils": "workspace:*"
}
}