diff --git a/packages/next-yak/runtime/styled.tsx b/packages/next-yak/runtime/styled.tsx index c0576111..7f90344b 100644 --- a/packages/next-yak/runtime/styled.tsx +++ b/packages/next-yak/runtime/styled.tsx @@ -100,9 +100,10 @@ const yakStyled = < // ^ must be have acces to theme const theme = attrs || getRuntimeStyles.length ? useTheme() : {}; /** The combined props are passed into the styled`` literal functions */ - const combinedProps: Substitute = processAttrs( - { theme, ...props } as Substitute, - ); + const combinedProps: Substitute = processAttrs({ + theme, + ...props, + } as Substitute); // execute all functions inside the style literal // e.g. styled.button`color: ${props => props.color};` const runtimeStyles = getRuntimeStyles(combinedProps as any);