1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update colour naming

Fixed #73
Fixed #58
Fixed #47
This commit is contained in:
Zhiyuan Zheng
2021-03-21 14:14:10 +01:00
parent dd345871f8
commit d15e8cb652
48 changed files with 162 additions and 152 deletions

View File

@ -81,7 +81,7 @@ const Button: React.FC<Props> = ({
if (destructive) {
return theme.red
} else {
return theme.primary
return theme.primaryDefault
}
}
}
@ -97,16 +97,16 @@ const Button: React.FC<Props> = ({
if (destructive) {
return theme.red
} else {
return theme.primary
return theme.primaryDefault
}
}
}
}, [mode, loading, disabled])
const colorBackground = useMemo(() => {
if (overlay) {
return theme.backgroundOverlay
return theme.backgroundOverlayInvert
} else {
return theme.background
return theme.backgroundDefault
}
}, [mode])