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

@inglorious/ui

v9.22.2

Published

A design system for Inglorious Web with render-function components and customizable themes

Readme

@inglorious/ui

A design system for Inglorious Web with render-function components and customizable themes.

Getting started

Import the base stylesheet (tokens + reset), pick a theme, then pull in the component styles you need:

import "@inglorious/ui/base.css"
import "@inglorious/ui/themes/bootstrap.css"
import "@inglorious/ui/data-grid.css"

Apply the theme classes to your root element (or any container that wraps your UI), otherwise the theme will not take effect:

<body class="iw-theme-bootstrap iw-theme-light">
  <!-- Your app -->
</body>

If you want everything, you can import the full bundle:

import "@inglorious/ui/all.css"

Styles structure

The core styles live under src/styles/:

  • styles/reset.css: sensible resets (box-sizing, body margin, etc.)
  • styles/tokens.css: design tokens
  • styles/base.css: reset + tokens (the recommended public entry)
  • styles/themes/: built-in themes

The public CSS exports are:

  • @inglorious/ui/base.css
  • @inglorious/ui/tokens.css
  • @inglorious/ui/themes/inglorious.css
  • @inglorious/ui/themes/material-ui.css
  • @inglorious/ui/themes/material-3.css
  • @inglorious/ui/themes/bootstrap.css
  • @inglorious/ui/themes/ios-18.css
  • @inglorious/ui/themes/ios-26.css
  • @inglorious/ui/themes/<theme>-fonts.css: the theme's fonts (see below)
  • @inglorious/ui/all.css

Theme fonts

Every theme but Bootstrap uses web fonts: Orbitron and Oxanium for Inglorious, Roboto for the Material themes, Inter for the iOS ones. The theme only names them. To load them from Google Fonts, import the theme's fonts stylesheet too:

import "@inglorious/ui/themes/inglorious.css"
import "@inglorious/ui/themes/inglorious-fonts.css"

To self-host them, leave it out and declare the same families with @font-face in your own CSS. Self-hosting also keeps the browser from contacting Google before your visitors consent to anything.

Icons

Icon draws icons from any Iconify set as inline SVG: no icon font to load, and only the icons you import end up in the bundle. Install a set and import each icon as its own module:

pnpm add @iconify-icons/material-symbols
import { Icon } from "@inglorious/ui/icon"
import arrowBack from "@iconify-icons/material-symbols/arrow-back"
import settingsOutline from "@iconify-icons/material-symbols/settings-outline"

Icon.render({ icon: settingsOutline, size: "lg" })

The variant is part of the name: in Material Symbols the plain name is filled and -outline outlined, with -rounded and -sharp styles too. Font Awesome is @iconify-icons/fa7-solid, fa7-regular and fa7-brands; Lucide is @iconify-icons/lucide. Without icon, Icon shows its children: an emoji, a glyph, your own SVG.

An icon is decorative unless it has a label, which makes it an image with that name for assistive technology.

Right-to-left

The components mirror in a right-to-left page (<html dir="rtl">, which @inglorious/i18n sets for Arabic, Hebrew and the like): their spacing, borders and corners use logical properties, and a left drawer sits at the start of the line.

For your own styles, use logical properties too (margin-inline-start, inset-inline-end, text-align: start). For anything that moves sideways, multiply by --iw-dir-sign, which is 1 in left-to-right and -1 in right-to-left:

.slide-in {
  transform: translateX(calc(100% * var(--iw-dir-sign)));
}

Icons that point along the line, such as a back arrow or a chevron, take the direction of the text they sit in and are mirrored with "rtl". With @inglorious/i18n, that is the i18n entity's dir:

Icon.render({ icon: arrowBack, direction: api.getEntity("i18n").dir })

Safe-area utilities

The base styles also expose CSS variables and utility classes for the system bars' insets: the notch, rounded corners, the home indicator and Android's status and navigation bars. They are in base.css, or on their own in @inglorious/ui/safe-area.css.

:root {
  --safe-area-top: …;
  --safe-area-bottom: …;
  --safe-area-left: …;
  --safe-area-right: …;
}

They are env(safe-area-inset-*), with two corrections:

  • In a Capacitor app on Android, they use the --safe-area-inset-* variables Capacitor's SystemBars plugin injects. env() alone doubles the status bar on WebViews that Capacitor already pads natively.
  • In a browser tab, the top inset is 0. The browser's chrome always sits between the page and the status bar, but browsers that embed a WebView can still report one (DuckDuckGo on Android reports 37px under its toolbar). The top inset applies in the installed PWA and in the native app, which mount from @inglorious/web marks with the iw-native class on <html>.

The following utility classes are available:

.pt-safe {
  padding-top: var(--safe-area-top);
}
.pb-safe {
  padding-bottom: var(--safe-area-bottom);
}
.pl-safe {
  padding-left: var(--safe-area-left);
}
.pr-safe {
  padding-right: var(--safe-area-right);
}