Support CoreUI Development

CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

You can support our Open Source software development in the following ways:

  • Buy the CoreUI PRO, and get access to PRO components, and dedicated support.
  • Became a sponsor, and get your logo on files or each site of this documentation
  • Give us a star ⭐️ on Github.


Learn how to include CoreUI in your project using Parcel.

Install Parcel

Install Parcel Bundler.

Install CoreUI

Install CoreUI as a Node.js module using npm.

Bootstrap depends on Popper, which is specified in the peerDependencies property. This means that you will have to make sure to add both of them to your package.json using npm install @popperjs/core.

When all will be completed, your project will be structured like this:

├── build/
├── node_modules/
│   └── @coreui/coreui/
│   └── popper.js/
├── scss/
│   └── custom.scss
├── src/
│   └── index.html
│   └── index.js
└── package.json

Importing JavaScript

Import CoreUI’s JavaScript in your app’s entry point (usually src/index.js). You can import all our plugins in one file or separately if you require only a subset of them.

// Import all plugins
import * as coreui from '@coreui/coreui'

// Or import only needed plugins
import { Tooltip, Toast, Popover } from '@coreui/coreui'

// Or import just one
import Alert from '../node_modules/@coreui/coreui/js/dist/alert'

Importing CSS

To utilize the full potential of CoreUI for Bootstrap and customize it to your needs, use the source files as a part of your project’s bundling process.

Create your own scss/custom.scss to import CoreUI’s Sass files and then override the built-in custom variables.

Build app

Include src/index.js before the closing </body> tag.

<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="./index.js"></script>

Edit package.json

Add dev and build scripts in your package.json file.

"scripts": {
  "dev": "parcel ./src/index.html",
  "prebuild": "npx rimraf build",
  "build": "parcel build --public-url ./ ./src/index.html --experimental-scope-hoisting --out-dir build"

Run dev script

Your app will be accessible at

npm run dev

Build app files

Built files are in the build/ folder.

npm run build