asmoura's picture
Include a toggle for light and dark mode including a theme selector that can pull themes from https://github.com/Vector35/community-themes and set the mode automatically if the the is light or dark or follow the macos operating system setting for light or dark mode
aea32b5 verified
Raw
History Blame Contribute Delete
3.21 kB
/* Base Styles */
body {
transition: all 0.3s ease;
}
/* Theme Variables */
body.light-theme {
--bg-color: #ffffff;
--text-color: #1a1a1a;
--primary: #3b82f6;
--secondary: #10b981;
--card-bg: #ffffff;
--card-border: #e5e7eb;
--hover-bg: #f9fafb;
}
body.dark-theme {
--bg-color: #1a1a1a;
--text-color: #f5f5f5;
--primary: #60a5fa;
--secondary: #34d399;
--card-bg: #2d2d2d;
--card-border: #3d3d3d;
--hover-bg: #333333;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
}
/* Theme-specific styles */
body.default-light {
--primary: #3b82f6;
--secondary: #10b981;
}
body.default-dark {
--primary: #60a5fa;
--secondary: #34d399;
--bg-color: #1e293b;
--text-color: #f8fafc;
}
body.solarized-light {
--bg-color: #fdf6e3;
--text-color: #657b83;
--primary: #268bd2;
--secondary: #2aa198;
}
body.solarized-dark {
--bg-color: #002b36;
--text-color: #839496;
--primary: #268bd2;
--secondary: #2aa198;
}
body.dracula {
--bg-color: #282a36;
--text-color: #f8f8f2;
--primary: #bd93f9;
--secondary: #50fa7b;
}
body.nord {
--bg-color: #2e3440;
--text-color: #d8dee9;
--primary: #81a1c1;
--secondary: #a3be8c;
}
body.github {
--bg-color: #ffffff;
--text-color: #24292e;
--primary: #0366d6;
--secondary: #28a745;
}
body.monokai {
--bg-color: #272822;
--text-color: #f8f8f2;
--primary: #f92672;
--secondary: #a6e22e;
}
/* Update component styles to use theme variables */
header {
background-color: var(--card-bg) !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sidebar {
background-color: var(--card-bg) !important;
}
.quick-access-card {
background-color: var(--card-bg) !important;
border-color: var(--card-border) !important;
}
.project-card {
background-color: var(--card-bg) !important;
border-color: var(--card-border) !important;
}
.project-card:hover {
background-color: var(--hover-bg) !important;
}
/* Theme selector styles */
.theme-selector {
margin-right: 1rem;
}
.theme-selector select {
background-color: var(--card-bg);
color: var(--text-color);
border-color: var(--card-border);
}
/* Quick Access Cards */
.quick-access-card {
@apply bg-gray-50 hover:bg-gray-100 border border-gray-200 rounded-lg p-4 flex flex-col items-center justify-center text-center transition-all duration-200;
}
.quick-access-card i {
@apply w-8 h-8 mb-2 text-blue-600;
}
.quick-access-card span {
@apply text-sm font-medium text-gray-700;
}
/* Project Cards */
.project-card {
@apply bg-gray-50 hover:bg-gray-100 border border-gray-200 rounded-lg p-4 transition-all duration-200 cursor-pointer;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
@apply bg-gray-100;
}
::-webkit-scrollbar-thumb {
@apply bg-gray-300 rounded-full;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-gray-400;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.quick-access-card {
@apply p-3;
}
.quick-access-card i {
@apply w-6 h-6;
}
}