ナビゲーション

v2.1.0
マーケティング用ブロック

実績データ

いくつかの数値で根拠を示すブロック。数値を大きく表示し、その下に控えめなラベルを添えます。

実績データのブロックでは、少数の数値に短いラベルを添えて、根拠を示します。数値は見出しのように大きく、通常の文字色で表示し、その下のラベルは控えめにします。数値は4つが目安です。

実績データ

<section class="container-inline px-lg py-4xl" aria-labelledby="stats-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col gap-sm max-w(560)">      <p class="eyebrow">In numbers</p>      <h2 class="heading heading-2xl" id="stats-title">Quiet, at a very large scale.</h2>    </header>    <dl class="grid gap-xl m(0) grid-cols(2) grid-cols(4)@container(--4xl) pt-xl bt(1) bt-solid b-line-hair">      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Deployments a day</dt>        <dd class="m(0) heading heading-2xl">2.4M</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Median build</dt>        <dd class="m(0) heading heading-2xl">38 s</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Regions</dt>        <dd class="m(0) heading heading-2xl">14</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Uptime, last year</dt>        <dd class="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="stats-title">  <div className="flex flex-col gap-2xl max-w(1040) mx-auto">    <header className="flex flex-col gap-sm max-w(560)">      <p className="eyebrow">In numbers</p>      <h2 className="heading heading-2xl" id="stats-title">Quiet, at a very large scale.</h2>    </header>    <dl className="grid gap-xl m(0) grid-cols(2) grid-cols(4)@container(--4xl) pt-xl bt(1) bt-solid b-line-hair">      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Deployments a day</dt>        <dd className="m(0) heading heading-2xl">2.4M</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Median build</dt>        <dd className="m(0) heading heading-2xl">38 s</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Regions</dt>        <dd className="m(0) heading heading-2xl">14</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Uptime, last year</dt>        <dd className="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="stats-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col gap-sm max-w(560)">      <p class="eyebrow">In numbers</p>      <h2 class="heading heading-2xl" id="stats-title">Quiet, at a very large scale.</h2>    </header>    <dl class="grid gap-xl m(0) grid-cols(2) grid-cols(4)@container(--4xl) pt-xl bt(1) bt-solid b-line-hair">      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Deployments a day</dt>        <dd class="m(0) heading heading-2xl">2.4M</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Median build</dt>        <dd class="m(0) heading heading-2xl">38 s</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Regions</dt>        <dd class="m(0) heading heading-2xl">14</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Uptime, last year</dt>        <dd class="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="stats-title">    <div class="flex flex-col gap-2xl max-w(1040) mx-auto">      <header class="flex flex-col gap-sm max-w(560)">        <p class="eyebrow">In numbers</p>        <h2 class="heading heading-2xl" id="stats-title">Quiet, at a very large scale.</h2>      </header>      <dl class="grid gap-xl m(0) grid-cols(2) grid-cols(4)@container(--4xl) pt-xl bt(1) bt-solid b-line-hair">        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Deployments a day</dt>          <dd class="m(0) heading heading-2xl">2.4M</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Median build</dt>          <dd class="m(0) heading heading-2xl">38 s</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Regions</dt>          <dd class="m(0) heading heading-2xl">14</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Uptime, last year</dt>          <dd class="m(0) heading heading-2xl">99.99%</dd>        </div>      </dl>    </div>  </section></template>

ブロックはコピーして使えるマークアップです。文字色と文字サイズはページから引き継ぎます。プレビューでは body に fg-text-body text-sm を設定しています。各ブロックはサイズコンテナーで、自身の幅に応じて配置が変わります。

#構成

  • 説明リスト。 ラベルには <dt>、数値には <dd> を使い、<dl> の中の <div> にまとめます。これにより、ラベルと数値が組として読み上げられます。説明リストの仕様に従い、ソースではラベルを先に置きます。表示上はグループに flex-col-reverse を指定して、数値を上に配置します。どちらの順序でも自然に読めるため、表示順を入れ替えられます。
  • 数値には見出しの文字スタイルを使います。 <dd> に heading heading-2xl を指定すると、見出しと同じ文字サイズ、文字色、詰めた字間で表示できます。要素自体の意味は変わりません。
  • 2列から4列へ。 grid-cols(2) grid-cols(4)@container(--4xl) で、ブロック幅が 56rem 以上になると4列に切り替えます。
  • 行の上に細い罫線。 bt(1) bt-solid b-line-hair で罫線を引き、数値の行とその上のヘッダーをひとまとまりに見せます。

アプリ内で数値の上にラベル、横に変化量を表示するには、統計指標コンポーネントを使います。ダッシュボードレイアウトを参照してください。

#シートに配置

各数値を個別のシートに載せ、トレイ内に 4px 間隔で配置します。

シートに配置

<section class="container-inline px-lg py-4xl" aria-label="Atlas in numbers">  <dl class="tray grid gap(4) max-w(1040) mx-auto m(0) grid-cols(2) grid-cols(4)@container(--4xl)">    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Deployments a day</dt>      <dd class="m(0) heading heading-2xl">2.4M</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Median build</dt>      <dd class="m(0) heading heading-2xl">38 s</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Regions</dt>      <dd class="m(0) heading heading-2xl">14</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Uptime, last year</dt>      <dd class="m(0) heading heading-2xl">99.99%</dd>    </div>  </dl></section>
<section className="container-inline px-lg py-4xl" aria-label="Atlas in numbers">  <dl className="tray grid gap(4) max-w(1040) mx-auto m(0) grid-cols(2) grid-cols(4)@container(--4xl)">    <div className="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt className="fg-text-muted">Deployments a day</dt>      <dd className="m(0) heading heading-2xl">2.4M</dd>    </div>    <div className="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt className="fg-text-muted">Median build</dt>      <dd className="m(0) heading heading-2xl">38 s</dd>    </div>    <div className="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt className="fg-text-muted">Regions</dt>      <dd className="m(0) heading heading-2xl">14</dd>    </div>    <div className="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt className="fg-text-muted">Uptime, last year</dt>      <dd className="m(0) heading heading-2xl">99.99%</dd>    </div>  </dl></section>
<section class="container-inline px-lg py-4xl" aria-label="Atlas in numbers">  <dl class="tray grid gap(4) max-w(1040) mx-auto m(0) grid-cols(2) grid-cols(4)@container(--4xl)">    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Deployments a day</dt>      <dd class="m(0) heading heading-2xl">2.4M</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Median build</dt>      <dd class="m(0) heading heading-2xl">38 s</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Regions</dt>      <dd class="m(0) heading heading-2xl">14</dd>    </div>    <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">      <dt class="fg-text-muted">Uptime, last year</dt>      <dd class="m(0) heading heading-2xl">99.99%</dd>    </div>  </dl></section>
<template>  <section class="container-inline px-lg py-4xl" aria-label="Atlas in numbers">    <dl class="tray grid gap(4) max-w(1040) mx-auto m(0) grid-cols(2) grid-cols(4)@container(--4xl)">      <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">        <dt class="fg-text-muted">Deployments a day</dt>        <dd class="m(0) heading heading-2xl">2.4M</dd>      </div>      <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">        <dt class="fg-text-muted">Median build</dt>        <dd class="m(0) heading heading-2xl">38 s</dd>      </div>      <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">        <dt class="fg-text-muted">Regions</dt>        <dd class="m(0) heading heading-2xl">14</dd>      </div>      <div class="sheet sheet-raised flex flex-col-reverse gap-3xs p-lg">        <dt class="fg-text-muted">Uptime, last year</dt>        <dd class="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </section></template>

#主張の横に配置

数値で主張を裏付ける場合は、主張と数値を並べます。ブロック幅が 56rem 以上なら、片方の列に文章を置き、もう片方の列に数値を2行2列で並べます。

主張の横に配置

<section class="container-inline px-lg py-4xl" aria-labelledby="stats-split-title">  <div class="grid gap-2xl items-center max-w(1040) mx-auto grid-cols(2)@container(--4xl)">    <header class="flex flex-col gap-sm">      <p class="eyebrow">Reliability</p>      <h2 class="heading heading-2xl" id="stats-split-title">        We publish the numbers we are held to.      </h2>      <p class="lead">        Measured from outside our network, every minute, and posted on a public status page.      </p>      <a class="link self-start mt-xs" href="#">See the status page</a>    </header>    <dl class="grid gap-xl row-gap-2xl grid-cols(2) m(0)">      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Deployments a day</dt>        <dd class="m(0) heading heading-2xl">2.4M</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Median build</dt>        <dd class="m(0) heading heading-2xl">38 s</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Regions</dt>        <dd class="m(0) heading heading-2xl">14</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Uptime, last year</dt>        <dd class="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="stats-split-title">  <div className="grid gap-2xl items-center max-w(1040) mx-auto grid-cols(2)@container(--4xl)">    <header className="flex flex-col gap-sm">      <p className="eyebrow">Reliability</p>      <h2 className="heading heading-2xl" id="stats-split-title">        We publish the numbers we are held to.      </h2>      <p className="lead">        Measured from outside our network, every minute, and posted on a public status page.      </p>      <a className="link self-start mt-xs" href="#">See the status page</a>    </header>    <dl className="grid gap-xl row-gap-2xl grid-cols(2) m(0)">      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Deployments a day</dt>        <dd className="m(0) heading heading-2xl">2.4M</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Median build</dt>        <dd className="m(0) heading heading-2xl">38 s</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Regions</dt>        <dd className="m(0) heading heading-2xl">14</dd>      </div>      <div className="flex flex-col-reverse gap-3xs">        <dt className="fg-text-muted">Uptime, last year</dt>        <dd className="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="stats-split-title">  <div class="grid gap-2xl items-center max-w(1040) mx-auto grid-cols(2)@container(--4xl)">    <header class="flex flex-col gap-sm">      <p class="eyebrow">Reliability</p>      <h2 class="heading heading-2xl" id="stats-split-title">        We publish the numbers we are held to.      </h2>      <p class="lead">        Measured from outside our network, every minute, and posted on a public status page.      </p>      <a class="link self-start mt-xs" href="#">See the status page</a>    </header>    <dl class="grid gap-xl row-gap-2xl grid-cols(2) m(0)">      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Deployments a day</dt>        <dd class="m(0) heading heading-2xl">2.4M</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Median build</dt>        <dd class="m(0) heading heading-2xl">38 s</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Regions</dt>        <dd class="m(0) heading heading-2xl">14</dd>      </div>      <div class="flex flex-col-reverse gap-3xs">        <dt class="fg-text-muted">Uptime, last year</dt>        <dd class="m(0) heading heading-2xl">99.99%</dd>      </div>    </dl>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="stats-split-title">    <div class="grid gap-2xl items-center max-w(1040) mx-auto grid-cols(2)@container(--4xl)">      <header class="flex flex-col gap-sm">        <p class="eyebrow">Reliability</p>        <h2 class="heading heading-2xl" id="stats-split-title">          We publish the numbers we are held to.        </h2>        <p class="lead">          Measured from outside our network, every minute, and posted on a public status page.        </p>        <a class="link self-start mt-xs" href="#">See the status page</a>      </header>      <dl class="grid gap-xl row-gap-2xl grid-cols(2) m(0)">        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Deployments a day</dt>          <dd class="m(0) heading heading-2xl">2.4M</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Median build</dt>          <dd class="m(0) heading heading-2xl">38 s</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Regions</dt>          <dd class="m(0) heading heading-2xl">14</dd>        </div>        <div class="flex flex-col-reverse gap-3xs">          <dt class="fg-text-muted">Uptime, last year</dt>          <dd class="m(0) heading heading-2xl">99.99%</dd>        </div>      </dl>    </div>  </section></template>

#アクセシビリティ

  • 数値には「38 s」「99.99%」のように単位を添え、ラベルがなくても意味が伝わるようにします。
  • 時間とともに変わる数値には、近くに日付を示します。
  • 数値をカウントアップさせるアニメーションは避けます。必要な情報が伝わるまでに時間がかかり、動き自体にも意味がありません。