diff --git a/app/globals.css b/app/globals.css index 10c2d37..c6b7e5d 100644 --- a/app/globals.css +++ b/app/globals.css @@ -57,3 +57,38 @@ @apply bg-background text-foreground; } } + +/* Smooth transitions for theme switching */ +* { + transition-property: background-color, border-color, color, fill, stroke; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 200ms; +} + +/* Disable transitions during theme switch to prevent flash */ +.theme-transitioning * { + transition: none !important; +} + +/* Smooth scroll */ +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; +} + +::-webkit-scrollbar-thumb:hover { + @apply bg-muted-foreground/30; +} diff --git a/app/page.tsx b/app/page.tsx index a61c367..af27a83 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,41 +1,41 @@ export default function Home() { return ( -
+
-

+

Pastel UI

-

+

Modern web UI for color manipulation, palette generation, and accessibility analysis

-
+
Open Playground Generate Palettes
-
+

Color Playground

Interactive color picker with multi-format support and real-time manipulation

-
+

Palette Generation

Create harmony palettes, distinct colors, and smooth gradients

-
+

Accessibility Tools

WCAG contrast checker and color blindness simulation diff --git a/components/color/ColorSwatch.tsx b/components/color/ColorSwatch.tsx index b877110..32083ea 100644 --- a/components/color/ColorSwatch.tsx +++ b/components/color/ColorSwatch.tsx @@ -40,18 +40,19 @@ export function ColorSwatch({