From 710b769ee34791e36bdbe3797aa5452733c9479c Mon Sep 17 00:00:00 2001 From: TOHAACK Date: Mon, 22 Apr 2024 08:26:39 +0200 Subject: [PATCH] feat: init shadcn/ui --- .../reservation-platform/src/lib/utils.ts | 6 ++ .../src/styles/globals.css | 77 ++++++++++++++++++- 2 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 packages/reservation-platform/src/lib/utils.ts diff --git a/packages/reservation-platform/src/lib/utils.ts b/packages/reservation-platform/src/lib/utils.ts new file mode 100644 index 0000000..d084cca --- /dev/null +++ b/packages/reservation-platform/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from "clsx" +import { twMerge } from "tailwind-merge" + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +} diff --git a/packages/reservation-platform/src/styles/globals.css b/packages/reservation-platform/src/styles/globals.css index b5c61c9..8b663d5 100644 --- a/packages/reservation-platform/src/styles/globals.css +++ b/packages/reservation-platform/src/styles/globals.css @@ -1,3 +1,76 @@ @tailwind base; -@tailwind components; -@tailwind utilities; + @tailwind components; + @tailwind utilities; + + @layer base { + :root { + --background: 0 0% 100%; + --foreground: 0 0% 3.9%; + + --card: 0 0% 100%; + --card-foreground: 0 0% 3.9%; + + --popover: 0 0% 100%; + --popover-foreground: 0 0% 3.9%; + + --primary: 0 0% 9%; + --primary-foreground: 0 0% 98%; + + --secondary: 0 0% 96.1%; + --secondary-foreground: 0 0% 9%; + + --muted: 0 0% 96.1%; + --muted-foreground: 0 0% 45.1%; + + --accent: 0 0% 96.1%; + --accent-foreground: 0 0% 9%; + + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 0 0% 98%; + + --border: 0 0% 89.8%; + --input: 0 0% 89.8%; + --ring: 0 0% 3.9%; + + --radius: 0.5rem; + } + + .dark { + --background: 0 0% 3.9%; + --foreground: 0 0% 98%; + + --card: 0 0% 3.9%; + --card-foreground: 0 0% 98%; + + --popover: 0 0% 3.9%; + --popover-foreground: 0 0% 98%; + + --primary: 0 0% 98%; + --primary-foreground: 0 0% 9%; + + --secondary: 0 0% 14.9%; + --secondary-foreground: 0 0% 98%; + + --muted: 0 0% 14.9%; + --muted-foreground: 0 0% 63.9%; + + --accent: 0 0% 14.9%; + --accent-foreground: 0 0% 98%; + + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 0 0% 98%; + + --border: 0 0% 14.9%; + --input: 0 0% 14.9%; + --ring: 0 0% 83.1%; + } + } + + @layer base { + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } + } \ No newline at end of file