ODE Bootstrap CSS Framework

1.0.0-dev.0 · active · verified Sun Apr 19

ODE Bootstrap is a specialized CSS framework built upon the core Bootstrap library, specifically designed to provide a tailored visual identity for the 'Open Digital Education' platform. Currently in version `1.0.0-dev.0`, this package signifies a very early development stage, meaning it is not considered stable for production environments and its API and features are subject to frequent, breaking changes without prior notice. As a derivative of Bootstrap, it inherits the responsiveness and component-based structure of Bootstrap but introduces custom theming, unique component overrides, or additional utility classes specific to the ODE ecosystem. Its release cadence is irregular, reflecting its developmental status. Unlike general-purpose Bootstrap themes, ODE Bootstrap's primary differentiator is its deep integration and customization for a specific educational application context, aiming to provide a consistent and branded user experience within that environment.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import ODE Bootstrap's CSS into a modern TypeScript project using LitElement, and showcases basic usage of its customized Bootstrap components.

import 'ode-bootstrap/dist/css/ode-bootstrap.min.css';
// Assuming Bootstrap's JavaScript is also handled, if needed for interactive components
// import 'bootstrap/dist/js/bootstrap.bundle.min.js';

import { LitElement, html, css } from 'lit';
import { customElement, property } from 'lit/decorators.js';

@customElement('ode-app')
export class OdeApp extends LitElement {
  static styles = css`
    /* Your application-specific styles, potentially overriding ODE Bootstrap */
    .custom-section {
      padding: 1.5rem;
      background-color: var(--bs-light);
      border-radius: 0.5rem;
      margin-top: 1.5rem;
    }
  `;

  @property({ type: String })
  appName = 'My ODE Project';

  render() {
    return html`
      <header class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container-fluid">
          <a class="navbar-brand" href="#">${this.appName}</a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav ms-auto">
              <li class="nav-item">
                <a class="nav-link active" aria-current="page" href="#">Home</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#">About</a>
              </li>
            </ul>
          </div>
        </div>
      </header>
      <main class="container mt-4">
        <div class="alert alert-success" role="alert">
          Welcome to your ODE-styled application! This alert uses custom theme colors.
        </div>
        <button type="button" class="btn btn-secondary me-2">Secondary Button</button>
        <button type="button" class="btn btn-outline-info">Info Outline Button</button>
        <div class="custom-section">
          <h4>Feature Section</h4>
          <p>This area demonstrates custom content styled with ODE Bootstrap utility classes and some internal overrides.</p>
          <span class="badge bg-warning text-dark">New Feature</span>
        </div>
      </main>
    `;
  }
}

// To integrate this web component into an HTML page:
// document.body.appendChild(document.createElement('ode-app'));

view raw JSON →