Quick Tips
You may remove all IDs or class names that contain _dm-; they are only used for demonstration.
Layouts
| Fluid Layout | Remove the .boxed-layout and .centered-layout classes from the body. |
| Centered Layout | Add a class .centered-layout to the body. |
| Boxed Layout | Add a class .boxed-layout to the body. |
| Boxed Layout with a background image |
Add a background image to the
Or it could be in your custom class.
Or use a CSS variable
|
Colors
You can switch between light and dark color modes by modifying the data-bs-theme in the <html> element.
Also you can change the color scheme using the data-scheme.
<html lang="en" data-bs-theme="light" data-scheme="navy">
<html lang="en" data-bs-theme="dark" data-scheme="lime">
There are currently 12 color schemes available for use.
gray |
violet |
cherry |
|---|---|---|
navy |
orange |
coffee |
ocean |
teal |
pear |
lime |
corn |
night |
Creating a Toggle component for color mode is simple: adding a class .mode-switcher to the select, checkbox, or radio buttons.
For more details and examples, please visit the documentation.
Select
Checkbox
Radio buttons
Themes
| Expanded header | Add a class .tm--expanded-hd to the #root. |
| Fair header | Add a class .tm--fair-hd to the #root. |
| Full header | Add a class .tm--full-hd to the #root. |
| Primary nav | Add a class .tm--primary-mn to the #root. |
| Brand | Add a class .tm--primary-brand to the #root. |
| Tall header | Add a class .tm--tall-hd to the #root. |
Header
| Sticky header | Add a class .hd--sticky to the #root. |
| Expanded header | Add a class .tm--expanded-hd to the #root. |
| Expanded header with overlapping content. | Add a class .overlapping to the #content > .content__header. |
| Disable rounded header. | Add a class .rounded-0 to the #content > .content__header. |
Animations
Add the following class to the body to change the animation transition.
| Transition function name | Class name |
|---|---|
| In Quart | .in-quart |
| Out Quart | .out-quart |
| In Back | .in-back |
| Out Back | .out-back |
| In Out Back | .in-out-back |
| easeInOutBack | .easeInOutBack |
| steps | .steps |
| jumping | .jumping |
| rubber | .rubber |