Add comprehensive dark mode support with UI consistency fixes
This commit introduces a complete dark mode implementation across the entire application, along with various UI consistency improvements and mobile responsiveness fixes. Dark Mode Implementation: - Added new dark-mode.css with comprehensive CSS variable system - Implemented theme switcher with localStorage persistence - Created dark mode color palette optimized for readability - Added smooth transitions between light and dark themes Component-Specific Dark Mode Styling: - Headers: Added glowing gradient effects with animations (pulse, shimmer) - Tables: Unified table styling across all views with proper dark mode support - Forms: Updated all form controls, inputs, and buttons for dark mode - Cards: Fixed white backgrounds in project cards, stat cards, and activity items - Navigation: Enhanced sidebar and mobile navigation dark mode styling - Modals: Added dark mode support for all modal dialogs including task modal - Charts: Updated chart colors for dark mode visibility UI Consistency Improvements: - Standardized container padding (1rem) across all pages - Unified page widths (regular: 1400px, admin: 1600px) - Fixed mobile bottom navigation to only show on devices ≤768px - Resolved page header positioning inconsistencies - Improved text contrast ratios for better accessibility Table Consolidation: - Created tables-consolidated.css for unified table styling - Removed duplicate table styles across components - Standardized table headers, borders, and hover states - Added responsive table behavior for mobile devices Mobile Improvements: - Fixed splash screen viewport coverage - Enhanced mobile menu accessibility - Improved touch targets for mobile interactions - Added proper mobile-specific dark mode adjustments Technical Details: - CSS variables for easy theme customization - Proper specificity management with [data-theme="dark"] selectors - Performance optimized with minimal repaints - Browser compatibility for modern browsers 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -743,4 +743,180 @@ body:not(.has-user) {
|
||||
transform: scale(4);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark Mode Styles for Splash Page */
|
||||
[data-theme="dark"] body:not(.has-user) {
|
||||
background-color: var(--bg-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .splash-hero {
|
||||
background: linear-gradient(135deg, #4a5dab 0%, #6341a1 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .hero-title,
|
||||
[data-theme="dark"] .hero-subtitle {
|
||||
color: white;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .btn-secondary {
|
||||
border-color: rgba(255, 255, 255, 0.8);
|
||||
color: white;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .btn-secondary:hover {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: #4a5dab;
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .features-grid {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .section-title {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .section-title::after {
|
||||
background: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-card {
|
||||
background: var(--bg-card);
|
||||
border-color: var(--border-primary);
|
||||
color: var(--text-primary);
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 10px 30px rgba(122, 141, 245, 0.3);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-card h3 {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-card p {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-icon {
|
||||
background: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .statistics {
|
||||
background: linear-gradient(135deg, #2a3142 0%, #3a3e4a 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .stat-item {
|
||||
color: white;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .stat-number {
|
||||
color: white;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .stat-label {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonials {
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonial-card {
|
||||
background: var(--bg-card);
|
||||
border-color: var(--border-primary);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonial-card:hover {
|
||||
box-shadow: 0 12px 40px rgba(122, 141, 245, 0.25);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonial-card p {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonial-author strong {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .testimonial-author span {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing-card {
|
||||
background: var(--bg-card);
|
||||
border-color: var(--border-primary);
|
||||
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing-card:hover {
|
||||
box-shadow: 0 15px 40px rgba(122, 141, 245, 0.25);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing-card.featured {
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.4);
|
||||
border-image: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%) 1;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing-card h3 {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .price {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .price span {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .pricing-features li {
|
||||
color: var(--text-secondary);
|
||||
border-color: var(--border-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .final-cta {
|
||||
background: linear-gradient(135deg, #4a5dab 0%, #6341a1 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .features-banner {
|
||||
background: linear-gradient(135deg, #1a1d26 0%, #2a2d36 100%);
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 -2px 10px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .features-banner.reverse {
|
||||
background: linear-gradient(135deg, #2a2d36 0%, #3a3d46 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-item {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-item i {
|
||||
color: #9ca3ff;
|
||||
text-shadow: 0 0 10px rgba(156, 163, 255, 0.5);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-item:hover i {
|
||||
color: #b8beff;
|
||||
text-shadow: 0 0 15px rgba(184, 190, 255, 0.7);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .feature-item span {
|
||||
opacity: 0.9;
|
||||
}
|
||||
Reference in New Issue
Block a user