Skip to main content

Constants

FONT_FAMILY

How to use

import { FONT_FAMILY } from "@excalidraw/excalidraw";

FONT_FAMILY contains all the font families used in Excalidraw as explained below

Font FamilyDescription
VirgilThe handwritten font
HelveticaThe Normal Font
CascadiaThe Code Font

Defaults to FONT_FAMILY.Virgil unless passed in initialData.appState.currentItemFontFamily.

THEME

How to use

import { THEME } from "@excalidraw/excalidraw";

THEME contains all the themes supported by Excalidraw as explained below

ThemeDescription
LIGHTThe light theme
DARKThe Dark theme

Defaults to THEME.LIGHT unless passed in initialData.appState.theme

MIME_TYPES

MIME_TYPES contains all the mime types supported by Excalidraw.

How to use

import { MIME_TYPES } from "@excalidraw/excalidraw";