The default theme is one CSS file:

import 'ka-table/style.css';

Customization

ka-table/style.css is plain CSS: every colour and size of the default theme is a CSS custom property (--ka-*) declared on the root element of the table (.ka). A theme is a rule which overrides the properties, for every table or for the tables inside a container. The properties are listed in the readme.

.ka {
  --ka-background-color: #2c2c2c;
  --ka-thead-background-color: #1b1b1b;
  --ka-color-base: #fefefe;
}

The rule has to match .ka itself: a property set only on an ancestor (:root) is overridden by the defaults of the table. The package has no Sass files since 13.0.0.

Demo: Custom Theme

Dark theme

import 'ka-table/style.css';
import 'ka-table/themes/dark.css';

The theme is applied by the class ka-dark on the table or on an ancestor, e.g. <body class="ka-dark">.

Demo: Dark Theme

Third-party libraries

As ka-table is a real html table it can be easily used with bootstrap, material or other frameworks.

To use other frameworks styles add required css classes for table elements using childComponents:

Bootstrap Demo or Material UI Demo

In most cases there is no need to include ka-table/style.css - ka-table can be used with 3rd parties styles only.