darkmode is now available

This commit is contained in:
2026-05-07 13:42:46 +02:00
parent ec309eb626
commit 8cb918b064
36 changed files with 588 additions and 489 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ interface RepoAvatarProps {
// Consistent color per repo name (not random on each render)
function hashColor(name: string): string {
const palette = [
'#0052CC', '#00875A', '#FF5630', '#FF8B00',
'#6554C0', '#00B8D9', '#36B37E', '#253858',
'var(--c-brand)', 'var(--c-success)', '#FF5630', 'var(--c-warning)',
'#6554C0', '#00B8D9', '#36B37E', 'var(--c-text)',
]
let hash = 0
for (let i = 0; i < name.length; i++) hash = (hash * 31 + name.charCodeAt(i)) | 0