There are a few themes(skins) for sidebar and navbar.
By default sidebar-light and navbar-blue themes are included in ace.css .
In demo when you choose a different theme from settings box , ace-themes.css is loaded.
But if you want to use a theme in your app other than the default ones,
it's recommended to compile ace.css using your chosen theme(s).
You should not use ace-themes.css because it is a large file as it contains all sidebar and navbar themes.
Open scss/ace-default-themes.scss and add or remove the theme(s) you want.
👉 Note: For Dark Colored Sidebars such as .sidebar-purple you should include and compile both sidebar-color and the sidebar you want. (Except for .sidebar-dark and .sidebar-dark2)
$my-navbar-themes: (
"blue": $navbar-blue
);
$my-sidebar-themes: (
"white": $sidebar-white
);
$my-sidebar-themes: (
"dark": $sidebar-dark
);
// OR if you want a dark sidebar like *sidebar-purple*
$my-sidebar-themes: (
"color": $sidebar-color, // sidebar-color should be included as well
"purple": $sidebar-purple
);
Then rebuild ace.css
And in your HTML change navbar and sidebar theme like this:
<div id="navbar" class="navbar navbar-blue navbar-fixed">
<!-- navbar content -->
</div>
<div id="sidebar" class="sidebar sidebar-color sidebar-blue sidebar-fixed expandable">
<!-- sidebar content -->
</div>
Sidebar themes are as follows:
lightwhich is the default sidebar theme in ace.css and used in Dashboard and most pageswhite,white2,white3,white4lightblue,lightblue2,lightpurple. These are used along with .sidebar-spaced
darkdark2bluecadetbluedarkbluedarkcrimsondarkslatebluedarkslategreygreenplumpurplesteelbluegradient1gradient2gradient3gradient4
After you rebuild ace.css using your chosen theme as mentioned above, you can use it like this:
<div id="sidebar" class="sidebar sidebar-white"> ... </div>
<div id="sidebar" class="sidebar sidebar-lightblue"> ... </div>
<div id="sidebar" class="sidebar sidebar-color sidebar-dark"> ... </div>
<div id="sidebar" class="sidebar sidebar-color sidebar-teal"> ... </div>
If you want to change the colors and other values of a specific theme, you should edit scss/_sidebar-themes-variables.scss
You can customize each theme to change its colors or other features.
Many themes are extended from another theme. For example sidebar-white is extended from sidebar-light.
👉 Some of the options are:
With a shadow you can have the .active element cover the shadow by setting shadow-padding to 1px (or more)
and result is like this:

But it's not possible with a border. So if you want a border and not a shadow:

Then you should modify your theme values (in _sidebar-themes-variables.scss) like this:
$sidebar-light: map-merge($sidebar-light-base, (
'background-color': #f1f3f5,
'border-color': #dbdfe2,
'shadow': null,
....
));
However when active item covers sidebar's shadow in collapsed mode, it sometimes doesn't look good. And you can fix that by adding the following theme variable:
$sidebar-light: map-merge($sidebar-light-base, (
'background-color': #f7f7f7,
'border-color': null,
'shadow': (inset -1px 0 0 0 #dbdfe2),
'shadow-padding': 1px,
'shadow-padding-collapsed-disabled': true,
// OR
'shadow-padding-collapsed-active-on-right': true,//will show the active highligh border on right, when sidebar is collapsed and hovered
....
));

or when active item highlight is on right: (Explained in Sidebar Nav Options)

.sidebar-inner child:
<div id="sidebar" class="sidebar sidebar-white">
<div class="sidebar-inner shadow-sm">
...
</div>
</div>

nulldisables it1only shows it on hover2only shows when item is .active3shows it both on hover and when .active- set
submenu-bullet-styletocaretto change it from circle to triangle
$sidebar-purple: (
...
'submenu-bullets': 1,
'submenu-bullet-style': caret
...
);



These changes are not part of the theme. Instead their relevant class names are changed:
Here for example the search icon's class name is changed from text-info to text-orange-l2 to match the selected sidebar theme
Navbar theming options are as follows:
white,white2lightlightbluelightpurplelightgreenlightgrey
darkblue. It's the default navbar color included in ace.css and used in Dashboard and most pagesdarkblueskybluecadetbluepurpleplumtealgreendarkgreenorangebrownslategreysecondary
If you want to change the colors and other values of a theme, you should edit scss/_navbar-themes-variables.scss
Then you should rebuild ace.css using your chosen theme and use it like this:
<div class="navbar navbar-white"> ... </div>
<div class="navbar navbar-lightblue"> ... </div>
<div class="navbar navbar-purple"> ... </div>
These changes are not part of the theme. Instead their relevant class names are changed.

As an example:
<a href="#" class="dropdown-toggle nav-link pl-lg-3 pr-lg-4">
...
</a>
↓ BECOMES ↓
<a href="#" class="dropdown-toggle btn btn-warning px-lg-3 d-none d-lg-flex">
...
</a>
.nav-link class is replaced by .btn.btn-warning.
Also in the second theme (lightblue), the .btn is displayed only on large (desktop) devices by applying d-none d-lg-flex .
In small devices a sibling is (inserted and) displayed as well as an orange icon to match the look and feel of the large screen:

<!-- Show the "orange" button in large screens -->
<a href="#" class="dropdown-toggle btn btn-warning px-lg-3 d-none d-lg-flex">
...
</a>
<!--
And in small devices show a normal ".nav-link"
and place an "orange" icon inside it
-->
<a href="#" class="dropdown-toggle nav-link d-lg-none">
<i class="fa fa-bell icon-animated-bell
btn-warning radius-round w-4 h-4 text-center pt-2 text-110">
</i>
...
</a>
There are some background image options for body element. They are visible only in boxed layout
The following are available:
body-img1body-img2
<body class="body-img1">
...
</body>
$body-bg-themes to false in ace-features.scss .You can also change the values in scss/ace-themes . Search for
$body-bg-themes in it
Content area has a lightgrey background color by default. If you want another color for background such as "White" (as seen in default Dashboard and most pages), you can do it like this:
<div class="main-container bgc-white">
...
</div>
<!-- or other color -->
<div class="main-container bgc-secondary-l4">
...
</div>
If you want to use a custom background color for content area and you have sidebar arrows that point to .active item:

you should make sure to add the following rule in your CSS so that the arrow color matches content area background:
.sidebar .nav.has-active-arrow .nav-item.active > .nav-link::after {
border-right-color: #eee; /* put the new content background color here */
}