Add Chi CSS by copying and pasting the stylesheet below into the header of your project. Chi's stylesheet is hosted on Lumen's Assets Server which is a highly available and performant option for loading assets into your Lumen project.

<link rel="stylesheet" href="" integrity="
<link rel="stylesheet" href="" integrity="

Next, add the chi CSS class to the <html> tag of your document to properly scope the styles. This allows Chi to override any existing styles that have been defined by legacy markup.

<html class="chi">

At this point you can now start using Chi. The documentation includes a wealth of templates and code samples to get you started.



A favicon is a small icon associated with a webpage that is typically displayed in a browser's address bar, bookmarks, and tabs. To add a Lumen favicon to your project, insert the following code before the closing <head> tag.



Although Chi can be used as a pure HTML and CSS library with only the stylesheet above, many advanced components like tabs, drop downs, date pickers, and others require JavaScript to function. In most cases the need is minimal. You may write your own JavaScript to integrate Chi's CSS and blueprints into your project, or use Chi's JavaScript library which was written to provide a complete solution.

Chi's JavaScript library depends on Popper.js for positioning components like Popovers and Dropdown menus, and Day.js for calculating dates in the Datepicker component. For the rest, the library is entirely independent.

Chi's JavaScript library is developed as an ES6 component, but with the help of Webpack, it is available in several flavors. Choose the method that best fits your project.

To use the old method of including Chi in your project, include the ES5, browser prepared, JavaScript file from the Lumen Assets Server. In this solution Popper.js and Day.js are bundled into the file.

<script src="" integrity="

If you use RequireJS or any other AMD compatible module loader in your project, you will find the AMD compatible version in the amd folder. Then, you will have to update your require configuration:

'chi': {
  path: [CHI_PATH, 'amd', 'chi'].join('/'),
  shim: {
    deps: ['Popper'],
    exports: 'chi'

For recent projects already using ES6 modules, will find their version in the es6 folder. In this case, there is no need for importing the whole Chi library as you can import each component separately by using ES6 import syntax.

import {Dropdown} from "route/to/chi/es6/dropdown.js";

Web Components


Chi Web Components are Custom Elements designed to Lumen's specifications and built according to the HTML Living Standard. They are written in vanilla Javascript for compatibility with major frameworks including AngularJS, ReactJS, VueJS, or no framework at all.

Add Chi Web Components by copying and pasting the JavaScript files below into the header of your web application. Placing the files in the header is important as it will load any Polyfill if the browser doesn't support Web Components.

<script type="module" src="" integrity="
</script><script nomodule="" src="" integrity="

After placing the files in your header, you are now ready to use the Web Components described in this documentation.

HTML attributes and DOM properties

Chi Web Components can be used in several different ways. The most common are the HTML attributes and the DOM properties. In most cases, we keep them synchronized. For example, the chi-button element has a size attribute that can be accessed and modified in two ways.

Modifying the HTML attribute

<chi-button id="close-btn" size="md">Close</chi-button>
  document.getElementById("close-btn").setAttribute("size", "xl");

Setting the DOM property

<chi-button id="close-btn" size="md">Close</chi-button>
Boolean attributes and properties

Some Chi components have boolean attributes which function the same way as the well known disabled attribute. Boolean attributes are true when the HTML element has the attribute and false when not.

Boolean attributes can be set to true this way:

<input type="text" disabled />
<chi-drawer id="drawer" active />
  document.getElementById("drawer").active = true;
  document.getElementById("drawer").setAttribute("active", "active");

And set to false this way:

<input type="text"  />
<chi-drawer id="drawer" />
  document.getElementById("drawer").active = false;

Some components, like chi-drawer, have helper methods in order to change the state of commonly modified attributes:

<chi-drawer id="drawer" />
  document.getElementById("drawer").show();   // This sets the active property to true
  document.getElementById("drawer").hide();   // This sets the active property to false
  document.getElementById("drawer").toggle(); // This toggles the state of the active property

Chi Vue


Chi supports a set of native Vue components. Chi Vue can be installed via Github npm registry or included from CDN as a UMD library.

"@centurylink/chi-vue": "1.5.0",
"copy-webpack-plugin": "^5.1.1",
Import Chi Vue and register its components globally
import(/* webpackChunkName: "chi-vue" */ '@centurylink/chi-vue').then(chiVue => {
  Object.keys(chiVue.library.components).forEach((name: string) => {
    Vue.component(name, chiVue.library.components[name]);
}).finally(() =>{
  new Vue({
    render: h => h(App),
}).catch(() => {
  throw('@centurylink/chi-vue library is not loaded correctly!');
Use CopyWebpackPlugin in vue.config.js to copy Chi Vue assets to dist
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    configureWebpack: config => {
      if (!config.externals) {
        config.externals = {};

      config.output.filename = '[name].js';
      config.output.chunkFilename = '[name].js';

      let plugins = [{ from: '@centurylink/chi-vue/dist' }];
        new CopyWebpackPlugin(plugins, {
          context: 'node_modules',
          ignore: ['.DS_Store'],
Include Chi Vue UMD library from CDN and register the components you need.
<!-- UMD asset -->
<script src=""></script>

<!-- Vue component example -->
new Vue({
  components: {
    chiVuePagination: window['chi-vue'].library.components.ChiPagination,

<!-- Vue template example -->
<chi-vue-pagination :pages="5" :current-page="currentPage"></chi-vue-pagination>

Framework specific boilerplates

Boilerplates include:
chi.csschi.jsWeb componentsFaviconDownload
Vue + ES6