Angular playground

Nova v3.37.0

Preview

Angular

Welcome

Welcome to the Nova Design System

This Storybook is your end-to-end technical resource for building with Nova. It provides interactive playgrounds, API documentation, and all the developer-focused guides you need to build efficiently.

You are currently viewing the Angular implementation, but our components are built on a framework-agnostic core.

Understanding Our Architecture

To build effectively with Nova, it is essential to understand our core workflow. Our system is built on three key pillars:

1. Web Components

Our component library is built using StencilJS to create a single, framework-agnostic set of components (like <nv-button> or <nv-alert>). This Storybook allows you to interact with the Angular-wrapped versions of these components.

2. Design Tokens

All our design decisions—colors, spacing, typography, shadows—are stored as design tokens. These tokens are the single source of truth for Nova's visual style.

3. Tailwind CSS Plugin

This is how you apply styling. Nova publishes its design tokens, typography, and utilities as a CSS-only Tailwind 4 plugin. When you want to style a component or build a new layout, you use Tailwind's utility classes (e.g., bg-level-00, typo-heading-lg-bold, p-4). This keeps your application consistent with Nova's design language, right out of the box.

Note: If you are new to Tailwind CSS, we highly recommend visiting the official Tailwind CSS documentation to learn about its utility-first approach.

Your core workflow will be: Use a Nova Web Component, and style it using our Tailwind utility classes.

Getting Started

Follow these steps to get Nova integrated into your project.

1. Installation and Setup

To get started with Nova in your Angular project, follow our detailed Get Started Guide.

This guide covers:

  • NPM package installation
  • Peer dependencies
  • CSS and theme imports
  • Tailwind setup

2. A Key Concept: Using Slots

A core concept you will use constantly in Nova is slots. Slots are the mechanism for inserting your own custom content into our components (e.g., adding an icon to a button or a custom message in an alert). Default slots are the most common type of slot. For example:

html<nv-button>
  Get started
</nv-button>

Named Slots

For components that require multiple customizable sections, we use named slots. You specify where your content goes by adding the slot attribute to your element.

Here is a typical example using the nv-button component to add icons into the leading-icon and trailing-icon slots:

html<nv-button>
  Both Sides
  <nv-icon
    name="user"
    slot="leading-icon"
  ></nv-icon>
  <nv-icon
    name="filter"
    slot="trailing-icon"
  ></nv-icon>
</nv-button>

Developer Resources

Component Library

You can browse all components alphabetically in the "Components" section of the sidebar. Each component page features:

  • Live Examples: Interactive playgrounds to see components in action.
  • Controls: A panel to modify component props in real-time.
  • API Documentation: A full table of props, events, and slots.
  • Code Snippets: Copy-paste ready code for your implementation.

Changelog

We document all changes, including breaking changes, in the Changelog. Please review it when upgrading versions.

Connect With Us

Have a question, need support, or want to share feedback? Contact the Nova team directly on Microsoft Teams.

Note: These channels are only accessible to those working for Elia Group (Elia, 50Hertz, and subsidiaries).