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