Some components require additional styles to work properly. For example, Button
component is based on UnstyledButton. If you want to use Button,
you need to import styles for UnstyledButton as well.
Some components like Select do not have any styles on their own – they are built
on top of other components. To find out which components are used in a particular component, check
the component source code.
If you are not sure which components are used in a particular component, you can import
all styles for components that are reused in other components:
It is important to keep correct styles import order. For example, if you want to use
Button component, you need to import styles for
UnstyledButton first and then import styles for Button.
// ✅ Correct order – Button styles will override UnstyledButton styles
import '@mantine/core/styles/UnstyledButton.css';
import '@mantine/core/styles/Button.css';
// ❌ Incorrect order – UnstyledButton styles will override Button styles
import '@mantine/core/styles/Button.css';
import '@mantine/core/styles/UnstyledButton.css';
Note that if you cannot find a particular file in the list below, it means that
the component does not have any styles on its own or it is built on top of other components.