Skip to main content

Built-in themes

Here's the same map in each of them. Pick a theme to switch; the editor stays live, so you can try a theme by using it.

Loading the editor…

Pick a theme with the theme option, or switch at any time with mapper.setTheme():

const mapper = createMapper(element, { document: map, theme: "nord" });
mapper.setTheme("paper");

Crosswalk's own​

ThemeLook
inkThe default. Ink on paper, like office paperwork: a plain page, lines in ink, and operators as highlighter-yellow tiles stamped in ink. Follows light or dark mode. These docs use it.
studioClean and neutral, with curved links and a colour for each kind of operator. Follows the system's light or dark mode.
classicA traditional mapping tool: square tiles, straight lines and a ruled grid. Follows light or dark mode.
blueprintAlways dark: a drafting grid, right-angled links and monospace labels.
paperAlways light: warm and quiet, with round tiles, no grid and a serif face.

Editor colour schemes​

These follow well-known code editor schemes, with each scheme's own colours on the operator tiles.

ThemeScheme
github-lightGitHub's light colours.
solarized-light, solarized-darkEthan Schoonover's Solarized.
one-darkAtom's One Dark.
draculaDracula.
nordNord.
gruvbox-darkGruvbox, dark, with straight links.
monokaiMonokai.
tokyo-nightTokyo Night.

:::tip Light and dark ink, studio and classic follow the operating system's light or dark setting. If your app has its own switch, use a theme with a fixed scheme for each mode, or make your own pair: Your own themes shows how. :::

themes, exported from @crosswalkjs/canvas, lists these definitions, with a label, description and group for building a picker. listThemes() also includes themes you've registered.