zudo-doc
GitHub リポジトリ

検索したい単語を入力

いつでも検索バーを開ける

基本コンポーネント

作成 2026年3月14日更新 2026年10月9日Takeshi Takatsudo

ドキュメントページで使用できる標準的なMarkdownおよびMDXタイポグラフィ要素。

zudo-docのデザイントークンシステムによってスタイリングされた、標準的なMarkdownおよびMDX要素です。インポートは不要です。

見出し

h2 から h4 までの見出しは、目次サイドバーに表示されます。

見出し3

見出し4

## Heading 2
### Heading 3
#### Heading 4

コンテンツタイポグラフィの上書き

上記のページタイトル、コンテンツ見出し、プロズ、リンクのタイポグラフィは、コンポーネントトークン — @takazudo/zudo-docパッケージが上書きの接合点として公開している--zdc-*のCSSカスタムプロパティ — によって制御されています。これらのコンポーネントはパッケージから配布されるため(直接編集はできません)、これらのトークンがあなたの作業範囲になります。自分の:rootでいずれかを再定義すれば、すべてのページのコンテンツ領域を再ブランディングできます。!importantもイジェクトも不要です。

src/styles/global.css
:root {
  --zdc-doc-title-font: "Georgia", serif;
  --zdc-doc-title-weight: 800;
}
TokenComponentDefaultWhat it controls
--zdc-doc-title-fontdoc-titleinheritFont family of the page-title <h1>.
--zdc-doc-title-weightdoc-titlevar(--font-weight-bold)Font weight of the page-title <h1>.
--zdc-doc-title-trackingdoc-titlevar(--tracking-normal)Letter spacing of the page-title <h1>.
--zdc-doc-h2-fontheading-h2inheritFont family of content <h2> headings.
--zdc-doc-h2-weightheading-h2var(--font-weight-bold)Font weight of content <h2> headings.
--zdc-doc-h2-trackingheading-h2var(--tracking-normal)Letter spacing of content <h2> headings.
--zdc-doc-h3-weightheading-h3var(--font-weight-bold)Font weight of content <h3> headings.
--zdc-doc-h4-weightheading-h4var(--font-weight-semibold)Font weight of content <h4> headings.
--zdc-doc-prose-fontdoc-prosevar(--font-sans)Font family of the .zd-content prose area. Headings with --zdc-doc-*-font: inherit inherit this value.
--zdc-doc-link-decorationcontent-linkunderlineText decoration of prose links only (ContentLink, a.text-accent.underline); chrome links are unaffected. Set to none to remove underlines.
--zdc-admonition-radiusadmonition0 var(--radius-DEFAULT) var(--radius-DEFAULT) 0Border radius of admonition/callout blocks.
--zdc-admonition-border-widthadmonition4pxWidth of the admonition left accent border.

詳しい解説 — 所有権の逆転という考え方、3層トークン戦略における位置づけ、クロームトークン(カード半径・目次の幅・ナビのアクティブスタイル)、そしてDesign Token Panelで編集できない理由 — はコンポーネントトークンを参照してください。

テキストの書式

太字テキスト、イタリックテキスト、取り消し線。組み合わせも可能です:太字かつイタリック。

**Bold text**, *italic text*, and ~~strikethrough~~.
Combine them: ***bold and italic***.

インラインコード

バッククォートを使って、文中に インラインコード を挿入できます。

Use backticks to mark `inline code` within a sentence.

コードブロック

フェンスドコードブロックは、zfbのビルド時セマンティッククラスモードでシンタックスハイライトされます。開始バッククォートの後に言語を指定します。詳しくはコードブロックを参照してください。

function greet(name: string): string {
  return `Hello, ${name}!`;
}
```ts

function greet(name: string): string {
  return `Hello, ${name}!`;
}

```

サポートされている言語

zfbのクラスモードハイライターは幅広い言語をサポートしています。代表的なものは以下の通りです:

言語識別子
TypeScriptts, typescript
JavaScriptjs, javascript
HTMLhtml
CSScss
JSONjson
Bash / Shellbash, sh, shell, zsh
Markdownmd, markdown
MDXmdx
YAMLyaml, yml
Pythonpython, py
Rustrust, rs
Gogo
SQLsql
GraphQLgraphql
Diffdiff
TOMLtoml
JSX / TSXjsx, tsx

認識できない言語識別子が指定された場合は、ハイライトされない素のコードブロックとしてレンダリングされます。

箇条書きリスト

  • 1つ目の項目

  • 2つ目の項目

    • ネストされた項目

    • もう1つのネストされた項目

      • 深いネスト

  • 3つ目の項目

- First item
- Second item
  - Nested item
  - Another nested item
    - Deeply nested
- Third item

番号付きリスト

  1. ステップ1

  2. ステップ2

  3. サブステップ1

  4. サブステップ2

  5. ステップ3

1. First step
2. Second step
   1. Sub-step one
   2. Sub-step two
3. Third step

引用

これは引用ブロックです。複数行にまたがることができ、 内部で書式付きテキストも使用できます。

> This is a blockquote. It can span multiple lines
> and supports **formatting** within it.

テーブル

機能状態備考
MDXサポート済みzfb組み込み
zfbクラスモード組み込みコードハイライト
zudo-windspec 1トークンベースの設計
| Feature    | Status      | Notes              |
| ---------- | ----------- | ------------------ |
| MDX        | Supported   | Built into zfb     |
| zfb class mode | Built-in | Code highlighting |
| zudo-wind | spec 1          | Token-based design |

リンク

内部リンク:はじめに

外部リンク:外部サイトの例

Internal link: [Getting Started](../getting-started/index.mdx)

External link: [Example external site](https://example.com)

水平線

3つのダッシュで水平線を作成できます:


---

Revision History

Takeshi Takatsudo作成: 2026-03-14T22:13:04+09:00更新: 2026-10-09T16:26:27Z

AI Assistant

Ask a question about the documentation.

Preview theme

Loading theme previews…