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

    Module typography

    OPEN_GRID 타이포그래피 축 플러그인 — open-grid/typography.

    제5축(타이포그래피)의 런타임 진입점이다. 코어(open-grid)와 별도 엔트리로 갈라 두었기 때문에, 이 모듈을 import 하지 않는 사용자에게는 단 1바이트도 배송되지 않는다(SPEC §0 D-3).

    왜 별도 플러그인인가: OpenGrid.ts 에 정적 import 를 한 줄이라도 넣으면 축 코드 전체가 코어 청크로 끌려 들어간다. 서체 취향 기능 때문에 모든 사용자의 번들을 늘리지 않겠다는 결정이다.

    OPEN_GRID typography-axis plugin — open-grid/typography.

    The runtime entry point for the 5th (typography) axis. It is a separate build entry from the core, so users who never import it are shipped exactly zero bytes of it (SPEC §0 D-3).

    Why a plugin: a single static import in OpenGrid.ts would drag the whole axis into the core chunk. A font-preference feature must not grow everyone else's bundle.

    OPEN_GRID タイポグラフィ軸プラグイン — open-grid/typography

    第5軸(タイポグラフィ)のランタイムエントリーポイントです。コア(open-grid)とは別のエントリーに 分けてあるため、このモジュールを import しない利用者には1バイトも配信されません(SPEC §0 D-3)。

    なぜ別プラグインなのか: OpenGrid.ts に静的 import を一行でも入れると、軸のコード全体がコア チャンクへ引き込まれます。書体の好みの機能のために、すべての利用者のバンドルを増やさないという 判断です。

    OPEN_GRID 排版轴插件 — open-grid/typography

    第5轴(排版)的运行时入口点。它与核心(open-grid)拆成了各自独立的构建入口,因此从不 import 这个模块的用户,一个字节也收不到(SPEC §0 D-3)。

    为什么做成独立插件: 只要在 OpenGrid.ts 里写一行静态 import,整个轴的代码就会被拖进核心块。 不能为了一个字体偏好的功能,让所有用户的包变大。

    Classes

    TypographyRegistry

    Interfaces

    TypographyApplyResult
    TypographyGridTarget

    Type Aliases

    TokenDelta
    TypographyApplyMode

    Variables

    TYPOGRAPHY_ATTR
    TYPOGRAPHY_PRESETS
    TYPOGRAPHY_TOKENS
    typographyRegistry

    Functions

    applyTypography
    assertTypographyOnly
    defineTypography
    listTypography