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

    Function assertTypographyOnly

    • assertTypographyOnly — 타이포 델타가 색/형태/밀도/질감 토큰을 담지 않는지 검사(4축 대칭).

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

      assertTypographyOnly — rejects color/form/density/texture tokens in a typography delta.

      The third symmetric counterpart to assertColorOnly and assertFormOnly: invariant 1 (each axis emits only its own namespace) is now mechanically enforced in the typography direction too.

      Parameters

      • id: string

        타이포 프리셋 id

        Typography preset id

      • delta: TokenDelta

        검사할 타이포 델타

        Typography delta to validate

      Returns void

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

      Throws if a token outside the namespace is present

      assertTypographyOnly('my-typo', { '--og-font-size': '12px' }); // throws — --og-font-size 는 density 소유