MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getStatusStyles

Method getStatusStyles

src/services/StatusManager.ts:151–160  ·  view source on GitHub ↗

* Get CSS variables for status colors

()

Source from the content-addressed store, hash-verified

149 * Get CSS variables for status colors
150 */
151 getStatusStyles(): string {
152 const cssRules: string[] = [];
153
154 for (const status of this.statuses) {
155 const cssClass = `--status-${status.value.replace(/[^a-zA-Z0-9-]/g, "-")}-color`;
156 cssRules.push(`${cssClass}: ${normalizeThemeColor(status.color)};`);
157 }
158
159 return `:root { ${cssRules.join(" ")} }`;
160 }
161
162 /**
163 * Get all status configurations

Callers 1

injectCustomStylesMethod · 0.80

Calls 1

normalizeThemeColorFunction · 0.90

Tested by

no test coverage detected