A guide for integrating the Enterprise Bootstrap Theme into your project.
The dist/ directory contains everything you need:
| Path | Purpose |
|---|---|
css/custom.css | Compiled theme CSS (Bootstrap 5 + enterprise overrides) |
js/bootstrap.bundle.min.js | Bootstrap 5 JavaScript bundle (includes Popper.js) |
icons/bootstrap-icons.css | Bootstrap Icons CSS |
icons/fonts/ | Bootstrap Icons font files |
components/errordialog/errordialog.css | ErrorDialog component styles |
components/errordialog/errordialog.js | ErrorDialog component script |
docs/ | This documentation (HTML) |
Copy this into your HTML file to start using the theme:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My App</title>
<!-- Google Fonts: Inter (body) + JetBrains Mono (code) -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="icons/bootstrap-icons.css">
<!-- Enterprise Theme CSS -->
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<div class="container py-4">
<h1>Hello, Enterprise Theme</h1>
<p>Your content here.</p>
<button class="btn btn-primary">Action</button>
</div>
<!-- Bootstrap JS -->
<script src="js/bootstrap.bundle.min.js"></script>
</body>
</html>
The load order matters:
custom.css) — contains Bootstrap 5 + all enterprise overrides.<body> for modals, dropdowns, tooltips, etc.<!-- Additional CSS in <head> -->
<link rel="stylesheet" href="components/errordialog/errordialog.css">
<!-- Additional JS before </body> -->
<script src="components/errordialog/errordialog.js"></script>
<!-- Container element somewhere in <body> -->
<div id="error-dialog-container"></div>
<!-- Trigger an error dialog -->
<script>
showErrorDialog("error-dialog-container", {
title: "Connection Lost",
message: "The server is not responding. Your changes have been saved locally.",
suggestion: "Check your network connection and try again.",
errorCode: "NET_TIMEOUT",
correlationId: "a1b2c3d4-e5f6-7890"
});
</script>
See the Component Reference for full API documentation.
After integrating, verify these items:
<i class="bi bi-check-circle"></i>)This theme is designed for enterprise SaaS applications with these characteristics:
See DESIGN_TOKENS.md for every customisable variable.