Skip to content
@ng-doc/core / Function

ngDocSyntaxTheme

Creates NgDoc's syntax highlighting theme: every token colour is a --ng-doc-syntax-* CSS variable, so highlighted code follows the light, dark and user themes without being highlighted again. Shiki changes the theme object it loads, so every highlighter needs a new one.

DeclarationTypeScript

Returns

NgDocSyntaxTheme -

A new theme object named {@link NG_DOC_SYNTAX_THEME_NAME}.

Symbol
Kind
Function
Scope
@ng-doc/core
Edit this page