refactor(shadow): introduce shadow-card utility and extend tailwind-merge
This commit is contained in:
+9
-1
@@ -1,5 +1,13 @@
|
||||
import { type ClassValue, clsx } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
import { extendTailwindMerge } from "tailwind-merge"
|
||||
|
||||
const twMerge = extendTailwindMerge({
|
||||
extend: {
|
||||
classGroups: {
|
||||
shadow: [{ shadow: ["card", "card-hover"] }],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
|
||||
Reference in New Issue
Block a user