diff --git a/app/getting-started/page.tsx b/app/getting-started/page.tsx index 5b081e0d2..0ba867e1e 100644 --- a/app/getting-started/page.tsx +++ b/app/getting-started/page.tsx @@ -31,8 +31,9 @@ export default async function GettingStartedPage() { {PRODUCT_NAME} depends on @mantine/core, @mantine/hooks and clsx. - Create a new application with Mantine and - install the package: + Create a new application with Mantine, + install {process.env.PACKAGE_NAME} and make sure you have the clsx dependency + installed as well: Don’t forget to import the necessary CSS files and apply the styles in the correct order. - + The @mantine/core package styles must be applied before {PRODUCT_NAME} styles. +
+ Make sure to go through and understand the information in the{' '} + styling guide before jumping into examples or starting your own + project.
For example, if you’re using a Next.js diff --git a/app/styling/page.tsx b/app/styling/page.tsx index 52d096790..dcc51e7fc 100644 --- a/app/styling/page.tsx +++ b/app/styling/page.tsx @@ -67,7 +67,9 @@ export default async function StylingPage() { you to control the order of stylesheets in your application when importing CSS files. - You can mitigate this by making use of{' '} + As Mantine documentation{' '} + suggests, you can mitigate + this by making use of{' '} CSS layers. diff --git a/components/Txt.module.css b/components/Txt.module.css new file mode 100644 index 000000000..6c9e62d32 --- /dev/null +++ b/components/Txt.module.css @@ -0,0 +1,7 @@ +.alertMessage { + line-height: 1.6; +} + +.alertMessageWithoutTitle { + margin-top: 0; +} diff --git a/components/Txt.tsx b/components/Txt.tsx index 2a769b42d..1aa59d296 100644 --- a/components/Txt.tsx +++ b/components/Txt.tsx @@ -1,5 +1,7 @@ import { Alert, Text } from '@mantine/core'; import { IconAlertSquareRoundedFilled, IconBulbFilled, IconInfoCircle } from '@tabler/icons-react'; +import clsx from 'clsx'; +import classes from './Txt.module.css'; export type TxtProps = React.PropsWithChildren< | { @@ -27,7 +29,7 @@ export function Txt({ info, warning, idea, title, children }: TxtProps) { : idea ? : } title={title} >