diff --git a/contribute/style-guides/themes.md b/contribute/style-guides/themes.md index f6a0eea866b..f6118bd1d23 100644 --- a/contribute/style-guides/themes.md +++ b/contribute/style-guides/themes.md @@ -29,11 +29,12 @@ function Foo(props: FooProps) { const styles = useStyles2(getStyles); // Use styles with className } -``` -const getStyles = (theme: GrafanaTheme2) => css({ -padding: theme.spacing(1,2) -}); +const getStyles = (theme: GrafanaTheme2) => + css({ + padding: theme.spacing(1, 2), + }); +``` #### Get the theme object