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

@worse-and-pricier/design-system-ui

v0.2.0

Published

Angular UI component library - buttons, form controls, tables, cards, and pagination

Readme

Design System UI

Complete UI component library with buttons, controls, tables, cards, and more. Part of the @worse-and-pricier/design-system package suite.

💡 Recommended: Use the meta-package @worse-and-pricier/design-system which bundles tokens, styles, and UI components together for simplified installation and guaranteed version compatibility.

Dependencies

This package depends on:

  • @worse-and-pricier/design-system-tokens - For SCSS compilation (mixins, functions, animations)
  • @angular/core, @angular/common, @angular/forms - Angular framework (20+)
  • angular-svg-icon - For SVG icon support
  • ngx-quill - For rich text editor component

Note: This package does NOT depend on @worse-and-pricier/design-system-styles. If you need global styles and theme switching, install styles separately.

Installation

# Minimal installation (UI components only)
npm install @worse-and-pricier/design-system-tokens @worse-and-pricier/design-system-ui

# Full installation (with global styles and theming)
npm install @worse-and-pricier/design-system-tokens @worse-and-pricier/design-system-styles @worse-and-pricier/design-system-ui

Angular Configuration

Add to your angular.json or project.json:

{
  "stylePreprocessorOptions": {
    "includePaths": [
      "node_modules/@worse-and-pricier/design-system-tokens/scss"
    ]
  }
}

This is required for UI components to compile SCSS that references token files.

Icon Assets (Required for ButtonIconComponent)

The ButtonIconComponent requires SVG icon files to be available at runtime. These are included in the package under assets/icons/.

Add the following assets configuration to your angular.json or project.json:

{
  "architect": {
    "build": {
      "options": {
        "assets": [
          {
            "glob": "**/*",
            "input": "node_modules/@worse-and-pricier/design-system-ui/assets",
            "output": "/assets"
          }
        ]
      }
    }
  }
}

This copies icon files to your application's output directory at /assets/icons/, making them accessible via icons/[icon-name].svg.

Without this configuration, ButtonIconComponent will fail to load icons with 404 errors.

Example:

import { ButtonIconComponent } from '@worse-and-pricier/design-system-ui';

@Component({
  standalone: true,
  imports: [ButtonIconComponent],
  template: `
    <lib-button-icon
      icon="arrow-right"
      type="default"
      (click)="handleClick()"
    />
  `
})
export class MyComponent {}

Available icons:

  • arrow-left
  • arrow-right
  • corner-up-right
  • rotate-ccw
  • eye
  • eye-off
  • edit

See assets/icons/ in the package for the complete list.

Components

Buttons

  • ButtonComponent - Standard button with primary/secondary/tertiary/danger types
  • ButtonIconComponent - Icon-only button
  • ButtonTextIconComponent - Button with text and icon
  • ButtonToggleComponent - Toggle button (for button groups)
  • ButtonToggleGroupComponent - Group of toggle buttons
  • ButtonGroupComponent - Group of standard buttons

Controls

  • InputTextComponent - Text input with label and validation
  • InputSelectComponent - Select dropdown
  • InputCheckComponent - Checkbox
  • InputCheckGroupComponent - Group of checkboxes
  • InputRichTextEditorComponent - Rich text editor (Quill)

Layout

  • CardComponent - Card container
  • TableComponent - Data table with sorting and pagination
  • PaginatorComponent - Pagination controls

Utilities

  • SortableHeaderComponent - Sortable table header
  • ColumnDirective - Table column directive

Models

  • ButtonType - Button type enum ('primary' | 'secondary' | 'tertiary' | 'danger')
  • OptionItem - Select option model ({ label: string; value: string })
  • SortDefinition<T> - Table sorting model
  • PageEvent - Pagination event model
  • IColumn - Table column configuration

Usage

import {
  ButtonComponent,
  InputTextComponent,
  TableComponent,
  OptionItem,
  SortDefinition,
  PageEvent
} from '@worse-and-pricier/design-system-ui';

@Component({
  standalone: true,
  imports: [ButtonComponent, InputTextComponent, TableComponent],
  template: `
    <lib-button [type]="'primary'" (click)="handleClick()">
      Click Me
    </lib-button>

    <lib-input-text
      label="Username"
      placeholder="Enter username"
      [control]="usernameControl"
    />

    <lib-table
      [data]="data"
      [columns]="columns"
      (sort)="onSort($event)"
    />
  `
})
export class MyComponent {
  usernameControl = new FormControl('');
  data = [...];
  columns: IColumn[] = [...];

  handleClick() {
    console.log('Button clicked');
  }

  onSort(sort: SortDefinition<MyType>) {
    // Handle sorting
  }
}

Storybook

View component documentation and examples:

npx nx storybook ui          # Run Storybook dev server
npx nx build-storybook ui    # Build static Storybook

Building

npx nx build ui

Running Tests

npx nx test ui