Installation
Set up an Angular app once, then add components one by one.
Requirements
An Angular 22 app (standalone components; zoneless works). The components are tested with @angular/aria 22.3.
1. Initialize
Run this in the project root:
npx fizzy-ui init- writes the theme tokens to
src/fizzy.css; - imports Tailwind and the theme at the top of
src/styles.css; - creates
.postcssrc.jsonand installs tailwindcss, @tailwindcss/postcss and postcss.
2. Add components
npx fizzy-ui add button tabs dialog Files go to src/app/ui/, and missing dependencies (@angular/aria, @angular/cdk) are installed. Existing files are never overwritten unless you pass --overwrite. npx fizzy-ui list prints every name.
3. Use them
import { Component } from '@angular/core';
import { FZ_BUTTON } from './ui/button';
@Component({
selector: 'app-root',
imports: [FZ_BUTTON],
template: '<button fzButton variant="outline">Click me</button>',
})
export class App {}Customizing
The files are yours: to change a component everywhere, edit it in src/app/ui/. For one use, add classes on the element; they join the component's own.
To override something the component already sets, such as its width, add !: <fz-select class="w-56!">. Without it, which of two classes for the same property wins depends on Tailwind's CSS order, not on yours (w-full beats w-56).
Updating
Your copies never change by themselves. npx fizzy-ui@latest diff shows what changed in the registry for the components you have; npx fizzy-ui@latest update brings it in and keeps your edits (a three-way merge with git; where you and the registry changed the same lines, the file gets conflict markers to resolve). Name components to limit either one: update select tabs.
add and update keep the version they wrote in .fizzy-ui/, the base of the merge: commit it. Files added before 22.4 have none, so update leaves an edited one alone until you pass --overwrite.
Options
| Flag | Effect |
|---|---|
| --path <dir> | Where the components live (default src/app/ui) |
| --overwrite | add: replace files that exist; update: replace instead of merging |
| --harness | add: also copy the test harness of each component (<file>.harness.ts) |
| --theme <name> | init: set a color preset in src/fizzy.css (neutral, blue, green, rose, violet, orange) |
| --skip-install | Do not install npm dependencies |
| --registry <dir|url> | Read components from another registry |