@use 'iro-sass/src/index' as iro; @use '../vars'; @use '../mixins/typography'; @include iro.props-namespace('heading') { @include iro.props-store(( --dims: ( --in-page-margin: ( --top: iro.props-get(--dims --spacing --y --lg, $global: true), --top-sibling: iro.props-get(--dims --spacing --y --md, $global: true), --bottom: iro.props-get(--dims --spacing --y --sm, $global: true), ), ), --colors: ( --light: iro.props-get(--colors --fg-hi, $global: true), --strong: iro.props-get(--colors --fg-lo, $global: true), ), )); @include iro.bem-object(iro.props-namespace()) { @include typography.set-font(vars.$font--headline); display: block; margin-top: iro.props-get(--dims --in-page-margin --top); margin-bottom: 0; & + & { margin-top: iro.props-get(--dims --in-page-margin --top-sibling); } @include iro.bem-modifier('xxl') { color: iro.props-get(--colors --strong); font-size: iro.props-get(--dims --font-size --xxxl, $global: true); } @include iro.bem-modifier('xl') { color: iro.props-get(--colors --strong); font-size: iro.props-get(--dims --font-size --xxl, $global: true); } @include iro.bem-modifier('lg') { color: iro.props-get(--colors --strong); font-size: iro.props-get(--dims --font-size --xl, $global: true); } @include iro.bem-modifier('md') { color: iro.props-get(--colors --strong); font-size: iro.props-get(--dims --font-size --lg, $global: true); } @include iro.bem-modifier('sm') { @include typography.set-font($font--main, (line-height: map-get(vars.$font--headline, line-height))); color: iro.props-get(--colors --strong); font-size: iro.props-get(--dims --font-size --md, $global: true); font-weight: 500; } @include iro.bem-modifier('xs') { @include typography.set-font($font--main, (line-height: map-get(vars.$font--headline, line-height))); color: iro.props-get(--colors --light); font-size: iro.props-get(--dims --font-size --xs, $global: true); font-weight: 500; text-transform: uppercase; } } }