diff --git a/src/components/demo/collapse-menu-button.tsx b/src/components/demo/collapse-menu-button.tsx index adcc665..0bafd85 100644 --- a/src/components/demo/collapse-menu-button.tsx +++ b/src/components/demo/collapse-menu-button.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; import { useState } from "react"; -import { ChevronDown, ChevronUp, Dot, LucideIcon } from "lucide-react"; +import { ChevronDown, Dot, LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; @@ -57,7 +57,10 @@ export function CollapseMenuButton({ onOpenChange={setIsCollapsed} className="w-full" > - + - + {submenus.map(({ href, label, active }, index) => ( diff --git a/tailwind.config.ts b/tailwind.config.ts index 84287e8..1298cd0 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,21 +1,21 @@ -import type { Config } from "tailwindcss" +import type { Config } from "tailwindcss"; const config = { darkMode: ["class"], content: [ - './pages/**/*.{ts,tsx}', - './components/**/*.{ts,tsx}', - './app/**/*.{ts,tsx}', - './src/**/*.{ts,tsx}', - ], + "./pages/**/*.{ts,tsx}", + "./components/**/*.{ts,tsx}", + "./app/**/*.{ts,tsx}", + "./src/**/*.{ts,tsx}" + ], prefix: "", theme: { container: { center: true, padding: "2rem", screens: { - "2xl": "1400px", - }, + "2xl": "1400px" + } }, extend: { colors: { @@ -26,55 +26,65 @@ const config = { foreground: "hsl(var(--foreground))", primary: { DEFAULT: "hsl(var(--primary))", - foreground: "hsl(var(--primary-foreground))", + foreground: "hsl(var(--primary-foreground))" }, secondary: { DEFAULT: "hsl(var(--secondary))", - foreground: "hsl(var(--secondary-foreground))", + foreground: "hsl(var(--secondary-foreground))" }, destructive: { DEFAULT: "hsl(var(--destructive))", - foreground: "hsl(var(--destructive-foreground))", + foreground: "hsl(var(--destructive-foreground))" }, muted: { DEFAULT: "hsl(var(--muted))", - foreground: "hsl(var(--muted-foreground))", + foreground: "hsl(var(--muted-foreground))" }, accent: { DEFAULT: "hsl(var(--accent))", - foreground: "hsl(var(--accent-foreground))", + foreground: "hsl(var(--accent-foreground))" }, popover: { DEFAULT: "hsl(var(--popover))", - foreground: "hsl(var(--popover-foreground))", + foreground: "hsl(var(--popover-foreground))" }, card: { DEFAULT: "hsl(var(--card))", - foreground: "hsl(var(--card-foreground))", - }, + foreground: "hsl(var(--card-foreground))" + } }, borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", - sm: "calc(var(--radius) - 4px)", + sm: "calc(var(--radius) - 4px)" }, keyframes: { "accordion-down": { from: { height: "0" }, - to: { height: "var(--radix-accordion-content-height)" }, + to: { height: "var(--radix-accordion-content-height)" } }, "accordion-up": { from: { height: "var(--radix-accordion-content-height)" }, - to: { height: "0" }, + to: { height: "0" } + }, + "collapsible-down": { + from: { height: "0" }, + to: { height: "var(--radix-collapsible-content-height)" } }, + "collapsible-up": { + from: { height: "var(--radix-collapsible-content-height)" }, + to: { height: "0" } + } }, animation: { "accordion-down": "accordion-down 0.2s ease-out", "accordion-up": "accordion-up 0.2s ease-out", - }, - }, + "collapsible-down": "collapsible-down 0.2s ease-out", + "collapsible-up": "collapsible-up 0.2s ease-out" + } + } }, - plugins: [require("tailwindcss-animate")], -} satisfies Config + plugins: [require("tailwindcss-animate")] +} satisfies Config; -export default config \ No newline at end of file +export default config;