MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / customThemeSlugFromId

Function customThemeSlugFromId

packages/shared-domain/src/custom-themes.ts:220–223  ·  view source on GitHub ↗
(themeId: string)

Source from the content-addressed store, hash-verified

218
219/** Slug embedded in a `custom-<slug>` theme id, or null for built-ins. */
220export function customThemeSlugFromId(themeId: string): string | null {
221 const m = CUSTOM_ID_RE.exec(themeId)
222 return m ? m[1] : null
223}
224
225/** Whether a theme id refers to a custom theme. */
226export function isCustomThemeId(themeId: string): boolean {

Callers 8

applyCustomThemesFunction · 0.90
applyFunction · 0.90
pickModeFunction · 0.90
removeCustomThemeFunction · 0.90
SettingsModalFunction · 0.90
injectActiveThemeFunction · 0.90
applyCustomExportThemeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected