Typography size variant
Optionaloptions: CampaignComposeOptionsConfiguration for theme and color
JSS object with composed styles and appropriate className
// Basic usage
const heading = campaign.compose('large');
// With dark theme
const darkHeading = campaign.compose('large', { theme: 'dark' });
// With explicit color
const grayHeading = campaign.compose('large', { color: token.color.gray.dark });
// With theme-aware subdued color
import { theme } from '@universityofmaryland/web-utilities-library/theme';
const subtitle = campaign.compose('small', { color: theme.subdued(isThemeDark) });
Composable campaign typography style selector
Creates campaign typography styles with configurable size and theme options.