MCPcopy Create free account
hub / github.com/IBM/mcp-cli / themeToCSS

Function themeToCSS

src/mcp_cli/dashboard/static/js/theme.js:23–33  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

21}
22
23export function themeToCSS(t) {
24 return {
25 name: t.name,
26 bg: t.bg, bg_surface: t.bg_surface, bg_hover: t.bg_hover,
27 fg: t.fg, fg_muted: t.fg_muted,
28 accent: t.accent, success: t.success, warning: t.warning,
29 error: t.error, info: t.info, border: t.border,
30 font_mono: t.font_mono, font_ui: t.font_ui,
31 font_size: t.font_size, radius: t.radius, spacing: t.spacing,
32 };
33}
34
35export function applyTheme(t) {
36 if (!t || !t.bg) return;

Callers 4

sendInitToViewFunction · 0.90
sendInitToSidebarViewFunction · 0.90
handlePopoutReadyFunction · 0.90
applyThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected