r/angular • • 13d ago

Kometa UI: an Angular 22 component kit with no third-party UI dependency, one entry point per component, and docs for coding agents in the package

The first image is a dashboard screen built only from kit components. The others are a few I'm happiest with: a day strip with time slots, a before/after slider, a hue picker, a counter with filling ticks and a draining countdown.

Why it exists: it started as the component layer of an app I work on, and I extracted it into its own package so it can be used without that app.

What might be different from what you already use:

  • No UI dependency. Peer deps are u/angular* 22 and rxjs. Everything is standalone, OnPush, with signal inputs and model() for two-way bindings. Light and dark come from one set of CSS custom properties (--bg, --text, --amber...), so setting a token on any element restyles everything inside it.
  • One secondary entry point per component (85 of them): import { KometaButton } from 'kometa-ui/button'. With a single barrel, every kit component a lazy route used ended up in the initial chunk of my admin app; splitting the entries took 78 kB raw out of it. from 'kometa-ui' still works.
  • Styles that are easy to override. The components that render global markup (button, drawer, table, carousel) write their rules inside :where(), so a plain class in your stylesheet wins without ::ng-deep or !important. The rest expose custom properties such as --tag-gap or --fold-pad.
  • Docs for AI coding agents ship in the package. node_modules/kometa-ui/ai/usage.md is a hand-written guide, ai/components.md is generated from the source (selector, inputs, outputs, types, defaults, doc comments) for all 89 components and directives. The docs site also serves llms.txt.

Links:

It's 0.3.0 and new outside the app it came from, so I'd like to hear where it breaks for you: setup steps that don't work in your project, components that misbehave with your forms or router setup, accessibility problems, or APIs that read oddly. Issues or comments here both work.

0 Upvotes

0 comments sorted by