DefaultColorThemePalette
See source codeComplete color palette containing both light and dark theme definitions. This object provides the full color system used by tldraw's default themes, including all color variants and theme-specific adjustments.
DefaultColorThemePalette: {
darkMode: TLDefaultColorTheme
lightMode: TLDefaultColorTheme
}
Example
import { DefaultColorThemePalette } from '@tldraw/tlschema'
// Get the dark theme colors
const darkTheme = DefaultColorThemePalette.darkMode
const redColor = darkTheme.red.solid // '#e03131'
// Access light theme colors
const lightTheme = DefaultColorThemePalette.lightMode
const blueColor = lightTheme.blue.fill // '#4465e9'
Prev
DefaultColorStyleNext
DefaultDashStyle