feat: update date range calculations and improve UI components for better consistency and readability

This commit is contained in:
Max Kowalski
2025-06-28 01:12:52 +02:00
parent c4cfe2f389
commit a002d5ef76
11 changed files with 314 additions and 220 deletions

View File

@ -43,71 +43,71 @@
:root {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
--background: 255 255 255;
--foreground: 15 23 42;
--card: 255 255 255;
--card-foreground: 15 23 42;
--popover: 255 255 255;
--popover-foreground: 15 23 42;
--primary: 0 123 255;
--primary-foreground: 255 255 255;
--secondary: 245 245 245;
--secondary-foreground: 51 51 51;
--muted: 248 250 252;
--muted-foreground: 100 116 139;
--accent: 245 245 245;
--accent-foreground: 51 51 51;
--destructive: 239 68 68;
--border: 229 231 235;
--input: 229 231 235;
--ring: 0 123 255;
--chart-1: 0 123 255;
--chart-2: 255 20 147;
--chart-3: 50 205 50;
--chart-4: 138 43 226;
--chart-5: 255 215 0;
--sidebar: 248 250 252;
--sidebar-foreground: 15 23 42;
--sidebar-primary: 0 123 255;
--sidebar-primary-foreground: 255 255 255;
--sidebar-accent: 245 245 245;
--sidebar-accent-foreground: 51 51 51;
--sidebar-border: 229 231 235;
--sidebar-ring: 0 123 255;
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
--background: 15 23 42;
--foreground: 248 250 252;
--card: 30 41 59;
--card-foreground: 248 250 252;
--popover: 30 41 59;
--popover-foreground: 248 250 252;
--primary: 59 130 246;
--primary-foreground: 15 23 42;
--secondary: 51 65 85;
--secondary-foreground: 248 250 252;
--muted: 51 65 85;
--muted-foreground: 148 163 184;
--accent: 51 65 85;
--accent-foreground: 248 250 252;
--destructive: 248 113 113;
--border: 51 65 85;
--input: 51 65 85;
--ring: 59 130 246;
--chart-1: 59 130 246;
--chart-2: 236 72 153;
--chart-3: 34 197 94;
--chart-4: 147 51 234;
--chart-5: 251 191 36;
--sidebar: 30 41 59;
--sidebar-foreground: 248 250 252;
--sidebar-primary: 59 130 246;
--sidebar-primary-foreground: 248 250 252;
--sidebar-accent: 51 65 85;
--sidebar-accent-foreground: 248 250 252;
--sidebar-border: 51 65 85;
--sidebar-ring: 59 130 246;
}
@layer base {
@ -115,6 +115,25 @@
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
@apply bg-gray-50 text-gray-900;
}
/* Apple-style scrollbars */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.3);
}
}