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

@glint-ng/core

v0.1.1

Published

Angular Style Zone UI component library — themeable components built on Angular CDK with signal-based cascading style customization

Readme

@glint-ng/core

Angular Style Zone UI component library — 80+ themeable components built on Angular CDK with signal-based cascading style customization.

Live Demo · GitHub · Contributing

Installation

npm install @glint-ng/core @angular/cdk lucide

Requirements: Angular 21+, Node.js 22+

Setup

Add provideGlintUI() to your application config:

// app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideGlintUI } from '@glint-ng/core';

export const appConfig: ApplicationConfig = {
  providers: [
    provideGlintUI(),
  ],
};

This registers the default theme tokens, icon set (~36 Lucide icons), and overlay services.

Your First Component

Import and use any component directly — all components are standalone:

import { Component } from '@angular/core';
import { GlintButton } from '@glint-ng/core';

@Component({
  selector: 'app-root',
  imports: [GlintButton],
  template: `
    <glint-button severity="primary" (click)="count = count + 1">
      Clicked {{ count }} times
    </glint-button>
  `,
})
export class AppComponent {
  count = 0;
}

Replacing Native confirm()

Use GlintConfirmDialogService for styled, async confirmation dialogs that inherit your theme:

// Before — native confirm()
if (confirm('Delete this item?')) {
  this.delete(item);
}

// After — GlintConfirmDialogService
import { GlintConfirmDialogService } from '@glint-ng/core';

export class MyComponent {
  private confirmDialog = inject(GlintConfirmDialogService);

  async onDelete(item: Item): Promise<void> {
    const confirmed = await this.confirmDialog.confirm({
      header: 'Confirm Deletion',
      message: 'Are you sure you want to delete this item?',
      acceptLabel: 'Delete',
      rejectLabel: 'Cancel',
      severity: 'danger',
    });
    if (confirmed) {
      this.delete(item);
    }
  }
}

The service returns a Promise<boolean> — no callbacks needed.

Theming with Style Zones

Wrap any section of your app in a <glint-style-zone> to override theme tokens. Zones nest and inherit:

import { Component } from '@angular/core';
import { StyleZoneComponent, GlintButton, GlintColor } from '@glint-ng/core';

@Component({
  selector: 'app-themed',
  imports: [StyleZoneComponent, GlintButton],
  template: `
    <!-- Blue primary -->
    <glint-style-zone [theme]="{ colorPrimary: blue500 }">
      <glint-button severity="primary">Blue button</glint-button>

      <!-- Nested: green primary, inherits everything else -->
      <glint-style-zone [theme]="{ colorPrimary: green500 }">
        <glint-button severity="primary">Green button</glint-button>
      </glint-style-zone>
    </glint-style-zone>
  `,
})
export class ThemedComponent {
  blue500 = GlintColor.Blue.S500;
  green500 = GlintColor.Green.S500;
}

Theme Presets

Use built-in presets for common configurations:

import { DARK_ZONE, COMPACT_ZONE, DANGER_ZONE, SOFT_ZONE } from '@glint-ng/core';
<glint-style-zone [theme]="DARK_ZONE">
  <!-- Dark-themed section -->
</glint-style-zone>

Custom Icons

provideGlintUI() registers ~36 default Lucide icons. To add more:

import { provideGlintIcons, mapIcons, lucideToSvg } from '@glint-ng/core';
import { Camera, Download, Share2 } from 'lucide';

export const appConfig: ApplicationConfig = {
  providers: [
    provideGlintUI(),
    provideGlintIcons(mapIcons({ Camera, Download, Share2 }, lucideToSvg)),
  ],
};

Then use them by name:

<glint-icon name="Camera" />

Component Catalog

| Category | Components | |----------|-----------| | Form | Input, InputNumber, Textarea, Password, Select, MultiSelect, Checkbox, RadioButton, ToggleSwitch, ToggleButton, SelectButton, Slider, Knob, Rating, ColorPicker, DatePicker, AutoComplete, CascadeSelect, TreeSelect, InputMask, InputOTP, FileUpload, FloatLabel, InputGroup, ListBox | | Data | Table, TreeTable, DataView, Tree, OrganizationChart, Scroller, Timeline, Avatar, Badge, Tag, Chip, Card, Carousel, Galleria, Image, ImageCompare, MeterGroup | | Navigation | Menu, MenuBar, TieredMenu, ContextMenu, PanelMenu, TabMenu, Breadcrumb, Paginator, Dock, SpeedDial, SplitButton, Tabs, Stepper | | Overlay | Dialog, ConfirmDialog, ConfirmPopup, Drawer, Popover, Tooltip, OverlayBadge | | Feedback | Toast, Message, ProgressBar, ProgressSpinner, Skeleton, BlockUI | | Layout | Shell, Divider, Splitter, ScrollPanel, Panel, Fieldset, Accordion, Toolbar, Inplace, ScrollTop | | Theming | StyleZone, Presets (DARK_ZONE, COMPACT_ZONE, DANGER_ZONE, SOFT_ZONE) |

Key Concepts

  • Standalone components — No NgModules. Import components directly.
  • Signal inputs — All components use input() / input.required(), not @Input().
  • ControlValueAccessor — Form components (Input, Select, Checkbox, etc.) work with ngModel and Reactive Forms.
  • CDK Overlays — Dialogs, menus, tooltips, and drawers use @angular/cdk/overlay with automatic zone theme inheritance.
  • Branded types — Theme tokens use CSSColor, CSSLength, etc. for compile-time safety.

License

MIT — Copyright (c) 2026 Anthony Muccio