Step 01
Import global styles
Loads every token tier and all five theme definitions in one line.
// styles.scss
@use 'zyra-ng-ui';Zyra UI ships five themes built on the same token layer — switch below to preview how every component responds instantly, with no per-component changes required. For the full token catalog and override rules, see Theme tokens →.
--zyra-color-bg-app--zyra-color-surface--zyra-color-text--zyra-color-text-muted--zyra-color-border--zyra-color-border-strong--zyra-color-accent--zyra-color-accent-hover--zyra-color-accent-secondary--zyra-color-accent-tertiary--zyra-color-success--zyra-color-warning--zyra-color-danger--zyra-color-infoStep 01
Loads every token tier and all five theme definitions in one line.
// styles.scss
@use 'zyra-ng-ui';Step 02
Picks the initial theme and wires up ZyraThemeService before first render.
// app.config.ts
import { provideZyra } from 'zyra-ng-ui';
export const appConfig: ApplicationConfig = {
providers: [provideZyra({ theme: 'dark' })],
};Step 03
Inject the service anywhere — every component repaints instantly, no reload.
import { inject } from '@angular/core';
import { ZyraThemeService } from 'zyra-ng-ui';
const theme = inject(ZyraThemeService);
theme.setTheme('ocean'); // 'dark' | 'light' | 'ocean' | 'amber' | 'rose'Step 04
Set any token after the Zyra import to customize without forking a theme file.
// styles.scss — after @use 'zyra-ng-ui'
:root {
--zyra-color-accent: #7c3aed;
--zyra-radius-md: 6px;
}