BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/patchui/utils

utils

patchui/utils
FreeUtility

patchui publishes no description for this item.

Install it

npx shadcn@latest add https://ui.hotfix.jobs/r/utils.json

Source

registry/lib/utils.tsui.hotfix.jobs/r/utils.json
1import { type ClassValue, clsx } from "clsx";
2import { extendTailwindMerge } from "tailwind-merge";
3
4// Register our custom scales so tailwind-merge doesn't collapse them
5// into the wrong conflict groups. Without the font-size registration,
6// tailwind-merge lumps text-small / text-micro / etc alongside text-ink
7// (a color) and strips whichever comes first, so a destructive
8// MenuItem's `text-small ... text-error` collapses to just `text-error`.
9const twMerge = extendTailwindMerge({
10 extend: {
11 classGroups: {
12 "font-size": [
13 "text-micro",
14 "text-mini",
15 "text-small",
16 "text-regular",
17 "text-large",
18 "text-title3",
19 "text-title2",
20 "text-title1",
21 ],
22 },
23 },
24});
25
26export function cn(...inputs: ClassValue[]): string {
27 return twMerge(clsx(inputs));
28}

What it pulls in

npm packages

  • clsx
  • tailwind-merge

Files it writes

  • registry/lib/utils.ts

Facts

Registry
patchui
Type
registry:lib
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

ui.hotfix.jobs hotfix-jobs/patch-ui on GitHub Raw registry item This item as JSON

More from patchui

All 51 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All Patch UI componentsallpatchuiUtilitiesFreeno deps
recipesrecipespatchuiUtilitiesFreeno deps
tokenstokenspatchuiUtilitiesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex