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

@iamtherealtim/lume-css

v1.0.0

Published

A minimal open-source CSS library for thoughtful interfaces.

Readme

Lume CSS

A minimal, open-source CSS library for thoughtful interfaces.

Lume ships a polished component set, design-token-based theming, dark mode, utility helpers, and practical docs/demo apps you can use as implementation references.

What’s Included

  • dist/lume.css + dist/lume.min.css — distributable CSS artifacts
  • dist/core.css, dist/components.css, dist/utilities.css, dist/a11y.css, dist/responsive.css — optional modular CSS entrypoints
  • dist/lume.js — optional lightweight behavior helper for .is-open patterns
  • lume.css — core framework styles (tokens, base, components, utilities)
  • lume.js — source runtime helper mirrored into dist/lume.js
  • src/ — modular source CSS files used to build bundle + partial outputs
  • docs/lume-showcase.html — full visual showcase of all components
  • docs/lume-docs.html — detailed documentation with copy-ready snippets
  • docs/admin-demo/ — realistic multi-page admin interface built with Lume

Quick Start

Option 1: CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@iamtherealtim/lume-css/dist/lume.min.css" />

Option 2: Local file

<link rel="stylesheet" href="./lume.css" />

Use The Whole Library

Use one CSS bundle (and optional JS helper) for fastest setup:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@iamtherealtim/lume-css/dist/lume.min.css" />
<script defer src="https://cdn.jsdelivr.net/npm/@iamtherealtim/lume-css/dist/lume.js"></script>

Or in npm-based projects:

@import "@iamtherealtim/lume-css/lume.css";

Use Only Parts Of The Library

Import only the modules your product needs:

@import "@iamtherealtim/lume-css/core.css";
@import "@iamtherealtim/lume-css/components.css";
@import "@iamtherealtim/lume-css/utilities.css";

You can also include a11y.css and responsive.css explicitly when you want those layers separately.

JavaScript Behavior

Lume ships an optional runtime helper at dist/lume.js for interactive patterns.

<script defer src="https://cdn.jsdelivr.net/npm/@iamtherealtim/lume-css/dist/lume.js"></script>

Supported helpers:

  • [data-lume-toggle] + data-lume-target="#id" for modal/drawer/dropdown toggling
  • [data-lume-open] / [data-lume-close] + data-lume-target="#id"
  • [data-lume-dismiss="toast"] (or .lume-toast-close) for toast removal
  • Escape key closes open modal/drawer/dropdown states

Utilities are now strictly namespaced (lume-*) to avoid class collisions in host applications.

Build Workflow

  • npm run split:css — regenerate modular source files in src/ from the monolithic source
  • npm run build:css — bundle src/lume.css into lume.css + dist/* outputs and publish modular files

No-Flicker Startup (Recommended)

Use this pattern in your app shell for stable first paint (theme + icon hydration):

<script>
  document.documentElement.setAttribute('data-ui-init', 'pending');
  try {
    const savedTheme = localStorage.getItem('lume-theme');
    if (savedTheme) document.documentElement.setAttribute('data-theme', savedTheme);
  } catch (_) {}
</script>
<link rel="stylesheet" href="./lume.css" />
<script defer src="https://unpkg.com/lucide@latest"></script>

And include this CSS guard in your app stylesheet:

html[data-ui-init="pending"] body { visibility: hidden; }

Core + extended patterns include:

  • Buttons, Forms, Cards, Badges, Alerts, Tables
  • Modal, Tooltip, Tabs, Accordion, Dropdown
  • Progress, Avatar, Toast, Breadcrumb, Pagination, Skeleton
  • Callout, List Group, Stat, Empty State, Stepper, Drawer, Kbd

Accessibility & UX

  • Focus-visible outlines for interactive controls
  • Reduced-motion handling for animations
  • Dark mode via html[data-theme="dark"]
  • First-paint stability pattern documented in docs/lume-docs.html

Repo Structure

.
├── dist/
│   ├── a11y.css
│   ├── components.css
│   ├── core.css
│   ├── lume.css
│   ├── lume.js
│   └── lume.min.css
│   ├── responsive.css
│   └── utilities.css
├── src/
│   ├── a11y.css
│   ├── components.css
│   ├── core.css
│   ├── lume.css
│   ├── responsive.css
│   └── utilities.css
├── scripts/
│   ├── build-css.mjs
│   └── split-css.mjs
├── docs/
│   ├── index.html
│   ├── lume-docs.html
│   ├── lume-showcase.html
│   ├── lume.css
│   ├── lume.js
│   ├── lume-logo.png
│   └── admin-demo/
│       ├── admin-demo.css
│       ├── admin-demo.js
│       └── *.html
├── lume.css
├── lume.js
├── CHANGELOG.md
├── CONTRIBUTING.md
└── README.md

License

MIT — see LICENSE.

Contributing

See CONTRIBUTING.md for contribution workflow and PR checklist.