Build the ClipComposition's default color palette from a MUI theme.
Colors derive from theme.palette.* so the component adapts to the host app's light / dark / custom theme.
theme.palette.*
import { useTheme } from '@mui/material/styles';import { buildDefaultClipCompositionColors } from '@hiyve/react-clips';const theme = useTheme();const colors = buildDefaultClipCompositionColors(theme); Copy
import { useTheme } from '@mui/material/styles';import { buildDefaultClipCompositionColors } from '@hiyve/react-clips';const theme = useTheme();const colors = buildDefaultClipCompositionColors(theme);
Build the ClipComposition's default color palette from a MUI theme.