Skip to content

Commit

Permalink
shadcn
Browse files Browse the repository at this point in the history
  • Loading branch information
Collection50 committed Jul 19, 2024
1 parent 159d4e2 commit 36af5da
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 12 deletions.
69 changes: 69 additions & 0 deletions .pnp.cjs

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

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "slate",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/util"
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"axios": "^1.7.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.411.0",
"next": "14.2.4",
"react": "^18",
"react-dom": "^18",
"tailwind-variants": "^0.2.1"
"tailwind-merge": "^2.4.0",
"tailwind-variants": "^0.2.1",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.6.1",
Expand Down
28 changes: 18 additions & 10 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
import type { Config } from 'tailwindcss';

const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: ['class'],
content: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}'],
prefix: '',
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
},
plugins: [],
plugins: [require('tailwindcss-animate')],
};

export default config;
40 changes: 39 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4352,6 +4352,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": ^7.13.0
"@typescript-eslint/parser": ^7.13.1
axios: ^1.7.2
class-variance-authority: ^0.7.0
clsx: ^2.1.1
eslint: ^8.56.0
eslint-config-airbnb: ^19.0.4
Expand All @@ -4364,14 +4365,17 @@ __metadata:
eslint-plugin-react: ^7.33.2
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-storybook: ^0.8.0
lucide-react: ^0.411.0
next: 14.2.4
postcss: ^8
prettier: ^3.3.2
react: ^18
react-dom: ^18
storybook: ^8.2.1
tailwind-merge: ^2.4.0
tailwind-variants: ^0.2.1
tailwindcss: ^3.4.1
tailwindcss-animate: ^1.0.7
typescript: 5.1
webpack: ^5.92.1
languageName: unknown
Expand Down Expand Up @@ -4841,6 +4845,15 @@ __metadata:
languageName: node
linkType: hard

"class-variance-authority@npm:^0.7.0":
version: 0.7.0
resolution: "class-variance-authority@npm:0.7.0"
dependencies:
clsx: 2.0.0
checksum: e7fd1fab433ef06f52a1b7b241b70b4a185864deef199d3b0a2c3412f1cc179517288264c383f3b971a00d76811625fc8f7ffe709e6170219e88cd7368f08a20
languageName: node
linkType: hard

"clean-css@npm:^5.2.2":
version: 5.3.3
resolution: "clean-css@npm:5.3.3"
Expand Down Expand Up @@ -4898,6 +4911,13 @@ __metadata:
languageName: node
linkType: hard

"clsx@npm:2.0.0":
version: 2.0.0
resolution: "clsx@npm:2.0.0"
checksum: a2cfb2351b254611acf92faa0daf15220f4cd648bdf96ce369d729813b85336993871a4bf6978ddea2b81b5a130478339c20d9d0b5c6fc287e5147f0c059276e
languageName: node
linkType: hard

"clsx@npm:^2.1.1":
version: 2.1.1
resolution: "clsx@npm:2.1.1"
Expand Down Expand Up @@ -8349,6 +8369,15 @@ __metadata:
languageName: node
linkType: hard

"lucide-react@npm:^0.411.0":
version: 0.411.0
resolution: "lucide-react@npm:0.411.0"
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: e0f963f194b8194cd008db100d48d28b540ad0ff2d0a3f0710aaa7e8e9716ed0e6c8710f3c512ba61fb9d49672097470ca8b3b15c7d04020772efe82831355c2
languageName: node
linkType: hard

"lz-string@npm:^1.5.0":
version: 1.5.0
resolution: "lz-string@npm:1.5.0"
Expand Down Expand Up @@ -11220,7 +11249,7 @@ __metadata:
languageName: node
linkType: hard

"tailwind-merge@npm:^2.2.0":
"tailwind-merge@npm:^2.2.0, tailwind-merge@npm:^2.4.0":
version: 2.4.0
resolution: "tailwind-merge@npm:2.4.0"
checksum: 442ab18af754eb90a1c730289b10a5df89ec8f197b4783bd31651fffc06ac06dbe7a8f491c2e133c906d6ab466170a5fc1f45aa2d22874e47706acf9d8b0cfe5
Expand All @@ -11238,6 +11267,15 @@ __metadata:
languageName: node
linkType: hard

"tailwindcss-animate@npm:^1.0.7":
version: 1.0.7
resolution: "tailwindcss-animate@npm:1.0.7"
peerDependencies:
tailwindcss: "*"
checksum: c1760983eb3fec0c8421e95082bf308e6845df43e2f90862386366e82545c801b26b4d189c4cd23d6915252b76d18005c8e5f591f8b119944c7fb8650d0f8bce
languageName: node
linkType: hard

"tailwindcss@npm:^3.4.1":
version: 3.4.4
resolution: "tailwindcss@npm:3.4.4"
Expand Down

0 comments on commit 36af5da

Please sign in to comment.