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

ngx-angora-css

v1.6.1

Published

Angora CSS is a library that provides a set of CSS classes to help you build modern web applications. It is based on the [Boostrap Expanded Features Library](https://github.com/LynxPardelle/bootstrap-expanded-features) and the [Bootstrap](https://getboots

Readme

Ngx Angora CSS

Ngx Angora CSS is an Angular runtime CSS utility library. It scans rendered DOM classes, parses ank-* utility tokens, and inserts the generated CSS rules into managed stylesheets at runtime.

Required Stylesheets

The runtime needs two linked stylesheets so it can insert normal and responsive rules:

<link rel="stylesheet" href="assets/css/angora-styles.css" />
<link rel="stylesheet" href="assets/css/angora-styles-responsive.css" />

The default stylesheet names are configured in ValuesSingleton as angora-styles.css and angora-styles-responsive.css.

Basic Usage

import { afterNextRender, Component } from '@angular/core';
import { NgxAngoraService } from 'ngx-angora-css';

@Component({
  selector: 'app-root',
  template: `<button class="ank-bg-primary ank-c-white ank-p-0_75rem__1rem">Save</button>`,
})
export class AppComponent {
  constructor(private readonly ank: NgxAngoraService) {
    afterNextRender(() => this.ank.cssCreate());
  }
}

Runtime Extension API

ank.runInCssCreateBatch(() => {
  ank.pushColors({ brandAurora: 'linear-gradient(135deg, #0f766e 0%, #38bdf8 100%)' });
  ank.pushBPS([{ bp: 'stage', value: '1080px', class2Create: '' }]);
  ank.pushAbreviationsValues({ pillRadius: '999px' });
  ank.pushAbreviationsClasses({ clusterGap: 'ank-gap' });
  ank.pushCombos({ Badge: ['ank-bg-brandAurora ank-c-white ank-rounded-pillRadius'] });
});

Batch runtime registration when several registries are updated together. Calls to cssCreate() requested by registry helpers are deferred until the batch closes, which keeps startup to one creation pass.

The lower-level beginCssCreateBatch() and endCssCreateBatch() methods are available for advanced flows. If you use them directly, close the batch from a finally block.

Performance And Duplicate Rules

Run cssCreate() after render, after lazy content appears, or after a user action changes managed class names. Avoid unconditional ngDoCheck loops.

Forced recreation is idempotent: existing matching selectors are replaced before new rules are inserted, including nested rules in the responsive stylesheet.

CSS Creation Debugging

const lastRun = ank.getLastCssCreateReport();
const history = ank.getCssCreateHistory(8);
const summary = ank.getCssCreateDebugSummary();
const snapshot = ank.getCssCreateDebugSnapshot();

ank.clearCssCreateHistory();

Every completed cssCreate() report includes id, startedAt, completedAt, durationMs, counters, input classes, and diagnostics. The summary method aggregates timing and class counters across the stored history. The snapshot method adds stylesheet availability/rule counts and runtime registry sizes.

Validation And Diagnostics

const validation = ank.validateClass('ank-color-red');
const report = ank.validateClasses(['ank-color-red', 'ank-color-md-red', 'ank-']);
const creationReport = ank.getLastCssCreateReport();
ank.clearCssCreateReport();

Validation results include valid, invalid, or duplicate status, a generated rule preview when available, and diagnostics that explain malformed classes.

Creation reports include processed, created, skipped, and failed counters plus diagnostics such as invalid-class-structure, invalid-class-discovered, invalid-rule-fragment, and stylesheet-missing.

Testing

From the workspace root:

npm run test:library
npm run test:app
npm run test:all
npm run build

The demo app imports the library source directly, so it exercises real class discovery, combo parsing, validation, diagnostics, and stylesheet insertion.

Author

Lynx Pardelle