balm-ui is a free, open source design & prototyping project written in SCSS and released under MIT. It has 507 GitHub stars, 30 forks and 26 open issues, and was last pushed 18 days ago. On this registry it ranks #125 of 127 tracked projects in Design & Prototyping, with 5 head-to-head comparisons available.

What is balm-ui?

BalmUI is a modular, customizable Material Design component library for Vue 3 that gives web application teams a ready-made set of components, plugins, directives, and utilities to build enterprise-class interfaces.

What it is

BalmUI is an MIT-licensed UI library written in SCSS and JavaScript for the Vue 3 ecosystem, offering a set of Vue components, plugins, directives, and utilities alongside a complete set of the latest Material Icons. It is distributed as the balm-ui npm package, with an official site of documentation and demos at material.balmjs.com, and it maintains a parallel balm-ui@8 branch and v8.material.balmjs.com site for projects still on Vue 2.

The concrete problem it addresses is the cost of hand-building Material Design interfaces consistently across a web application. Instead of writing styling and behaviour from scratch, a project imports balm-ui styles through Sass — @use 'balm-ui/dist/balm-ui' — registers the library with app.use(BalmUI) in main.js, and can then theme every detail while still pulling in individual components on demand.

Key capabilities

  • Ships Vue components, plugins, directives, and utils out of the box, described as enterprise-class UI for web applications, with an optional balm-ui-plus layer of BalmJS Team Material Components on top of the official Google Material Components.
  • Supports standalone, per-component import so only what is needed is registered, for example import UiButton from 'balm-ui/components/button', import $alert from 'balm-ui/plugins/alert', or granular Sass entries such as @use 'balm-ui/components/dialog/dialog' and @use 'balm-ui/plugins/alert/alert'.
  • Provides powerful theme customization in every detail, with advanced styling available through Dart Sass by setting styles: { extname: 'scss' } in config/balmrc.js.
  • Integrates a complete set of the latest Material Icons, downloadable as material-icons.zip or copied automatically from node_modules/balm-ui/fonts/* into app/fonts during development.
  • Splits distribution into balm-ui (mandatory, official Google Material Components) and balm-ui/dist/balm-ui-plus.js (optional BalmJS Team components), each usable independently.
  • Offers TypeScript support, listed in the README as in progress.
  • Runs on Vue.js 3.0+ and works with Balm CLI, Vue CLI, or Vite toolchains.

Who uses it and how

  • Teams scaffolding a new Vue 3 project with Balm CLI via balm init vue my-project, then editing balm.config.js and config/balmrc.js before running npm run dev and npm run prod.
  • Projects bootstrapped with Vue CLI or Vite that add balm-ui and wire the balm-ui-plus and balm-ui-css aliases through configureWebpack in vue.config.js.
  • Application developers who register everything at once with app.use(BalmUI) for a full Material Design surface.
  • Developers optimising bundle size by importing only chosen components and plugins rather than the whole library.
  • Vue 2 codebases that stay on the 8.x branch and the v8.material.balm.com documentation.

Getting started

Install with yarn add balm-ui or npm install --save balm-ui, or scaffold a full project with balm init vue my-project and follow the Quick Start in the README; documentation and demos live at material.balmjs.com.

How it compares

BalmUI sits alongside Material Design's own MDC Web components, which the README's version badges track, and it is the Vue 3 successor to the project's own balm-ui@8 release for Vue 2. Within this registry it stands as the Vue-oriented Material Design implementation that bundles components, plugins, and a theming layer in one package.

When to use it — and when not to

You must operate a supporting toolchain — Balm CLI, Vue CLI, or Vite — plus Dart Sass configuration and the Material Icons font files in app/fonts, and you should not pick it if you are not building with Vue 3 or need no Material Design styling. Note that TypeScript support is still listed as updating, the library carries 26 open issues, and the README requires manual configuration edits in balm.config.js, config/balmrc.js, _vendors.scss, and main.js before anything renders.

project readme (upstream, from github) — read inline

BalmUI BalmUI version MDC version

Next Generation Material UI for Vue.js

Introduction

BalmUI is a modular and customizable Material Design UI library for Vue 3.

balm-ui@8 supports for Vue 2

Features

  • Enterprise-class UI designed for web applications
  • A set of high-quality Vue components/plugins/directives/utils out of the box
  • Powerful theme customization in every detail
  • Integrated a complete set of the latest Material Icons
  • All components and plugins is highly customizable, and can be used individually
  • TypeScript support (updating)

Documentation & Demos

Quick Start

Requirements

1. For Balm CLI

1.0 Create a project
balm init vue my-project
cd my-project
1.1 Installing balm-ui
yarn add balm-ui
# OR
npm install --save balm-ui
1.2 Configuration

update balm.config.js

  • get Material Icons without downloading (or, download and extract to my-project/app/fonts)

    const api = (mix) => {
      if (mix.env.isDev) {
        mix.copy('node_modules/balm-ui/fonts/*', 'app/fonts');
      }
    };
    
  • edit my-project/config/balmrc.js for using Dart Sass

    module.exports = {
      styles: {
        extname: 'scss'
      }
      // Other Options...
    };
    
1.3 Usage
Default Usage
  • edit my-project/app/styles/global/_vendors.scss

    /* import BalmUI styles */
    @use 'balm-ui/dist/balm-ui';
    

    Recommend to use Sass in /path/to/project-name/styles/_vendors.scss, and you can use more advanced style usage of the BalmUI.

  • edit my-project/app/scripts/main.js

    import { createApp } from 'vue';
    import App from '@/views/layouts/app';
    import BalmUI from 'balm-ui'; // Official Google Material Components
    import BalmUIPlus from 'balm-ui/dist/balm-ui-plus'; // BalmJS Team Material Components
    
    const app = createApp(App);
    
    app.use(BalmUI); // Mandatory
    app.use(BalmUIPlus); // Optional
    
    app.mount('#app');
    
Standalone Usage
  • edit my-project/app/styles/global/_vendors.scss

    @use 'balm-ui/components/core';
    @use 'balm-ui/components/button/button';
    @use 'balm-ui/components/icon/icon';
    @use 'balm-ui/components/dialog/dialog';
    @use 'balm-ui/plugins/alert/alert';
    
  • edit my-project/app/scripts/main.js

    import { createApp } from 'vue';
    import App from '@/views/layouts/app';
    import UiButton from 'balm-ui/components/button';
    import $alert from 'balm-ui/plugins/alert';
    
    const app = createApp(App);
    
    app.use(UiButton);
    app.use($alert);
    
    app.mount('#app');
    
1.4 Development and testing
npm run dev
  • edit a vue component: my-project/app/scripts/views/components/hello.vue

    
    
        ...
    
        Click Me
    
    
1.5 Bundling and deployment
npm run prod

2. For Vue CLI or Vite

2.0 Create a project
  • vue-cli

    vue create my-project
    
    cd my-project
    
  • vite

    # npm 6.x
    npm init @vitejs/app my-project --template vue
    
    # npm 7+, extra double-dash is needed:
    npm init @vitejs/app my-project -- --template vue
    
    # yarn
    yarn create @vitejs/app my-project --template vue
    
    cd my-project
    
2.1 Installing balm-ui
yarn add balm-ui
# OR
npm install --save balm-ui
2.2 Configuration
  • vue-cli

    // vue.config.js
    module.exports = {
      runtimeCompiler: true,
      // NOTE: set alias via `configureWebpack` or `chainWebpack`
      configureWebpack: {
        resolve: {
          alias: {
            'balm-ui-plus': 'balm-ui/dist/balm-ui-plus.js',
            'balm-ui-css': 'balm-ui/dist/balm-ui.css'
          }
        }
      }
      // chainWebpack: (config) => {
      //   config.resolve.alias
      //     .set('balm-ui-plus', 'balm-ui/dist/balm-ui-plus.js')
      //     .set('balm-ui-css', 'balm-ui/dist/balm-ui.css');
      // }
    };
    
  • vite

    // vite.config.js
    import { defineConfig } from 'vite';
    import vue from '@vitejs/plugin-vue';
    
    export default defineConfig({
      plugins: [vue()],
      resolve: {
        alias: {
          vue: 'vue/dist/vue.esm-bundler.js',
          'balm-ui-plus': 'balm-ui/dist/balm-ui-plus.esm.js',
          'balm-ui-css': 'balm-ui/dist/balm-ui.css'
        }
      }
    });
    
2.3 Usage
  • edit my-project/src/main.js

    import { createApp } from 'vue';
    import App from './App.vue';
    
    import BalmUI from 'balm-ui'; // Official Google Material Components
    import BalmUIPlus from 'balm-ui-plus'; // BalmJS Team Material Components
    import 'balm-ui-css';
    
    const app = createApp(App);
    
    app.use(BalmUI);
    app.use(BalmUIPlus);
    
    app.mount('#app');
    

3. For ``

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Hello BalmUI</title>
    <link rel="stylesheet" href="https://unpkg.com/balm-ui/dist/balm-ui.css" />
  </head>
  <body>
    <div id="app">
      <ui-button icon="add" @click="$alert(message)">SayHi</ui-button>
    </div>
    <script src="https://unpkg.com/vue"></script>
    <script src="https://unpkg.com/balm-ui"></script>
    <script src="https://unpkg.com/balm-ui/dist/balm-ui-plus.js"></script>
    <script>
      const app = Vue.createApp({
        setup() {
          var message = 'Hello BalmUI';

          return {
            message
          };
        }
      });

      app.use(BalmUI);
      app.use(BalmUIPlus);

      app.mount('#app');
    </script>
  </body>
</html>

Enjoy 👻

Contributing

We'd love for you to contribute and make BalmUI even better than it is today! Please make sure to read the Contributing Guide before making a pull request. You can submit any ideas as pull requests or as GitHub issues.

Browser support

We officially support the last two versions of every major browser. Specifically, we test on the following browsers:

  • Chrome on Android, Windows, macOS, and Linux
  • Firefox on Windows, macOS, and Linux
  • Safari on iOS and macOS
  • Edge on Windows

Special Sponsors

ZMTO

Special Thanks to

Frequently asked questions

Is balm-ui free to use?

balm-ui is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does balm-ui do?

:diamonds: A modular and customizable UI library based on Material Design and Vue

What is balm-ui written in?

balm-ui is primarily written in SCSS. Its source is publicly available at https://github.com/balmjs/balm-ui, and it has 507 GitHub stars.