@use '../../base/mixins/breakpoints' as break;

// Pseudo-elements cannot contain descendants. Disable emphasis when this mixin
// is included within ::before or ::after.
@mixin get-typography($type, $include-emphasis: true) {
	font-family: var(--txt-#{$type}-family);
	font-size: var(--txt-#{$type}-size);
	font-weight: var(--txt-#{$type}-weight);
	line-height: var(--txt-#{$type}-lh);
	letter-spacing: var(--txt-#{$type}-ls, normal);
	text-transform: var(--txt-#{$type}-tt, none);

	@if $include-emphasis and ($type == 'body' or $type == 'body-bold') {
		strong,
		b {
			font-weight: 700;
		}
	}

	@if $include-emphasis and
		($type == 'body-small' or $type == 'body-small-medium')
	{
		strong,
		b {
			font-weight: 500;
		}
	}
}
