@use 'iro-sass/src/index' as iro; @use '../functions' as fn; @use '../mixins' as mx; @include iro.props-namespace('headings') { @include iro.bem-scope(iro.props-namespace()) { h1, h2, h3, h4, h5, h6 { @include mx.set-font(--headline); display: block; transform: translateX(-.06em); letter-spacing: normal; text-transform: none; } h1 { @include mx.heading-strong(fn.global-dim(--heading --lg)); } h2 { @include mx.heading-medium(fn.global-dim(--heading --md)); } h3, h4, h5, h6 { @include mx.heading-faint(fn.global-dim(--heading --sm)); } @include iro.bem-elem('highlight') { background-image: linear-gradient( to top, transparent .15em, fn.color(--bg) .15em, fn.color(--bg) .6em, transparent .6em ); } @include iro.bem-modifier('display') { h1, h2, h3, h4, h5, h6 { @include mx.set-font(--headline); } h1 { @include mx.heading-strong(fn.global-dim(--heading --display --xxl)); } h2 { @include mx.heading-strong(fn.global-dim(--heading --display --xl)); } h3 { @include mx.heading-strong(fn.global-dim(--heading --display --lg)); } h4 { @include mx.heading-strong(fn.global-dim(--heading --display --md)); } h5 { @include mx.heading-medium(fn.global-dim(--heading --display --sm)); } h6 { @include mx.heading-faint(fn.global-dim(--heading --display --xs)); } } } }