NgeDocThemeService
class
Owns the documentation color scheme.
The resolved scheme is reflected as a nge-doc-dark class on the document
root and as a native color-scheme, so themes and the markdown renderer can
style themselves through plain CSS without re-rendering. Provided in root so a
single instance is shared by every theme.
Properties
| Name | Type | Description |
|---|---|---|
isDark (readonly) |
Signal<boolean> |
Whether dark mode is currently active once auto is resolved. |
scheme (readonly) |
WritableSignal<NgeDocColorScheme> |
The user preference. Defaults to auto (follows the OS). |
setActive()
Signature
setActive(active: boolean): voidParameters
active(boolean)
Returns
void
setScheme()
Signature
setScheme(scheme: NgeDocColorScheme): voidParameters
scheme(NgeDocColorScheme)
Returns
void
toggle()
Signature
toggle(): voidReturns
void