Skip to content
+

Theming

Toolpad Studio allows you to add your custom theme to your app, or customize individual component styles.

Adding a global theme

  1. To change the application theme, go to the Theme tab in the inspector panel.

  2. In the theme options you can:

    • change your UI to light or dark mode.
    • set primary and secondary colors for your UI, from a predefined list of colors.
  3. The theme used in a project is configured by an auto-generated theme.yml file inside the toolpad folder. The file schema documentation contains detailed information on the supported options.

Overrides

In order to provide a customised styling to the components used in your pages, you can use style overrides via the sx prop in the Inspector.

Add sx prop

Adding custom styles via the sx prop

Once you click on the sx prop, add style overrides in the JSON editor. Any value that is accepted by the MUI System sx prop is acceptable here.

Add custom styles

Styling the Image component