tailwind config artefacts cleaned up

This commit is contained in:
DaKheera47 2026-01-22 20:04:08 +00:00
parent 7b5afd25d1
commit f60ce5db4f
6 changed files with 221 additions and 336 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,11 +26,14 @@
"@radix-ui/react-checkbox": "^1.3.2", "@radix-ui/react-checkbox": "^1.3.2",
"@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.15", "@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-progress": "^1.1.8", "@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-separator": "^1.1.8", "@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-tabs": "^1.1.13", "@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8", "@radix-ui/react-tooltip": "^1.2.8",
"@tailwindcss/vite": "^4.1.18",
"better-sqlite3": "^11.6.0", "better-sqlite3": "^11.6.0",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
@ -47,7 +50,6 @@
"sonner": "^2.0.7", "sonner": "^2.0.7",
"tailwind-merge": "^3.4.0", "tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7", "tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2", "vaul": "^1.1.2",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
@ -74,6 +76,7 @@
"tailwindcss": "^4.1.18", "tailwindcss": "^4.1.18",
"tsc-alias": "^1.8.16", "tsc-alias": "^1.8.16",
"tsx": "^4.19.2", "tsx": "^4.19.2",
"tw-animate-css": "^1.4.0",
"typescript": "^5.7.2", "typescript": "^5.7.2",
"vite": "^6.0.3", "vite": "^6.0.3",
"vitest": "^4.0.16" "vitest": "^4.0.16"

View File

@ -1,146 +1,128 @@
"use client"
import * as React from "react" import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button" import { buttonVariants } from "@/components/ui/button"
function AlertDialog({ const AlertDialog = AlertDialogPrimitive.Root
...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
}
function AlertDialogTrigger({ const AlertDialogTrigger = AlertDialogPrimitive.Trigger
...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
return (
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
)
}
function AlertDialogPortal({ const AlertDialogPortal = AlertDialogPrimitive.Portal
...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
return (
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
)
}
function AlertDialogOverlay({ const AlertDialogOverlay = React.forwardRef<
className, React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
...props React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) { >(({ className, ...props }, ref) => (
return ( <AlertDialogPrimitive.Overlay
<AlertDialogPrimitive.Overlay className={cn(
data-slot="alert-dialog-overlay" "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
className
)}
{...props}
ref={ref}
/>
))
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName
const AlertDialogContent = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
>(({ className, ...props }, ref) => (
<AlertDialogPortal>
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
ref={ref}
className={cn( className={cn(
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",
className className
)} )}
{...props} {...props}
/> />
) </AlertDialogPortal>
} ))
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName
function AlertDialogContent({ const AlertDialogHeader = ({
className, className,
...props ...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) { }: React.HTMLAttributes<HTMLDivElement>) => (
return ( <div
<AlertDialogPortal> className={cn(
<AlertDialogOverlay /> "flex flex-col space-y-2 text-center sm:text-left",
<AlertDialogPrimitive.Content className
data-slot="alert-dialog-content" )}
className={cn( {...props}
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", />
className )
)} AlertDialogHeader.displayName = "AlertDialogHeader"
{...props}
/>
</AlertDialogPortal>
)
}
function AlertDialogHeader({ const AlertDialogFooter = ({
className, className,
...props ...props
}: React.ComponentProps<"div">) { }: React.HTMLAttributes<HTMLDivElement>) => (
return ( <div
<div className={cn(
data-slot="alert-dialog-header" "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
className={cn("flex flex-col gap-2 text-center sm:text-left", className)} className
{...props} )}
/> {...props}
) />
} )
AlertDialogFooter.displayName = "AlertDialogFooter"
function AlertDialogFooter({ const AlertDialogTitle = React.forwardRef<
className, React.ElementRef<typeof AlertDialogPrimitive.Title>,
...props React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
}: React.ComponentProps<"div">) { >(({ className, ...props }, ref) => (
return ( <AlertDialogPrimitive.Title
<div ref={ref}
data-slot="alert-dialog-footer" className={cn("text-lg font-semibold", className)}
className={cn( {...props}
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", />
className ))
)} AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName
{...props}
/>
)
}
function AlertDialogTitle({ const AlertDialogDescription = React.forwardRef<
className, React.ElementRef<typeof AlertDialogPrimitive.Description>,
...props React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) { >(({ className, ...props }, ref) => (
return ( <AlertDialogPrimitive.Description
<AlertDialogPrimitive.Title ref={ref}
data-slot="alert-dialog-title" className={cn("text-sm text-muted-foreground", className)}
className={cn("text-lg font-semibold", className)} {...props}
{...props} />
/> ))
) AlertDialogDescription.displayName =
} AlertDialogPrimitive.Description.displayName
function AlertDialogDescription({ const AlertDialogAction = React.forwardRef<
className, React.ElementRef<typeof AlertDialogPrimitive.Action>,
...props React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) { >(({ className, ...props }, ref) => (
return ( <AlertDialogPrimitive.Action
<AlertDialogPrimitive.Description ref={ref}
data-slot="alert-dialog-description" className={cn(buttonVariants(), className)}
className={cn("text-muted-foreground text-sm", className)} {...props}
{...props} />
/> ))
) AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName
}
function AlertDialogAction({ const AlertDialogCancel = React.forwardRef<
className, React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
...props React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) { >(({ className, ...props }, ref) => (
return ( <AlertDialogPrimitive.Cancel
<AlertDialogPrimitive.Action ref={ref}
className={cn(buttonVariants(), className)} className={cn(
{...props} buttonVariants({ variant: "outline" }),
/> "mt-2 sm:mt-0",
) className
} )}
{...props}
function AlertDialogCancel({ />
className, ))
...props AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {
return (
<AlertDialogPrimitive.Cancel
className={cn(buttonVariants({ variant: "outline" }), className)}
{...props}
/>
)
}
export { export {
AlertDialog, AlertDialog,

View File

@ -1,15 +1,10 @@
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap"); @import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap");
@import "tailwindcss"; @import "tailwindcss";
@import "tw-animate-css"; @import "tw-animate-css";
@plugin "tailwindcss-animate";
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
@tailwind utilities;
@theme inline { @theme inline {
--radius-sm: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px); --radius-md: calc(var(--radius) - 2px);
@ -132,68 +127,6 @@
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10); --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25); --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
--tracking-normal: 0em; --tracking-normal: 0em;
--animate-in: in 0.5s ease-out forwards;
--animate-out: out 0.3s ease-in forwards;
--animate-fade-in: fade-in 0.5s ease-out forwards;
--animate-fade-out: fade-out 0.3s ease-in forwards;
--animate-slide-in-from-left: slide-in-from-left 0.5s ease-out forwards;
--animate-slide-out-to-left: slide-out-to-left 0.3s ease-in forwards;
--animate-slide-in-from-right: slide-in-from-right 0.5s ease-out forwards;
--animate-slide-out-to-right: slide-out-to-right 0.3s ease-in forwards;
--animate-slide-in-from-top: slide-in-from-top 0.5s ease-out forwards;
--animate-slide-out-to-top: slide-out-to-top 0.3s ease-in forwards;
--animate-slide-in-from-bottom: slide-in-from-bottom 0.5s ease-out forwards;
--animate-slide-out-to-bottom: slide-out-to-bottom 0.3s ease-in forwards;
@keyframes in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes slide-in-from-left {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
@keyframes slide-out-to-left {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
@keyframes slide-in-from-right {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
@keyframes slide-out-to-right {
from { transform: translateX(0); }
to { transform: translateX(100%); }
}
@keyframes slide-in-from-top {
from { transform: translateY(-100%); }
to { transform: translateY(0); }
}
@keyframes slide-out-to-top {
from { transform: translateY(0); }
to { transform: translateY(-100%); }
}
@keyframes slide-in-from-bottom {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
@keyframes slide-out-to-bottom {
from { transform: translateY(0); }
to { transform: translateY(100%); }
}
} }
.dark { .dark {
@ -255,6 +188,7 @@
* { * {
@apply border-border outline-ring/50; @apply border-border outline-ring/50;
} }
body { body {
font-family: var(--font-sans); font-family: var(--font-sans);
@apply bg-background text-foreground antialiased; @apply bg-background text-foreground antialiased;

View File

@ -3,24 +3,5 @@ import type { Config } from "tailwindcss";
export default { export default {
darkMode: "class", darkMode: "class",
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
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: [],
} satisfies Config; } satisfies Config;

View File

@ -2,9 +2,10 @@
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react'; import react from '@vitejs/plugin-react';
import path from 'path'; import path from 'path';
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react(), tailwindcss()],
test: { test: {
globals: true, globals: true,
environment: 'jsdom', environment: 'jsdom',