TypeUpdated in v15

Theme types

The intent and mode unions from ngwr/theme.

Installation

Import the class, and @use the entry point in your global styles: without it the component renders unstyled.

import { WR_COLORS } from 'ngwr/theme';

WrColor

Bind it to [color] on wr-badge, wr-tag, wr-btn, wr-divider, wr-progress and wr-skeleton.

const accent: WrColor = 'primary';
primarysuccesswarningdangerinfo

wr-timeline-item takes WrTimelineColor instead, and the charts take a CSS colour string.

API

NameDescriptionTypeDefault
WrColorThe five intents. [color] on six components takes it, as does [confirmColor] on [wrPopconfirm].'primary' | 'success' | 'warning' | 'danger' | 'info'—
WrThemeModeThe mode you ask WrTheme for. auto follows the OS.'light' | 'dark' | 'auto'—
WrResolvedThemeThe scheme in effect once auto is resolved.'light' | 'dark'—

See also