Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Update CSS guidance (#83865)

Ryan Lauriea36e31e4464c
diff --git a/docs/developers-guide/frontend.md b/docs/developers-guide/frontend.md
index fa68100a171..57d83bb3f5f 100644
--- a/docs/developers-guide/frontend.md
+++ b/docs/developers-guide/frontend.md
@@ -40,8 +40,9 @@ You'll note several styling patterns in the codebase. Currently you should prefe
1. [Mantine Style Props](https://mantine.dev/styles/style-props/) for most simple styling
2. [CSS Modules](https://github.com/css-modules/css-modules) for more complex styling
+3. Global utility classes (in `/css/core`) should only be used where Mantine style props cannot be used.
-Other patterns, such as emotion styled components and global utility CSS classes are deprecated and should not be used for new code. Where convenient, please update deprecated styling patterns to the updated ones.
+Other patterns, such as emotion styled components should not be used for new code. Where convenient, please updated deprecated styling patterns to the updated ones.
Familiarize yourself with Mantine's Layout components. You can often save a lot of CSS with built-in components like [`Center`](https://mantine.dev/core/center/) and [`SimpleGrid`](https://mantine.dev/core/simple-grid/)
@@ -152,7 +153,7 @@ The frontend uses [ttag](https://www.npmjs.com/package/ttag) to localize strings
<div>{t`This is a user-facing string`}</div>
<div>
- {c("{0} is a number of engineers").t`${numEngineers} engineers at metabase`}
+ {c("{0} is a number of engineers").t`${numEngineers} engineers at metabase`}
</div>
```