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

@aurea-design-system/components

v2.2.1

Published

Aurea design system for Angular 22 — accessible components and semantic tokens.

Downloads

1,054

Readme

@aurea-design-system/components

Aurea — design system for Angular 22: accessible components, semantic tokens, and signal-friendly forms.

Angular WCAG npm License

Monorepo project components (this folder).


Requirements

  • Angular 21.2+ (@angular/core, @angular/common, @angular/forms)
  • Node 20.19+ (for the consuming app toolchain)

Install

bun add @aurea-design-system/components
npm install @aurea-design-system/components

Quick start

1. Design tokens (global styles)

Token layers: primitives → semantic → roles → domain → high-contrast — see src/lib/tokens/README.md.

In angular.jsonstyles, or in src/styles.scss:

@import '@aurea-design-system/components/styles/au-tokens.css';
@import '@aurea-design-system/components/styles/aurea-global.css';

For apps that only need field chrome (inputs, select, listbox) without layout utilities or accordion shells:

@import '@aurea-design-system/components/styles/au-tokens.css';
@import '@aurea-design-system/components/styles/aurea-chrome.css';

Do not import aurea-chrome.css and aurea-global.css together. Use aurea-global.css when you need layout directives (auStack, …) or composite shells (card, table, dialog, app-shell). See src/lib/styles/README.md.

2. Schematic (optional)

ng add @aurea-design-system/components

Adds global styles to angular.json and prints next steps.

White-label bridge (generates src/styles/aurea-theme-bridge.css with semantic token overrides):

ng add @aurea-design-system/components --theme=custom

3. Dark mode (optional)

<html data-au-theme="dark"></html>

Or use the auTheme directive from the same package (light, dark, system, high-contrast, high-contrast-dark).

Optional runtime brand via provideAurea() (writes semantic tokens on :root):

import { provideAurea } from '@aurea-design-system/components';

bootstrapApplication(App, {
  providers: [
    provideAurea({
      theme: { actionPrimary: '#1059c8', radiusField: '0.5rem' },
    }),
  ],
});

See docs /guides/composition and docs/COMPONENT_CSS_VARS.md.

4. Density (optional)

<body data-au-density="compact"></body>

Or [auDensity]="'spacious'" on your shell.

5. Components

import { AuButton, AuCheckbox, AuDivider, AuTooltip } from '@aurea-design-system/components';

@Component({
  imports: [AuButton, AuCheckbox, AuDivider, AuTooltip],
  template: `
    <button
      auButton
      variant="primary"
    >
      Save
    </button>
    <button
      auButton
      type="button"
      variant="outline"
      auTooltip="Extra help"
    >
      ?
    </button>
    <au-divider />
    <input
      type="checkbox"
      auCheckbox
      label="Remember me"
    />
  `,
})
export class Example {}

API conventions

Aurea uses a hybrid public API:

| Pattern | Use when | Examples | | ------------------------ | -------------------------------------------- | ------------------------------------------------------- | | Directive on native host | Single HTML element, forms semantics | button[auButton], input[auInputText], [auTooltip] | | au-* custom element | Composite widget, projection, internal state | au-form-field, au-dialog, au-table, au-menu |

au-table is a high-level data table ([data] + au-table-column), not a <table> directive like Angular Material CDK. Headless helpers (sortTableRows, toggleTableSortState, …) live in au-table-data.ts for custom UIs.

Monorepo guides: docs/API_CONVENTIONS.md · docs/API_VOCABULARY.md · docs/COMPOSITION.md · docs/COMPONENT_CSS_VARS.md · docs/FLOATING_UI.md · docs/STYLE_CAPABILITIES.md · docs site /guides/*.


Signal forms (Angular 22+)

Field controls implement FormValueControl and bind with [formField] from @angular/forms/signals. Put form() and the model signal() in your page or feature component (injection context). Wrap the control in au-form-field for label, hint, and error chrome — do not duplicate label on the inner control.

Import FormField next to the control in the same @Component.imports array.

Example: email with required + email

import { Component, signal } from '@angular/core';
import { FormField, email, form, required } from '@angular/forms/signals';
import { AuFormField, AuInputText } from '@aurea-design-system/components';

@Component({
  selector: 'app-profile-email',
  imports: [AuFormField, AuInputText, FormField],
  template: `
    <au-form-field
      label="Email"
      hint="We only use this for account notices."
      [required]="true"
    >
      <input
        auInputText
        [formField]="fieldRoot.email"
        type="email"
        placeholder="[email protected]"
      />
    </au-form-field>
  `,
})
export class ProfileEmailComponent {
  private readonly data = signal({ email: '' as string });

  readonly fieldRoot = form(this.data, (schema) => {
    required(schema.email, { message: 'Email is required' });
    email(schema.email, { message: 'Enter a valid email address' });
  });
}

Controls with [formField]

| Component | Value type | Notes | | --------------------------------------------- | ---------------- | --------------------- | | AuInputText, AuTextarea | string \| null | Empty field → null | | AuInputNumber, AuInputDate, AuInputTime | string \| null | Same empty semantics | | AuSelect, AuAutocomplete | string \| null | Option value | | AuCheckbox, AuSwitch | boolean | | | AuRadioGroup | string \| null | Selected option value | | AuSlider | number | Native range input | | AuFileUpload | File[] | Drag-and-drop picker |

Manual validation (no form())

Use [(value)] / [(checked)] and set errorMessage + invalid on au-form-field. Storybook demos use this pattern — see Aurea/InputTextWith error and Aurea/FormField.

Nested model

readonly profile = signal({ name: '', address: { city: '' as string } });
readonly profileForm = form(this.profile, (p) => {
  required(p.name, { message: 'Name is required' });
  required(p.address.city, { message: 'City is required' });
});
<au-form-field label="City">
  <input
    auInputText
    [formField]="profileForm.address.city"
  />
</au-form-field>

Disabled submit

Gate actions with profileForm().valid(). By default, au-form-field shows validation chrome when a bound field is touched (showErrorsWhen="touched"). For validate-on-submit, set [showValidation]="submitAttempted()" once on form[auForm] (or on individual fields when you need an override).

<form
  auForm
  [formRoot]="profileForm"
  [showValidation]="submitAttempted()"
>
  <au-form-field label="Email">
    <input
      auInputText
      [formField]="profileForm.email"
      type="email"
    />
  </au-form-field>
</form>

Dialog footers outside the <form>: use auDialogSubmit="form-id" or type="submit" with [attr.form]="formId". Place <au-snackbar> inside the modal when feedback must appear above the dialog top layer.


Components

| Export | Selector / API | Notes | | -------------------- | ------------------------------------ | ---------------------------------------------------------------------- | | AuButton | <button auButton> | Variants, loading, focus ring | | AuInputText | <input auInputText> | [formField] or [(value)] + au-form-field | | AuTextarea | <textarea auTextarea> | Same as input-text | | AuFormField | <au-form-field> | Label / hint / error wrapper | | AuCheckbox | <input type="checkbox" auCheckbox> | | | AuSelect | <au-select> | Portaled listbox | | AuAutocomplete | <au-autocomplete> | | | AuSwitch | <button type="button" auSwitch> | | | AuRadioGroup | <au-radio-group> | | | AuInputNumber | <input auInputNumber> | | | AuInputDate | <input auInputDate> | Native date field (stable 1.5.0) | | AuInputTime | <input auInputTime> | Native time field (stable 1.5.0) | | AuInputPassword | <input auInputPassword> | Password with reveal toggle (stable 1.6.0) | | AuButtonGroup | <au-button-group> | Groups button[auButton] actions (stable 1.6.0) | | AuTagInput | <au-tag-input> | Multi-value tags (stable 1.6.0) | | AuDialog | <au-dialog> | Native <dialog> | | AuCard | <au-card> | AuCardFooter directive | | AuTabs | <au-tabs> | AuTab, AuTabPanel | | AuChip | <au-chip> | Removable / selectable | | AuChipGroup | <au-chip-group> | Filter / choice groups (stable 1.5.0) | | AuList | <au-list> | Removable list items (stable 1.5.0) | | AuSteps | <au-steps> | Step indicator (stable 1.5.0) | | AuMessage | <au-message> | Inline / banner notices (layout="banner" since 1.5.0) | | AuIcon | <au-icon> | SVG icon set | | AuSkeleton | <au-skeleton> | Loading placeholder | | AuSnackbar | <au-snackbar> | | | AuDivider | <au-divider> | Horizontal / vertical | | AuDescriptionList | <au-description-list> | Key–value dl with au-description-item (stable 1.6.0) | | AuTooltip | [auTooltip] | Directive on the trigger | | AuBadge | <au-badge> | Status / count label | | AuBreadcrumb | <au-breadcrumb> | Navigation trail | | AuPagination | <au-pagination> | Page controls (1-based) | | AuMenu | <au-menu> | Dropdown + auMenuTrigger / au-menu-item | | AuPopover | <au-popover> | Anchored panel + auPopoverTrigger | | AuTable | <au-table> | au-table-column; headless helpers in au-table-data | | AuProgress | <au-progress> | Progressbar | | AuLink | a[auLink] | Semantic inline link | | AuEmptyState | <au-empty-state> | Empty lists/tables/search (stable 1.2.0) | | AuAvatar | <au-avatar> | User image or initials (stable 1.4.0) | | AuDrawer | <au-drawer> | Side panel overlay (stable 1.4.0) | | AuAccordion | <au-accordion> | button[auAccordionItem] + <au-accordion-panel> (stable 1.2.0) | | AuFieldset | <au-fieldset> | Grouped fields with legend (stable 1.2.0) | | AuSlider | <au-slider> | Range control + [formField] (stable 1.2.0) | | AuFileUpload | <au-file-upload> | File picker + [formField] (stable 1.2.0) | | AuSpinner | <au-spinner> | Loading indicator | | AuTheme | [auTheme] | light / dark / system / high-contrast / high-contrast-dark | | AuDensityDirective | [auDensity] | compact / comfortable / spacious | | AuStack | [auStack] | Vertical flex stack; gap, align, separator | | AuCluster | [auCluster] | Inline wrap row; toolbars, filter bars | | AuSplit | [auSplit] | Two-column grid; ratio, responsive collapse | | AuSection | [auSection] | Padded block; optional divider | | AuAppShell | <au-app-shell> | Page frame: header, banner, main, footer slots | | provideAurea | provideAurea({ theme }) | Optional bootstrap override for semantic CSS variables | | openOverlayLazy | helper | Defer @if overlay mount until first open (see docs/COMPOSITION.md) |


Governance & maturity

Bundle & performance

  • Import per symbol (import { AuButton } from '…'), not import *.
  • Global CSS: au-tokens.css (required) + aurea-global.css (field chrome, layout directives, listbox, description list, accordion item shells). Optional slimmer bundle: aurea-chrome.css. See src/lib/styles/README.md.
  • All components use ChangeDetectionStrategy.OnPush; overlays attach to document.body only while open.
  • Lazy-load feature routes; paginate large tables server-side.
  • CI: bun run check:bundle (+5% vs baseline). Update baseline with bun run update:bundle-baseline after intentional size changes.

License

MIT