Build the NoteEditor's default color palette from a MUI theme.
Colors are derived from theme.palette.* so the editor adapts to the host app's light / dark / custom theme. Highlight background (yellow tint) is kept theme-independent since it represents a semantic "highlight" regardless of theme.
theme.palette.*
import { useTheme } from '@mui/material/styles';import { buildDefaultNoteEditorColors } from '@hiyve/react-notes';const theme = useTheme();const colors = buildDefaultNoteEditorColors(theme); Copy
import { useTheme } from '@mui/material/styles';import { buildDefaultNoteEditorColors } from '@hiyve/react-notes';const theme = useTheme();const colors = buildDefaultNoteEditorColors(theme);
Build the NoteEditor's default color palette from a MUI theme.