MCPcopy
hub / github.com/DevCloudFE/ng-devui / formatCSSVariables

Method formatCSSVariables

devui/theme/theme-service.ts:82–86  ·  view source on GitHub ↗
(themeData: Theme['data'])

Source from the content-addressed store, hash-verified

80 }
81
82 formatCSSVariables(themeData: Theme['data']) {
83 return Object.keys(themeData).map(
84 cssVar => ('--' + cssVar + ':' + themeData[cssVar])
85 ).join(';');
86 }
87
88 applyTheme(theme: Theme) {
89 if (typeof window === 'undefined' || typeof document === 'undefined') {

Callers 2

renderThemeMethod · 0.95
applyExtraDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected