Skip to content

Commit

Permalink
feat: ✨ add and setup shadcn ui
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Nov 6, 2024
1 parent fc10335 commit cc256fb
Show file tree
Hide file tree
Showing 6 changed files with 313 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# env
.env
82 changes: 68 additions & 14 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,7 @@
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}

Expand All @@ -25,3 +11,71 @@ body {
text-wrap: balance;
}
}

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: transparent; /* Adjusted to be transparent */
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 102 59% 44%; /* Adjusted for #55B02E */
--primary-foreground: 355.7 100% 97.3%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0 100%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 102 59% 44%; /* Adjusted for #55B02E */
--radius: 0.5rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
}

.dark {
--background: 20 14.3% 4.1%;
--foreground: 0 0% 95%;
--card: transparent; /* Adjusted to be transparent */
--card-foreground: 0 0% 95%;
--popover: 0 0% 9%;
--popover-foreground: 0 0% 95%;
--primary: 102 59% 44%; /* Adjusted for #55B02E */
--primary-foreground: 0 0 100% --secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0 100%;
--muted: 0 0% 15%;
--muted-foreground: 240 5% 64.9%;
--accent: 12 6.5% 15.1%;
--accent-foreground: 0 0 100%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 102 59% 44%; /* Adjusted for #55B02E */
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
}
}

@layer base {
* {
@apply border-border;
}
html {
@apply h-full;
}
body {
@apply h-full bg-background text-foreground;
}
}
21 changes: 21 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "app/globals.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/app/_components",
"utils": "@/app/_lib/utils",
"ui": "@/app/_components/ui",
"lib": "@/app/_lib",
"hooks": "@/app/_hooks"
},
"iconLibrary": "lucide"
}
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "5.22.0",
"@radix-ui/react-slot": "^1.1.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.454.0",
"next": "14.2.16",
"react": "^18",
"react-dom": "^18",
"next": "14.2.16"
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.16",
"postcss": "^8",
"prisma": "^5.22.0",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.16"
"typescript": "^5"
}
}
Loading

0 comments on commit cc256fb

Please sign in to comment.