fix(projects): enforce contribution colors by theme

This commit is contained in:
poyrazavsever
2026-08-31 12:40:20 +03:00
parent d2c30da602
commit ca45b97c60
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -10,6 +10,12 @@
@layer base { @layer base {
:root { :root {
--poyraz-font-secondary: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif; --poyraz-font-secondary: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif;
--github-contribution-empty: #ebedf0;
}
.dark,
[data-poyraz-theme="dark"] {
--github-contribution-empty: #27272a;
} }
} }
@@ -23,6 +29,10 @@ html[data-poyraz-theme="light"] body {
} }
@layer utilities { @layer utilities {
.github-contribution-empty {
fill: var(--github-contribution-empty);
}
@keyframes marquee { @keyframes marquee {
0% { transform: translateX(0%); } 0% { transform: translateX(0%); }
100% { transform: translateX(-50%); } 100% { transform: translateX(-50%); }
+1 -1
View File
@@ -12,7 +12,7 @@ const GRAPH_HEIGHT = 104;
const DAY_IN_MS = 24 * 60 * 60 * 1000; const DAY_IN_MS = 24 * 60 * 60 * 1000;
const LEVEL_CLASSES: Record<GithubContributionDay["level"], string> = { const LEVEL_CLASSES: Record<GithubContributionDay["level"], string> = {
0: "fill-zinc-200 dark:fill-zinc-800", 0: "github-contribution-empty",
1: "fill-[#ff7373]", 1: "fill-[#ff7373]",
2: "fill-[#ff5959]", 2: "fill-[#ff5959]",
3: "fill-[#dc2626]", 3: "fill-[#dc2626]",