@mocanvas/editor · function
declare function applyThemePatch(theme: TLTheme, patch: TLThemePatch, id?: TLThemeId): TLThemeApply a patch to a theme, merging colors one ramp at a time.
A ramp nobody patched is passed through by identity, so patching light cannot invalidate anything memoised against dark.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.