Use default Google button theme and respect dark mode

This commit is contained in:
Ian Gulliver
2025-12-30 11:00:25 -08:00
parent a4958d458d
commit 5296ab3818

View File

@@ -81,11 +81,9 @@ export async function auth() {
}
});
const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
google.accounts.id.renderButton(signin, {
type: 'standard',
size: 'large',
theme: isDark ? 'filled_blue' : 'filled_black',
text: 'sign_in_with',
shape: 'pill',
logo_alignment: 'left'