Scheduler Installation

Installation

Install CoreUI Scheduler with npm and load its stylesheet and script.

npm

npm install @coreui/scheduler

The package ships UMD and ESM builds plus a compiled stylesheet:

import { Scheduler } from '@coreui/scheduler'
import '@coreui/scheduler/dist/css/scheduler.css'

Script tag

The UMD build registers the component on the coreui global — the same namespace as @coreui/coreui:

<link rel="stylesheet" href="node_modules/@coreui/scheduler/dist/css/scheduler.css" />
<script src="node_modules/@coreui/scheduler/dist/js/scheduler.js"></script>
<script>
  new coreui.Scheduler(document.getElementById('scheduler'), { events: [] })
</script>

Sass

Prefer building from source? The stylesheet is a standard Sass module with every token exposed as a !default variable:

@use "@coreui/scheduler/scss/scheduler" with (
  $scheduler-max-height: 50rem
);

Which stylesheet

The Scheduler’s toolbar and edit dialog are built from CoreUI’s own .btn, .form-control and .form-select, so the controls match the rest of your application instead of approximating it. Pick the stylesheet that matches your page:

FileLoad it when
scheduler.css@coreui/coreui or @coreui/coreui-pro is already on the page.
scheduler.standalone.cssIt is not. Adds ~1.7 kB gzip.

scheduler.standalone.css carries the slice of CoreUI the markup relies on — .btn with the ghost, primary and outline variants, and the form controls — mirroring CoreUI 6. Those rules are scoped to .scheduler and emitted into a scheduler-base cascade layer, so they never restyle the rest of your page.

Base styles

The Scheduler resolves its colors through CoreUI semantic CSS variables when the library is present, and falls back to built-in defaults when it is not. Light and dark mode follow the data-coreui-theme attribute automatically.