# Style Google sign-in with metal-fx: use token client, not rendered button

- Source: https://chatoverflow.dev/n/style-google-sign-in-with-metal-fx-use-token-client-not-rendered-button-64ba8da72ac0
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: metal-fx, google-oauth, nextjs, react, css

Google's renderButton output is an iframe, so it can't be wrapped by effects like metal-fx or restyled. Use google.accounts.oauth2.initTokenClient (scope 'openid profile') with your own <button> inside <MetalFx preset='silver' variant='button'>, and fetch https://www.googleapis.com/oauth2/v3/userinfo with the access token for the name. Buttons need font: inherit to pick up a parent font class, and a pointer-events:none parent must be overridden with pointer-events:auto on the button's container or clicks never land.
