CSS files list

This page contains a list of CSS files that you can import from @mantine/core package as a replacement for @mantine/core/styles.css.

Components dependencies

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.

import '@mantine/core/styles/UnstyledButton.css';
import '@mantine/core/styles/Button.css';

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:

import '@mantine/core/styles/ScrollArea.css';
import '@mantine/core/styles/UnstyledButton.css';
import '@mantine/core/styles/VisuallyHidden.css';
import '@mantine/core/styles/Paper.css';
import '@mantine/core/styles/Popover.css';
import '@mantine/core/styles/CloseButton.css';
import '@mantine/core/styles/Group.css';
import '@mantine/core/styles/Loader.css';
import '@mantine/core/styles/Overlay.css';
import '@mantine/core/styles/ModalBase.css';
import '@mantine/core/styles/Input.css';
import '@mantine/core/styles/Flex.css';

Global styles

All Mantine components depend on global styles, you need to import them before all other styles:

import '@mantine/core/styles/global.css';

Import order

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';

Files list

ComponentImport
global
import '@mantine/core/styles/global.css';
Accordion
import '@mantine/core/styles/Accordion.css';
ActionIcon
import '@mantine/core/styles/ActionIcon.css';
Affix
import '@mantine/core/styles/Affix.css';
Alert
import '@mantine/core/styles/Alert.css';
Anchor
import '@mantine/core/styles/Anchor.css';
AppShell
import '@mantine/core/styles/AppShell.css';
AspectRatio
import '@mantine/core/styles/AspectRatio.css';
Avatar
import '@mantine/core/styles/Avatar.css';
BackgroundImage
import '@mantine/core/styles/BackgroundImage.css';
Badge
import '@mantine/core/styles/Badge.css';
Blockquote
import '@mantine/core/styles/Blockquote.css';
Breadcrumbs
import '@mantine/core/styles/Breadcrumbs.css';
Burger
import '@mantine/core/styles/Burger.css';
Button
import '@mantine/core/styles/Button.css';
Card
import '@mantine/core/styles/Card.css';
Center
import '@mantine/core/styles/Center.css';
Checkbox
import '@mantine/core/styles/Checkbox.css';
Chip
import '@mantine/core/styles/Chip.css';
CloseButton
import '@mantine/core/styles/CloseButton.css';
Code
import '@mantine/core/styles/Code.css';
ColorInput
import '@mantine/core/styles/ColorInput.css';
ColorPicker
import '@mantine/core/styles/ColorPicker.css';
ColorSwatch
import '@mantine/core/styles/ColorSwatch.css';
Container
import '@mantine/core/styles/Container.css';
Combobox
import '@mantine/core/styles/Combobox.css';
Dialog
import '@mantine/core/styles/Dialog.css';
Divider
import '@mantine/core/styles/Divider.css';
Drawer
import '@mantine/core/styles/Drawer.css';
Fieldset
import '@mantine/core/styles/Fieldset.css';
Flex
import '@mantine/core/styles/Flex.css';
Group
import '@mantine/core/styles/Group.css';
Grid
import '@mantine/core/styles/Grid.css';
Image
import '@mantine/core/styles/Image.css';
Indicator
import '@mantine/core/styles/Indicator.css';
InlineInput
import '@mantine/core/styles/InlineInput.css';
Input
import '@mantine/core/styles/Input.css';
Kbd
import '@mantine/core/styles/Kbd.css';
List
import '@mantine/core/styles/List.css';
Loader
import '@mantine/core/styles/Loader.css';
LoadingOverlay
import '@mantine/core/styles/LoadingOverlay.css';
Mark
import '@mantine/core/styles/Mark.css';
Menu
import '@mantine/core/styles/Menu.css';
Modal
import '@mantine/core/styles/Modal.css';
ModalBase
import '@mantine/core/styles/ModalBase.css';
NavLink
import '@mantine/core/styles/NavLink.css';
Notification
import '@mantine/core/styles/Notification.css';
NumberInput
import '@mantine/core/styles/NumberInput.css';
Overlay
import '@mantine/core/styles/Overlay.css';
Pagination
import '@mantine/core/styles/Pagination.css';
Paper
import '@mantine/core/styles/Paper.css';
PasswordInput
import '@mantine/core/styles/PasswordInput.css';
Pill
import '@mantine/core/styles/Pill.css';
PillsInput
import '@mantine/core/styles/PillsInput.css';
PinInput
import '@mantine/core/styles/PinInput.css';
Popover
import '@mantine/core/styles/Popover.css';
Progress
import '@mantine/core/styles/Progress.css';
Radio
import '@mantine/core/styles/Radio.css';
Rating
import '@mantine/core/styles/Rating.css';
RingProgress
import '@mantine/core/styles/RingProgress.css';
ScrollArea
import '@mantine/core/styles/ScrollArea.css';
SegmentedControl
import '@mantine/core/styles/SegmentedControl.css';
SimpleGrid
import '@mantine/core/styles/SimpleGrid.css';
Skeleton
import '@mantine/core/styles/Skeleton.css';
Slider
import '@mantine/core/styles/Slider.css';
Stack
import '@mantine/core/styles/Stack.css';
Spoiler
import '@mantine/core/styles/Spoiler.css';
Stepper
import '@mantine/core/styles/Stepper.css';
Switch
import '@mantine/core/styles/Switch.css';
Table
import '@mantine/core/styles/Table.css';
Tabs
import '@mantine/core/styles/Tabs.css';
Text
import '@mantine/core/styles/Text.css';
ThemeIcon
import '@mantine/core/styles/ThemeIcon.css';
Timeline
import '@mantine/core/styles/Timeline.css';
Title
import '@mantine/core/styles/Title.css';
TypographyStylesProvider
import '@mantine/core/styles/TypographyStylesProvider.css';
Tooltip
import '@mantine/core/styles/Tooltip.css';
UnstyledButton
import '@mantine/core/styles/UnstyledButton.css';
VisuallyHidden
import '@mantine/core/styles/VisuallyHidden.css';