Files
pastel-ui/app/globals.css
2025-11-07 13:32:17 +01:00

227 lines
5.5 KiB
CSS

@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);
}
}
/* 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;
}
/* 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 {
background-color: var(--color-background);
}
::-webkit-scrollbar-thumb {
background-color: color-mix(in oklch, var(--color-muted-foreground) 20%, transparent);
border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb:hover {
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;
}
}