Sneak Peek! CoreUI 3 is coming! Please try the latest version - CoreUI PRO 3.0.0-alpha..
Try CoreUI PRO 3.0.0-alpha
Migrating to v2.0.0
CoreUI 2.0.0 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.
Summary
Here are the big ticket items you’ll want to be aware of when moving from v1.x.x to v2.0.0.
Global changes for Admin Templates
- We decided to moved all SCSS and JavaScript files was to separate repository @coreui/coreui. Our templates now require latest stable version of @coreui/coreui to work properly.
- Our admin templates are not available via npm anymore. You can clone a repository from GitHub or download from our website.
Global changes
$enable-roundedis enabled by default.- Build system overhauled to use a series of npm scripts instead of Gulp. See
package.jsonfor all scripts, or our project readme for local development needs. - Dropped Bower support as the package manager has been deprecated for alternatives (e.g., Yarn or npm). See bower/bower#2298 for details.
By component
This list highlights key changes by component between v1.x.x and v2.0.0.
Header
.mobile-sidebar-togglerhas been deprecated. Use our new sidebar toggler plugin.sidebar-togglernow requires additional data attributesdata-toggle="sidebar{-sm|-md|-lg|-xl}-show". Read more about sidebar toggler plugin](https://coreui.io/bootstrap/docs/components/sidebar/#sidebar-toggler).aside-menu-togglernow requires additional data attributesdata-toggle="aside-menu{-sm|-md|-lg|-xl}-show". Read more about aside menu toggler plugin](https://coreui.io/bootstrap/docs/components/aside-menu/#aside-menu-toggler)
Sidebar
- Icons now require
.nav-iconclass. .dividerhas been deprecated. Instead, use.nav-divider.
Social box
.social-boxis now.brand-cardand now requires that its children element have the new.brand-card-headerand.brand-card-bodyclasses..brand-card-headerrequires a background declaration of some kind ex..bg-facebookor.bg-reddit
Social buttons
- Buttons now require
.btn-brandclass.
Switches
- Dropped
.switch-defaultclass for simplicity’s sake. Use.switchclasses instead now. .switch-xshas been deprecated..switch-labelis now.switch-slider.- We’ve changed
.switch-*-outlineto.switch-outline-*. - We’ve dropped
.switch-iconand.switch-textfor one class.switch-label. - Data attributes
data-on="On"anddata-off="Off"have been dropped. Instead, usedata-checked="On"anddata-unchecked="Off".