Brieflow 1.0.0 - Nov 24, 2026

Everything you need to install, restyle and extend the template.

Written for people who are not programmers. Every step is a short, separate item. Code blocks have a Copy button.

Introduction

Brieflow is an admin dashboard template for creative agencies: clients, projects, invoices, calendar and team in one calm interface.

What is inside

  • 30 ready pages (29 template pages and this documentation), 4 page frames and a UI Kit with every component.
  • Light and dark themes. The visitor can switch them, and the choice is remembered.
  • A glass, glow and soft-shadow style built from design tokens, so one color change restyles everything.
  • Tailwind CSS v4, vanilla JavaScript (no jQuery, no frameworks) and ApexCharts for charts.
  • Animations that follow one set of timing tokens and switch off for people who prefer reduced motion.
  • Accessible markup: keyboard navigation, labels, focus rings, contrast checked in both themes.

Requirements

  • To use the HTML files: any modern browser and a text editor (we recommend VS Code).
  • To edit the source and rebuild: Node.js 20 or newer.

The template is front-end only. It has no backend, no database and no sign-in logic: forms show validation and a message, but nothing is sent anywhere. All names and companies are fictional.

Quick start

Path A - just use the HTML

  1. Open the template/dist folder.
  2. Double-click index.html. The dashboard opens in your browser.
  3. Open any file from dist in a code editor, change the text and save. Refresh the browser.
  4. To publish, upload the whole dist folder to your hosting.

Good to know

The compiled CSS contains only the Tailwind utility classes the template already uses (for example gap-4 or md:grid-cols-2). A class that appears nowhere in the template will not work until you rebuild with Path B. Component classes such as btn or card always work.

Path B - edit the source

  1. Install Node.js 20 or newer from nodejs.org.
  2. Open a terminal in the template folder (the one with package.json).
  3. Run the three commands below. The first one downloads the tools, the second builds the site and opens a local server at http://localhost:4173.
  4. Edit files in src. After each change stop the server (Ctrl + C) and run npm run dev again.
  5. When you are done, run npm run build. The result is in dist.
shell
cd brieflow/template
npm install
npm run dev

Never edit dist if you work with the source: it is rebuilt from src and your changes would be lost.

File structure

This is the layout of the download. The folders you will use most are src/pages and src/css.

text
brieflow/
  template/
    package.json          project name, version and the npm commands
    src/                  YOUR SOURCE - edit files here
      pages/              one .html file per page (30 pages)
      layouts/            page frames: app, app-top, auth, blank
      partials/           shared pieces: sidebar, top bar, footer, logo
      css/app.css         all styles and design tokens
      js/                 init.js, app.js and one small script per page (js/pages/)
      img/                logo.svg, logo-dark.svg, favicon.svg
      docs/snippets.txt   code samples shown in this documentation
      fonts/              optional: your own .woff2 fonts (create the folder)
    scripts/
      build.mjs           builds src/ into dist/
      serve.mjs           local server for dist/
    dist/                 READY SITE - upload this folder to your hosting
      *.html              all pages
      assets/css/app.css  compiled styles (readable)
      assets/css/app.min.css  the same, minified (pages use this one)
      assets/js/          scripts
      assets/fonts/       Inter font
      assets/img/         logo and icons
      assets/vendor/      ApexCharts
  documentation/          this documentation (open index.html)
  licenses/               licence texts of the included libraries

The build joins three kinds of files: a layout (the frame), partials (shared pieces such as the sidebar) and a page (the content). Change the sidebar once in partials/sidebar.html and all pages get it.

Pages

Every page lives in src/pages and builds to a file with the same name in dist.

All pages with file name and purpose
FilePurpose
index.htmlOverview dashboard: KPIs, revenue chart, deadlines, team load
dashboard-analytics.htmlHours, win rate and top clients
dashboard-finance.htmlCash flow, margin and recent payments
dashboard-topnav.htmlThe overview with a horizontal menu instead of the sidebar
clients.htmlClient list with search, filters, sorting and bulk actions
client-details.htmlOne client: projects, invoices, contacts
projects.htmlProject list in table or card view
project-details.htmlOne project: tasks, files, activity
projects-board.htmlKanban board with drag and drop
invoices.htmlInvoice list with totals and filters
invoice-details.htmlOne invoice, ready to print
invoice-create.htmlInvoice editor with live totals
calendar.htmlMonth, week and agenda views
team.htmlMembers, roles and invitations
settings-account.htmlProfile, brand color, theme and density
settings-security.htmlPassword, two-step verification, sessions
settings-billing.htmlPlan, payment card and payment history
settings-notifications.htmlNotification channels, digest and quiet hours
auth-sign-in.htmlSign in
auth-sign-up.htmlCreate an account, with password strength
auth-forgot-password.htmlAsk for a reset link
auth-reset-password.htmlSet a new password
auth-two-factor.htmlSix-digit code entry
404.htmlPage not found (see Deployment)
500.htmlServer error
coming-soon.htmlCountdown and a subscribe form
maintenance.htmlPlanned maintenance notice
ui-kit.htmlEvery component in every variant
search.htmlSearch results across clients, projects, invoices
documentation.htmlThis documentation

A look at each group

Overview dashboard with four KPI cards, a revenue chart and a deadlines table
Dashboards
Clients page with KPI cards and a searchable table of clients
Clients
Projects page with a table of projects and progress bars
Projects
Invoices page with four KPI cards and an invoice table
Invoices
Calendar page showing November in month view
Calendar
Team page with member cards
Team
Account settings page with profile, brand color and theme sections
Settings
Sign in page with a form on the left and a decorative panel on the right
Authentication
Coming soon page with a countdown
Utility pages

Customization

Colors and themes

All colors are CSS variables (design tokens) at the top of src/css/app.css: section 3 holds the light theme (:root) and section 4 the dark theme (.dark). The template uses the Teal palette. To change the main color you need these tokens, once for each theme:

Tokens to change when you change the main color
TokenUsed for
--primaryMain buttons, links, active menu item, switches, progress, KPI chip. Glass tint and corner glows are mixed from it.
--primary-hoverHover state of main buttons and links
--primary-softLight tinted background (selected rows, soft badges)
--primary-soft-textText on --primary-soft
--on-primaryText on a --primary button (dark theme only needs it)
--focusKeyboard focus ring
--chart-1First chart color, normally equal to --primary

Keep the contrast between --primary and white (light theme) or --on-primary (dark theme) at 4.5 to 1 or more, and make --primary lighter in the dark theme.

Without Node.js: create the file dist/assets/css/custom.css with the code below and add one line after the app.min.css link in every page. This example switches the template to indigo.

css
/* assets/css/custom.css - load it AFTER app.min.css */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEF0FF;
  --primary-soft-text: #3730A3;
  --focus: #4F46E5;
  --chart-1: #4F46E5;
}
.dark {
  --primary: #818CF8;
  --primary-hover: #A5B4FC;
  --primary-soft: #1E1B4B;
  --primary-soft-text: #A5B4FC;
  --on-primary: #0B0A24;
  --focus: #A5B4FC;
  --chart-1: #818CF8;
}
html
<link rel="stylesheet" href="assets/css/app.min.css">
<link rel="stylesheet" href="assets/css/custom.css">

With the source: edit the same tokens in sections 3 and 4 of src/css/app.css and run npm run build. You do not need custom.css then.

Charts read --chart-1 to --chart-6 and redraw when the theme changes, so they follow your colors too.

Dark theme by default

By default the template follows the visitor's device. To start in dark for everyone who has not chosen a theme, edit src/js/init.js (or dist/assets/js/init.js):

js
/* src/js/init.js - replace this line: */
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) root.classList.add('dark');
/* with this one: */
if (theme !== 'light') root.classList.add('dark');

The theme toggle, the choice saved in the browser and Brieflow.theme keep working. Choosing System in Settings then also gives dark until the visitor picks light.

Glass, glow and soft shadows

The look comes from a handful of tokens in sections 3 and 4 of app.css. Panels (cards, menus, modals, toasts, alerts) are glass. Controls (secondary buttons, inputs, switches, tabs) are soft raised or pressed shapes. Three large light spots on the page background shine through the glass.

Glass, glow and soft shadow tokens
TokenWhat it does
--glassSemi-transparent panel fill (cards)
--glass-strongMore opaque fill for menus, modals, toasts (keeps text readable)
--glass-borderThin light border of a glass panel
--glass-edgeBright line on the top edge of a panel
--glowSecond accent for the background light spots and the end of the button gradient
--primary-2End color of the main gradient, mixed from --primary and --glow
--sheen, --shineSoft highlight on buttons and the shining corner of glass icons
--neu-dark, --neu-lightThe two shadows of the soft (neumorphic) controls
--input-borderBorder of text fields, selects and textareas: half as strong as --border-strong. Hover, focus and error borders are not affected

You rarely need to touch them. --glass, --primary-2 and the glows are calculated from --primary with color-mix(), so after you change the main color (see above) the glass tint and the corner glows follow automatically. To change the second light, set --glow:

css
:root {
  --glow: #A78BFA;           /* the second light spot and the end of the button gradient */
}

To make a field border stronger or weaker, set --input-border, for example var(--border-strong) for the full strength.

Fonts

The template uses Inter (variable font) from the @fontsource-variable/inter package. To use another font:

  1. Create the folder src/fonts and put your .woff2 file in it. The build copies it to dist/assets/fonts.
  2. Open src/css/app.css, add the @font-face in section 1 and set --font-sans in section 2.
  3. Run npm run build.
css
/* src/css/app.css, section 1 "Fonts" - add your font */
@font-face {
  font-family: "My Font";
  font-style: normal;
  font-weight: 100 900;          /* a variable font; for a static font use one @font-face per weight */
  font-display: swap;
  src: url(../fonts/my-font.woff2) format("woff2");
}

/* src/css/app.css, section 2 "@theme inline" - use it */
--font-sans: "My Font", ui-sans-serif, system-ui, sans-serif;

The logo is two SVG files, one for each theme. Replace them with your own files of the same names (keep about 120 x 28 pixels), or change the sizes in src/partials/logo.html. The supplied logo and favicon are drawn in the Teal brand color and do not change with the color tokens, so replace them when you change the main color.

text
src/img/logo.svg          logo for the light theme (120 x 28)
src/img/logo-dark.svg     logo for the dark theme
src/img/favicon.svg       browser tab icon

The menu is src/partials/sidebar.html. Add an item inside the right ul. The value of data-nav must match the nav line in the front matter of the page it opens: that is how the active item is highlighted. The horizontal menu is src/partials/topnav.html.

html
<!-- src/partials/sidebar.html, inside a <ul> of the "Workspace" group -->
<li><a class="sidebar__link" href="reports.html" data-nav="reports" data-tooltip="Reports">{{icon:file-chart-column}}<span class="sidebar__label">Reports</span></a></li>

Creating a new page

  1. Copy an existing page from src/pages (a similar one) and give it a new name, for example reports.html.
  2. Change the front matter (the part between the --- lines) and the content below it.
  3. Run npm run build. The page appears in dist.
html
---
title: Reports
layout: app
nav: reports
section: Workspace
---
<div class="card">
  <div class="card__header"><h2 class="card__title">Monthly reports</h2></div>
  <div class="card__body">
    <p class="text-muted">Your content goes here.</p>
  </div>
</div>

Front matter keys:

text
title     page title and the <h1> (required)
layout    app | app-top | auth | blank (required)
nav       value of data-nav of the menu item to highlight
section   breadcrumb group, for example Workspace
parent    breadcrumb parent: "Clients|clients.html"
header    custom = the page writes its own .page-header
script    name of a file in src/js/pages/ to load (without .js)
charts    true = load ApexCharts on this page
base      prefix for asset paths, see "Deployment and the 404 page"

Icons are inserted with {{icon:name}}. For the names, browse lucide.dev/icons; use the name shown there, for example file-chart-column. The build stops with a message if a name does not exist. Write colors as tokens only (bg-surface, text-muted), never as hex values.

Charts

A chart is a div with data in attributes. Add script: dashboard and charts: true to the front matter of the page. Look at dashboard-analytics.html for working examples.

html
<!-- front matter of the page: script: dashboard  and  charts: true -->
<div class="chart" data-chart="column" data-height="280"
     data-categories='["Oct","Nov","Dec"]'
     data-series='[{"name":"Revenue","data":[31,36,42]}]'
     data-format="k-usd"
     data-table data-table-label="Month" data-caption="Revenue by month, in thousands of dollars"
     role="img" aria-label="Revenue grew from 31 to 42 thousand dollars.">
  <p class="chart__fallback">Chart: revenue by month</p>
</div>
text
data-chart        area | line | column | column-stacked | bar | donut | stacked-100 | spark
data-height       height in pixels
data-categories   JSON list of labels (x axis)
data-series       JSON list of {"name", "data"}; for donut a plain list of numbers
data-format       count (default) | usd | k-usd | hours | percent
data-colors       JSON list of colour numbers, e.g. [1,5] uses --chart-1 and --chart-5
data-min / -max   limits of the value axis
data-table        adds a "View data" button with the numbers as a table
data-center-value, data-center-label    text in the middle of a donut

The role="img" and aria-label describe the chart for screen readers, and the paragraph inside shows when scripts are off. Charts use the --chart-* tokens and redraw on theme change.

Tables

Add data-table to a table and it gets sorting, search, filters and pagination. Look at clients.html. Clicking a column header button sorts the column.

html
<div class="card card--flush" data-table-root>
  <div class="table-toolbar">
    <div class="table-toolbar__search">
      <label class="sr-only" for="t-search">Search</label>
      <div class="input-group">
        <span class="input-group__icon">{{icon:search}}</span>
        <input class="input" id="t-search" type="search" placeholder="Search" data-table-search>
      </div>
    </div>
    <div class="table-toolbar__filter">
      <label class="sr-only" for="t-status">Filter by status</label>
      <div class="select-wrap">
        <select class="select" id="t-status" data-table-filter="status">
          <option value="">All statuses</option>
          <option value="active">Active</option>
          <option value="paused">Paused</option>
        </select>
        {{icon:chevron-down}}
      </div>
    </div>
  </div>
  <div class="table-wrap" tabindex="0" role="region" aria-label="Clients table">
    <table class="table" data-table data-page-size="2">
      <caption class="sr-only">Clients</caption>
      <thead>
        <tr>
          <th scope="col"><button type="button" class="table__sort">Client{{icon:chevrons-up-down|icon--none}}{{icon:chevron-up|icon--asc}}{{icon:chevron-down|icon--desc}}</button></th>
          <th scope="col" class="text-right"><button type="button" class="table__sort">Revenue{{icon:chevrons-up-down|icon--none}}{{icon:chevron-up|icon--asc}}{{icon:chevron-down|icon--desc}}</button></th>
          <th scope="col">Status</th>
        </tr>
      </thead>
      <tbody>
        <tr data-status="active"><td>Lumen Coffee Co.</td><td class="num text-right" data-sort-value="84200">$84,200</td><td><span class="badge badge--success badge--dot">Active</span></td></tr>
        <tr data-status="active"><td>Northpeak Outdoor</td><td class="num text-right" data-sort-value="56900">$56,900</td><td><span class="badge badge--success badge--dot">Active</span></td></tr>
        <tr data-status="paused"><td>Verda Health</td><td class="num text-right" data-sort-value="112400">$112,400</td><td><span class="badge badge--warning badge--dot">Paused</span></td></tr>
        <tr data-table-empty hidden><td colspan="3"><div class="empty"><span class="empty__icon">{{icon:search}}</span><h3 data-table-empty-title>No results</h3><p class="empty__text">Try a different search term.</p></div></td></tr>
      </tbody>
    </table>
  </div>
  <div class="card__footer"><nav aria-label="Table pagination" data-table-pagination></nav></div>
</div>
text
data-table-root          wrapper that holds the table, search, filters and pagination
data-table-search        on the search <input>
data-table-filter="x"    on a <select>; compares its value with data-x on each <tr>
data-page-size="10"      on the <table>: rows per page
data-sort-value          on a <td>: the value used for sorting (numbers, dates)
data-table-empty         the row shown when nothing matches
data-table-pagination    where the page buttons are drawn

Wide tables

A table never makes the page scroll sideways: it sits in a .table-wrap that scrolls on its own. On desktop screens the template avoids even that by:

  • Hiding less important columns below 1400 px wide with hidden min-[1400px]:table-cell on the th and every td of that column.
  • table--dense on the table: smaller padding between columns.
  • td.is-wrap: lets one cell wrap onto several lines. Cells do not wrap by default, so numbers and dates stay on one line.
html
<!-- hidden below 1400 px wide, shown from 1400 px -->
<th scope="col" class="hidden min-[1400px]:table-cell">Client since</th>
<td class="hidden min-[1400px]:table-cell">Mar 2024</td>

<!-- a tighter table: less padding between columns -->
<table class="table table--dense" data-table>

<!-- a cell that may wrap onto several lines (by default cells stay on one line) -->
<td class="is-wrap">A long description that is allowed to wrap.</td>

Forms and validation

Add data-validate to a form. On submit the template checks required, type="email" and minlength, shows an error under each wrong field and moves focus to the first one. When all is valid it shows a success toast with the text from data-success. The form is never sent: connect it to your own backend (see JavaScript API).

html
<form data-validate novalidate data-success="Thanks, the form was sent.">
  <div class="field">
    <label class="field__label" for="d-email">Work email</label>
    <input class="input" id="d-email" name="email" type="email" required autocomplete="email">
  </div>
  <div class="field">
    <label class="field__label" for="d-pass">Password</label>
    <input class="input" id="d-pass" name="password" type="password" required minlength="8">
    <p class="field__hint">At least 8 characters.</p>
  </div>
  <button type="submit" class="btn btn--primary">Send</button>
</form>

Glass icons

Round icon chips are a signature of the template: translucent glass, a glowing tint and a shining corner at the top left. Use .icon-glass plus one color modifier. In KPI cards the same chip is .stat__icon. The same style is used in alerts, toasts, notifications and modals.

html
<span class="icon-glass icon-glass--primary">{{icon:wallet}}</span>
<span class="icon-glass icon-glass--success">{{icon:circle-check}}</span>
<span class="icon-glass icon-glass--warning">{{icon:clock}}</span>
<span class="icon-glass icon-glass--danger">{{icon:triangle-alert}}</span>
<span class="icon-glass icon-glass--info">{{icon:info}}</span>
<span class="icon-glass icon-glass--neutral">{{icon:archive}}</span>

<!-- inside a KPI card the chip is .stat__icon: -->
<div class="stat__label"><span class="stat__icon icon-glass--warning">{{icon:receipt}}</span>Outstanding</div>

Pick the color by meaning, not by taste. The same figure should have the same color on every page:

Which icon color to use for which meaning
ColorUse it for
successMoney received, paid, active clients and projects, growth, done
warningWaiting for payment, outstanding, in review, risks, load at 80 percent or more
dangerOverdue, errors, losses
infoLeads, new items, hours and time, general information
neutralDrafts, archive, inactive
primaryRevenue, budget, totals, the main figure of the page

Animations

Every motion uses the same tokens, so the interface feels consistent. They are defined in section 3 of app.css:

Animation timing tokens
TokenValueUsed for
--dur-fast120 msHover, color changes, pressing, field borders
--dur200 msMenus, tabs, toasts, new rows, changing views
--dur-slow320 msModals, the mobile menu, a page appearing
--ease-outcubic-bezierThings that appear
--ease-in-outcubic-bezierThings that move or disappear
--stagger40 msDelay between cards when a page opens

Ready keyframes you can use: pop-in, fade-in, slide-down-in, rise-in-4, rise-in-8, scale-in, modal-in (appear) and leave-down, leave-up, line-out (disappear). In your own CSS use only the tokens:

css
.my-panel {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.my-panel:hover { transform: translateY(-2px); }
.my-panel.is-appearing { animation: rise-in-4 var(--dur) var(--ease-out); }

When something appears or disappears because the visitor did something, animate it with the helper instead of switching hidden at once:

js
var box = document.querySelector('#my-box');

// Show: replay the entrance animation (rise-in-4) after the content changed.
box.textContent = 'Updated';
Brieflow.motion.enter(box);

// Hide: play the leave animation, then run the callback (or remove the element when there is none).
Brieflow.motion.leave(box, function (el) { el.hidden = true; });

// Changed your mind while it was leaving:
Brieflow.motion.cancelLeave(box);

Reduced motion. If the visitor's device asks for less motion (prefers-reduced-motion), all three --dur tokens become 0.01 ms and --stagger becomes 0. Anything built on the tokens becomes instant automatically, and Brieflow.motion.leave finishes at once.

Components

Pages are built only from these components plus Tailwind layout utilities (flex, grid, gap-4, md:grid-cols-2). Every component in every variant is shown in the UI Kit; copy markup from there.

Buttons

Variants: primary, secondary, ghost, soft, danger. Sizes: btn--sm, btn--icon for square icon buttons (add an aria-label). See UI Kit - Buttons.

html
<button type="button" class="btn btn--primary">{{icon:plus}} New project</button>
<button type="button" class="btn btn--secondary">Secondary</button>
<button type="button" class="btn btn--ghost">Ghost</button>
<button type="button" class="btn btn--danger">{{icon:trash-2}} Delete</button>
<a class="btn btn--secondary" href="clients.html">Link button</a>

Badges

Colors match the icon colors. badge--dot adds a status dot, badge--count makes a round counter. See UI Kit - Badges.

html
<span class="badge badge--success badge--dot">Active</span>
<span class="badge badge--warning badge--dot">Review</span>
<span class="badge badge--danger">Overdue</span>
<span class="badge badge--primary badge--count">3</span>

Avatars

No photos are used: avatars are initials on a tinted background, avatar--1 to avatar--5, sizes --xs to --xl. See UI Kit - Avatars.

html
<span class="avatar avatar--1" title="Maya Okafor"><span aria-hidden="true">MO</span><span class="sr-only">Maya Okafor</span></span>

KPI cards

A glass card with a colored chip, a big number and a change. See UI Kit - Stats.

html
<div class="card stat">
  <div class="stat__label"><span class="stat__icon icon-glass--primary">{{icon:wallet}}</span>Revenue this month</div>
  <div class="kpi-value">$48,250</div>
  <div class="stat__delta is-up">{{icon:trending-up}}<span>+12.4% <span class="stat__context">vs Oct</span></span></div>
</div>

Alerts and toasts

Alerts stay in the page; toasts appear in a corner for 5 seconds. Colors: success, warning, danger, info. See Alerts and Toasts.

html
<div class="alert alert--success">
  <span class="alert__icon">{{icon:circle-check}}</span>
  <div class="alert__content">
    <p class="alert__title">Payment received</p>
    <p class="alert__text">INV-2026-0137 was paid by Arcadia Labs.</p>
  </div>
</div>
html
<button type="button" class="btn btn--secondary" data-toast="success" data-toast-title="Invoice sent" data-toast-text="INV-2026-0142 was sent.">Show toast</button>

Tabs

Arrow keys, Home and End move between tabs. See UI Kit - Tabs.

html
<div class="tabs" role="tablist" aria-label="Project sections">
  <button type="button" role="tab" id="tab-a" aria-selected="true" aria-controls="panel-a">Overview</button>
  <button type="button" role="tab" id="tab-b" aria-selected="false" aria-controls="panel-b" tabindex="-1">Tasks</button>
</div>
<div class="tabpanel" id="panel-a" role="tabpanel" aria-labelledby="tab-a" tabindex="0"><p>Overview panel.</p></div>
<div class="tabpanel" id="panel-b" role="tabpanel" aria-labelledby="tab-b" tabindex="0" hidden><p>Tasks panel.</p></div>

Dropdown

Opens with Enter, Space or the arrow keys; Esc closes it and returns focus to the button. See UI Kit - Dropdowns.

html
<div class="dropdown">
  <button type="button" class="btn btn--secondary" aria-haspopup="menu" aria-expanded="false" aria-controls="menu-demo">Actions {{icon:chevron-down}}</button>
  <div class="dropdown__menu" id="menu-demo" role="menu" hidden>
    <button type="button" class="dropdown__item" role="menuitem">{{icon:pencil}} Edit</button>
    <div class="dropdown__divider" role="separator"></div>
    <button type="button" class="dropdown__item dropdown__item--danger" role="menuitem">{{icon:trash-2}} Delete</button>
  </div>
</div>

Modal

A native dialog. Esc, the close button or a click on the backdrop closes it, and focus returns to the button that opened it. See UI Kit - Modals.

html
<button type="button" class="btn btn--primary" data-modal-open="modal-demo">Open modal</button>

<dialog class="modal" id="modal-demo" aria-labelledby="modal-demo-title">
  <div class="modal__header">
    <h2 id="modal-demo-title">New project</h2>
    <button type="button" class="btn btn--ghost btn--icon btn--sm" data-modal-close aria-label="Close">{{icon:x}}</button>
  </div>
  <div class="modal__body"><p>Modal content.</p></div>
  <div class="modal__footer">
    <button type="button" class="btn btn--secondary" data-modal-close>Cancel</button>
    <button type="button" class="btn btn--primary" data-modal-close>Save</button>
  </div>
</dialog>

Progress

A progress element in progress--success, --warning, --danger or the default color. See UI Kit - Progress.

html
<div class="progress-row"><progress class="progress progress--success" value="65" max="100" aria-label="Project progress"></progress><span class="progress-row__value">65%</span></div>

Also in the UI Kit: forms, cards, tables, pagination, empty states, tooltips and icons.

JavaScript API

The only global is window.Brieflow. It is created by app.js, which every page loads with defer, so call it after the page has loaded, in your own script that is also loaded with defer after app.js. The scripts are plain files (no modules), so they work from file://.

Brieflow.theme

Switch and read the theme. The event brieflow:themechange fires on document after every change.

js
Brieflow.theme.isDark();        // true when the dark theme is on
Brieflow.theme.toggle();        // switch light <-> dark
Brieflow.theme.set('dark');     // 'light', 'dark' or 'system' (follow the device); the choice is remembered
Brieflow.theme.mode();          // the saved choice: 'light', 'dark' or 'system'

document.addEventListener('brieflow:themechange', function (event) {
  // event.detail.dark is true or false, event.detail.mode is the saved choice
  document.title = event.detail.dark ? 'Dark' : 'Light';
});

Brieflow.cssVar

Reads a design token for the current theme. Useful when you draw your own charts or canvases.

js
Brieflow.cssVar('--primary');     // for example "#0F766E" (the value for the current theme)
Brieflow.cssVar('--dur');         // "200ms"

Brieflow.motion

Animated showing and hiding, with the tokens and reduced motion handled for you.

js
var box = document.querySelector('#my-box');

// Show: replay the entrance animation (rise-in-4) after the content changed.
box.textContent = 'Updated';
Brieflow.motion.enter(box);

// Hide: play the leave animation, then run the callback (or remove the element when there is none).
Brieflow.motion.leave(box, function (el) { el.hidden = true; });

// Changed your mind while it was leaving:
Brieflow.motion.cancelLeave(box);

Brieflow.table

js
// Tables with data-table are set up automatically when the page loads.
// If you add a table later (for example after loading data), start it yourself:
Brieflow.table.init();

Brieflow.forms

js
var form = document.querySelector('form[data-validate]');
form.addEventListener('submit', function () {
  // Brieflow.forms.validate shows the error messages and returns true when the form is valid
  if (Brieflow.forms.validate(form)) { /* send the data */ }
});

// Show or clear an error on one field yourself:
Brieflow.forms.setError(document.querySelector('#d-email'), 'This email is already used.');
Brieflow.forms.setError(document.querySelector('#d-email'), '');

Brieflow.passwordStrength

js
// score(value): 0 (empty) to 4 (strong)
Brieflow.passwordStrength.score('Tr0ub4dor&3');

// update(input): draws the strength meter and label that sit near the input
var input = document.querySelector('#pw');
input.addEventListener('input', function () { Brieflow.passwordStrength.update(input); });

Brieflow.toast

js
Brieflow.toast({ type: 'success', title: 'Saved', text: 'Your changes were saved.' });
// type: 'success' (default), 'info' or 'danger'

More helpers

js
Brieflow.modal.open('modal-demo');      // open a <dialog> by id
Brieflow.modal.close('modal-demo');
Brieflow.sidebar.collapse(true);        // collapse or expand the sidebar
Brieflow.dropdown.close();              // close all open dropdowns
Brieflow.$('.card');                    // document.querySelector shortcut
Brieflow.$$('.card');                   // document.querySelectorAll as an array

Commands

Commands

shell
npm run dev      # build, then open a local server at http://localhost:4173
npm run build    # src/  ->  dist/  (HTML, CSS, scripts, fonts, ApexCharts)

npm run build always rebuilds the whole dist folder, so do not edit files inside dist if you plan to build again: change src instead. The build writes the styles twice: app.css (readable) and app.min.css (minified, the one the pages use).

Quality checks

Before every release the author tests all pages in light and dark themes at four widths: HTML validity with the W3C validator, accessibility with axe, contrast, console errors, links and horizontal scrolling. These checks are a development tool of the author and are not part of your download. You only need npm run dev and npm run build.

Deployment and the 404 page

Upload the contents of dist to any static hosting (Cloudflare Pages, Netlify, GitHub Pages, an ordinary web server). No server software is needed.

Why the 404 page is different

All other pages link to their files with short relative paths such as assets/css/app.min.css. A 404 page is shown by the server at the address the visitor typed, for example /a/b/c, and there a relative path would point to the wrong folder and the page would lose its styles. So 404.html uses absolute paths (/assets/css/app.min.css, /index.html), which always start from the root of the site.

  • It works when the site is at the root of a domain, or when the server shows 404.html for unknown addresses (Cloudflare Pages and Netlify do this automatically, and so does npm run dev).
  • If you open 404.html from your disk (file://) it will not have styles. This is expected: open it through the server.
  • If the site lives in a sub-folder, the paths must start with that folder.
text
https://example.com/            404.html works as it is
https://example.com/demo/       open 404.html and change every "/" at the start of a path to "/demo/"

In the source, set base in the front matter and change the two page links. base is put in front of every asset path of that page.

html
<!-- src/pages/404.html -->
---
title: Page not found
layout: blank
base: /demo/
script: utility
---
<a class="btn btn--primary" href="/demo/index.html">Back to dashboard</a>
<a class="btn btn--secondary" href="/demo/search.html">Search</a>

Then tell your hosting to use 404.html as the not-found page.

Browser support

Supported browsers
BrowserVersions
Chrome and EdgeLast 2 versions
FirefoxLast 2 versions
SafariLast 2 versions
iOS SafariLast 2 versions
Android ChromeLast 2 versions

Older browsers

The glass tint and the glows are mixed with the CSS function color-mix(). Browsers without it (Safari before 16.2) would lose the panel backgrounds, so the end of app.css (section 99) switches to plain solid colors for them. Everything stays readable; only the glass look is replaced with flat panels.

css
@supports not (color: color-mix(in srgb, red, blue)) {
  :root, .dark {
    --glass: var(--surface);
    --glass-strong: var(--surface);
    --primary-2: var(--primary);
    --input-border: var(--border-strong);
  }
  /* ...plus plain backgrounds for cards, modals, toasts and alerts */
}

The styled dropdown list of a select is shown in Chrome and Edge 135 or newer. Safari and Firefox show their own list. Nothing else depends on it.

Credits

Libraries and fonts used by the template
NameUsed forLicense
Tailwind CSSUtility classes and the CSS buildMIT
ApexCharts 4.7.0ChartsMIT (assets/vendor/apexcharts/LICENSE.txt)
LucideIconsISC
InterFontSIL Open Font License 1.1 (assets/fonts/OFL.txt)

Do not update ApexCharts blindly

The template ships ApexCharts 4.7.0, the last version with a plain MIT license. Newer versions (5.0.0 and later) are distributed under a different license with conditions for commercial use. Update the library only after you have read the license of the version you install.

No photos are used - all avatars are initials. All names and companies in the demo content are fictional.

Support

Included

  • Questions about how the template works and how to use it.
  • Fixing errors in the template itself.
  • Support for 6 months from purchase, as set by the marketplace rules.

Not included

  • Custom changes and new features.
  • Connecting the template to a backend or a database.
  • Help with third-party code you added.

Write to [email protected]. We reply within 2 business days. Please tell us the page, the browser and what you expected to see.

Changelog

1.0.0 - Nov 24, 2026 - Initial release.