@orchard9ai/design-system
Version:
DaisyUI-based component library for Orchard9 applications
342 lines (288 loc) • 9.21 kB
CSS
/* Peach Theme - Cyan to Purple Gradient Design
* Based on Peach mockups with dark slate backgrounds and vibrant cyan-purple accents
*/
/* Peach Dark Theme - Primary theme matching mockups */
[data-theme='peach-dark'] {
color-scheme: dark;
/* Primary: Cyan (from gradient) */
--color-primary: oklch(75% 0.15 195); /* Cyan-400 #22d3ee */
--color-primary-content: oklch(100% 0 0); /* White */
/* Secondary: Purple (from gradient) */
--color-secondary: oklch(65% 0.25 300); /* Purple-500 #a855f7 */
--color-secondary-content: oklch(100% 0 0); /* White */
/* Accent: Pink for selected states */
--color-accent: oklch(65% 0.25 340); /* Pink-500 #ec4899 */
--color-accent-content: oklch(100% 0 0); /* White */
/* Neutral: Dark slate */
--color-neutral: oklch(25% 0.015 240); /* Slate-700 */
--color-neutral-content: oklch(95% 0 0); /* Light text */
/* Base colors: Dark slate gradient backgrounds */
--color-base-100: oklch(15% 0.015 240); /* Slate-900 #0f172a */
--color-base-200: oklch(20% 0.015 240); /* Slate-800 #1e293b */
--color-base-300: oklch(25% 0.015 240); /* Slate-700 */
--color-base-content: oklch(95% 0 0); /* Light text */
/* Status colors */
--color-info: oklch(70% 0.15 220); /* Blue */
--color-info-content: oklch(100% 0 0);
--color-success: oklch(75% 0.15 142); /* Green-400 */
--color-success-content: oklch(100% 0 0);
--color-warning: oklch(75% 0.18 70); /* Amber */
--color-warning-content: oklch(100% 0 0);
--color-error: oklch(65% 0.24 27); /* Red */
--color-error-content: oklch(100% 0 0);
}
/* Peach Light Theme - Inverted for light mode */
[data-theme='peach-light'] {
color-scheme: light;
/* Primary: Deeper cyan for contrast */
--color-primary: oklch(60% 0.18 195); /* Darker cyan */
--color-primary-content: oklch(100% 0 0); /* White */
/* Secondary: Deeper purple for contrast */
--color-secondary: oklch(55% 0.28 300); /* Darker purple */
--color-secondary-content: oklch(100% 0 0); /* White */
/* Accent: Pink */
--color-accent: oklch(60% 0.25 340); /* Darker pink */
--color-accent-content: oklch(100% 0 0); /* White */
/* Neutral: Cool gray */
--color-neutral: oklch(30% 0.02 240);
--color-neutral-content: oklch(98% 0 0);
/* Base colors: Light backgrounds */
--color-base-100: oklch(99% 0 0); /* Clean white */
--color-base-200: oklch(97% 0.005 240); /* Very light slate */
--color-base-300: oklch(94% 0.01 240); /* Light slate */
--color-base-content: oklch(15% 0 0); /* Dark text */
/* Status colors */
--color-info: oklch(55% 0.2 220);
--color-info-content: oklch(100% 0 0);
--color-success: oklch(60% 0.18 142);
--color-success-content: oklch(100% 0 0);
--color-warning: oklch(65% 0.2 70);
--color-warning-content: oklch(100% 0 0);
--color-error: oklch(55% 0.25 27);
--color-error-content: oklch(100% 0 0);
}
/* Peach Brand Gradient - Cyan to Purple */
:root {
--peach-gradient-from: #22d3ee; /* Cyan-400 */
--peach-gradient-to: #a855f7; /* Purple-500 */
--peach-gradient: linear-gradient(
135deg,
var(--peach-gradient-from) 0%,
var(--peach-gradient-to) 100%
);
--peach-gradient-text: linear-gradient(
135deg,
var(--peach-gradient-from) 0%,
var(--peach-gradient-to) 100%
);
}
/* Gradient utility classes */
.peach-gradient {
background: var(--peach-gradient);
}
.peach-gradient-text {
background: var(--peach-gradient-text);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
/* Enhanced focus rings - cyan primary color */
[data-theme='peach-dark']
*:focus-visible:not(a):not(button):not(input):not(textarea):not(select):not(.focus-ring):not(
[role='button']
):not([role='link']),
[data-theme='peach-light']
*:focus-visible:not(a):not(button):not(input):not(textarea):not(select):not(.focus-ring):not(
[role='button']
):not([role='link']) {
outline: 2px solid #22d3ee;
outline-offset: 2px;
}
/* Disable focus outlines for links (they have their own styling) */
[data-theme='peach-dark'] a:focus-visible,
[data-theme='peach-light'] a:focus-visible,
[data-theme='peach-dark'] [role='link']:focus-visible,
[data-theme='peach-light'] [role='link']:focus-visible {
outline: none ;
}
/* Custom scrollbars for Peach Dark */
[data-theme='peach-dark'] ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
[data-theme='peach-dark'] ::-webkit-scrollbar-track {
background: #0f172a;
border-radius: 4px;
}
[data-theme='peach-dark'] ::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
border-radius: 4px;
-webkit-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
}
[data-theme='peach-dark'] ::-webkit-scrollbar-thumb:hover {
opacity: 0.8;
}
/* Custom scrollbars for Peach Light */
[data-theme='peach-light'] ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
[data-theme='peach-light'] ::-webkit-scrollbar-track {
background: #f8fafc;
border-radius: 4px;
}
[data-theme='peach-light'] ::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
border-radius: 4px;
-webkit-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
}
[data-theme='peach-light'] ::-webkit-scrollbar-thumb:hover {
opacity: 0.8;
}
/* Enhanced shadows for peach-dark */
[data-theme='peach-dark'] .shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
}
[data-theme='peach-dark'] .shadow {
box-shadow:
0 1px 3px 0 rgba(0, 0, 0, 0.4),
0 1px 2px -1px rgba(0, 0, 0, 0.4);
}
[data-theme='peach-dark'] .shadow-md {
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.4),
0 2px 4px -2px rgba(0, 0, 0, 0.4);
}
[data-theme='peach-dark'] .shadow-lg {
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.4),
0 4px 6px -4px rgba(0, 0, 0, 0.4);
}
[data-theme='peach-dark'] .shadow-xl {
box-shadow:
0 20px 25px -5px rgba(0, 0, 0, 0.4),
0 8px 10px -6px rgba(0, 0, 0, 0.4);
}
[data-theme='peach-dark'] .shadow-2xl {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
/* Lighter shadows for peach-light */
[data-theme='peach-light'] .shadow-sm {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}
[data-theme='peach-light'] .shadow {
box-shadow:
0 1px 3px 0 rgba(0, 0, 0, 0.1),
0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
[data-theme='peach-light'] .shadow-md {
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
[data-theme='peach-light'] .shadow-lg {
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
[data-theme='peach-light'] .shadow-xl {
box-shadow:
0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
[data-theme='peach-light'] .shadow-2xl {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
/* Gradient buttons for Peach themes */
[data-theme='peach-dark'] .btn-peach-gradient,
[data-theme='peach-light'] .btn-peach-gradient {
background: var(--peach-gradient);
border: none;
color: white;
font-weight: 600;
transition: all 0.3s ease;
}
[data-theme='peach-dark'] .btn-peach-gradient:hover,
[data-theme='peach-light'] .btn-peach-gradient:hover {
transform: translateY(-1px);
box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}
/* Card styling for Peach themes */
[data-theme='peach-dark'] .card-peach {
background: #1f2937;
border: 1px solid #374151;
}
[data-theme='peach-light'] .card-peach {
background: #ffffff;
border: 1px solid #e2e8f0;
}
/* Badge variants with gradient */
[data-theme='peach-dark'] .badge-peach,
[data-theme='peach-light'] .badge-peach {
background: var(--peach-gradient);
color: white;
border: none;
}
/* Alert styling with gradient accents */
[data-theme='peach-dark'] .alert-peach,
[data-theme='peach-light'] .alert-peach {
background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
border: 1px solid #22d3ee;
color: var(--fallback-bc, oklch(var(--bc) / 1));
}
/* Input focus states with cyan */
[data-theme='peach-dark'] input:focus,
[data-theme='peach-dark'] textarea:focus,
[data-theme='peach-dark'] select:focus {
border-color: #22d3ee;
outline: none;
}
[data-theme='peach-light'] input:focus,
[data-theme='peach-light'] textarea:focus,
[data-theme='peach-light'] select:focus {
border-color: #22d3ee;
outline: none;
}
/* Smooth transitions for theme switching */
[data-theme='peach-dark'],
[data-theme='peach-light'] {
transition:
background-color 0.3s ease,
color 0.3s ease;
}
[data-theme='peach-dark'] *,
[data-theme='peach-light'] * {
transition:
background-color 0.3s ease,
color 0.3s ease,
border-color 0.3s ease;
}
/* Pulse animation for loading states */
@keyframes peach-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.peach-pulse {
animation: peach-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Gradient glow effect for interactive elements */
@keyframes peach-glow {
0%,
100% {
box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}
50% {
box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
}
}
.peach-glow {
animation: peach-glow 2s ease-in-out infinite;
}