diff --git a/app/globals.css b/app/globals.css index f67f08d..b43467c 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,58 +1,109 @@ @import "tailwindcss"; -@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; - } +@source "../components/converter/*.{js,ts,jsx,tsx}"; +@source "../components/ui/*.{js,ts,jsx,tsx}"; +@source "*.{js,ts,jsx,tsx}"; - .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%; - } +@custom-variant dark (&:is(.dark *)); + +:root { + --radius: 0.5rem; + + /* Light Mode Colors - Using OKLCH for better color precision */ + --background: oklch(100% 0 0); + --foreground: oklch(9.8% 0.038 285.8); + --card: oklch(100% 0 0); + --card-foreground: oklch(9.8% 0.038 285.8); + --popover: oklch(100% 0 0); + --popover-foreground: oklch(9.8% 0.038 285.8); + --primary: oklch(22.4% 0.053 285.8); + --primary-foreground: oklch(98% 0.016 240); + --secondary: oklch(96.1% 0.016 240); + --secondary-foreground: oklch(22.4% 0.053 285.8); + --muted: oklch(96.1% 0.016 240); + --muted-foreground: oklch(46.9% 0.025 244.1); + --accent: oklch(96.1% 0.016 240); + --accent-foreground: oklch(22.4% 0.053 285.8); + --destructive: oklch(60.2% 0.168 29.2); + --destructive-foreground: oklch(98% 0.016 240); + --border: oklch(91.4% 0.026 243.1); + --input: oklch(91.4% 0.026 243.1); + --ring: oklch(9.8% 0.038 285.8); +} + +@theme inline { + /* Tailwind v4 theme color definitions */ + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); +} + +.dark { + --background: oklch(9.8% 0.038 285.8); + --foreground: oklch(98% 0.016 240); + --card: oklch(9.8% 0.038 285.8); + --card-foreground: oklch(98% 0.016 240); + --popover: oklch(9.8% 0.038 285.8); + --popover-foreground: oklch(98% 0.016 240); + --primary: oklch(98% 0.016 240); + --primary-foreground: oklch(22.4% 0.053 285.8); + --secondary: oklch(17.5% 0.036 242.3); + --secondary-foreground: oklch(98% 0.016 240); + --muted: oklch(17.5% 0.036 242.3); + --muted-foreground: oklch(65.1% 0.031 244); + --accent: oklch(17.5% 0.036 242.3); + --accent-foreground: oklch(98% 0.016 240); + --destructive: oklch(30.6% 0.125 29.2); + --destructive-foreground: oklch(98% 0.016 240); + --border: oklch(17.5% 0.036 242.3); + --input: oklch(17.5% 0.036 242.3); + --ring: oklch(83.9% 0.031 243.7); } @layer base { * { - @apply border-border; + @apply border-border outline-ring/50; + transition-property: background-color, border-color, color, fill, stroke; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 200ms; } + body { @apply bg-background text-foreground; - font-feature-settings: "rlig" 1, "calt" 1; + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; + } + + html { + scroll-behavior: smooth; + } + + /* Custom scrollbar */ + ::-webkit-scrollbar { + width: 10px; + height: 10px; + } + + ::-webkit-scrollbar-track { + @apply bg-background; + } + + ::-webkit-scrollbar-thumb { + @apply bg-muted-foreground/20 rounded-lg hover:bg-muted-foreground/30; } }