CxJS

Themes

CxJS offers two theming approaches: a modern CSS variables theme for runtime customization, and classic themes with compile-time SCSS configuration.

The cx-theme-variables theme uses CSS custom properties, enabling runtime theme switching (e.g., light/dark mode) without recompiling SCSS. It supports presets, tweaks, dynamic themes, and dark mode out of the box. Preview it in the Theme Editor.

npm install cx-theme-variables
import "cx-theme-variables/dist/reset.css";
import "cx-theme-variables/dist/widgets.css";
import "cx-theme-variables/dist/charts.css";
import "cx-theme-variables/dist/svg.css";

Or import from SCSS source:

@use "cx-theme-variables/src/index";

For presets, tweaks, dark mode, dynamic themes, and CSS variable overrides, see the detailed documentation.

Classic Themes

Classic themes use SCSS variables that are resolved at compile time. They produce smaller CSS output but require recompilation to change. See them in action at the CxJS Gallery.

ThemePackageDescription
Aquamarinecx-theme-aquamarineClean, modern theme with aquamarine accents
Materialcx-theme-materialGoogle Material Design inspired theme
Material Darkcx-theme-material-darkMaterial Design dark variant
Frostcx-theme-frostLight theme with subtle blue tones
Darkcx-theme-darkDark theme for low-light environments
Space Bluecx-theme-space-blueDark blue theme
Packed Darkcx-theme-packed-darkCompact dark theme for data-dense UIs
npm install cx-theme-aquamarine
@use "cx-theme-aquamarine/src/index";

For customization with variables, state style maps, and CSS overrides, see the detailed documentation.