Skip to the content.

A2UI

Information

A2UI (Angular to UI) is a modern, lightweight, and highly customizable UI component library for Angular applications. It is designed to provide developers with a robust set of tools for building responsive and accessible user interfaces with ease.

The project is hosted at https://a2ui.org/.

Main Functionalities and Features

Installation

Prerequisites

Using npm

Install the core library and component package:

npm install @a2ui/core @a2ui/components

Use the Angular CLI to add A2UI to your project and run initial setup:

ng add @a2ui/schematics

This will automatically configure the library and add the necessary styles to your angular.json.

Usage, tips and tricks

Basic Component Usage

  1. Import the Module: In your app.module.ts or a feature module, import the A2UIModule.
import {A2UIModule} from '@a2ui/core';

@NgModule({
    imports: [
        A2UIModule.forRoot()
    ]
})
export class AppModule {
}
  1. Use the Component: You can now use A2UI components in your HTML templates.

<a2ui-card>
    <a2ui-card-header>Welcome to A2UI</a2ui-card-header>
    <a2ui-card-content>
        Building beautiful UIs has never been easier.
    </a2ui-card-content>
    <a2ui-card-footer>
        <a2ui-button (click)="onConfirm()">Get Started</a2ui-button>
    </a2ui-card-footer>
</a2ui-card>

Theming and Customization

A2UI uses LESS variables for theming. You can override these in your styles.less file:

// Custom brand colors
@a2ui-primary: #007bff;
@a2ui-secondary: #6c757d;
@a2ui-success: #28a745;

// Custom spacing
@a2ui-base-padding: 1rem;

Performance Tips

See also