darkmode is now available
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user