外部AI向けガイドに戻る

LiteWord テーマ情報

保存・アップロード・公開の前には、必ず秘密情報・非公開の個人情報を出さない手順を確認してください。

{
    "name": "wdl/lw-comment-1",
    "title": "吹き出しコメント 1",
    "category": "lw-comment",
    "description": "丸いアバター写真つきの吹き出しコメント1つ。左右どちらからでも出せるので、2つ以上並べて会話のように見せられる。お客様の感想・スタッフからのひとことに",
    "aiHint": {
        "description": "丸いアバター写真つきの吹き出しコメント1つ。左右どちらからでも出せるので、2つ以上並べて会話のように見せられる。お客様の感想・スタッフからのひとことに",
        "excludeFromAutoSelect": false,
        "contentAttributes": [
            "name",
            "title"
        ],
        "imageAttributes": [
            "imageUrl"
        ],
        "notes": "🚨 **吹き出しの中の文は title、アバターの下に出る名前は name**(直感と逆なので取り違えやすい)。🚨 title は white-space: pre-wrap なので**改行文字がそのまま効く**(<br> ではなく実際の改行を入れる)。🚨 アバターは **80px の丸**(600px以下72px)で object-fit: cover の**正方形切り抜き**。横長の写真をそのまま渡すと中央だけが残って顔が端に寄るので、**顔を中心にした正方形の画像**を用意する。imageUrl が空だと「no image」の枠が出るだけなので、写真が無いなら使わないほうがよい。commentAlignment(left / right)で向きが変わる。**2つを左右に振ると会話に見える**。吹き出しの幅は .lw-comment-1__wrap { max-width: 600px } で固定で、maxWidth 属性は外側の箱にしか効かない。アバターの枠線は var(--color-main) 固定(属性で変えられない)。自前で margin: 1em 0 を持つ。 🚨 **`name`(アバターの下に出る名前)はアバターと同じ80pxの幅しかない。**「村瀬 隆 / 大工(勤続22年)」のように肩書きまで入れると3行に折れ、3行目が切れる(2026-09-01 実測)。**name は名前だけ**にして、肩書きは吹き出し(title)の1行目に `<strong>` で置く。"
    },
    "attributes": {
        "name": {
            "type": "string",
            "default": "お名前",
            "aiHint": null
        },
        "title": {
            "type": "string",
            "default": "こんにちは!コメントサンプルです。",
            "aiHint": null
        },
        "imageUrl": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "imageColor": {
            "type": "string",
            "default": "var(--color-main)",
            "aiHint": null
        },
        "altText": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "commentAlignment": {
            "type": "string",
            "default": "left",
            "aiHint": null
        },
        "commentBgColor": {
            "type": "string",
            "default": "#eeeeee",
            "aiHint": null
        },
        "nameFontSet": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "nameFontWeight": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "nameTextColor": {
            "type": "string",
            "default": "#000000",
            "aiHint": null
        },
        "titleFontSet": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "titleFontWeight": {
            "type": "string",
            "default": "",
            "aiHint": null
        },
        "titleTextColor": {
            "type": "string",
            "default": "#000000",
            "aiHint": null
        },
        "maxWidth": {
            "type": "number",
            "default": 1200,
            "aiHint": null
        }
    }
}