OPEN_GRID API - v1.5.2
    Preparing search index...

    Function assertHeaderOnly

    • assertHeaderOnly — 헤더 델타가 색/조판/밀도/질감 토큰을 담지 않는지 검사(축 대칭).

      assertColorOnly(ThemeMetaRegistry)·assertFormOnly(SkinRegistry)· assertTypographyOnly(TypographyRegistry)의 네 번째 대칭항이다. 불변식 1(각 축은 자기 이름공간만 낸다)을 헤더 방향으로도 기계강제한다.

      assertHeaderOnly — rejects color/typography/density/texture tokens in a header delta.

      The fourth symmetric counterpart to assertColorOnly, assertFormOnly and assertTypographyOnly, enforcing invariant 1 in the header direction.

      Parameters

      • id: string

        헤더 프리셋 id

        Header preset id

      • delta: TokenDelta

        검사할 헤더 델타

        Header delta to validate

      Returns void

      이름공간 밖 토큰이 있으면 Error

      Throws if a token outside the namespace is present

      assertHeaderOnly('my-header', { '--og-header-bg': 'red' }); // throws — 색은 theme 축 소유