Skip to content

Commit

Permalink
setup shadcn-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Apr 20, 2024
1 parent 10d141a commit 56001f2
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 154 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
The component library built with this template can be used in any project that supports TailwindCSS. After publishing your component library to NPM, you can install it in your project by running:

```
npm install <my-component-library>
npm install @maany_shr/rage-ui-kit
```

You should then configure the `tailwind.config.js` file in your project to include the styles from the component library.
Expand Down
18 changes: 18 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "lib/tailwind/theme.css",
"baseColor": "slate",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "lib/utils/utils",
"ui": "@/components/ui"
}
}
5 changes: 3 additions & 2 deletions lib/tailwind/theme.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind components;
@tailwind utilities;

6 changes: 6 additions & 0 deletions lib/utils/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 function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Loading

0 comments on commit 56001f2

Please sign in to comment.