@mocanvas/editor · function
declare function resolveThemes(themes?: TLThemesInput): TLThemesThe themes an editor will run with: the built-in default plus whatever the
app registered, with an app's default *replacing* the built-in one.
SEMANTICS-ASSUMED: a theme whose id disagrees with its key is re-stamped
rather than rejected.
Each theme's id is set from the key it is registered under, so
getThemes()[id].id === id always holds and a theme copied from another id
cannot lie about which one it is.
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.