Theme getting started
@tailng-ui/theme is the visual contract behind TailNG. It ships presets, token composition helpers, CSS variable adapters, and runtime setup so the same design language can power plain CSS shells, Tailwind apps, and the styled component layer.
Presets for starting fast
Ship with a curated light and dark preset, then swap or extend it without reworking component markup.
Scoped CSS variable output
Export primitives and semantic tokens as CSS variables so wrappers, apps, and docs can theme locally or globally.
Adapters for real projects
Use Angular providers for app-wide theme setup or convert the same theme into a Tailwind preset when utilities own layout.
Quick start
Install the package once, then register a preset near the root of your Angular app. Everything under that scope can inherit the same semantic tokens.
Install
pnpm add @tailng-ui/themeRegister a preset
import type { ApplicationConfig } from '@angular/core';
import { provideTailngTheme, defaultDarkThemePreset } from '@tailng-ui/theme';
export const appConfig: ApplicationConfig = {
providers: [
provideTailngTheme({ theme: defaultDarkThemePreset }),
],
};
Preset explorer
Switch the preset and mode to see how the same component surface changes when the theme scope changes. The preview below is locally scoped with generated CSS variables, so it behaves like an embedded product surface instead of mutating the docs app itself.
Balanced spacing and expressive accents for general product interfaces.
tailng-default-dark
Scoped preview rendered with generated CSS variables and a local color-scheme.
Keep layout and behavior stable while the preset controls background, border, accent, and focus treatments.