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 Native Web Components implementation—the foundation of our entire design system.
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>). These are standard Web Components that work in any modern browser, with or without a JavaScript framework.
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 ensures your application is 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 Web Components in your project, install the package:
npm install @nova-design-system/nova-webcomponents
2. Import Components and Styles
Import the component library and apply the Nova theme:
import { defineCustomElements } from '@nova-design-system/nova-webcomponents/loader';
import '@nova-design-system/nova-webcomponents/dist/nova-webcomponents/nova-webcomponents.css';
defineCustomElements();
3. Configure Tailwind CSS
Install Tailwind CSS and the Nova Base package:
npm install tailwindcss @tailwindcss/cli @nova-design-system/nova-base
Add the imports to your stylesheet, choosing exactly one Nova theme:
@import 'tailwindcss';
@import '@nova-design-system/nova-base/theme/plugin.css';
@import '@nova-design-system/nova-base/dist/css/spark.css';
No tailwind.config file or JavaScript plugin setup is required.
4. Using Slots
A core concept you will use constantly in Nova is slots. Slots are the standard Web Components mechanism for inserting your own custom content into components (e.g., adding an icon to a button or a custom message in an alert).
Default slots allow you to pass content directly into a component:
<nv-button>Get started</nv-button>
Named slots let you target specific areas of a component:
<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.
Framework Wrappers
While you're viewing the native Web Components, Nova also provides framework-specific wrappers:
- React: Type-safe React components with React-style props
- Vue: Vue 3 components with Vue-specific features
- Angular: Angular components with full TypeScript support
These wrappers provide the same components with framework-specific DX improvements.
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).