Skip to content

Commit

Permalink
✨ add util function for tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
wook-hyung committed Dec 11, 2023
1 parent 9f352e0 commit 6baf300
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/_styles/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'

export const cn = (...inputs: ClassValue[]) => {
return twMerge(clsx(inputs))
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"clsx": "^2.0.0",
"next": "14.0.4",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"tailwind-merge": "^2.1.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
Expand Down
19 changes: 17 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6baf300

Please sign in to comment.