Installation
Add the package, register the provider, and include the design tokens. Every component is standalone. Import only what you use from its group entry point.
Install
The package is published to GitHub Packages. Point the
@mushilu-sanscope at that registry in your.npmrcfirst. GitHub Packages requires authentication even for public packages: sign in withnpm loginfor the@mushilu-sanscope and thehttps://npm.pkg.github.comregistry, using a GitHub token that has theread:packagespermission. Keep the token out of files you commit.@mushilu-san:registry=https://npm.pkg.github.comnpm install @mushilu-san/uiProvide the library
The library is zoneless and needs Angular 22.
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';import { provideMushiluUi } from '@mushilu-san/ui';export const appConfig: ApplicationConfig = { providers: [provideZonelessChangeDetection(), provideMushiluUi()],};Include the styles
tokens.cssdefines every--mui-*token, including dark mode.reset.cssis optional."styles": [ "node_modules/@mushilu-san/ui/styles/reset.css", "node_modules/@mushilu-san/ui/styles/tokens.css", "src/styles.css"]Use a component
import { Component } from '@angular/core';import { Button } from '@mushilu-san/ui/primitives';@Component({ selector: 'app-root', imports: [Button], template: `<button muiButton (clicked)="save()">Save</button>`,})export class App { save() {}}Next: browse all components.