2025-11-07 13:32:17 +01:00
|
|
|
@import "tailwindcss";
|
|
|
|
|
@plugin "@tailwindcss/forms";
|
|
|
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
|
|
|
|
|
|
@source "../components/color/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "../components/layout/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "../components/providers/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "../components/tools/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "../components/ui/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./playground/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./playground/distinct/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./playground/gradient/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./playground/harmony/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./names/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./batch/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./accessibility/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./accessibility/colorblind/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "./accessibility/contrast/*.{js,ts,jsx,tsx}";
|
|
|
|
|
@source "*.{js,ts,jsx,tsx}";
|
|
|
|
|
|
|
|
|
|
/* Theme Configuration */
|
|
|
|
|
@theme {
|
|
|
|
|
/* Light mode colors */
|
|
|
|
|
--color-background: oklch(100% 0 0);
|
|
|
|
|
--color-foreground: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-card: oklch(100% 0 0);
|
|
|
|
|
--color-card-foreground: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-popover: oklch(100% 0 0);
|
|
|
|
|
--color-popover-foreground: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-primary: oklch(22.4% 0.053 285.8);
|
|
|
|
|
--color-primary-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-secondary: oklch(96.1% 0.016 240);
|
|
|
|
|
--color-secondary-foreground: oklch(22.4% 0.053 285.8);
|
|
|
|
|
--color-muted: oklch(96.1% 0.016 240);
|
|
|
|
|
--color-muted-foreground: oklch(46.9% 0.025 244.1);
|
|
|
|
|
--color-accent: oklch(96.1% 0.016 240);
|
|
|
|
|
--color-accent-foreground: oklch(22.4% 0.053 285.8);
|
|
|
|
|
--color-destructive: oklch(60.2% 0.168 29.2);
|
|
|
|
|
--color-destructive-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-border: oklch(91.4% 0.026 243.1);
|
|
|
|
|
--color-input: oklch(91.4% 0.026 243.1);
|
|
|
|
|
--color-ring: oklch(9.8% 0.038 285.8);
|
|
|
|
|
|
|
|
|
|
--radius-sm: 0.25rem;
|
|
|
|
|
--radius-md: 0.5rem;
|
|
|
|
|
--radius-lg: 0.75rem;
|
|
|
|
|
--radius-xl: 1rem;
|
|
|
|
|
|
|
|
|
|
/* Custom Animations */
|
|
|
|
|
--animate-fade-in: fadeIn 0.3s ease-in-out;
|
|
|
|
|
--animate-slide-up: slideUp 0.4s ease-out;
|
|
|
|
|
--animate-slide-down: slideDown 0.4s ease-out;
|
|
|
|
|
--animate-slide-in-right: slideInRight 0.3s ease-out;
|
|
|
|
|
--animate-slide-in-left: slideInLeft 0.3s ease-out;
|
|
|
|
|
--animate-scale-in: scaleIn 0.2s ease-out;
|
|
|
|
|
--animate-bounce-gentle: bounceGentle 0.5s ease-in-out;
|
|
|
|
|
--animate-shimmer: shimmer 2s infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dark mode colors */
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
@theme {
|
|
|
|
|
--color-background: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-card: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-card-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-popover: oklch(9.8% 0.038 285.8);
|
|
|
|
|
--color-popover-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-primary: oklch(98% 0.016 240);
|
|
|
|
|
--color-primary-foreground: oklch(22.4% 0.053 285.8);
|
|
|
|
|
--color-secondary: oklch(17.5% 0.036 242.3);
|
|
|
|
|
--color-secondary-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-muted: oklch(17.5% 0.036 242.3);
|
|
|
|
|
--color-muted-foreground: oklch(65.1% 0.031 244);
|
|
|
|
|
--color-accent: oklch(17.5% 0.036 242.3);
|
|
|
|
|
--color-accent-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-destructive: oklch(30.6% 0.125 29.2);
|
|
|
|
|
--color-destructive-foreground: oklch(98% 0.016 240);
|
|
|
|
|
--color-border: oklch(17.5% 0.036 242.3);
|
|
|
|
|
--color-input: oklch(17.5% 0.036 242.3);
|
|
|
|
|
--color-ring: oklch(83.9% 0.031 243.7);
|
feat: initial Next.js 15 implementation with TypeScript and Tailwind CSS 4
Add complete project structure and foundation:
**Core Setup:**
- Next.js 15.5.6 with App Router and React 19
- TypeScript 5.7 with strict mode
- Tailwind CSS 4.1 with custom theme configuration
- ESLint and Prettier configuration
**Dependencies Installed:**
- @tanstack/react-query - Server state management
- zustand - Client state management
- framer-motion - Animations
- lucide-react - Icon library
- react-colorful - Color picker component
- cmdk - Command palette
- sonner - Toast notifications
- clsx + tailwind-merge - Class name utilities
**Project Structure:**
- app/ - Next.js App Router pages
- components/ - React components (ui, color, tools, layout, providers)
- lib/ - Utilities, API client, hooks, stores, constants
- tests/ - Unit and E2E test directories
**API Integration:**
- Type-safe Pastel API client with all 21 endpoints
- Complete TypeScript type definitions for requests/responses
- Error handling and response types
**UI Components:**
- Button component with variants (default, outline, ghost, destructive)
- Input component with focus states
- Providers wrapper (React Query, Toast)
- Root layout with Inter font and metadata
**Pages:**
- Home page with gradient hero and feature cards
- Links to playground and palette generation (pages pending)
**Configuration:**
- Tailwind with HSL color variables for theming
- Dark/light mode CSS variables
- Custom animations (fade-in, slide-up, slide-down)
- @tailwindcss/forms and @tailwindcss/typography plugins
Build successful: 102 kB First Load JS, static generation working.
Ready for color components and playground implementation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 10:55:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
2025-11-07 12:04:46 +01:00
|
|
|
|
2025-11-07 13:32:17 +01:00
|
|
|
/* Base Styles */
|
|
|
|
|
* {
|
|
|
|
|
border-color: var(--color-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
background-color: var(--color-background);
|
|
|
|
|
color: var(--color-foreground);
|
|
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-07 12:04:46 +01:00
|
|
|
/* 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 {
|
2025-11-07 13:32:17 +01:00
|
|
|
background-color: var(--color-background);
|
2025-11-07 12:04:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
2025-11-07 13:32:17 +01:00
|
|
|
background-color: color-mix(in oklch, var(--color-muted-foreground) 20%, transparent);
|
|
|
|
|
border-radius: var(--radius-lg);
|
2025-11-07 12:04:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
2025-11-07 13:32:17 +01:00
|
|
|
background-color: color-mix(in oklch, var(--color-muted-foreground) 30%, transparent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Screen reader only */
|
|
|
|
|
.sr-only {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: -1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Animation Keyframes */
|
|
|
|
|
@keyframes fadeIn {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideUp {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateY(20px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideDown {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateY(-20px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideInRight {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateX(-20px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideInLeft {
|
|
|
|
|
from {
|
|
|
|
|
transform: translateX(20px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes scaleIn {
|
|
|
|
|
from {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes bounceGentle {
|
|
|
|
|
0%, 100% {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
50% {
|
|
|
|
|
transform: translateY(-5px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes shimmer {
|
|
|
|
|
from {
|
|
|
|
|
background-position: -1000px 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
background-position: 1000px 0;
|
|
|
|
|
}
|
2025-11-07 12:04:46 +01:00
|
|
|
}
|