Anthony Groß
Anthony Groß

Documentation

Everything you need to customize, extend and deploy Kova.

Quick Start & CLI

Static HTML generated from Nunjucks views + seeded Faker data, styled with Tailwind CSS 4 and KTUI.

v1.0.0

Install dependencies once, then run theme:deploy to compile icons, Tailwind CSS, webpack bundles and all Nunjucks pages into demo/.

BASH terminal.sh
# 1. Install dependencies
npm install

# 2. Build CSS + JS + render all demo pages into demo/
npm run theme:deploy

# 3. Watch CSS & JS during development
npm run dev

# 4. Build clean distributable zip into build/
npm run theme:package

Project Structure

Clean separation between source templates, deterministic fixtures, Tailwind tokens and generated output.

Path Purpose
theme/views/Nunjucks layouts, partials (header, sidebar, drawers), macros and pages
theme/data/Seeded Faker fixtures exposed to views as themeData and browser as window.ThemeData. One file per rule set: store-settings.js (shop shipping + tax), theme-options.js (every header-cog option)
src/css/config.ktui.css (tokens), theme.css (components), utilities.css (@utility recipes)
src/app/Webpack entries: sidebar, header mega menu, plugins (datepicker, colorpicker, editor, mask) & datatable
webpack.vendors.jsCopies self-hosted vendor libraries (KTUI, ApexCharts, Lightweight Charts, Flatpickr, Pickr, Quill, fonts)

Theme Tokens & Colours

All semantic tokens live in src/css/config.ktui.css with ≥ 4.5:1 text contrast on cards.

Primary
#8C57FF
Success
#378200
Warning
#9A6A00
Info
#0077B6
Danger
#DC2F35
Neutral
#6E7178

Open the Theme Settings cog in the header to switch between 11 primary colours, 13 full-palette presets and the Light/Dark sidebar modes — persisted via ThemeStorage (cookie-first) and applied pre-paint.

Shortcut Utilities

Tailwind 4 @utility recipes in src/css/utilities.css — one class equals a full component style.

badge-primary / badge-solid-success

Soft & solid status pills for all 6 tones

icon-box-info / icon-box-solid-primary

40px rounded icon tiles (resize with size-8 / size-11)

bg-grid / bg-hex / bg-waves / bg-mapland

Theme-aware CSS-mask card backgrounds (zero images); bg-mapland = dense topographic contours

dash-border dash-12 dash-gap-6

Dashed outline with your own dash, gap (dash-w-*) and dots (dash-round): an SVG layer, so rounded corners stay dashed

anim-progress-fill / anim-progress-striped

Bars that fill in on load / moving stripes (theme.css, honours reduced motion)

anim-count / anim-ring

CSS-only count-up number (style="--to: 76") and SVG progress ring (pathLength="100")

delta-up / delta-down

Bordered percentage change pills

list-row / list-body / list-title

Leading icon/avatar + text stack + trailing metric

custom-scroll

Slim hover-reveal scrollbar overriding OS defaults

Dark Mode & Scoped Dark Sidebar

Applied pre-paint in layouts/base.njk to eliminate light-mode flashes.

Set class="dark" on <html> for full dark mode, or data-sidebar="dark" for a fixed navy sidebar (#211C39) while keeping light cards.

HTML theme-attrs.html
<!-- Full dark mode + indigo primary -->
<html class="dark" data-theme-color="indigo">

<!-- Light page + dark navy sidebar -->
<html class="light" data-sidebar="dark">

Nunjucks Macros

Reusable structural blocks in theme/views/macros/ui.njk.

Import macros at the top of any page. Use with context when importing pageHeader so breadcrumbs build automatically from themeData.menu.

NUNJUCKS page.njk
{% from "macros/ui.njk" import pageHeader, statCard, cardMenu with context %}

{{ pageHeader({ title: 'Orders', subtitle: 'Manage shipments.' }) }}
{{ statCard({ title: 'Revenue', value: '$42,680', delta: 18.6, up: true, icon: 'currency-dollar', tone: 'success' }) }}

Forms, Pickers & Data Masking

Declarative data attributes wire Flatpickr, Pickr, Quill 2 and zero-dependency input masking.

Live Demo →
HTML plugins.html
<!-- Flatpickr date range -->
<input class="kt-input" data-datepicker='{"mode":"range"}'>

<!-- Zero-dependency input masking (src/app/plugins/mask.js) -->
<input class="kt-input" data-mask="phone" placeholder="(081) 234-5678">
<input class="kt-input" data-mask="pattern" data-mask-pattern="9-9999-99999-99-9">

<!-- Textarea that grows as you type + characters-left ring (theme/static/demo.js) -->
<span class="char-ring" data-char-ring-for="bio">…ring svg (see forms-basic.html)…</span>
<textarea id="bio" class="kt-textarea auto-size" maxlength="200" data-autosize></textarea>

Charts & DataTable

ApexCharts for dashboards, TradingView Lightweight Charts for financial candles, and client-side DataTables.

All chart colours read live CSS variables (--primary, --muted-foreground, --border) so toggling dark mode or changing the primary swatch immediately re-themes every chart. For simple comparisons, prefer the CSS-only columnBars and rowBars macros.

6 Starter Kits

Every buyer ZIP includes ready-to-run starter kits in starter-kits/ alongside the static HTML kits.

6 Frameworks
Laravel (Blade)
starter-kits/laravel/

81 shared-layout Blade views + 97 standalone pages + routes.

Laravel + Livewire 3
starter-kits/livewire/

Laravel kit plus interactive Livewire components & wire:model examples.

React (Vite)
starter-kits/react/

178 React Router pages, AppLayout shell, and modular assets.

Vue 3 (Vite)
starter-kits/vue/

178 Vue 3 SFC views, vue-router config, and theme tokens.

Next.js (App Router)
starter-kits/nextjs/

App Router layout, 178 pages, and client-safe theme scripts.

Bootstrap 5.3
starter-kits/bootstrap5/

7 self-hosted Bootstrap 5.3 pages skinned with Kova tokens — zero Sass build needed.

BASH starter-kits.sh
# Build the full buyer package with all 6 starter kits + Figma tokens
npm run theme:package   # -> build/kova-v1.0.0.zip

Theme Presets & Customizer

13 curated colour presets, header & sidebar layouts, persisted automatically via theme-settings.js.

Every preference is stored as an HTML attribute on <html> before first paint (zero flash): data-theme-color, data-theme-preset, data-sidebar-style, data-header-style, data-layout, lang, and dir. Lock your production site to any preset by setting attributes directly on <html>:

HTML preset.html
<!-- Lock a site to Noir Gold dark preset + compact header -->
<html lang="en" class="dark" data-theme-preset="noir-gold" data-header-style="compact">

10 Languages & RTL

Lazy-loaded per-language packs (0 KB on English load), native typography stacks, and automatic Arabic RTL flip.

10 Languages

Translations live in theme/data/i18n/<lang>.json (th, hi, ko, ja, zh, zh-TW, de, fr, ar). During build, tools/theme-build.js validates every data-i18n* key across all 9 packs and emits lightweight js/i18n/<lang>.js files that work on both file:// and HTTP.

HTML i18n.html
<!-- Tag text, placeholders, or tooltips — English fallback is cached automatically -->
<h2 data-i18n="dash.recentOrders">Recent Orders</h2>
<input data-i18n-placeholder="nav.search" placeholder="Search…">

<!-- Switch language or read a key in JS -->
ThemeI18n.apply('th');
const label = ThemeI18n.t('ui.save', 'Save');

Toasts, Motion & Lazy UI

Light & solid KTToast, SVG dotted borders, animated buttons, lazy image shimmers, and smooth scroll.

HTML primitives.html
<!-- 1. Light or solid KTToast with Tabler icon -->
KTToast.show({ message: 'Saved!', variant: 'success', appearance: 'light', position: 'top-end' });

<!-- 2. Smooth scroll to any section (auto-offsets sticky headers) -->
<button data-scroll-to="#pricing" data-scroll-offset="80">Jump to Pricing</button>

<!-- 3. Lazy-loaded photo with shimmer skeleton until decoded -->
<div class="img-lazy-wrap aspect-[16/9]">
  <img src="photo.jpg" loading="lazy" decoding="async" class="size-full object-cover">
</div>

<!-- 4. Custom SVG dotted border & flowing gradient border -->
<div class="relative rounded-xl p-4 tone-primary">
  <svg class="dash-border dash-1 dash-gap-6 dash-w-2 dash-round"><rect width="100%" height="100%" rx="12"/></svg>
</div>
<div class="anim-border-flow rounded-2xl p-5">Animated border card</div>

6 Complete Sites & Keyless Maps

Swap your own catalogue, articles, menu, blog posts, or map pins in one data file per site.

All Demos

Docker & Static Deployment

Serve via nginx Docker Compose or deploy the demo/ folder to any static host.

BASH deploy.sh
# Run locally with Docker (Node builds demo/, nginx serves on port 80)
npm run up

# Or build static files for Netlify / Cloudflare Pages / S3
npm run theme:deploy

Type at least 2 characters.

Are you sure?

This action cannot be undone.