The template offers a powerful and flexible theming system that allows for deep customization to suit your branding and aesthetic needs. Below is a comprehensive guide to utilizing the theming capabilities within the template, with insights from Material-UI (MUI).
The theming system is structured into specific folders that contain TypeScript files for defining various theming options:
Each of these folders contains files that contribute to the theme's configuration:
The dashboard template leverages a dynamic color system defined in
1export const getPrimary = (preset?: ColorPreset): PaletteColor => {
2 // ... switch case for presets
3};
Users can switch between predefined color presets such as 'royalBlue', 'livingCoral', and others, to instantly change the look and feel of the dashboard.
For customization of the layout dimensions, such as sidebar width and header height, users need to modify the
Within
1// Extended Sidebar Layout
2export const SIDEBAR_WIDTH = 288;
3export const SIDEBAR_WIDTH_COLLAPSED = 98;
4export const HEADER_HEIGHT = 54;
5
6// Common
7export const BORDER_RADIUS = 6;
8export const SPACING_UNIT = 10;
These constants set the default values for the sidebar's width (both expanded and collapsed) and the header's height. Changing these values will immediately reflect in the layout's dimensions.
These constants ensure consistency throughout the dashboard and can be adjusted to modify the UI's spacing and border styles globally.