npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@incursa/ui-kit

v1.9.0

Published

Reusable UI kit for data-heavy business applications.

Readme

Incursa UI Kit

CI Pages npm publish

This folder contains a distilled, reusable UI kit for data-heavy business applications. The goal is to keep the recurring visual patterns that define the UI language and expose them consistently through the inc-* class surface. The CSS classes remain the canonical public API; the optional Web Component layer adds a browser-native entrypoint without replacing the existing class-based usage model. The Web Component layer also ships a companion stylesheet entrypoint so the default look is one import away.

Live Examples

Open the hosted examples and component reference: https://incursa.github.io/ui-kit

For the plain HTML baseline, open demo.html. For the paired Web Component view, open web-components.html. The two pages are meant to be compared side by side.

Optional Web Components

Use the CSS classes by default. Use Web Components when you want the same design language from plain HTML, JavaScript, and slots rather than hand-wired class markup. Use native HTML primitives first when <button>, <input>, <details>, or <dialog> already satisfy the interaction and accessibility contract.

Load the optional layered entrypoints from the same package:

<link rel="stylesheet" href="/node_modules/@incursa/ui-kit/web-components/style.css">
<script type="module">
    import "@incursa/ui-kit/web-components";
</script>

The module auto-defines the shipped elements on load. If you prefer explicit registration control, import the same entrypoint in your module graph and call the exported registration helper from your own bootstrap code.

The v1 Web Component scope covers:

The intentionally deferred surfaces stay CSS-first in v1, including tables and the remaining data presentation surfaces, filter and bulk toolbars, file workflows, permission banners, toasts, utility helpers, and the remaining compatibility overlay shells.

For maintainers, treat the Web Component layer as an additive wrapper over the same design language: one package, one token system, one naming vocabulary, and the same helper behavior where it already exists.

Licensed under Apache 2.0.

What was kept

  • Bootstrap theming overrides for colors, typography, spacing, borders, inputs, cards, tabs, and tables.
  • Dense but readable table styling with strong teal headers and mono-friendly numeric cells.
  • Compact action buttons and inline forms that work well inside grids and table rows.
  • Card, section-shell, summary-block, page-frame, vertical-list, and layout primitives used across admin screens.
  • Status-oriented badges and alerts with soft backgrounds and stronger foreground/border cues.
  • Validation states, error summaries, fieldset/legend groups, filter chips, and dense toolbar patterns for search-heavy screens.
  • Operational states such as empty, no-results, loading, error, permission, lock, toast, live-region, auto-refresh, and activity timeline surfaces.
  • Bulk-action, sticky-header, and row-state table patterns for operator-facing grids.
  • File/document dropzones, file rows, read-only description-list grids, progress/meter surfaces, and drawer-style side panels.
  • Contextual floating content for tooltip and popover shells anchored to a trigger.
  • A small overlay/navigation layer for tabs, pagination, dropdown actions, native details/dialog patterns, and compatibility modals/offcanvas panels.
  • Opinionated app-shell pieces for navbar/topbar, breadcrumb/nav-triad, page-frame wrappers, footer-bar action clusters, sticky footer, user menu, and common two/three-column page layouts.
  • A public-surface standards layer for inc- prefixing, BEM naming, and accessible interactive behavior.
  • An additive optional Web Component layer that keeps the CSS-first surface intact instead of creating a second design system.

What was intentionally left out

  • App-specific backgrounds, admin footer behavior, report CSS, print CSS, and vendor assets.
  • App-specific background art and report/print-only styling.
  • Feature-specific one-off classes that do not generalize cleanly across products.

Specification Baseline

Files

  • assets/brand/ Repository brand assets for GitHub, docs, and future package-site usage.
  • src/_inc-tokens.scss Bootstrap-facing theme tokens and override variables.
  • src/_inc-theme.scss Dedicated brand-facing variables for fonts, palette, semantic surfaces, and text colors.
  • src/inc-design-language.scss Main source entrypoint for the inc-* class surface.
  • dist/inc-design-language.css Compiled standalone CSS output.
  • dist/inc-design-language.js Optional vanilla-JS helper for menus, tabs, collapsible sections, modal/offcanvas shells, native dialog launch hooks, auto-refresh widgets with pause/resume controls, and light/dark/system theme switching with pluggable controls.
  • dist/web-components/ Optional browser-native component runtime built from the same package and exposed through the ./web-components entrypoint.
  • index.html Showcase hub for the included example pages.
  • demo.html Dashboard-style preview of the extracted patterns.
  • work-queue.html Sidebar and table-heavy queue example.
  • record-detail.html Three-column detail example with action rail.
  • native-patterns.html Native-first details/menu/dialog example.
  • overlay-workflows.html Modal and offcanvas workflow example with validation and assignment flows.
  • reference.html Copy/paste catalog for the standard controls, page framing, metrics, lists, overlays, and markup patterns.
  • web-components.html Public landing page for the optional Web Component entrypoint and the CSS-first versus Web Component usage split.
  • specs/requirements/ui-kit/ First-pass Spec Trace specification suite for the UI kit, including the gap log for unresolved questions.
  • specs/verification/ui-kit/ Auditable verification baseline for the current UI kit public surface, including the repo-local smoke gate.
  • states.html Empty, no-results, loading, error, permission, timeline, file, and notification patterns.
  • forms-and-validation.html Validation, error-summary, filter-bar, chip, and read-only/edit form patterns.
  • data-grid-advanced.html Sticky-header table, bulk selection, row states, busy buttons, and side drawer pattern.
  • showcase.css Small demo-only helper stylesheet for the static examples.
  • LLMS.txt Plain-text agent guidance in the emerging llms.txt-style format for packaged consumers and tooling.
  • AI-AGENT-INSTRUCTIONS.md Short operational guidance for an AI agent or another engineer.

Naming

The reusable public class surface uses the inc-* prefix.

Examples:

The BEM/modifier structure stays consistent across the package, for example inc-table__cell--numeric or inc-btn--primary.

For titled sections that wrap tables, use inc-header-body--table-body to keep body padding while removing extra bottom margin from nested table wrappers.

Design language summary

  • Typography: IBM Plex Sans for UI copy and IBM Plex Mono for data, amounts, and identifiers.
  • Density: tighter than consumer-product UI, but not cramped; compact forms and small action buttons are first-class.
  • Surfaces: mostly white and light neutral surfaces with restrained borders and low shadow usage.
  • Accent: indigo is the primary brand/action color, with amber used as a brighter warning/highlight accent.
  • Status communication: success/warning/error use pale backgrounds with darker foreground and border colors instead of pure solid fills.
  • Tables first: headers are high-contrast, numeric alignment is explicit, and responsive table wrappers are part of the default system.
  • Shell aware: the package now includes app-shell, breadcrumb, nav-triad, navbar, footer-bar, and user-menu primitives so page layout is part of the language, not an afterthought.
  • Layout aware: sidebar menus, inline form fields, and multi-column page examples are included so common admin-page composition is demonstrated directly.
  • Workflow aware: validation, filter bars, bulk action bars, audit timelines, and file-review surfaces are part of the package now because those patterns recur constantly in B2B products.
  • Native capable: the package now also includes styled <details> disclosures, a native summary-based menu, and <dialog> surfaces for both centered modals and drawer-style side sheets so you can choose browser primitives when they fit better than helper-managed components.
  • Color mode: data-bs-theme is the global light/dark activation hook, and the bundled IncTheme helper can persist light, dark, or system mode from a small control surface.

CSS-only vs JS-assisted

  • CSS-only/native behavior is enough for layout, cards, tables, breadcrumbs, sticky footer, and most surface styling.
  • Stateful controls still need behavior: tabs, collapsible sections, menus/dropdowns, modal and offcanvas shells, and auto-refresh countdowns with pause/resume behavior.
  • Alert and toast surfaces can stay CSS/HTML-first when the app only needs static messaging; use the Web Component host when you want standardized tone or optional dismissal behavior.
  • This package now includes an optional dependency-free helper at dist/inc-design-language.js for: user-menu dropdowns, tab switching, collapse/accordion toggles, legacy modal/offcanvas shells, native dialog launching, page auto-refresh countdown widgets, and theme switching controls.
  • The helper also exposes window.IncTheme and listens for data-inc-theme-mode, data-inc-theme-toggle, and data-inc-theme-select controls.
  • window.IncTheme also supports createSwitcher(options) and mountSwitcher(target, options) when you want to drop in the packaged switcher without hand-writing the markup.
  • This package also includes native-styled patterns for: details.inc-disclosure, details.inc-native-menu, dialog.inc-native-dialog, and dialog.inc-native-dialog--drawer.
  • If you prefer native HTML behavior where possible, use browser primitives like <details> and <dialog> for product-specific implementations. The helper exists for places where the design language is intentionally Bootstrap-like and needs matching interaction behavior.

Web Component usage

  • Use the CSS class surface when you already have the HTML structure and only need the design language.
  • Use the Web Component entrypoint when you want declarative slots, attributes, and DOM events around the approved v1 component families.
  • Use native HTML primitives when they already solve the interaction cleanly and keep the semantics simpler.
  • Keep tables, utilities, and the remaining low-value atoms class-based until there is a clear component contract worth adding.
  • Treat the Web Component layer as a layered entrypoint in the same package, not as a separate design system.

Use it quickly

If you just want the look in another app:

  1. Copy dist/inc-design-language.css.
  2. If you need interactive tabs/menus/collapses or helper-managed overlays, also copy dist/inc-design-language.js.
  3. If you want browser-native custom elements, see web-components.html for the optional layered entrypoint.
  4. Load the CSS after your reset or base stylesheet.
  5. Load the optional JS near the end of the page.
  6. Use the inc-* classes shown in reference.html for direct copy/paste control markup, or use the matching custom elements from the Web Component layer when that better fits the page.
  7. Check states.html, forms-and-validation.html, data-grid-advanced.html, and overlay-workflows.html for the workflow-heavy patterns that do not read well as isolated snippets.
  8. Use demo.html, work-queue.html, record-detail.html, and native-patterns.html for fuller page composition.

If you want the color mode to follow the saved user preference before first paint, add a tiny bootstrap script in the <head>:

<script>
    (() => {
        const storageKey = "inc-theme-mode";
        const resolveTheme = (mode) => mode === "dark" || mode === "light"
            ? mode
            : (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
        let mode = "system";

        try {
            const storedMode = window.localStorage.getItem(storageKey);

            if (storedMode === "light" || storedMode === "dark" || storedMode === "system") {
                mode = storedMode;
            }
        } catch {
            // Ignore storage restrictions.
        }

        document.documentElement.setAttribute("data-inc-theme-mode", mode);
        document.documentElement.setAttribute("data-bs-theme", resolveTheme(mode));
        document.documentElement.style.colorScheme = resolveTheme(mode);
    })();
</script>

Then you can either mount the packaged switcher:

<div data-inc-theme-switcher data-inc-theme-switcher-variant="navbar"></div>

or control the mode yourself:

<button type="button" data-inc-theme-toggle>Cycle theme</button>
<button type="button" data-inc-theme-mode="light">Light</button>
<button type="button" data-inc-theme-mode="dark">Dark</button>
<button type="button" data-inc-theme-mode="system">System</button>
<script src="/path/to/inc-design-language.js"></script>
<script>
    window.IncTheme.setMode("dark");
    window.IncTheme.mountSwitcher("[data-inc-theme-switcher]", { variant: "navbar" });
</script>

Use it as a package

This repository is shaped as a normal npm package:

  • main, style, sass, and the layered web-components/style.css entry points are set.
  • files limits packaged output to the reusable source and dist assets.
  • npm pack produces a local tarball.
  • publishConfig.access is set for public scoped publishing.
  • GitHub Actions is set up for npm Trusted Publishing on release.
  • npm run verify is the repo-local build, smoke, and dry-run package gate.

Typical flow:

npm install
npm run verify
npm pack

Then in the consuming app:

npm install ../path-to-tarball/incursa-ui-kit-x.y.z.tgz

Or, while iterating locally:

npm install ../path-to-styles-folder

If you publish it publicly:

npm install @incursa/ui-kit

Import the base CSS:

import "@incursa/ui-kit/dist/inc-design-language.css";

Or, for the browser-native layer, import the paired stylesheet and runtime:

import "@incursa/ui-kit/web-components/style.css";
import "@incursa/ui-kit/web-components";

or, if you want to own the theme variables:

@import "@incursa/ui-kit/src/_inc-theme";
@import "@incursa/ui-kit/src/inc-design-language";

How It Fits Into A Razor Or ASP.NET Core App

There are three supported ways to use it.

  1. Use the compiled assets.
  • Add dist/inc-design-language.css to your site and optionally dist/inc-design-language.js.
  • This is the simplest path.
  • You do not need Bootstrap CSS at runtime because the compiled CSS already includes the Bootstrap layer it was built on.
  • You do not need Bootstrap JS unless your app separately uses Bootstrap's own JavaScript components.
  • If you want light/dark/system switching, keep data-bs-theme on the root element and let window.IncTheme persist the user's override or mount the packaged switcher into your layout.
  • If you want browser-native custom elements instead of helper wiring, import the same-package ./web-components entrypoint and keep the CSS bundle in place. The companion stylesheet lives at ./web-components/style.css.
  1. Use the SCSS source.
  • Import src/inc-design-language.scss into your own Sass pipeline.
  • This path is for when you want to override theme variables or deeper Bootstrap-facing tokens.
  • In this mode you do need Bootstrap and Sass available at build time because the source imports bootstrap/scss/bootstrap.
  1. Use the optional Web Component layer.
  • Import the same-package ./web-components entrypoint when you want browser-native custom elements for the supported v1 families.
  • Keep the CSS bundle in place because the custom elements are designed to sit on top of the same class and token vocabulary.
  • Prefer this layer for declarative shell components, standardized atomic controls, and repeated action/detail or collection hosts, and keep static tables plus the remaining low-value atoms on the CSS surface.

Icons

Incursa components use semantic icon names instead of Lucide component names. The default renderer maps names such as info, help, success, warning, error, upload, document, download, settings, and external-link to bundled Lucide SVGs.

Use data-inc-icon="warning" in CSS-first markup loaded with dist/inc-design-language.js, or use component attributes such as <inc-alert tone="warning"> and <inc-button icon="download">Download</inc-button> in the Web Component layer. Decorative package icons are rendered with aria-hidden="true"; icon-only controls still need an accessible label.

Consumers can replace the global renderer without depending on Lucide names:

import { setIconRenderer } from "@incursa/ui-kit/icons";

setIconRenderer((name, options) => {
  // Return an SVG/HTMLElement or an SVG string for the semantic Incursa name.
});

Practical recommendation for a .NET Razor Pages or MVC app:

  • If you just want the finished look, copy or install the package and reference dist/inc-design-language.css from your layout.
  • Add dist/inc-design-language.js if you want the optional inc-* menu/tab/collapse helper behavior or the bundled theme switcher helper.
  • Add the same-package ./web-components entrypoint when you want declarative custom elements for the supported v1 component families. Pair it with ./web-components/style.css for the default look.
  • Use the native <details> and <dialog> patterns when you want less JavaScript.
  • Use <inc-sparkline> for compact trend evidence beside surrounding metric text. It accepts values="5120,5400,5310" for static pages or a points property with { x, y } objects for timestamped data.
  • Use the SCSS source path only if you want this package to become part of your app's own asset build and theme pipeline.

GitHub repository

This repository is set up for:

Release flow

For normal releases:

  1. Merge the source changes you want on main.
  2. Run the release helper from PowerShell:
.\release.ps1 -ReleaseType patch -Changelog @"
- Summarize the release here.
- Add more markdown if needed.
"@

Use minor or major when needed. The script verifies the repo state, bumps the version, runs the build, smoke, and package validation step, updates CHANGELOG.md, creates the release commit and tag, and pushes them. Pushing the tag publishes the package to npm automatically. If you need to retry a failed publish, rerun the original tag-triggered workflow run rather than dispatching a separate manual publish.

Use it as source

If you want to keep editing it:

  1. Install Bootstrap 5.3 and Sass in the consuming project.
  2. Copy the src/ folder.
  3. Import src/inc-design-language.scss.
  4. Edit src/_inc-theme.scss for the fonts and colors you want.
  5. Use src/_inc-tokens.scss only when you need deeper spacing, radius, shadow, or Bootstrap-level tuning.

Example:

$inc-brand-700: #0f5f73;
$inc-brand-800: #0a4958;
$inc-font-family-sans: "Aptos", "Segoe UI", sans-serif;

@import "./src/inc-design-language";

MCP Worker

The repository also ships a deterministic Cloudflare Worker that exposes the UI kit content through Model Context Protocol. The Worker is intentionally read-only and stateless:

  • POST /mcp serves the MCP JSON-RPC endpoint.
  • GET /mcp serves a small HTML index for browsing the generated manifest.
  • GET /mcp/resource/* serves a human-readable resource page for inspection.
  • The Worker also tolerates a leading path prefix from a load balancer and keeps the rendered links under the configured MCP_PATH_PREFIX value.
  • Build-time manifests live under dist/mcp/ and are regenerated from the repo docs, examples, specs, and package metadata.
  • The Worker does not call an LLM, crawl the web, or depend on a database.

The local workflow is:

npm run build
npm run test:mcp

npm run build regenerates the MCP manifests and bundles the Worker. npm run verify runs the full repo gate, including the MCP transport tests and the manifest smoke check.

For local Worker development, use Wrangler against the generated bundle:

npm run build:mcp
npx wrangler dev --config wrangler.toml

To refresh the generated manifests after changing docs or examples, rerun npm run build:mcp or the full npm run build pipeline. If you only need to refresh the JSON manifests before bundling, run npm run build:mcp:manifests.

To deploy the Worker:

npm run deploy:mcp

The Cloudflare deploy workflow uses CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets and deploys the bundled Worker from dist/mcp/worker.mjs.