Skip to content

armgit / fx0

Public Imported from GitHub
0

A lightweight design agent built with libfx. Describe a page and an agent writes it as one HTML file.

TypeScript

Re-export cn from the cn package instead of wrapping clsx and tailwind-merge

shadcn86138b2d66f8
diff --git a/lib/utils.ts b/lib/utils.ts
index fed2fe9..ae9e5a7 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -1,6 +1 @@
-import { clsx, type ClassValue } from 'clsx'
-import { twMerge } from 'tailwind-merge'
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs))
-}
+export { cn } from 'cn'
diff --git a/package-lock.json b/package-lock.json
index 79da42f..1bfd166 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,6 +19,7 @@
"botid": "^1.5.11",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
+ "cn": "^0.5.0",
"geist": "^1.7.2",
"iron-session": "^9.0.1",
"jose": "^6.2.12",
@@ -2137,6 +2138,17 @@
"node": ">=6"
}
},
+ "node_modules/cn": {
+ "version": "0.5.0",
+ "integrity": "sha512-JGEixZEpfFXm1P5uXwvEobOFLlHwIWi5v4tjd1ZwfiYmcEilkuD2l+054rvJcYCR1B+uVThHeUbgmNz1FwuxuA==",
+ "license": "MIT",
+ "bin": {
+ "cn": "bin/cn.mjs"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
"node_modules/comma-separated-tokens": {
"version": "2.0.3",
"license": "MIT",
diff --git a/package.json b/package.json
index d922ba6..8bd6bf8 100644
--- a/package.json
+++ b/package.json
@@ -31,6 +31,7 @@
"botid": "^1.5.11",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
+ "cn": "^0.5.0",
"geist": "^1.7.2",
"iron-session": "^9.0.1",
"jose": "^6.2.12",