Hiyve Components - v1.0.0
    Preparing search index...

    Function buildDefaultNoteEditorColors

    • Build the NoteEditor's default color palette from a MUI theme.

      Parameters

      • theme: Theme

      Returns NoteEditorColors

      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.

      import { useTheme } from '@mui/material/styles';
      import { buildDefaultNoteEditorColors } from '@hiyve/react-notes';

      const theme = useTheme();
      const colors = buildDefaultNoteEditorColors(theme);