Updated getStyle hook