fix: Resolve build errors with border color and import paths
- Add missing --border CSS variable for light and dark mode - Add border color to Tailwind config using hsl(var(--border)) - Fix import paths in sidebar.tsx (@/hooks/ instead of @/components/hooks/) - Fix import path in toaster.tsx (@/hooks/ instead of @/components/hooks/) These fixes ensure npm run dev / npm run build work out of the box. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
--border: 220 13% 91%;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
--border: 240 3.7% 15.9%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import { Slot } from "@radix-ui/react-slot"
|
||||
import { cva, type VariantProps } from "class-variance-authority"
|
||||
import { PanelLeft } from "lucide-react"
|
||||
|
||||
import { useIsMobile } from "@/components/hooks/use-mobile"
|
||||
import { cn } from "@/components/lib/utils"
|
||||
import { useIsMobile } from "@/hooks/use-mobile"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { Input } from "@/components/ui/input"
|
||||
import { Separator } from "@/components/ui/separator"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { useToast } from "@/components/hooks/use-toast"
|
||||
import { useToast } from "@/hooks/use-toast"
|
||||
import {
|
||||
Toast,
|
||||
ToastClose,
|
||||
|
||||
Reference in New Issue
Block a user