Skip to main content

✨ Custom CSS

To further customize your dashboard, you can add your own CSS rules to Homarr. This can be used to change virtually any aspect of the dashboard, from the color of the background to the size of the font.


Adding custom CSS rules

To add custom CSS rules, go to the Customizations tab in the settings menu. There you can find a text field where you can enter your CSS rules.

homarr custom css settings

After entering your rules, click on the "Submit" button to save your changes. You can now directly see the result of your customizations on the dashboard.

Example

homarr custom css result


Finding the class names of elements

When writing CSS you will be required to use class names to select the elements you want to customize. To find the class names of the elements you want to customize, you can use the browser's developer tools. To open the developer tools, right-click on the page and select "Inspect" or "Inspect Element" from the context menu.

context menu

This opens up the DevTools of your browser. In the DevTools, you can find the Element Picker in the top left corner. Click on the Element Picker to activate it.

selector mode

Now you can hover over the elements you want to customize. The element you are hovering over will be highlighted. If you click on the element, the DevTools will show you the classname of the element.

element highlighted

Finally, select the classname of the element you want to customize and add it to your CSS rules.

element classname


Static Classes

By default, many class names will be made out of a random value, also known as a hash. These are used internally by Mantine and can make writing custom CSS quite difficult. The biggest issue with these hashes is, that they will be randomized each build - which means, if you update Homarr, they will change and your CSS might no longer work. For this reason, we recommend you to avoid the random hash class-names and instead use implemented static ones, for the most important objects on your dashboard, they are easier to use and don't change.

ClassnameDescription
dashboard-app-shellFull App (including Header)
dashboard-headerHeader
dashboard-header-logo-rootLogo wrapper
dashboard-header-logo-imageLogo image
dashboard-header-logo-textHeader text
dashboard-header-group-rightRight group of the Header
dashboard-header-search-rootSearchbar root
dashboard-header-search-inputSearchbar input
grid-stack-wrapperGridstack wrapper
grid-stack-empty-wrapperEmpty gridstack wrapper
dashboard-gs-category-itemCategory
dashboard-app-titleApp Title
dashboard-gs-generic-itemApp/Widget wrapper
tip

Please see the Mantine Docs for more information. Homarr uses Mantine as their component library.

Additional resources

If you want to learn more about CSS, you can find a lot of resources on the internet. Here are some of the best ones: