Optionaloptions: AdvancedRichTextOptionsConfiguration object for theme and color variant
JSS object with composed styles and appropriate className
// Light theme (default)
const styles = composeAdvanced();
// Dark theme
const styles = composeAdvanced({ theme: 'dark' });
// With explicit gray color
const styles = composeAdvanced({ color: token.color.gray.dark });
// With theme-aware subdued color
import { theme } from '@universityofmaryland/web-utilities-library/theme';
const styles = composeAdvanced({ color: theme.subdued(isThemeDark) });
Composable advanced rich text style selector
Creates advanced rich text styles with support for lists, tables, code blocks, and quotes. Supports theme and color configuration.