Getting Started

Download

Add BIMA UI to any project — via the jsDelivr CDN, via NPM, or by copying the pre-built files. Then drop in the recommended fonts and a starter template.

Install via CDN

The fastest way to start is to link the pre-built files directly from jsDelivr. The CSS is required; the JS is optional and only needed for interactive components (modal, accordion, tabs, toast, carousel, custom select).

<!-- CSS (required) -->
<link rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/@milvikbima/ui@/dist/bima.min.css">

<!-- JS (optional — only for interactive components) -->
<script src="https://cdn.jsdelivr.net/npm/@milvikbima/ui@/dist/bima.min.js"></script>

The @ tag always resolves to the latest .x release. Pin an exact version (e.g. @milvikbima/ui@) for fully reproducible builds.

Install via NPM

For bundled projects (Vite, webpack, Parcel, Rollup) install the package from NPM:

npm install @milvikbima/ui

Then import the stylesheet — and, if you need interactive components, the script — from your entry file:

// In your JS entry file (main.js / main.ts)
import '@milvikbima/ui/dist/bima.css';
import '@milvikbima/ui/dist/bima.js';   // optional

Or import the CSS straight from a global stylesheet:

/* In your global CSS */
@import "@milvikbima/ui/dist/bima.css";

Using Tailwind, Ant Design, or MUI? Don't import the full bima.css. Import only the design tokens via the @milvikbima/ui/tokens export and map them into your stack's theme. See Tokens-only export below.

Fonts

BIMA UI uses Quicksand for display and headings and Manrope for body text and UI, with JetBrains Mono for code. All three are self-hosted: variable WOFF2 files ship in dist/fonts/ and dist/bima.css declares them with @font-face, so no extra tag is needed in your <head> and no request goes to a third party.

/* Already bundled — dist/bima.css loads ../fonts/*.woff2.
   Serve dist/fonts/ next to dist/bima.css (it is, when served from the package or a CDN). */

If a font fails to load, the tokens fall back to a system stack (-apple-system / Segoe UI). Copying bima.css somewhere on its own? Copy fonts/ beside its parent folder too, or load the faces from Google Fonts (see the comment at the top of tokens/variables.css).

Tokens-only export

When you build on Tailwind, Ant Design, or MUI you usually don't want BIMA's component CSS — you want its values. The package exposes a tokens-only entry containing every --bima-* custom property and nothing else:

/* CSS */
@import "@milvikbima/ui/tokens";

/* or JS */
import '@milvikbima/ui/tokens';

This resolves to tokens/variables.css. Read the variables and feed them into your framework's theme — for example a Tailwind theme.extend or an Ant Design config provider. See Webpack & Bundlers for a Tailwind example.

Starter template

A complete, copy-paste page that links the CDN CSS (fonts are loaded automatically) and the optional JS:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My BIMA App</title>

  <!-- BIMA UI CSS (self-hosts Quicksand, Manrope, JetBrains Mono from dist/fonts) -->
  <link rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@milvikbima/ui@/dist/bima.min.css">
</head>
<body>
  <main class="bima-container">
    <h1>Hello, BIMA!</h1>
    <p>Start building with the BIMA Design System.</p>
    <button class="bima-btn bima-btn--primary">Primary action</button>
    <button class="bima-btn bima-btn--secondary">Secondary action</button>
  </main>

  <!-- BIMA UI JS (optional) — place before </body> so the DOM is ready -->
  <script src="https://cdn.jsdelivr.net/npm/@milvikbima/ui@/dist/bima.min.js"></script>
</body>
</html>

Hello, BIMA!

Start building with the BIMA Design System.

Place the JS bundle just before </body>. Components self-initialise on DOMContentLoaded, so the script needs the markup to be present when it runs.

Next steps

Once installed, learn what's in the package, wire it into your bundler, or theme it: