wealth/packages/island/src/tools/cn/constants.ts

36 lines
795 B
TypeScript

/** Font-size tokens from theme.css; tailwind-merge would otherwise read `text-body-sm` as a color. */
export const TEXT_SIZES = [
'display',
'heading-lg',
'heading-md',
'heading-sm',
'body-lg',
'body-md',
'body-sm',
'label',
'caption',
'micro',
] as const;
export const SHADOWS = ['1', '2', '3', 'focus-ring'] as const;
export const NAMED_SPACING = [
'touch-target',
'control-sm',
'control-md',
'control-lg',
'input-height',
] as const;
/** Container widths from theme.css, used as `w-*` and `max-w-*`. */
export const CONTAINERS = ['mobile', 'checkout', 'form', 'content'] as const;
/** z-index layers from utilities.css, so `z-overlay` replaces `z-sticky`. */
export const Z_LAYERS = [
'sticky',
'menu',
'overlay',
'toast',
'lightbox',
] as const;