탐색

v2.1.0
데이터 표시

일정표

하루나 일주일의 일정은 세로 시간축에, 한 달의 일정은 주별 레인에 배치합니다. 일정 목록으로도 표시할 수 있습니다.

이 페이지의 내용

일정표는 하루의 시간을 세로 시간축에 표시하고, 각 일정의 높이로 소요 시간을 나타냅니다. 캘린더의 일간 보기, 콘퍼런스의 회의실별 일정, 병원의 진료 예약에 사용할 수 있습니다. 일정은 순서가 있는 목록으로 작성하고, 각 항목에 제목과 시간을 텍스트로 표시합니다. 스타일시트는 시간 눈금에 맞춰 일정을 배치하고, 한 시간 간격으로 가는 눈금선을 긋고 각 눈금선에 레이블을 붙입니다. 시간이 겹치는 일정은 나란히 놓입니다. 스크립트나 별도의 측정 없이 동작합니다.

하루 종일 이어지는 일정은 시간 영역 위의 띠에 표시합니다. 월간 보기는 날짜마다 일정을 레인에 배치하고, 일정 목록은 일정을 날짜별로 나열합니다. 일정표 보기는 독자가 직접 조작하는 일정표로, schedule 동작을 바탕으로 일간, 주간, 월간 또는 일정 목록으로 전환할 수 있습니다.

일정표

<div class="card max-w(480) mx-auto">  <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 15; --now: 12.45">    <ol class="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>      <li>2 PM</li>      <li>3 PM</li>    </ol>    <ol class="schedule-events" aria-label="Thursday 13 November">      <li class="schedule-event" style="--start: 9; --end: 9.5">        <p class="schedule-title">Standup</p>        <p class="schedule-time">          <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>        </p>      </li>      <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">        <p class="schedule-title">Design review</p>        <p class="schedule-time">          <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>        </p>      </li>      <li class="schedule-event" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">        <p class="schedule-title">Interview: platform engineer</p>        <p class="schedule-time">          <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>        </p>      </li>      <li class="schedule-event" style="--start: 12; --end: 12.25">        <p class="schedule-title">Check-in with Alan</p>        <p class="schedule-time">          <time datetime="12:00">12:00</time> – <time datetime="12:15">12:15</time>        </p>      </li>      <li class="schedule-event" style="--start: 12.75; --end: 13.75">        <p class="schedule-title">Lunch with Ada</p>        <p class="schedule-time">          <time datetime="12:45">12:45</time> – <time datetime="13:45">13:45</time>        </p>      </li>      <li class="schedule-event" style="--start: 14; --end: 14.5">        <p class="schedule-title">1:1 with Grace</p>        <p class="schedule-time">          <time datetime="14:00">14:00</time> – <time datetime="14:30">14:30</time>        </p>      </li>    </ol>  </div></div>
<div className="card max-w(480) mx-auto">  <div className="schedule schedule-now" style={{ '--schedule-from': '9', '--schedule-to': '15', '--now': '12.45' } as React.CSSProperties}>    <ol className="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>      <li>2 PM</li>      <li>3 PM</li>    </ol>    <ol className="schedule-events" aria-label="Thursday 13 November">      <li className="schedule-event" style={{ '--start': '9', '--end': '9.5' } as React.CSSProperties}>        <p className="schedule-title">Standup</p>        <p className="schedule-time">          <time dateTime="09:00">9:00</time> – <time dateTime="09:30">9:30</time>        </p>      </li>      <li className="schedule-event" style={{ '--start': '10', '--end': '11.5', '--lanes': '2' } as React.CSSProperties}>        <p className="schedule-title">Design review</p>        <p className="schedule-time">          <time dateTime="10:00">10:00</time> – <time dateTime="11:30">11:30</time>        </p>      </li>      <li className="schedule-event" style={{ '--start': '10.5', '--end': '12', '--lane': '1', '--lanes': '2' } as React.CSSProperties}>        <p className="schedule-title">Interview: platform engineer</p>        <p className="schedule-time">          <time dateTime="10:30">10:30</time> – <time dateTime="12:00">12:00</time>        </p>      </li>      <li className="schedule-event" style={{ '--start': '12', '--end': '12.25' } as React.CSSProperties}>        <p className="schedule-title">Check-in with Alan</p>        <p className="schedule-time">          <time dateTime="12:00">12:00</time> – <time dateTime="12:15">12:15</time>        </p>      </li>      <li className="schedule-event" style={{ '--start': '12.75', '--end': '13.75' } as React.CSSProperties}>        <p className="schedule-title">Lunch with Ada</p>        <p className="schedule-time">          <time dateTime="12:45">12:45</time> – <time dateTime="13:45">13:45</time>        </p>      </li>      <li className="schedule-event" style={{ '--start': '14', '--end': '14.5' } as React.CSSProperties}>        <p className="schedule-title">1:1 with Grace</p>        <p className="schedule-time">          <time dateTime="14:00">14:00</time> – <time dateTime="14:30">14:30</time>        </p>      </li>    </ol>  </div></div>
<div class="card max-w(480) mx-auto">  <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 15; --now: 12.45">    <ol class="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>      <li>2 PM</li>      <li>3 PM</li>    </ol>    <ol class="schedule-events" aria-label="Thursday 13 November">      <li class="schedule-event" style="--start: 9; --end: 9.5">        <p class="schedule-title">Standup</p>        <p class="schedule-time">          <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>        </p>      </li>      <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">        <p class="schedule-title">Design review</p>        <p class="schedule-time">          <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>        </p>      </li>      <li class="schedule-event" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">        <p class="schedule-title">Interview: platform engineer</p>        <p class="schedule-time">          <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>        </p>      </li>      <li class="schedule-event" style="--start: 12; --end: 12.25">        <p class="schedule-title">Check-in with Alan</p>        <p class="schedule-time">          <time datetime="12:00">12:00</time> – <time datetime="12:15">12:15</time>        </p>      </li>      <li class="schedule-event" style="--start: 12.75; --end: 13.75">        <p class="schedule-title">Lunch with Ada</p>        <p class="schedule-time">          <time datetime="12:45">12:45</time> – <time datetime="13:45">13:45</time>        </p>      </li>      <li class="schedule-event" style="--start: 14; --end: 14.5">        <p class="schedule-title">1:1 with Grace</p>        <p class="schedule-time">          <time datetime="14:00">14:00</time> – <time datetime="14:30">14:30</time>        </p>      </li>    </ol>  </div></div>
<template>  <div class="card max-w(480) mx-auto">    <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 15; --now: 12.45">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>        <li>1 PM</li>        <li>2 PM</li>        <li>3 PM</li>      </ol>      <ol class="schedule-events" aria-label="Thursday 13 November">        <li class="schedule-event" style="--start: 9; --end: 9.5">          <p class="schedule-title">Standup</p>          <p class="schedule-time">            <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>          </p>        </li>        <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">          <p class="schedule-title">Design review</p>          <p class="schedule-time">            <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>          </p>        </li>        <li class="schedule-event" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">          <p class="schedule-title">Interview: platform engineer</p>          <p class="schedule-time">            <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>          </p>        </li>        <li class="schedule-event" style="--start: 12; --end: 12.25">          <p class="schedule-title">Check-in with Alan</p>          <p class="schedule-time">            <time datetime="12:00">12:00</time> – <time datetime="12:15">12:15</time>          </p>        </li>        <li class="schedule-event" style="--start: 12.75; --end: 13.75">          <p class="schedule-title">Lunch with Ada</p>          <p class="schedule-time">            <time datetime="12:45">12:45</time> – <time datetime="13:45">13:45</time>          </p>        </li>        <li class="schedule-event" style="--start: 14; --end: 14.5">          <p class="schedule-title">1:1 with Grace</p>          <p class="schedule-time">            <time datetime="14:00">14:00</time> – <time datetime="14:30">14:30</time>          </p>        </li>      </ol>    </div>  </div></template>

#일정 배치 방식

표시 범위는 --schedule-from부터 --schedule-to까지이며, schedule에 설정합니다. 한 시간의 높이는 --schedule-hour로 지정하며 기본값은 48px입니다. 각 schedule-event에서 --start와 --end에 같은 24시간제 기준의 시간 값을 지정합니다. 오전 10시 30분은 10.5, 오후 1시 45분은 13.75입니다. 일정은 지정한 시각에 시작하고 끝나며 위아래의 가는 선과 각각 1px씩 떨어져 있어, 한 일정이 끝나는 시각에 다른 일정이 시작해도 둘 사이에 선이 남습니다.

schedule-rail에는 --schedule-from부터 --schedule-to까지 한 시간 간격으로 레이블을 하나씩 배치하며, 끝 시각에도 레이블을 붙입니다. 각 레이블의 세로 중앙은 해당 눈금선과 맞춰집니다. 시각은 독자에게 익숙한 형식으로 표기합니다. 시간축의 너비는 48px(--schedule-rail)입니다.

한 시간에 48px이면 하루 전체 높이가 1,100픽셀을 넘습니다. 필요한 시간대만 표시하거나 일정표를 스크롤 영역에 넣어 스크롤할 수 있게 합니다.

#겹치는 일정

시간이 겹치는 일정은 너비를 나눠 씁니다. 각 일정의 --lanes에는 나란히 배치할 일정의 개수를, --lane에는 0부터 시작하는 배치 순서를 지정합니다. 위 예시에서 디자인 검토와 인터뷰는 같은 시간대에 두 열로 나란히 배치됩니다. 목록을 렌더링하는 쪽에서 데이터를 바탕으로 각 일정의 열을 결정하고, 스타일시트는 그 값에 따라 배치합니다.

#짧은 일정

각 일정은 크기 컨테이너이므로 자체 높이에 따라 텍스트 배치가 달라집니다.

  • 기본 크기에서 한 시간 이상인 일정은 제목을 위에, 시간을 아래에 표시합니다.
  • 더 짧은 일정은 제목과 시간을 한 줄에 놓고 일정의 세로 중앙에 맞춥니다. 둘 다 들어갈 공간이 없으면 시간은 화면에서 숨깁니다.
  • 기본 크기에서 15분짜리 일정처럼 한 줄도 들어갈 공간이 없으면 배경색이 있는 일정 블록만 표시합니다. 제목과 시간은 보조 기술이 읽을 수 있도록 목록에 남으며, 화면에서는 시간축의 위치로 시각을 알 수 있습니다.

#현재 시각과 현재 일정

일정표에 schedule-now를 적용하면 --now로 지정한 시각에 진한 선이 그려지고, 선이 일정 영역의 시작 가장자리와 만나는 곳에 점이 표시됩니다. 시각은 일정과 같은 시간 단위로 지정합니다. 선은 일정 블록 뒤로 지나가므로 텍스트를 가로지르지 않습니다.

aria-current="true"로 표시한 일정은 진한 배경색으로 강조됩니다. 진행 중인 일정이나 일정표 옆에 세부 정보가 열려 있는 일정에 사용합니다.

#여러 날 보기

여러 날을 나란히 표시하려면 각 날짜의 schedule-events 목록을 schedule-day 안에 넣고 그 위에 schedule-heading을 배치합니다. 각 날짜 열은 너비를 나눠 쓰고 시간축을 공유하며, 열마다 제목과 시간 눈금이 같은 높이에 정렬됩니다. 오늘에 해당하는 열에는 aria-current="date"를 지정합니다. 오늘의 제목은 진한 색으로 표시되며, 현재 시각을 나타내는 선은 오늘 열에서 점과 함께 표시되고 다른 날짜 열에서는 가는 선으로 이어집니다.

여러 날 보기

<div class="card max-w(560) mx-auto">  <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 13; --now: 11.25">    <ol class="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>    </ol>    <section class="schedule-day" aria-labelledby="day-12">      <h3 class="schedule-heading" id="day-12">Wed 12</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9; --end: 10">          <p class="schedule-title">Roadmap</p>          <p class="schedule-time">            <time datetime="09:00">9:00</time> – <time datetime="10:00">10:00</time>          </p>        </li>        <li class="schedule-event" style="--start: 11; --end: 12.5">          <p class="schedule-title">Workshop</p>          <p class="schedule-time">            <time datetime="11:00">11:00</time> – <time datetime="12:30">12:30</time>          </p>        </li>      </ol>    </section>    <section class="schedule-day" aria-current="date" aria-labelledby="day-13">      <h3 class="schedule-heading" id="day-13">Thu 13</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9; --end: 9.5">          <p class="schedule-title">Standup</p>          <p class="schedule-time">            <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>          </p>        </li>        <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">          <p class="schedule-title">Design review</p>          <p class="schedule-time">            <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>          </p>        </li>        <li class="schedule-event" aria-current="true" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">          <p class="schedule-title">Interview</p>          <p class="schedule-time">            <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>          </p>        </li>        <li class="schedule-event" style="--start: 12.25; --end: 13">          <p class="schedule-title">Lunch</p>          <p class="schedule-time">            <time datetime="12:15">12:15</time> – <time datetime="13:00">13:00</time>          </p>        </li>      </ol>    </section>    <section class="schedule-day" aria-labelledby="day-14">      <h3 class="schedule-heading" id="day-14">Fri 14</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9.5; --end: 10.25">          <p class="schedule-title">Sync</p>          <p class="schedule-time">            <time datetime="09:30">9:30</time> – <time datetime="10:15">10:15</time>          </p>        </li>        <li class="schedule-event" style="--start: 11.5; --end: 13">          <p class="schedule-title">Offsite</p>          <p class="schedule-time">            <time datetime="11:30">11:30</time> – <time datetime="13:00">13:00</time>          </p>        </li>      </ol>    </section>  </div></div>
<div className="card max-w(560) mx-auto">  <div className="schedule schedule-now" style={{ '--schedule-from': '9', '--schedule-to': '13', '--now': '11.25' } as React.CSSProperties}>    <ol className="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>    </ol>    <section className="schedule-day" aria-labelledby="day-12">      <h3 className="schedule-heading" id="day-12">Wed 12</h3>      <ol className="schedule-events">        <li className="schedule-event" style={{ '--start': '9', '--end': '10' } as React.CSSProperties}>          <p className="schedule-title">Roadmap</p>          <p className="schedule-time">            <time dateTime="09:00">9:00</time> – <time dateTime="10:00">10:00</time>          </p>        </li>        <li className="schedule-event" style={{ '--start': '11', '--end': '12.5' } as React.CSSProperties}>          <p className="schedule-title">Workshop</p>          <p className="schedule-time">            <time dateTime="11:00">11:00</time> – <time dateTime="12:30">12:30</time>          </p>        </li>      </ol>    </section>    <section className="schedule-day" aria-current="date" aria-labelledby="day-13">      <h3 className="schedule-heading" id="day-13">Thu 13</h3>      <ol className="schedule-events">        <li className="schedule-event" style={{ '--start': '9', '--end': '9.5' } as React.CSSProperties}>          <p className="schedule-title">Standup</p>          <p className="schedule-time">            <time dateTime="09:00">9:00</time> – <time dateTime="09:30">9:30</time>          </p>        </li>        <li className="schedule-event" style={{ '--start': '10', '--end': '11.5', '--lanes': '2' } as React.CSSProperties}>          <p className="schedule-title">Design review</p>          <p className="schedule-time">            <time dateTime="10:00">10:00</time> – <time dateTime="11:30">11:30</time>          </p>        </li>        <li className="schedule-event" aria-current="true" style={{ '--start': '10.5', '--end': '12', '--lane': '1', '--lanes': '2' } as React.CSSProperties}>          <p className="schedule-title">Interview</p>          <p className="schedule-time">            <time dateTime="10:30">10:30</time> – <time dateTime="12:00">12:00</time>          </p>        </li>        <li className="schedule-event" style={{ '--start': '12.25', '--end': '13' } as React.CSSProperties}>          <p className="schedule-title">Lunch</p>          <p className="schedule-time">            <time dateTime="12:15">12:15</time> – <time dateTime="13:00">13:00</time>          </p>        </li>      </ol>    </section>    <section className="schedule-day" aria-labelledby="day-14">      <h3 className="schedule-heading" id="day-14">Fri 14</h3>      <ol className="schedule-events">        <li className="schedule-event" style={{ '--start': '9.5', '--end': '10.25' } as React.CSSProperties}>          <p className="schedule-title">Sync</p>          <p className="schedule-time">            <time dateTime="09:30">9:30</time> – <time dateTime="10:15">10:15</time>          </p>        </li>        <li className="schedule-event" style={{ '--start': '11.5', '--end': '13' } as React.CSSProperties}>          <p className="schedule-title">Offsite</p>          <p className="schedule-time">            <time dateTime="11:30">11:30</time> – <time dateTime="13:00">13:00</time>          </p>        </li>      </ol>    </section>  </div></div>
<div class="card max-w(560) mx-auto">  <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 13; --now: 11.25">    <ol class="schedule-rail" aria-hidden="true">      <li>9 AM</li>      <li>10 AM</li>      <li>11 AM</li>      <li>12 PM</li>      <li>1 PM</li>    </ol>    <section class="schedule-day" aria-labelledby="day-12">      <h3 class="schedule-heading" id="day-12">Wed 12</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9; --end: 10">          <p class="schedule-title">Roadmap</p>          <p class="schedule-time">            <time datetime="09:00">9:00</time> – <time datetime="10:00">10:00</time>          </p>        </li>        <li class="schedule-event" style="--start: 11; --end: 12.5">          <p class="schedule-title">Workshop</p>          <p class="schedule-time">            <time datetime="11:00">11:00</time> – <time datetime="12:30">12:30</time>          </p>        </li>      </ol>    </section>    <section class="schedule-day" aria-current="date" aria-labelledby="day-13">      <h3 class="schedule-heading" id="day-13">Thu 13</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9; --end: 9.5">          <p class="schedule-title">Standup</p>          <p class="schedule-time">            <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>          </p>        </li>        <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">          <p class="schedule-title">Design review</p>          <p class="schedule-time">            <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>          </p>        </li>        <li class="schedule-event" aria-current="true" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">          <p class="schedule-title">Interview</p>          <p class="schedule-time">            <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>          </p>        </li>        <li class="schedule-event" style="--start: 12.25; --end: 13">          <p class="schedule-title">Lunch</p>          <p class="schedule-time">            <time datetime="12:15">12:15</time> – <time datetime="13:00">13:00</time>          </p>        </li>      </ol>    </section>    <section class="schedule-day" aria-labelledby="day-14">      <h3 class="schedule-heading" id="day-14">Fri 14</h3>      <ol class="schedule-events">        <li class="schedule-event" style="--start: 9.5; --end: 10.25">          <p class="schedule-title">Sync</p>          <p class="schedule-time">            <time datetime="09:30">9:30</time> – <time datetime="10:15">10:15</time>          </p>        </li>        <li class="schedule-event" style="--start: 11.5; --end: 13">          <p class="schedule-title">Offsite</p>          <p class="schedule-time">            <time datetime="11:30">11:30</time> – <time datetime="13:00">13:00</time>          </p>        </li>      </ol>    </section>  </div></div>
<template>  <div class="card max-w(560) mx-auto">    <div class="schedule schedule-now" style="--schedule-from: 9; --schedule-to: 13; --now: 11.25">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>        <li>1 PM</li>      </ol>      <section class="schedule-day" aria-labelledby="day-12">        <h3 class="schedule-heading" id="day-12">Wed 12</h3>        <ol class="schedule-events">          <li class="schedule-event" style="--start: 9; --end: 10">            <p class="schedule-title">Roadmap</p>            <p class="schedule-time">              <time datetime="09:00">9:00</time> – <time datetime="10:00">10:00</time>            </p>          </li>          <li class="schedule-event" style="--start: 11; --end: 12.5">            <p class="schedule-title">Workshop</p>            <p class="schedule-time">              <time datetime="11:00">11:00</time> – <time datetime="12:30">12:30</time>            </p>          </li>        </ol>      </section>      <section class="schedule-day" aria-current="date" aria-labelledby="day-13">        <h3 class="schedule-heading" id="day-13">Thu 13</h3>        <ol class="schedule-events">          <li class="schedule-event" style="--start: 9; --end: 9.5">            <p class="schedule-title">Standup</p>            <p class="schedule-time">              <time datetime="09:00">9:00</time> – <time datetime="09:30">9:30</time>            </p>          </li>          <li class="schedule-event" style="--start: 10; --end: 11.5; --lanes: 2">            <p class="schedule-title">Design review</p>            <p class="schedule-time">              <time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time>            </p>          </li>          <li class="schedule-event" aria-current="true" style="--start: 10.5; --end: 12; --lane: 1; --lanes: 2">            <p class="schedule-title">Interview</p>            <p class="schedule-time">              <time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time>            </p>          </li>          <li class="schedule-event" style="--start: 12.25; --end: 13">            <p class="schedule-title">Lunch</p>            <p class="schedule-time">              <time datetime="12:15">12:15</time> – <time datetime="13:00">13:00</time>            </p>          </li>        </ol>      </section>      <section class="schedule-day" aria-labelledby="day-14">        <h3 class="schedule-heading" id="day-14">Fri 14</h3>        <ol class="schedule-events">          <li class="schedule-event" style="--start: 9.5; --end: 10.25">            <p class="schedule-title">Sync</p>            <p class="schedule-time">              <time datetime="09:30">9:30</time> – <time datetime="10:15">10:15</time>            </p>          </li>          <li class="schedule-event" style="--start: 11.5; --end: 13">            <p class="schedule-title">Offsite</p>            <p class="schedule-time">              <time datetime="11:30">11:30</time> – <time datetime="13:00">13:00</time>            </p>          </li>        </ol>      </section>    </div>  </div></template>

카드에서는 3~5일을 보기 편하고, 일주일을 표시하려면 페이지 전체 너비가 적합합니다. 좁은 열에서도 날짜별 너비 배분은 유지되며, 제목이 넘치면 말줄임표로 표시합니다.

#세부 정보를 여는 일정

일정을 눌러 세부 정보를 열 수 있게 하려면 schedule-event를 목록 항목 자체에서 그 안의 링크나 버튼으로 옮깁니다. 배치 방식은 같으며, 호버하면 배경색이 한 단계 진해지고 키보드로 포커스하면 윤곽선이 표시됩니다.

<li>  <a class="schedule-event" href="/events/design-review" style="--start: 10; --end: 11.5">    <span class="schedule-title">Design review</span>    <span class="schedule-time"><time datetime="10:00">10:00</time> – <time datetime="11:30">11:30</time></span>  </a></li>

#종일 일정

하루 이상 이어지는 일정은 schedule-allday에 배치합니다. 이 띠는 날짜 제목 아래, 시간 영역 위에 놓이며, 시간축 열에는 "종일"과 같은 띠의 이름을 표시합니다. 띠 안의 각 일정은 schedule-event-lane으로, --column번째 날부터 --span일 동안 --lane번째 레인에 걸쳐 표시됩니다. 띠는 여러 날에 걸쳐 이어지므로 각 schedule-day에 --column으로 자신의 열 번호를 지정하고, 일정표에는 --schedule-days로 전체 날짜 수를 지정합니다.

종일 일정

<div class="card max-w(560) mx-auto">  <div class="card-body">    <div class="schedule" style="--schedule-from: 9; --schedule-to: 13; --schedule-days: 3">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>        <li>1 PM</li>      </ol>      <div class="schedule-day" style="--column: 1">        <h3 class="schedule-heading">Wed 12</h3>        <ol class="schedule-events" aria-label="Wednesday 12 November">          <li class="schedule-event" style="--start: 9.5; --end: 10.5">            <p class="schedule-title">Planning</p>            <p class="schedule-time">9:30 – 10:30</p>          </li>        </ol>      </div>      <div class="schedule-day" style="--column: 2" aria-current="date">        <h3 class="schedule-heading">Thu 13</h3>        <ol class="schedule-events" aria-label="Thursday 13 November">          <li class="schedule-event" style="--start: 11; --end: 12">            <p class="schedule-title">Design review</p>            <p class="schedule-time">11:00 – 12:00</p>          </li>        </ol>      </div>      <div class="schedule-day" style="--column: 3">        <h3 class="schedule-heading">Fri 14</h3>        <ol class="schedule-events" aria-label="Friday 14 November"></ol>      </div>      <div class="schedule-allday" role="group" aria-label="All day">        <span class="schedule-allday-label" aria-hidden="true">All day</span>        <p class="schedule-event schedule-event-lane" style="--column: 2; --span: 2">          <span class="schedule-title">Offsite in Lisbon</span>        </p>        <p class="schedule-event schedule-event-lane schedule-event-continued" style="--column: 1; --lane: 1">          <span class="schedule-title">On call</span>        </p>      </div>    </div>  </div></div>
<div className="card max-w(560) mx-auto">  <div className="card-body">    <div className="schedule" style={{ '--schedule-from': '9', '--schedule-to': '13', '--schedule-days': '3' } as React.CSSProperties}>      <ol className="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>        <li>1 PM</li>      </ol>      <div className="schedule-day" style={{ '--column': '1' } as React.CSSProperties}>        <h3 className="schedule-heading">Wed 12</h3>        <ol className="schedule-events" aria-label="Wednesday 12 November">          <li className="schedule-event" style={{ '--start': '9.5', '--end': '10.5' } as React.CSSProperties}>            <p className="schedule-title">Planning</p>            <p className="schedule-time">9:30 – 10:30</p>          </li>        </ol>      </div>      <div className="schedule-day" style={{ '--column': '2' } as React.CSSProperties} aria-current="date">        <h3 className="schedule-heading">Thu 13</h3>        <ol className="schedule-events" aria-label="Thursday 13 November">          <li className="schedule-event" style={{ '--start': '11', '--end': '12' } as React.CSSProperties}>            <p className="schedule-title">Design review</p>            <p className="schedule-time">11:00 – 12:00</p>          </li>        </ol>      </div>      <div className="schedule-day" style={{ '--column': '3' } as React.CSSProperties}>        <h3 className="schedule-heading">Fri 14</h3>        <ol className="schedule-events" aria-label="Friday 14 November"></ol>      </div>      <div className="schedule-allday" role="group" aria-label="All day">        <span className="schedule-allday-label" aria-hidden="true">All day</span>        <p className="schedule-event schedule-event-lane" style={{ '--column': '2', '--span': '2' } as React.CSSProperties}>          <span className="schedule-title">Offsite in Lisbon</span>        </p>        <p className="schedule-event schedule-event-lane schedule-event-continued" style={{ '--column': '1', '--lane': '1' } as React.CSSProperties}>          <span className="schedule-title">On call</span>        </p>      </div>    </div>  </div></div>
<div class="card max-w(560) mx-auto">  <div class="card-body">    <div class="schedule" style="--schedule-from: 9; --schedule-to: 13; --schedule-days: 3">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>        <li>1 PM</li>      </ol>      <div class="schedule-day" style="--column: 1">        <h3 class="schedule-heading">Wed 12</h3>        <ol class="schedule-events" aria-label="Wednesday 12 November">          <li class="schedule-event" style="--start: 9.5; --end: 10.5">            <p class="schedule-title">Planning</p>            <p class="schedule-time">9:30 – 10:30</p>          </li>        </ol>      </div>      <div class="schedule-day" style="--column: 2" aria-current="date">        <h3 class="schedule-heading">Thu 13</h3>        <ol class="schedule-events" aria-label="Thursday 13 November">          <li class="schedule-event" style="--start: 11; --end: 12">            <p class="schedule-title">Design review</p>            <p class="schedule-time">11:00 – 12:00</p>          </li>        </ol>      </div>      <div class="schedule-day" style="--column: 3">        <h3 class="schedule-heading">Fri 14</h3>        <ol class="schedule-events" aria-label="Friday 14 November"></ol>      </div>      <div class="schedule-allday" role="group" aria-label="All day">        <span class="schedule-allday-label" aria-hidden="true">All day</span>        <p class="schedule-event schedule-event-lane" style="--column: 2; --span: 2">          <span class="schedule-title">Offsite in Lisbon</span>        </p>        <p class="schedule-event schedule-event-lane schedule-event-continued" style="--column: 1; --lane: 1">          <span class="schedule-title">On call</span>        </p>      </div>    </div>  </div></div>
<template>  <div class="card max-w(560) mx-auto">    <div class="card-body">      <div class="schedule" style="--schedule-from: 9; --schedule-to: 13; --schedule-days: 3">        <ol class="schedule-rail" aria-hidden="true">          <li>9 AM</li>          <li>10 AM</li>          <li>11 AM</li>          <li>12 PM</li>          <li>1 PM</li>        </ol>        <div class="schedule-day" style="--column: 1">          <h3 class="schedule-heading">Wed 12</h3>          <ol class="schedule-events" aria-label="Wednesday 12 November">            <li class="schedule-event" style="--start: 9.5; --end: 10.5">              <p class="schedule-title">Planning</p>              <p class="schedule-time">9:30 – 10:30</p>            </li>          </ol>        </div>        <div class="schedule-day" style="--column: 2" aria-current="date">          <h3 class="schedule-heading">Thu 13</h3>          <ol class="schedule-events" aria-label="Thursday 13 November">            <li class="schedule-event" style="--start: 11; --end: 12">              <p class="schedule-title">Design review</p>              <p class="schedule-time">11:00 – 12:00</p>            </li>          </ol>        </div>        <div class="schedule-day" style="--column: 3">          <h3 class="schedule-heading">Fri 14</h3>          <ol class="schedule-events" aria-label="Friday 14 November"></ol>        </div>        <div class="schedule-allday" role="group" aria-label="All day">          <span class="schedule-allday-label" aria-hidden="true">All day</span>          <p class="schedule-event schedule-event-lane" style="--column: 2; --span: 2">            <span class="schedule-title">Offsite in Lisbon</span>          </p>          <p class="schedule-event schedule-event-lane schedule-event-continued" style="--column: 1; --lane: 1">            <span class="schedule-title">On call</span>          </p>        </div>      </div>    </div>  </div></template>

표시 범위보다 먼저 시작한 일정 조각에는 schedule-event-continued를, 표시 범위 이후에도 이어지는 조각에는 schedule-event-continues를 지정합니다. 레인에서는 해당 조각의 시작이나 끝이 둥글지 않고 가장자리까지 이어지며, 자정을 넘기는 시간 영역의 일정에서는 위쪽이나 아래쪽이 같은 방식으로 표시됩니다. 일정의 시작 부분이 아닌 조각에는 막대가 표시되지 않습니다.

#카테고리 색상

schedule-event-category는 일정 자체나 그 상위 요소에 지정된 카테고리 색상으로 일정을 칠합니다. 일정 블록에는 카테고리의 표면색이, 막대에는 표시색이, 텍스트에는 텍스트 색이 적용됩니다. 여러 팀이나 프로젝트의 캘린더를 한곳에 표시할 때 이 방식으로 구분할 수 있으며, 일정의 내용은 여전히 제목으로 전달합니다.

카테고리 색상

<div class="card max-w(480) mx-auto">  <div class="card-body">    <div class="schedule" style="--schedule-from: 9; --schedule-to: 12">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>      </ol>      <ol class="schedule-events" aria-label="Thursday 13 November">        <li class="schedule-event schedule-event-category category-violet" style="--start: 9; --end: 10; --lanes: 2">          <p class="schedule-title">User interviews</p>          <p class="schedule-time">9:00 – 10:00</p>        </li>        <li class="schedule-event schedule-event-category category-teal" style="--start: 9.5; --end: 11; --lane: 1; --lanes: 2">          <p class="schedule-title">Token audit</p>          <p class="schedule-time">9:30 – 11:00</p>        </li>        <li class="schedule-event schedule-event-category category-orange" style="--start: 11; --end: 11.75">          <p class="schedule-title">Launch check-in</p>          <p class="schedule-time">11:00 – 11:45</p>        </li>      </ol>    </div>  </div></div>
<div className="card max-w(480) mx-auto">  <div className="card-body">    <div className="schedule" style={{ '--schedule-from': '9', '--schedule-to': '12' } as React.CSSProperties}>      <ol className="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>      </ol>      <ol className="schedule-events" aria-label="Thursday 13 November">        <li className="schedule-event schedule-event-category category-violet" style={{ '--start': '9', '--end': '10', '--lanes': '2' } as React.CSSProperties}>          <p className="schedule-title">User interviews</p>          <p className="schedule-time">9:00 – 10:00</p>        </li>        <li className="schedule-event schedule-event-category category-teal" style={{ '--start': '9.5', '--end': '11', '--lane': '1', '--lanes': '2' } as React.CSSProperties}>          <p className="schedule-title">Token audit</p>          <p className="schedule-time">9:30 – 11:00</p>        </li>        <li className="schedule-event schedule-event-category category-orange" style={{ '--start': '11', '--end': '11.75' } as React.CSSProperties}>          <p className="schedule-title">Launch check-in</p>          <p className="schedule-time">11:00 – 11:45</p>        </li>      </ol>    </div>  </div></div>
<div class="card max-w(480) mx-auto">  <div class="card-body">    <div class="schedule" style="--schedule-from: 9; --schedule-to: 12">      <ol class="schedule-rail" aria-hidden="true">        <li>9 AM</li>        <li>10 AM</li>        <li>11 AM</li>        <li>12 PM</li>      </ol>      <ol class="schedule-events" aria-label="Thursday 13 November">        <li class="schedule-event schedule-event-category category-violet" style="--start: 9; --end: 10; --lanes: 2">          <p class="schedule-title">User interviews</p>          <p class="schedule-time">9:00 – 10:00</p>        </li>        <li class="schedule-event schedule-event-category category-teal" style="--start: 9.5; --end: 11; --lane: 1; --lanes: 2">          <p class="schedule-title">Token audit</p>          <p class="schedule-time">9:30 – 11:00</p>        </li>        <li class="schedule-event schedule-event-category category-orange" style="--start: 11; --end: 11.75">          <p class="schedule-title">Launch check-in</p>          <p class="schedule-time">11:00 – 11:45</p>        </li>      </ol>    </div>  </div></div>
<template>  <div class="card max-w(480) mx-auto">    <div class="card-body">      <div class="schedule" style="--schedule-from: 9; --schedule-to: 12">        <ol class="schedule-rail" aria-hidden="true">          <li>9 AM</li>          <li>10 AM</li>          <li>11 AM</li>          <li>12 PM</li>        </ol>        <ol class="schedule-events" aria-label="Thursday 13 November">          <li class="schedule-event schedule-event-category category-violet" style="--start: 9; --end: 10; --lanes: 2">            <p class="schedule-title">User interviews</p>            <p class="schedule-time">9:00 – 10:00</p>          </li>          <li class="schedule-event schedule-event-category category-teal" style="--start: 9.5; --end: 11; --lane: 1; --lanes: 2">            <p class="schedule-title">Token audit</p>            <p class="schedule-time">9:30 – 11:00</p>          </li>          <li class="schedule-event schedule-event-category category-orange" style="--start: 11; --end: 11.75">            <p class="schedule-title">Launch check-in</p>            <p class="schedule-time">11:00 – 11:45</p>          </li>        </ol>      </div>    </div>  </div></template>

#월간 보기

schedule-month는 한 달을 7일 단위의 주로 나누어 표시합니다. 각 schedule-week에는 날짜, 그날 시작하는 일정, 더 보기 버튼을 차례로 작성하므로 스크린 리더는 날짜 순서대로 내용을 읽습니다. 스타일시트는 각 요소를 해당 열과 레인에 배치합니다. 날짜 숫자인 schedule-date-number는 그날을 여는 원형 버튼이며, 오늘은 진한 색으로 표시됩니다. 하루에는 --lanes개(기본값 3개)의 일정을 표시하고, 나머지는 schedule-more 버튼 뒤로 들어갑니다. 이 버튼을 누르면 나머지 일정을 나열하는 팝오버가 열립니다. 월간 보기의 짧은 일정은 schedule-event-plain으로 간단하게 표시합니다. 일정 블록 없이 점, 시간, 제목만 표시합니다.

너비가 36rem보다 좁은 공간에서는 레인을 사용하지 않습니다. 대신 각 날짜의 숫자 아래에 일정마다 점을 하나씩 최대 3개까지 표시하며, 숫자를 누르면 그날이 열립니다. 텍스트를 좁은 7개 열에 억지로 밀어 넣지 않습니다.

schedule-agenda는 같은 일정을 날짜별로 나열합니다. 각 행의 시작 부분에 날짜를 표시하고 그 옆의 schedule-list에 일정을 표시하며, 좁은 공간에서는 날짜를 일정 위에 표시합니다. 휴대폰, 인쇄물, 그리고 보는 것보다 읽는 것을 선호하는 독자에게 적합합니다.

월간 보기와 일정 목록은 일정 데이터로 작성하므로, 아래 예시처럼 동작이나 프레임워크 컴포넌트가 생성합니다.

#직접 조작하는 일정표

schedule-view는 조작 버튼이 있는 헤더를 본문 위에 배치하고, 본문은 schedule 동작이 작성합니다. 헤더에는 오늘, 이전, 다음 버튼과 기간 이름, 그리고 일간·주간·월간·일정 목록 전환 스위치가 있습니다. 이전과 다음 버튼은 현재 보기의 기간 단위로 이동하고, 날짜 숫자를 누르면 그날이 열리며, 기간 이름이 바뀌면 이를 알립니다. 좁은 공간에서는 기간 이름이 한 줄을 따로 차지합니다.

직접 조작하는 일정표

<section class="schedule-view" id="team" aria-labelledby="team-title">  <div class="schedule-view-header">    <button type="button" class="btn btn-sm schedule-view-today">Today</button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label="Previous">      <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">        <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(180 8 8)" />      </svg>    </button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label="Next">      <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">        <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" />      </svg>    </button>    <h2 class="schedule-view-title" id="team-title" aria-live="polite">November 2026</h2>    <div class="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label="View">      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="day">Day      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="week">Week      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="month" checked>Month      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="agenda">Agenda      </label>    </div>  </div>  <div class="schedule-view-body"></div></section><script>addEventListener('DOMContentLoaded', function () {MasterUI.schedule(document.getElementById('team'), {  today: '2026-11-13', locale: 'en-US', weekStart: 1, value: { date: '2026-11-13', view: 'month' },  events: [    { id: 'review', title: 'Design review', start: '2026-11-03T10:00', end: '2026-11-03T11:30', category: 'violet' },    { id: 'offsite', title: 'Offsite', start: '2026-11-07', end: '2026-11-11', allDay: true, category: 'teal' },    { id: 'deploy', title: 'Deploy window', start: '2026-11-12T22:00', end: '2026-11-13T02:00', category: 'red' },    { id: 'launch', title: 'Launch', start: '2026-11-13', end: '2026-11-14', allDay: true, category: 'orange' },    { id: 'standup', title: 'Standup', start: '2026-11-13T09:00', end: '2026-11-13T09:15' },    { id: 'lunch', title: 'Team lunch', start: '2026-11-13T12:00', end: '2026-11-13T13:00', category: 'green' },    { id: 'call', title: 'Customer call', start: '2026-11-13T14:00', end: '2026-11-13T15:00', category: 'blue' },    { id: 'retro', title: 'Retro', start: '2026-11-13T17:00', end: '2026-11-13T17:45' },    { id: 'planning', title: 'Planning', start: '2026-11-17T09:30', end: '2026-11-17T11:00', category: 'blue' },    { id: 'conference', title: 'Conference', start: '2026-11-19', end: '2026-11-22', allDay: true, category: 'violet' }  ]})})</script><script type="module">  import { attach } from '@master/ui/behaviors'  attach()</script>
import { useEffect, useRef } from 'react'import { attach, schedule } from '@master/ui/behaviors'import ChevronLeftIcon from '@master/icons-react/native/16/soft/chevron-left'import ChevronRightIcon from '@master/icons-react/native/16/soft/chevron-right'export function Example() {  const root = useRef<HTMLElement>(null)  useEffect(() => {    const detach = [      attach(root.current!),      schedule(document.getElementById('team')!, {        today: '2026-11-13', locale: 'en-US', weekStart: 1, value: { date: '2026-11-13', view: 'month' },        events: [          { id: 'review', title: 'Design review', start: '2026-11-03T10:00', end: '2026-11-03T11:30', category: 'violet' },          { id: 'offsite', title: 'Offsite', start: '2026-11-07', end: '2026-11-11', allDay: true, category: 'teal' },          { id: 'deploy', title: 'Deploy window', start: '2026-11-12T22:00', end: '2026-11-13T02:00', category: 'red' },          { id: 'launch', title: 'Launch', start: '2026-11-13', end: '2026-11-14', allDay: true, category: 'orange' },          { id: 'standup', title: 'Standup', start: '2026-11-13T09:00', end: '2026-11-13T09:15' },          { id: 'lunch', title: 'Team lunch', start: '2026-11-13T12:00', end: '2026-11-13T13:00', category: 'green' },          { id: 'call', title: 'Customer call', start: '2026-11-13T14:00', end: '2026-11-13T15:00', category: 'blue' },          { id: 'retro', title: 'Retro', start: '2026-11-13T17:00', end: '2026-11-13T17:45' },          { id: 'planning', title: 'Planning', start: '2026-11-17T09:30', end: '2026-11-17T11:00', category: 'blue' },          { id: 'conference', title: 'Conference', start: '2026-11-19', end: '2026-11-22', allDay: true, category: 'violet' }        ]      }),    ]    return () => detach.forEach(stop => stop())  }, [])  return (    <section ref={root} className="schedule-view" id="team" aria-labelledby="team-title">      <div className="schedule-view-header">        <button type="button" className="btn btn-sm schedule-view-today">Today</button>        <button type="button" className="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label="Previous">          <ChevronLeftIcon className="icon" />        </button>        <button type="button" className="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label="Next">          <ChevronRightIcon className="icon" />        </button>        <h2 className="schedule-view-title" id="team-title" aria-live="polite">November 2026</h2>        <div className="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label="View">          <label className="segmented-item">            <input type="radio" className="segmented-input" name="team-view" value="day" />Day          </label>          <label className="segmented-item">            <input type="radio" className="segmented-input" name="team-view" value="week" />Week          </label>          <label className="segmented-item">            <input type="radio" className="segmented-input" name="team-view" value="month" defaultChecked />Month          </label>          <label className="segmented-item">            <input type="radio" className="segmented-input" name="team-view" value="agenda" />Agenda          </label>        </div>      </div>      <div className="schedule-view-body"></div>    </section>  )}
<script>  import { attach, schedule } from '@master/ui/behaviors'  import ChevronLeftIcon from '@master/icons-svelte/native/16/soft/chevron-left'  import ChevronRightIcon from '@master/icons-svelte/native/16/soft/chevron-right'  function mounted(root) {    const detach = [      attach(root),      schedule(document.getElementById('team'), {        today: '2026-11-13', locale: 'en-US', weekStart: 1, value: { date: '2026-11-13', view: 'month' },        events: [          { id: 'review', title: 'Design review', start: '2026-11-03T10:00', end: '2026-11-03T11:30', category: 'violet' },          { id: 'offsite', title: 'Offsite', start: '2026-11-07', end: '2026-11-11', allDay: true, category: 'teal' },          { id: 'deploy', title: 'Deploy window', start: '2026-11-12T22:00', end: '2026-11-13T02:00', category: 'red' },          { id: 'launch', title: 'Launch', start: '2026-11-13', end: '2026-11-14', allDay: true, category: 'orange' },          { id: 'standup', title: 'Standup', start: '2026-11-13T09:00', end: '2026-11-13T09:15' },          { id: 'lunch', title: 'Team lunch', start: '2026-11-13T12:00', end: '2026-11-13T13:00', category: 'green' },          { id: 'call', title: 'Customer call', start: '2026-11-13T14:00', end: '2026-11-13T15:00', category: 'blue' },          { id: 'retro', title: 'Retro', start: '2026-11-13T17:00', end: '2026-11-13T17:45' },          { id: 'planning', title: 'Planning', start: '2026-11-17T09:30', end: '2026-11-17T11:00', category: 'blue' },          { id: 'conference', title: 'Conference', start: '2026-11-19', end: '2026-11-22', allDay: true, category: 'violet' }        ]      }),    ]    return () => detach.forEach(stop => stop())  }</script><section class="schedule-view" id="team" aria-labelledby="team-title" {@attach mounted}>  <div class="schedule-view-header">    <button type="button" class="btn btn-sm schedule-view-today">Today</button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label="Previous">      <ChevronLeftIcon class="icon" />    </button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label="Next">      <ChevronRightIcon class="icon" />    </button>    <h2 class="schedule-view-title" id="team-title" aria-live="polite">November 2026</h2>    <div class="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label="View">      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="day">Day      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="week">Week      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="month" checked>Month      </label>      <label class="segmented-item">        <input type="radio" class="segmented-input" name="team-view" value="agenda">Agenda      </label>    </div>  </div>  <div class="schedule-view-body"></div></section>
<script setup>import { onMounted, onUnmounted, ref } from 'vue'import { attach, schedule } from '@master/ui/behaviors'import ChevronLeftIcon from '@master/icons-vue/native/16/soft/chevron-left'import ChevronRightIcon from '@master/icons-vue/native/16/soft/chevron-right'const root = ref(null)let detach = []onMounted(() => {  detach = [    attach(root.value),    schedule(document.getElementById('team'), {      today: '2026-11-13', locale: 'en-US', weekStart: 1, value: { date: '2026-11-13', view: 'month' },      events: [        { id: 'review', title: 'Design review', start: '2026-11-03T10:00', end: '2026-11-03T11:30', category: 'violet' },        { id: 'offsite', title: 'Offsite', start: '2026-11-07', end: '2026-11-11', allDay: true, category: 'teal' },        { id: 'deploy', title: 'Deploy window', start: '2026-11-12T22:00', end: '2026-11-13T02:00', category: 'red' },        { id: 'launch', title: 'Launch', start: '2026-11-13', end: '2026-11-14', allDay: true, category: 'orange' },        { id: 'standup', title: 'Standup', start: '2026-11-13T09:00', end: '2026-11-13T09:15' },        { id: 'lunch', title: 'Team lunch', start: '2026-11-13T12:00', end: '2026-11-13T13:00', category: 'green' },        { id: 'call', title: 'Customer call', start: '2026-11-13T14:00', end: '2026-11-13T15:00', category: 'blue' },        { id: 'retro', title: 'Retro', start: '2026-11-13T17:00', end: '2026-11-13T17:45' },        { id: 'planning', title: 'Planning', start: '2026-11-17T09:30', end: '2026-11-17T11:00', category: 'blue' },        { id: 'conference', title: 'Conference', start: '2026-11-19', end: '2026-11-22', allDay: true, category: 'violet' }      ]    }),  ]})onUnmounted(() => detach.forEach(stop => stop()))</script><template>  <section ref="root" class="schedule-view" id="team" aria-labelledby="team-title">    <div class="schedule-view-header">      <button type="button" class="btn btn-sm schedule-view-today">Today</button>      <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label="Previous">        <ChevronLeftIcon class="icon" />      </button>      <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label="Next">        <ChevronRightIcon class="icon" />      </button>      <h2 class="schedule-view-title" id="team-title" aria-live="polite">November 2026</h2>      <div class="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label="View">        <label class="segmented-item">          <input type="radio" class="segmented-input" name="team-view" value="day">Day        </label>        <label class="segmented-item">          <input type="radio" class="segmented-input" name="team-view" value="week">Week        </label>        <label class="segmented-item">          <input type="radio" class="segmented-input" name="team-view" value="month" checked>Month        </label>        <label class="segmented-item">          <input type="radio" class="segmented-input" name="team-view" value="agenda">Agenda        </label>      </div>    </div>    <div class="schedule-view-body"></div>  </section></template>
한 달씩 이동하거나, 날짜 숫자를 눌러 그날을 열거나, 주간 보기나 일정 목록으로 전환할 수 있습니다.

#일정 데이터

각 일정에는 고정된 id, title, start, end가 있습니다. 종일 일정은 allDay: true를 지정하고 시작과 끝을 YYYY-MM-DD 형식의 날짜로 지정합니다. 그 밖의 일정은 YYYY-MM-DDTHH:mm 형식의 현지 시각을 사용합니다. end는 해당 시점을 포함하지 않습니다. 13일 하루만 진행되는 종일 일정은 14일에 끝나며, 자정에 끝나는 일정은 전날에 끝나는 것으로 처리됩니다. category는 팔레트 이름으로, 예를 들어 blue는 category-blue에 해당합니다. href를 지정하면 일정이 링크가 되고, 지정하지 않으면 일정의 id를 value로 갖는 버튼이 되며 페이지에서 이 버튼의 이벤트를 수신합니다.

시간은 일정표를 표시하는 시간대로 이미 변환된 값이어야 하며, 반복 일정은 각 회차를 개별 일정으로 전달해야 합니다. 시간대와 반복 규칙은 애플리케이션에서 처리합니다. 날짜는 달력 기준으로 계산하며 정오 시각으로 유지하므로, 일광 절약 시간이 바뀌어도 종일 일정이 전날로 밀리지 않습니다. 이 보기는 일정을 편집, 이동, 저장하지 않습니다. 일정을 표시하고 어떤 일정을 눌렀는지 알려 줄 뿐입니다.

#동작

app.js
import { schedule } from '@master/ui/behaviors/schedule.js'const team = schedule(document.querySelector('.schedule-view'), { events, today: '2026-11-13' })team.value // { date: '2026-11-13', view: 'month' }
옵션기본값설명
events[]위에서 설명한 일정 데이터
value오늘이 속한 달처음 표시할 날짜와 보기를 나타내는 { date, view }. 보기는 day, week, month, agenda 중 하나입니다.
today브라우저의 오늘 날짜YYYY-MM-DD 형식의 오늘 날짜. 서버에서 일정표를 렌더링할 때 지정하면 서버와 브라우저의 날짜가 일치합니다.
locale페이지의 lang요일과 월 이름에 사용할 BCP 47 태그
weekStart로캘의 주 시작 요일한 주의 첫날. 일요일은 0, 토요일은 6입니다.
lanes3월간 보기의 하루에 표시할 일정 수. 나머지는 더 보기 버튼 뒤로 들어갑니다.
from, to8, 18일간·주간 보기에서 최소한으로 표시할 시간 범위. 더 이르거나 늦은 일정이 있으면 범위가 넓어집니다.
messages영어띠의 이름, 더 보기 버튼의 텍스트와 이름, 빈 일정 목록에 표시할 문장
draw없음제목과 본문을 직접 작성하는 렌더러가 있을 때 작성 작업을 넘겨받는 함수

독자가 조작하면 루트에서 input 및 change 이벤트가 발행됩니다. 동작이 반환하는 함수의 value는 읽고 설정할 수 있으며, 값을 설정할 때는 이벤트가 발행되지 않습니다. scheduleLayout(value, options)은 보기에 표시할 내용을 데이터로 반환합니다. 각 일정의 레인이 포함된 주, 각 일정의 위치가 포함된 시간, 띠, 일정 목록의 날짜가 들어 있으므로 서버, 프레임워크, 동작이 같은 일정을 같은 방식으로 배치합니다.

#일정표, 간트 차트, 캘린더

일정표는 일정을 시간 위에 배치하는 컴포넌트로, 하루의 시간대를 위에서 아래로 읽거나 한 달의 날짜를 표시합니다. 계획의 각 항목을 한 행씩 배치하고 공통 시간축에 기간을 표시하려면 간트 차트를 사용합니다. 한 달에서 날짜나 날짜 범위를 고를 때는 캘린더를, 사건을 발생한 순서대로 보여 줄 때는 타임라인을 사용합니다.

#접근성

  • 일정을 시간순으로 <ol>에 작성하고 목록에 이름을 지정합니다. 하루만 표시할 때는 aria-label을 사용합니다. 여러 날을 표시할 때는 각 날짜의 schedule-day에서 aria-labelledby로 해당 날짜의 제목을 참조합니다.
  • 각 일정의 제목과 시간을 텍스트로 작성하고, 시각은 <time datetime> 요소로 표시합니다. 그러면 시각적 배치 없이도 "디자인 검토, 10:00부터 11:30까지"처럼 읽을 수 있습니다. 시간축은 같은 시간 정보를 시각적으로 반복하므로 aria-hidden="true"로 보조 기술에서 숨깁니다.
  • 현재 일정과 오늘 날짜는 aria-current 속성으로 표시하며, 스크린 리더가 이를 알려 줍니다. 현재 시각을 나타내는 선은 스타일시트가 그리므로, 현재 시각을 알아야 하는 곳에는 텍스트로도 표기합니다.
  • 강제 색상 모드에서는 각 일정에 윤곽선이 표시되고 현재 일정은 강조색으로 채워집니다. 가는 눈금선과 현재 시각을 나타내는 선에는 시스템 색상이 적용됩니다.
  • 월간 보기는 날짜 그리드가 아닙니다. 날짜는 그날을 여는 숫자이고 일정은 링크나 버튼이며, 각각 제목과 시각으로 이름이 지정됩니다. 더 보기 버튼은 몇 개의 일정을 어느 날짜에 나열하는지 알려 줍니다. 카테고리 색상만으로 일정을 구분하지 않습니다.
  • 보기의 조작 버튼은 화면이 바뀌어도 포커스를 유지합니다. 날짜 숫자로 하루를 열면 월간 보기와 함께 해당 버튼이 사라지고, 포커스는 열린 날짜의 이름으로 이동합니다.
  • 사용자가 다른 시간대에 있을 수 있다면, “시간은 타이베이 기준(GMT+8)”처럼 시간이 어느 시간대 기준인지 제목 근처에 밝히세요. 시간축과 일정은 시계의 시각만 보여 줍니다.

#React, Svelte 및 Vue

schedule 컴포넌트는 scheduleLayout()으로 기간을 작성하므로 서버가 보내는 첫 HTML에 그 내용이 포함됩니다. 또한 헤더와 날짜 숫자에 반응하는 동작을 연결합니다. 값은 { date, view }이며, href가 없는 일정을 누르면 onEventClick(Vue에서는 eventClick)으로 전달됩니다. 서버에서 렌더링할 때는 today와 locale을 지정합니다. npx master-ui add schedule로 프로젝트에 복사합니다. 컴포넌트의 구성과 사용법은 React, Svelte 및 Vue에서 확인할 수 있습니다.

ui/schedule.tsx
'use client'import { useId, useMemo, useState, type ComponentProps, type CSSProperties } from 'react'import { schedule, scheduleLayout, type ScheduleEvent, type ScheduleItem, type ScheduleMessages, type ScheduleValue } from '@master/ui/behaviors/schedule.js'import { useBehavior } from './use-behavior'export type { ScheduleEvent, ScheduleValue }/** The words of the header, in the page's language. */export interface ScheduleLabels {  today?: string  previous?: string  next?: string  /** The name of the view switch. */  view?: string  day?: string  week?: string  month?: string  agenda?: string}export interface ScheduleProps extends Omit<ComponentProps<'section'>, 'defaultValue' | 'children' | 'ref'> {  events: ScheduleEvent[]  /** The day and the view on show. Today's month by default. */  value?: ScheduleValue  defaultValue?: ScheduleValue  onValueChange?: (value: ScheduleValue) => void  /** An event without an `href` is a button: this hears it pressed. */  onEventClick?: (event: ScheduleEvent) => void  /** Today, as `YYYY-MM-DD`. Give it when the schedule is rendered on a server, so both sides agree. */  today?: string  /** A BCP 47 tag for the names. Give it when the schedule is rendered on a server. */  locale?: string  /** The first day of a week, 0 for Sunday to 6 for Saturday. The locale's own by default. */  weekStart?: number  /** How many events a day of a month shows before the rest go behind its more button. */  lanes?: number  /** The hours a day or a week shows at least. */  from?: number  to?: number  messages?: ScheduleMessages  labels?: ScheduleLabels}const chevron = (turn?: number) => (  <svg className="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform={turn ? `rotate(${turn} 8 8)` : undefined} /></svg>)const style = (properties: Record<string, string | number>) => properties as CSSProperties/** * A schedule the reader moves through by the day, the week, the month or as an agenda. React writes the * period from `scheduleLayout()`, the same layout the behavior writes, so it is in the first HTML; the behavior * answers the header and the day numbers and asks for the period to show. */export function Schedule({ events, value, defaultValue, onValueChange, onEventClick, today, locale, weekStart, lanes, from, to, messages, labels = {}, className, ...root }: ScheduleProps) {  const id = useId()  const settings = { today, locale, weekStart, lanes, from, to, messages }  const [first] = useState(() => scheduleLayout(value ?? defaultValue, settings).value)  const [shown, setShown] = useState(first)  const layout = useMemo(() => scheduleLayout(shown, { ...settings, events }), [shown, events, today, locale, weekStart, lanes, from, to, messages])  const ref = useBehavior(schedule, { ...settings, value: first, draw: setShown }, { value, defaultValue, onValueChange })  const more = messages?.more ?? ((count: number) => `+${count} more`)  const moreLabel = messages?.moreLabel ?? ((count: number, day: string) => `${count} more ${count === 1 ? 'event' : 'events'}, ${day}`)  const words = { today: 'Today', previous: 'Previous', next: 'Next', view: 'View', day: 'Day', week: 'Week', month: 'Month', agenda: 'Agenda', ...labels }  const event = (item: ScheduleItem, place?: Record<string, number>) => {    const content = <><span className="schedule-title">{item.title}</span>{item.time && !item.allDay ? <span className="schedule-time">{item.time}</span> : null}</>    const shared = { className: `schedule-event ${item.classes}`.trim(), style: place && style(Object.fromEntries(Object.entries(place).map(([name, number]) => [`--${name}`, number]))), 'aria-label': item.label }    return item.event.href      ? <a {...shared} href={item.event.href} key={`${item.id}${item.column}`}>{content}</a>      : <button type="button" {...shared} value={item.id} onClick={() => onEventClick?.(item.event)} key={`${item.id}${item.column}`}>{content}</button>  }  const list = (items: ScheduleItem[]) => <ol className="schedule-list">{items.map(item => <li key={item.id}>{event(item)}</li>)}</ol>  let body  if (layout.value.view === 'month') {    body = (      <div className="schedule-month">        <div className="schedule-weekdays" aria-hidden="true">{layout.weekdays.map(weekday => <span className="schedule-weekday" key={weekday.name}>{weekday.short}</span>)}</div>        <ol className="schedule-weeks">          {layout.weeks.map(week => (            <li className="schedule-week" style={style({ '--lanes': week.lanes })} key={week.days[0]!.date}>              {week.days.map((day, index) => [                <div className={day.outside ? 'schedule-date schedule-date-outside' : 'schedule-date'} style={style({ '--column': index + 1, '--count': day.count })} aria-current={day.today ? 'date' : undefined} key={day.date}>                  <button type="button" className="schedule-date-number" value={day.date} aria-label={day.summary}>{day.text}</button>                </div>,                ...day.items.map(item => event(item, { column: item.column, span: item.span, lane: item.lane })),                ...(day.hidden ? [                  <button type="button" className="schedule-more" style={style({ '--column': index + 1 })} popoverTarget={`${id}more${day.date}`} aria-label={moreLabel(day.hidden, day.label)} key={`${day.date}more`}>{more(day.hidden)}</button>,                  <div id={`${id}more${day.date}`} popover="" className="popover" key={`${day.date}list`}><p className="schedule-agenda-date">{day.label}</p>{list(day.all)}</div>,                ] : []),              ])}            </li>          ))}        </ol>      </div>    )  } else if (layout.value.view === 'agenda') {    body = layout.agenda.length      ? <ol className="schedule-agenda">{layout.agenda.map(day => <li className="schedule-agenda-day" aria-current={day.today ? 'date' : undefined} key={day.date}><h3 className="schedule-agenda-date">{day.heading}</h3>{list(day.items)}</li>)}</ol>      : <div className="empty"><p className="empty-title">{layout.words.empty}</p></div>  } else {    body = (      <div className="schedule" style={style({ '--schedule-from': layout.from, '--schedule-to': layout.to, '--schedule-days': layout.days.length })}>        <ol className="schedule-rail" aria-hidden="true">{layout.rail.map((label, index) => <li key={index}>{label}</li>)}</ol>        {layout.days.map((day, index) => (          <div className="schedule-day" style={style({ '--column': index + 1 })} aria-current={day.today ? 'date' : undefined} key={day.date}>            <h3 className="schedule-heading" aria-label={day.label}>{layout.days.length > 1 ? day.heading : day.label}</h3>            <ol className="schedule-events" aria-label={day.label}>{day.items.map(item => <li key={item.id}>{event(item, { start: item.start, end: item.end, lane: item.lane, lanes: item.lanes })}</li>)}</ol>          </div>        ))}        {layout.allDay.length ? (          <div className="schedule-allday" role="group" aria-label={layout.words.allDay}>            <span className="schedule-allday-label" aria-hidden="true">{layout.words.allDay}</span>            {layout.allDay.map(item => event(item, { column: item.column, span: item.span, lane: item.lane }))}          </div>        ) : null}      </div>    )  }  return (    <section className={className ? `schedule-view ${className}` : 'schedule-view'} aria-labelledby={`${id}title`} ref={ref} {...root}>      <div className="schedule-view-header">        <button type="button" className="btn btn-sm schedule-view-today">{words.today}</button>        <button type="button" className="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label={words.previous}>{chevron(180)}</button>        <button type="button" className="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label={words.next}>{chevron()}</button>        <h2 className="schedule-view-title" id={`${id}title`} aria-live="polite">{layout.title}</h2>        <div className="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label={words.view}>          {(['day', 'week', 'month', 'agenda'] as const).map(name => (            <label className="segmented-item" key={name}><input type="radio" className="segmented-input" name={`${id}view`} value={name} defaultChecked={first.view === name} />{words[name]}</label>          ))}        </div>      </div>      <div className="schedule-view-body">{body}</div>    </section>  )}
ui/Schedule.svelte
<script lang="ts" module>  import type { HTMLAttributes } from 'svelte/elements'  import type { ScheduleEvent, ScheduleMessages, ScheduleValue } from '@master/ui/behaviors/schedule.js'  export type { ScheduleEvent, ScheduleValue }  /** The words of the header, in the page's language. */  export interface ScheduleLabels {    today?: string    previous?: string    next?: string    /** The name of the view switch. */    view?: string    day?: string    week?: string    month?: string    agenda?: string  }  export interface ScheduleProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {    events: ScheduleEvent[]    /** The day and the view on show. Bind it, or leave it out: today's month. */    value?: ScheduleValue    onValueChange?: (value: ScheduleValue) => void    /** An event without an `href` is a button: this hears it pressed. */    onEventClick?: (event: ScheduleEvent) => void    /** Today, as `YYYY-MM-DD`. Give it when the schedule is rendered on a server, so both sides agree. */    today?: string    /** A BCP 47 tag for the names. Give it when the schedule is rendered on a server. */    locale?: string    /** The first day of a week, 0 for Sunday to 6 for Saturday. The locale's own by default. */    weekStart?: number    /** How many events a day of a month shows before the rest go behind its more button. */    lanes?: number    /** The hours a day or a week shows at least. */    from?: number    to?: number    messages?: ScheduleMessages    labels?: ScheduleLabels  }</script><script lang="ts">  import { untrack } from 'svelte'  import { schedule, scheduleLayout, type ScheduleItem } from '@master/ui/behaviors/schedule.js'  import { behavior } from './behavior.svelte.js'  let { events, value = $bindable(), onValueChange, onEventClick, today, locale, weekStart, lanes, from, to, messages, labels = {}, class: className, ...root }: ScheduleProps = $props()  const id = $props.id()  const settings = () => ({ today, locale, weekStart, lanes, from, to, messages })  const first = untrack(() => scheduleLayout(value, settings()).value)  let shown = $state(first)  const layout = $derived(scheduleLayout(shown, { ...settings(), events }))  const attach = behavior(schedule, () => ({ ...settings(), value: first, draw: (next: ScheduleValue) => { shown = next } }), {    value: () => value,    change: (next) => { value = next; onValueChange?.(next) },  })  const more = $derived(messages?.more ?? ((count: number) => `+${count} more`))  const moreLabel = $derived(messages?.moreLabel ?? ((count: number, day: string) => `${count} more ${count === 1 ? 'event' : 'events'}, ${day}`))  const words = $derived({ today: 'Today', previous: 'Previous', next: 'Next', view: 'View', day: 'Day', week: 'Week', month: 'Month', agenda: 'Agenda', ...labels })  const views = ['day', 'week', 'month', 'agenda'] as const  const lane = (item: ScheduleItem) => `--column: ${item.column}; --span: ${item.span}; --lane: ${item.lane}`</script><!--  @component  A schedule the reader moves through by the day, the week, the month or as an agenda. Svelte writes the  period from `scheduleLayout()`, the same layout the behavior writes, so it is in the first HTML; the behavior  answers the header and the day numbers and asks for the period to show.-->{#snippet event(item: ScheduleItem, style?: string)}  {#if item.event.href}    <a class={['schedule-event', item.classes]} {style} href={item.event.href} aria-label={item.label}><span class="schedule-title">{item.title}</span>{#if item.time && !item.allDay}<span class="schedule-time">{item.time}</span>{/if}</a>  {:else}    <button type="button" class={['schedule-event', item.classes]} {style} value={item.id} aria-label={item.label} onclick={() => onEventClick?.(item.event)}><span class="schedule-title">{item.title}</span>{#if item.time && !item.allDay}<span class="schedule-time">{item.time}</span>{/if}</button>  {/if}{/snippet}{#snippet list(items: ScheduleItem[])}  <ol class="schedule-list">    {#each items as item (item.id)}<li>{@render event(item)}</li>{/each}  </ol>{/snippet}<section class={['schedule-view', className]} aria-labelledby="{id}title" {@attach attach} {...root}>  <div class="schedule-view-header">    <button type="button" class="btn btn-sm schedule-view-today">{words.today}</button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-previous" aria-label={words.previous}>      <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(180 8 8)" /></svg>    </button>    <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-next" aria-label={words.next}>      <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" /></svg>    </button>    <h2 class="schedule-view-title" id="{id}title" aria-live="polite">{layout.title}</h2>    <div class="segmented segmented-sm schedule-view-switch" role="radiogroup" aria-label={words.view}>      {#each views as name (name)}        <label class="segmented-item"><input type="radio" class="segmented-input" name="{id}view" value={name} checked={first.view === name} />{words[name]}</label>      {/each}    </div>  </div>  <div class="schedule-view-body">    {#if layout.value.view === 'month'}      <div class="schedule-month">        <div class="schedule-weekdays" aria-hidden="true">          {#each layout.weekdays as weekday (weekday.name)}<span class="schedule-weekday">{weekday.short}</span>{/each}        </div>        <ol class="schedule-weeks">          {#each layout.weeks as week (week.days[0]!.date)}            <li class="schedule-week" style="--lanes: {week.lanes}">              {#each week.days as day, index (day.date)}                <div class={['schedule-date', day.outside && 'schedule-date-outside']} style="--column: {index + 1}; --count: {day.count}" aria-current={day.today ? 'date' : undefined}>                  <button type="button" class="schedule-date-number" value={day.date} aria-label={day.summary}>{day.text}</button>                </div>                {#each day.items as item (item.id)}{@render event(item, lane(item))}{/each}                {#if day.hidden}                  <button type="button" class="schedule-more" style="--column: {index + 1}" popovertarget="{id}more{day.date}" aria-label={moreLabel(day.hidden, day.label)}>{more(day.hidden)}</button>                  <div id="{id}more{day.date}" popover="" class="popover"><p class="schedule-agenda-date">{day.label}</p>{@render list(day.all)}</div>                {/if}              {/each}            </li>          {/each}        </ol>      </div>    {:else if layout.value.view === 'agenda'}      {#if layout.agenda.length}        <ol class="schedule-agenda">          {#each layout.agenda as day (day.date)}            <li class="schedule-agenda-day" aria-current={day.today ? 'date' : undefined}><h3 class="schedule-agenda-date">{day.heading}</h3>{@render list(day.items)}</li>          {/each}        </ol>      {:else}        <div class="empty"><p class="empty-title">{layout.words.empty}</p></div>      {/if}    {:else}      <div class="schedule" style="--schedule-from: {layout.from}; --schedule-to: {layout.to}; --schedule-days: {layout.days.length}">        <ol class="schedule-rail" aria-hidden="true">          {#each layout.rail as label, index (index)}<li>{label}</li>{/each}        </ol>        {#each layout.days as day, index (day.date)}          <div class="schedule-day" style="--column: {index + 1}" aria-current={day.today ? 'date' : undefined}>            <h3 class="schedule-heading" aria-label={day.label}>{layout.days.length > 1 ? day.heading : day.label}</h3>            <ol class="schedule-events" aria-label={day.label}>              {#each day.items as item (item.id)}<li>{@render event(item, `--start: ${item.start}; --end: ${item.end}; --lane: ${item.lane}; --lanes: ${item.lanes}`)}</li>{/each}            </ol>          </div>        {/each}        {#if layout.allDay.length}          <div class="schedule-allday" role="group" aria-label={layout.words.allDay}>            <span class="schedule-allday-label" aria-hidden="true">{layout.words.allDay}</span>            {#each layout.allDay as item (item.id)}{@render event(item, lane(item))}{/each}          </div>        {/if}      </div>    {/if}  </div></section>
ui/Schedule.vue
<script lang="ts">import type { ScheduleEvent, ScheduleValue } from '@master/ui/behaviors/schedule.js'export type { ScheduleEvent, ScheduleValue }/** The words of the header, in the page's language. */export interface ScheduleLabels {  today?: string  previous?: string  next?: string  /** The name of the view switch. */  view?: string  day?: string  week?: string  month?: string  agenda?: string}</script><script setup lang="ts">import { computed, shallowRef, useId, useTemplateRef } from 'vue'import { schedule, scheduleLayout, type ScheduleItem, type ScheduleMessages } from '@master/ui/behaviors/schedule.js'import { useBehavior } from './use-behavior'defineOptions({ inheritAttrs: false })const { events, today, locale, weekStart, lanes, from, to, messages, labels = {} } = defineProps<{  events: ScheduleEvent[]  /** Today, as `YYYY-MM-DD`. Give it when the schedule is rendered on a server, so both sides agree. */  today?: string  /** A BCP 47 tag for the names. Give it when the schedule is rendered on a server. */  locale?: string  /** The first day of a week, 0 for Sunday to 6 for Saturday. The locale's own by default. */  weekStart?: number  /** How many events a day of a month shows before the rest go behind its more button. */  lanes?: number  /** The hours a day or a week shows at least. */  from?: number  to?: number  messages?: ScheduleMessages  labels?: ScheduleLabels}>()/** The day and the view on show: `v-model`. Today's month by default. */const model = defineModel<ScheduleValue>()/** An event without an `href` is a button: `eventClick` hears it pressed. */const emit = defineEmits<{ eventClick: [event: ScheduleEvent] }>()/* * A schedule the reader moves through by the day, the week, the month or as an agenda. Vue writes the period * from `scheduleLayout()`, the same layout the behavior writes, so it is in the first HTML; the behavior answers * the header and the day numbers and asks for the period to show. */const id = useId()const settings = () => ({ today, locale, weekStart, lanes, from, to, messages })const first = scheduleLayout(model.value, settings()).valueconst shown = shallowRef<ScheduleValue>(first)const layout = computed(() => scheduleLayout(shown.value, { ...settings(), events }))const root = useTemplateRef<HTMLElement>('root')useBehavior(root, schedule, () => ({ ...settings(), value: first, draw: (next: ScheduleValue) => { shown.value = next } }), model)const more = computed(() => messages?.more ?? ((count: number) => `+${count} more`))const moreLabel = computed(() => messages?.moreLabel ?? ((count: number, day: string) => `${count} more ${count === 1 ? 'event' : 'events'}, ${day}`))const words = computed(() => ({ today: 'Today', previous: 'Previous', next: 'Next', view: 'View', day: 'Day', week: 'Week', month: 'Month', agenda: 'Agenda', ...labels }))const views = ['day', 'week', 'month', 'agenda'] as constconst lane = (item: ScheduleItem) => `--column: ${item.column}; --span: ${item.span}; --lane: ${item.lane}`const hours = (item: ScheduleItem) => `--start: ${item.start}; --end: ${item.end}; --lane: ${item.lane}; --lanes: ${item.lanes}`</script><template>  <section class="schedule-view" :aria-labelledby="`${id}-title`" ref="root" v-bind="$attrs">    <div class="schedule-view-header">      <button type="button" class="btn btn-sm schedule-view-today">{{ words.today }}</button>      <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-previous" :aria-label="words.previous">        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(180 8 8)" /></svg>      </button>      <button type="button" class="btn btn-sm btn-square btn-quiet schedule-view-next" :aria-label="words.next">        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" /></svg>      </button>      <h2 class="schedule-view-title" :id="`${id}-title`" aria-live="polite">{{ layout.title }}</h2>      <div class="segmented segmented-sm schedule-view-switch" role="radiogroup" :aria-label="words.view">        <label v-for="name in views" :key="name" class="segmented-item"><input type="radio" class="segmented-input" :name="`${id}-view`" :value="name" :checked="first.view === name" />{{ words[name] }}</label>      </div>    </div>    <div class="schedule-view-body">      <div v-if="layout.value.view === 'month'" class="schedule-month">        <div class="schedule-weekdays" aria-hidden="true">          <span v-for="weekday in layout.weekdays" :key="weekday.name" class="schedule-weekday">{{ weekday.short }}</span>        </div>        <ol class="schedule-weeks">          <li v-for="week in layout.weeks" :key="week.days[0]!.date" class="schedule-week" :style="`--lanes: ${week.lanes}`">            <template v-for="(day, index) in week.days" :key="day.date">              <div class="schedule-date" :class="{ 'schedule-date-outside': day.outside }" :style="`--column: ${index + 1}; --count: ${day.count}`" :aria-current="day.today ? 'date' : undefined">                <button type="button" class="schedule-date-number" :value="day.date" :aria-label="day.summary">{{ day.text }}</button>              </div>              <template v-for="item in day.items" :key="item.id">                <a v-if="item.event.href" :class="['schedule-event', item.classes]" :style="lane(item)" :href="item.event.href" :aria-label="item.label"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></a>                <button v-else type="button" :class="['schedule-event', item.classes]" :style="lane(item)" :value="item.id" :aria-label="item.label" @click="emit('eventClick', item.event)"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></button>              </template>              <template v-if="day.hidden">                <button type="button" class="schedule-more" :style="`--column: ${index + 1}`" :popovertarget="`${id}-more-${day.date}`" :aria-label="moreLabel(day.hidden, day.label)">{{ more(day.hidden) }}</button>                <div :id="`${id}-more-${day.date}`" popover="" class="popover">                  <p class="schedule-agenda-date">{{ day.label }}</p>                  <ol class="schedule-list">                    <li v-for="item in day.all" :key="item.id">                      <a v-if="item.event.href" :class="['schedule-event', item.classes]" :href="item.event.href" :aria-label="item.label"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></a>                      <button v-else type="button" :class="['schedule-event', item.classes]" :value="item.id" :aria-label="item.label" @click="emit('eventClick', item.event)"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></button>                    </li>                  </ol>                </div>              </template>            </template>          </li>        </ol>      </div>      <template v-else-if="layout.value.view === 'agenda'">        <ol v-if="layout.agenda.length" class="schedule-agenda">          <li v-for="day in layout.agenda" :key="day.date" class="schedule-agenda-day" :aria-current="day.today ? 'date' : undefined">            <h3 class="schedule-agenda-date">{{ day.heading }}</h3>            <ol class="schedule-list">              <li v-for="item in day.items" :key="item.id">                <a v-if="item.event.href" :class="['schedule-event', item.classes]" :href="item.event.href" :aria-label="item.label"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></a>                <button v-else type="button" :class="['schedule-event', item.classes]" :value="item.id" :aria-label="item.label" @click="emit('eventClick', item.event)"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></button>              </li>            </ol>          </li>        </ol>        <div v-else class="empty"><p class="empty-title">{{ layout.words.empty }}</p></div>      </template>      <div v-else class="schedule" :style="`--schedule-from: ${layout.from}; --schedule-to: ${layout.to}; --schedule-days: ${layout.days.length}`">        <ol class="schedule-rail" aria-hidden="true"><li v-for="(label, index) in layout.rail" :key="index">{{ label }}</li></ol>        <div v-for="(day, index) in layout.days" :key="day.date" class="schedule-day" :style="`--column: ${index + 1}`" :aria-current="day.today ? 'date' : undefined">          <h3 class="schedule-heading" :aria-label="day.label">{{ layout.days.length > 1 ? day.heading : day.label }}</h3>          <ol class="schedule-events" :aria-label="day.label">            <li v-for="item in day.items" :key="item.id">              <a v-if="item.event.href" :class="['schedule-event', item.classes]" :style="hours(item)" :href="item.event.href" :aria-label="item.label"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time" class="schedule-time">{{ item.time }}</span></a>              <button v-else type="button" :class="['schedule-event', item.classes]" :style="hours(item)" :value="item.id" :aria-label="item.label" @click="emit('eventClick', item.event)"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time" class="schedule-time">{{ item.time }}</span></button>            </li>          </ol>        </div>        <div v-if="layout.allDay.length" class="schedule-allday" role="group" :aria-label="layout.words.allDay">          <span class="schedule-allday-label" aria-hidden="true">{{ layout.words.allDay }}</span>          <template v-for="item in layout.allDay" :key="item.id">            <a v-if="item.event.href" :class="['schedule-event', item.classes]" :style="lane(item)" :href="item.event.href" :aria-label="item.label"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></a>            <button v-else type="button" :class="['schedule-event', item.classes]" :style="lane(item)" :value="item.id" :aria-label="item.label" @click="emit('eventClick', item.event)"><span class="schedule-title">{{ item.title }}</span><span v-if="item.time && !item.allDay" class="schedule-time">{{ item.time }}</span></button>          </template>        </div>      </div>    </div>  </section></template>

#클래스

클래스설명
schedule--schedule-from부터 --schedule-to까지의 시간을 표시하며, 한 시간의 높이는 --schedule-hour입니다. 시작 쪽에 시간 레이블을 세로로 배치하고, 그 뒤에 날짜별로 한 열씩 배치합니다.
schedule-nowaria-current="date"가 지정된 날짜에는 --now 위치에 점이 달린 선을 잉크 색상으로 그리고, 나머지 날짜에는 가는 선을 그립니다. 지정된 날짜가 없으면 모든 날짜에 점이 달린 선을 그립니다.적용할 클래스는 schedule입니다
schedule-rail--schedule-from부터 --schedule-to까지 한 시간에 하나씩 시간 레이블을 표시하고, 각 레이블은 해당하는 가는 선의 가운데에 배치합니다. 일정 항목에 시간이 텍스트로 표시되므로 시간 레이블은 aria-hidden으로 숨기세요.
schedule-day여러 날짜를 나란히 배치할 때 하루를 한 열로 표시합니다. schedule-events 위에 schedule-heading을 추가할 수 있습니다. 오늘 날짜에는 aria-current="date"를 설정하세요. 하루짜리 일정에서는 날짜 열을 생략할 수 있습니다.
schedule-heading날짜 제목은 해당 열 위에 차분한 글자색으로 표시합니다. 오늘 날짜의 제목에는 강조 글자색을 사용합니다.
schedule-events하루의 일정을 시간순으로 눈금의 가는 선 위에 배치합니다. 매시간 가는 선이 하나씩 있고, 날짜 열의 시작 가장자리에도 가는 세로선이 하나 있습니다.
schedule-event--start부터 --end까지 이어지는 일정 하나를 전체 레인 수 --lanes 중 --lane 위치에 표시합니다. 전경색을 옅게 입힌 표면의 시작 가장자리 안쪽에 모서리가 둥근 전경색 막대를 두고, 가는 구분선과 1px 간격을 둡니다. 목록 항목에 직접 적용하거나 그 안의 링크 또는 버튼에 적용합니다. 짧은 일정은 한 줄로 표시합니다.
schedule-title일정의 내용입니다. 한 줄로 표시되며 말줄임표로 끝납니다. 시간 영역, 월간 보기, 목록, 일정 목록 등 일정이 어디에 있든 일정 안에 놓입니다.
schedule-time일정의 시각으로, <time> 요소로 작성합니다. 제목 아래의 차분한 줄에 표시되며, 짧은 일정에서 둘 다 들어갈 공간이 있으면 제목 옆에 표시됩니다. 시간 영역, 월간 보기, 목록, 일정 목록 등 일정이 어디에 있든 일정 안에 놓입니다.
schedule-event-lane시간 영역이 아니라 레인에 배치합니다. --column번째 날부터 --span일 동안 --lane번째 레인에 한 줄 높이로 표시됩니다. 종일 일정 띠, 월간 보기, 일정 목록에 사용합니다.적용할 클래스는 schedule-event입니다
schedule-event-continued이전에 시작한 일정 조각입니다. 시간 영역에서는 위쪽이, 레인에서는 시작 부분이 각지게 표시되며 막대가 없습니다.적용할 클래스는 schedule-event입니다
schedule-event-continues이후에도 이어지는 일정 조각입니다. 시간 영역에서는 아래쪽이, 레인에서는 끝 부분이 각지게 표시됩니다.적용할 클래스는 schedule-event입니다
schedule-event-plain월간 보기나 목록의 짧은 일정입니다. 일정 블록 없이 막대 대신 점을 표시하고 그 뒤에 시간과 제목을 표시합니다.적용할 클래스는 schedule-event입니다
schedule-event-category일정 자체나 그 상위 요소에 지정한 category-<name> 클래스의 카테고리에서 일정 블록, 막대, 텍스트의 색을 가져옵니다적용할 클래스는 schedule-event입니다
schedule-allday날짜 제목 아래에서 날짜 열을 가로지르며 종일 일정을 표시하는 띠입니다. 각 날짜는 --column으로 자신의 열을 지정하고, 일정표는 --schedule-days로 전체 날짜 수를 지정합니다. schedule-allday-label과 레인 일정을 담습니다.
schedule-allday-label시간축 열에 표시되는 “종일” 같은 띠의 이름입니다. aria-hidden을 지정하고, 띠의 이름은 aria-label로 지정합니다.
schedule-month월간 보기입니다. schedule-weeks 위에 schedule-weekdays를 배치합니다. 좁은 공간에서는 각 날짜에 레인 대신 일정마다 점을 하나씩 표시합니다.
schedule-weekdays주 위에 표시되는 요일 이름입니다. 각 날짜의 숫자에 전체 날짜가 이름으로 지정되므로 aria-hidden을 지정합니다.
schedule-weekday요일 이름 하나
schedule-weeks순서대로 나열한 주
schedule-week한 주입니다. 7일로 구성되며, 첫 행에 날짜 숫자, 그 아래 --lanes개 행에 일정, 마지막 행에 더 보기 버튼이 놓입니다. 각 날짜, 그날 시작하는 일정, 더 보기 버튼을 차례로 작성해 날짜 순서대로 읽히게 하세요.
schedule-date하루입니다. --column번째 열에서 주의 맨 위부터 맨 아래까지 이어지는 셀이며, --count는 그날의 일정 수입니다. 오늘에는 aria-current="date"를 지정하세요.
schedule-date-outside이전 달이나 다음 달의 날짜입니다. 옅은 트레이 위에 더 차분한 숫자로 표시됩니다.적용할 클래스는 schedule-date입니다
schedule-date-number날짜 숫자로, 그날을 여는 원형 버튼입니다. 접근 가능한 이름은 전체 날짜와 일정 수입니다. 오늘의 숫자는 잉크 색으로 표시됩니다.
schedule-more레인에 들어가지 못한 그날의 나머지 일정으로, 주의 마지막 행 --column번째 열에 놓입니다. 그날의 일정을 나열하는 팝오버를 엽니다. 접근 가능한 이름은 일정이 몇 개이며 어느 날짜인지 알려 줍니다.
schedule-list일정을 순서대로 레인 일정으로 위아래로 나열합니다. 팝오버에서는 그날의 일정을, 일정 목록에서는 각 날짜의 일정을 나열합니다.
schedule-agenda기간 중 일정이 있는 날짜를 한 행에 하나씩 표시합니다. 행의 시작 부분에 날짜를, 그 옆에 schedule-list를 두며, 좁은 공간에서는 날짜를 목록 위에 둡니다.
schedule-agenda-day일정 목록의 하루입니다. 오늘에는 aria-current="date"를 지정하세요.
schedule-agenda-date그날의 날짜로, 행의 시작 부분이나 팝오버의 하루 일정 목록 위에 놓입니다. 오늘의 날짜는 진한 잉크 색으로 표시됩니다.
schedule-view독자가 직접 조작하는 일정표입니다. schedule-view-body 위에 schedule-view-header를 배치하며, schedule 동작으로 제어합니다.
schedule-view-header조작 영역입니다. 오늘, 이전, 다음 버튼, 기간 이름, 보기 전환 스위치로 구성되며, 좁은 공간에서는 기간 이름이 별도의 줄에 놓입니다.
schedule-view-title“2026년 11월”처럼 표시 중인 기간입니다. 이동했을 때 안내되도록 aria-live="polite"를 지정하세요.
schedule-view-previous보기의 기간 단위로 이전으로 이동합니다
schedule-view-next보기의 기간 단위로 다음으로 이동합니다
schedule-view-today오늘이 포함된 기간으로 이동합니다
schedule-view-switchday, week, month, agenda 값으로 보기를 고르는 라디오 버튼을 담는 세그먼트 컨트롤입니다
schedule-view-body동작이 기간을 작성하는 곳입니다. 일간이나 주간에는 schedule을, 월간에는 schedule-month를, 일정 목록에는 schedule-agenda를 작성합니다.

#사용자 지정 속성

속성기본값설명
--schedule-from8시작 시각은 0부터 24까지의 시간 값이며, 소수도 사용할 수 있습니다.
--schedule-to18일정표의 종료 시각
--schedule-hour3rem한 시간에 해당하는 높이
--schedule-rail3rem시간 레이블 영역의 너비
--schedule-colorvar(--color-surface-inverse)일정의 옅은 배경과 가장자리 막대에 사용하는 색상
--nowschedule-now 선이 표시되는 시각입니다. 예를 들어 13.5는 오후 1시 30분입니다.schedule에 설정합니다
--start일정 시작 시각schedule-event에 설정합니다
--end일정 종료 시각schedule-event에 설정합니다
--lane겹치는 일정 사이에서 해당 일정이 배치되는 위치입니다. 시작 위치와 기본값은 모두 0입니다.schedule-event에 설정합니다
--lanes해당 일정의 시간대에 나란히 배치되는 일정 수입니다. 기본값은 1입니다.schedule-event에 설정합니다
--schedule-days종일 일정 띠가 있는 일정표에서 나란히 놓이는 날짜 열의 수. 기본값은 1입니다schedule에 설정합니다
--column레인에서는 행 안에서 일정이 시작하는 날짜로, 1부터 셉니다. schedule-day, schedule-date, schedule-more에서는 해당 요소의 열입니다schedule-event에 설정합니다
--span레인에서 일정이 행 안에서 차지하는 날짜 수. 기본값은 1입니다schedule-event에 설정합니다
--lanes한 주에 표시하는 일정 레인의 수. 기본값은 3입니다schedule-week에 설정합니다
--count0그날의 일정 수로, 좁은 월간 보기에서 최대 3개의 점으로 표시됩니다schedule-date에 설정합니다

#소스

@master/ui/components/schedule.css
/* * Schedule: a day as hours down a rail, each event as tall as it lasts. * The hours run from --schedule-from to --schedule-to, each --schedule-hour tall, with a hairline at every * hour. A rail of labels stands at the start, each label on the middle of its hairline; it is a picture of the * scale and is hidden from assistive technology. The events of a day are an ordered list: each sets --start * and --end in hours and says its title and its time in words, so the list reads without the drawing. * An event is a quiet sheet of tinted ink with a rounded ink bar standing inside its start, straight from end * to end where an edge drawn along the sheet would bend round its corners. It is inset from the hairlines so that two * events that meet keep a line between them. Events that overlap share the width: --lane is the event's place * and --lanes how many stand side by side. An event is a size container, so a short one keeps its title on * one line, puts the time beside it when there is room, and with no room for a line shows only its sheet. * The event marked aria-current is ink. schedule-now draws an ink line with a dot at --now, through the day * marked aria-current="date", and as a hairline through the other days; it passes under the events, so it * never strikes through their words. * Several days stand side by side as schedule-day columns, each with an optional heading over it. * Everything is placed by the stylesheet; nothing is measured by a script. * * Events that last whole days stand in lanes rather than on the hours: in schedule-allday, a band under the * headings, and in schedule-month, a month as weeks of seven days. Such an event (schedule-event-lane) spans * --span days from day --column on lane --lane; a piece that began in an earlier week or goes on past this one * is schedule-event-continued or schedule-event-continues, with square ends where it goes on. An event of a few * hours in a month is plain: a dot, its time and its title. A day of a month shows three lanes and a * schedule-more button for the rest; in a narrow month the lanes give way to a dot for each event under the day's * number, which opens the day. schedule-agenda lists the same events by day, for a narrow room or a reader who * would rather read than look. A category colors an event's sheet, bar and words (schedule-event-category). * * schedule-view is the schedule a reader works: a header with previous, today and next, the period's name and a * switch between day, week, month and agenda, over a body the schedule behavior writes from the events. */@layer components.ui {  .schedule {    --schedule-from: 8;    --schedule-to: 18;    --schedule-hour: 3rem;    --schedule-rail: 3rem;    --schedule-color: var(--color-surface-inverse);    /* The surface the schedule stands on, which a card or a sheet publishes; the event's tint is mixed with it. */    --schedule-surface: var(--surface-color, var(--color-surface-base));    --schedule-span: calc(var(--schedule-to) - var(--schedule-from));    display: grid;    grid-template-rows: auto calc(var(--schedule-span) * var(--schedule-hour));    grid-template-columns: var(--schedule-rail);    grid-auto-columns: minmax(0, 1fr);    grid-auto-flow: column;    min-width: 0;    margin: 0;    padding-block-end: .5rem;    color: var(--color-text-body);    font: 400 .8125rem/1.25rem var(--font-family-sans);    font-feature-settings: inherit;    font-variant-numeric: tabular-nums;    /* Without headings, the first label stands half above the first hour: keep it in the box. */    &:not(:has(.schedule-heading)) {      padding-block-start: .5rem;    }    /*     * With an all-day band, the headings, the band and the hours are three rows. The band runs across the days, so     * each day names its column with --column, from 1, and the schedule says how many there are in --schedule-days.     */    &:has(.schedule-allday) {      grid-template-rows: auto auto calc(var(--schedule-span) * var(--schedule-hour));      .schedule-rail {        grid-row: 3;      }      .schedule-day {        grid-column: calc(var(--column) + 1);        grid-row: 1 / span 3;      }      .schedule-events {        grid-row: 3;      }    }    /* Now: an ink line across the day, and a dot where it meets the day's edge. */    &.schedule-now .schedule-events {      &::before, &::after {        content: '';        position: absolute;        pointer-events: none;      }      /* The line passes under the events, so it never strikes through their words. */      &::after {        z-index: 0;        top: calc((var(--now, var(--schedule-from)) - var(--schedule-from)) * var(--schedule-hour));        inset-inline: 0;        height: 1px;        background: var(--color-text-strong);      }      &::before {        top: calc((var(--now, var(--schedule-from)) - var(--schedule-from)) * var(--schedule-hour) - 3px);        inset-inline-start: -3px;        width: 7px;        height: 7px;        z-index: 2;        border-radius: 999px;        corner-shape: round;        background: var(--color-text-strong);        box-shadow: 0 0 0 1.5px var(--schedule-surface);      }      @media (forced-colors: active) {        &::before, &::after {          forced-color-adjust: none;          background: CanvasText;        }      }    }    /* When one day is today, the line runs through the others as a hairline, with no dot. */    &.schedule-now:has(.schedule-day[aria-current="date"]) .schedule-day:not([aria-current="date"]) .schedule-events {      &::before {        content: none;      }      &::after {        background: var(--color-line-mark);        /* Kept out of forced colors with the line, so the hairline is the system's gray rather than a faint ink. */        @media (forced-colors: active) {          background: GrayText;        }      }    }    /* The ring that cuts the dot of now out of the line is the canvas, as a chart's and a heatmap's surface is. */    @media (forced-colors: active) {      --schedule-color: CanvasText;      --schedule-surface: Canvas;    }  }  /* The labels of the hours, one to an hour, each centered on its hairline. */  .schedule-rail {    display: grid;    grid-area: 2 / 1;    grid-auto-rows: var(--schedule-hour);    align-content: start;    margin: -.5rem 0 0;    padding: 0;    padding-inline-end: .5rem;    color: var(--color-text-muted);    /* The size of a chart's and a gantt's ticks. */    font-size: .71875rem;    line-height: 1rem;    list-style: none;    text-align: end;    white-space: nowrap;  }  /* One day: its heading over its events, on the schedule's own rows. */  .schedule-day {    display: grid;    grid-row: 1 / span 2;    grid-template-rows: subgrid;    min-width: 0;    margin: 0;  }  /* The name of a day, over its column. Today's takes the strong ink. */  .schedule-heading {    grid-row: 1;    min-width: 0;    margin: 0;    padding-block-end: .75rem;    overflow: hidden;    color: var(--color-text-muted);    font-size: .75rem;    font-weight: var(--font-weight-control);    line-height: 1rem;    text-align: center;    text-overflow: ellipsis;    white-space: nowrap;    .schedule-day[aria-current="date"] & {      color: var(--color-text-strong);    }  }  /*   * The events of a day, and the scale behind them: a hairline at every hour, one down the day's start, and   * the closing hairline under the last hour. The hours begin after the upright line, so no crossing is drawn twice.   */  .schedule-events {    --schedule-inset: 2px;    --schedule-inset-end: .5rem;    --schedule-lane-gap: 3px;    --schedule-line: var(--color-line-hair);    position: relative;    grid-row: 2;    min-width: 0;    margin: 0;    padding: 0;    /* Events, the line of now and a focused event stack inside the day, never over a sticky heading above it. */    isolation: isolate;    background:      linear-gradient(var(--schedule-line), var(--schedule-line)) left / 1px 100% no-repeat,      repeating-linear-gradient(180deg, var(--schedule-line) 0 1px, transparent 1px var(--schedule-hour)) right / calc(100% - 1px) 100% no-repeat;    box-shadow: 0 1px 0 var(--schedule-line);    list-style: none;    &:dir(rtl) {      background:        linear-gradient(var(--schedule-line), var(--schedule-line)) right / 1px 100% no-repeat,        repeating-linear-gradient(180deg, var(--schedule-line) 0 1px, transparent 1px var(--schedule-hour)) left / calc(100% - 1px) 100% no-repeat;    }    /* The hairlines stay, in the system's gray; the events inside keep the system's colors. */    @media (forced-colors: active) {      --schedule-line: GrayText;      forced-color-adjust: none;    }  }  /*   * One event, from --start to --end in hours, in lane --lane of --lanes. It stands a pixel clear of the   * hairline over it and the one under it. It goes on the list item, or on a link or a button inside one.   */  .schedule-event {    --schedule-length: calc((var(--end, 1) - var(--start, 0)) * var(--schedule-hour) - 3px);    --schedule-cell: calc((100% - var(--schedule-inset) - var(--schedule-inset-end) + var(--schedule-lane-gap)) / var(--lanes, 1));    --schedule-tint: color-mix(in oklab, var(--schedule-color) 7%, var(--schedule-surface));    --schedule-edge: color-mix(in oklab, var(--schedule-color) 62%, transparent);    --schedule-bar: 3px;    --schedule-bar-inset: 3px;    position: absolute;    z-index: 1;    top: calc((var(--start, 0) - var(--schedule-from)) * var(--schedule-hour) + 2px);    inset-inline-start: calc(var(--schedule-inset) + var(--lane, 0) * var(--schedule-cell));    container: schedule-event / size;    display: flex;    flex-flow: row wrap;    align-content: flex-start;    column-gap: .375rem;    box-sizing: border-box;    width: calc(var(--schedule-cell) - var(--schedule-lane-gap));    height: max(var(--schedule-length), 2px);    margin: 0;    /* A short event centers its one line; a longer one keeps the same inset at its top. */    padding: clamp(0px, (var(--schedule-length) - 1rem) / 2, .25rem) .375rem;    padding-inline-start: calc(var(--schedule-bar-inset) + var(--schedule-bar) + .3125rem);    border: 0;    border-radius: calc(var(--radius-chip) * var(--corner-scale));    corner-shape: var(--corner-shape);    overflow: hidden;    background: var(--schedule-tint);    color: var(--color-text-strong);    box-shadow: inset 0 0 0 .5px color-mix(in oklab, var(--schedule-color) 12%, transparent);    font: inherit;    font-feature-settings: inherit;    text-align: start;    text-decoration: none;    appearance: none;    -webkit-tap-highlight-color: transparent;    /* A button the behavior writes for an event the page opens answers the pointer as a link does. */    &:enabled {      cursor: pointer;    }    /*     * The bar: 3px wide, 3px in from the start and from the top and bottom, round at both ends, in a firm tint     * of the ink so it marks the event without shouting over its words. On an event too short to hold it     * inset, it comes out to the sheet's edges and stays a line rather than shrinking to a dot.     */    &::before {      content: '';      position: absolute;      inset-block: clamp(0px, (var(--schedule-length) - 12px) / 2, var(--schedule-bar-inset));      inset-inline-start: var(--schedule-bar-inset);      width: var(--schedule-bar);      border-radius: calc(var(--schedule-bar) / 2);      corner-shape: round;      background: var(--schedule-edge);      pointer-events: none;      @media (forced-colors: active) {        forced-color-adjust: none;        background: CanvasText;      }    }    /*     * In a lane: --span days from day --column, on lane --lane, one line high. In a month the first row is the     * day's number; in the all-day band the first column is the rail's.     */    &.schedule-event-lane {      --schedule-length: var(--schedule-lane-height, 1.375rem);      position: relative;      top: auto;      inset-inline-start: auto;      grid-column: calc(var(--column, 1) + var(--schedule-lane-column, 0)) / span var(--span, 1);      grid-row: calc(var(--lane, 0) + var(--schedule-lane-row, 1));      flex-wrap: nowrap;      align-items: center;      align-content: center;      width: auto;      min-width: 0;      height: var(--schedule-length);      margin-inline: 2px;      padding-block: 0;    }    /*     * A piece of an event that began before what is shown, or goes on after it: on the hours, past midnight, its     * top or its bottom is square and the bar runs to that edge; in a lane, past the week, its start or its end.     */    &.schedule-event-continued {      border-start-start-radius: 0;      border-start-end-radius: 0;      &::before {        inset-block-start: 0;        border-start-start-radius: 0;        border-start-end-radius: 0;      }    }    &.schedule-event-continues {      border-end-start-radius: 0;      border-end-end-radius: 0;      &::before {        inset-block-end: 0;        border-end-start-radius: 0;        border-end-end-radius: 0;      }    }    &.schedule-event-lane.schedule-event-continued {      margin-inline-start: 0;      padding-inline-start: .5rem;      border-start-start-radius: 0;      border-end-start-radius: 0;      border-start-end-radius: calc(var(--radius-chip) * var(--corner-scale));      border-end-end-radius: calc(var(--radius-chip) * var(--corner-scale));      /* It is not the start, so it has no bar. */      &::before {        content: none;      }    }    &.schedule-event-lane.schedule-event-continues {      margin-inline-end: 0;      border-start-end-radius: 0;      border-end-end-radius: 0;      &:not(.schedule-event-continued) {        border-start-start-radius: calc(var(--radius-chip) * var(--corner-scale));        border-end-start-radius: calc(var(--radius-chip) * var(--corner-scale));      }      &::before {        inset-block: clamp(0px, (var(--schedule-length) - 12px) / 2, var(--schedule-bar-inset));        border-radius: calc(var(--schedule-bar) / 2);      }    }    /* Plain: an event of a few hours in a month. No sheet, a dot for the bar, then its time and its title. */    &.schedule-event-plain {      --schedule-tint: transparent;      /* The words start as far past the dot as the dot stands in: at the bar's inset they touched it. */      padding-inline-start: calc(.3125rem + 6px + .3125rem);      box-shadow: none;      color: var(--color-text-body);      &::before {        inset-block: calc(50% - 3px);        inset-inline-start: .3125rem;        width: 6px;        height: 6px;        border-radius: 999px;        background: var(--schedule-edge);      }      .schedule-time {        flex: none;        order: -1;      }    }    /* A category: its surface for the sheet, its mark for the bar and its text for the words. */    &.schedule-event-category {      --schedule-tint: var(--category-surface, color-mix(in oklab, var(--schedule-color) 7%, var(--schedule-surface)));      --schedule-edge: var(--category-mark, color-mix(in oklab, var(--schedule-color) 62%, transparent));      color: var(--category-text, var(--color-text-strong));      box-shadow: inset 0 0 0 .5px var(--category-line, color-mix(in oklab, var(--schedule-color) 12%, transparent));      /* A plain event keeps the body's ink: its dot carries the category. */      &.schedule-event-plain {        --schedule-tint: transparent;        box-shadow: none;        color: var(--color-text-body);      }    }    /* Under the pointer the sheet is a step firmer, at once. */    @media (hover: hover) {      &:hover:not([aria-current="true"]) {        --schedule-tint: color-mix(in oklab, var(--schedule-color) 12%, var(--schedule-surface));      }      &.schedule-event-category:hover:not([aria-current="true"]) {        --schedule-tint: color-mix(in oklab, var(--category-mark, var(--schedule-color)) 14%, var(--category-surface, var(--schedule-surface)));      }      &.schedule-event-plain:hover:not([aria-current="true"]) {        --schedule-tint: color-mix(in oklab, var(--schedule-color) 6%, transparent);      }    }    /* The event that matters now, or the one that is open: ink. */    &[aria-current="true"] {      --schedule-edge: color-mix(in oklab, var(--color-text-inverse) 55%, transparent);      background: var(--schedule-color);      color: var(--color-text-inverse);      box-shadow: var(--shadow-ink-top);    }    &:focus-visible, &:has(:focus-visible) {      @apply --focus-ring;      z-index: 3;    }    @media (forced-colors: active) {      forced-color-adjust: auto;      outline: 1px solid CanvasText;      outline-offset: -1px;      &[aria-current="true"] {        forced-color-adjust: none;        background: Highlight;        color: HighlightText;        /* The bar stands on the highlight now, so it takes the highlight's text color, as the words do. */        &::before {          background: HighlightText;        }      }      /* The focus ring is the system's highlight, as every control's is in forced colors. */      &:focus-visible, &:has(:focus-visible) {        outline: 2px solid Highlight;        outline-offset: 2px;      }    }  }  /* What the event is: one line that ends in an ellipsis. */  .schedule-title {    flex: 1 0 100%;    min-width: 0;    margin: 0;    overflow: hidden;    font-size: .75rem;    font-weight: var(--font-weight-control);    line-height: 1rem;    text-overflow: ellipsis;    white-space: nowrap;  }  /* When it is: a quiet line under the title, in tabular figures. */  .schedule-time {    flex: 1 0 100%;    min-width: 0;    margin: 0;    overflow: hidden;    color: var(--color-text-muted);    font-size: .6875rem;    line-height: 1rem;    text-overflow: ellipsis;    white-space: nowrap;    .schedule-event[aria-current="true"] & {      color: color-mix(in oklab, var(--color-text-inverse) 72%, transparent);    }    /* On a category's surface the time keeps the category's text, which is the ink that reads there. */    .schedule-event-category:not([aria-current="true"]) & {      color: inherit;    }    @media (forced-colors: active) {      color: inherit;    }  }  /* A short event: the time beside the title when both fit, and under it, out of sight, when they do not. */  @container schedule-event (height < 2rem) {    .schedule-title, .schedule-time {      flex: 0 1 auto;    }    .schedule-time {      flex-shrink: 0;    }  }  /* Under a line's height: the sheet alone. Its words stay for assistive technology. */  @container schedule-event (height < .875rem) {    .schedule-title, .schedule-time {      opacity: 0;    }  }}@layer components.ui {  /*   * The all-day band: a row under the headings, across the days, with a lane for each event that runs a whole   * day or more. Its first column is the rail's, where its name stands. A hairline closes it above the hours.   */  .schedule-allday {    --schedule-lane-column: 1;    display: grid;    grid-row: 2;    grid-column: 1 / span calc(var(--schedule-days, 1) + 1);    grid-template-columns: subgrid;    grid-auto-rows: 1.375rem;    row-gap: 2px;    align-content: start;    min-height: 1.375rem;    margin: 0 0 .5rem;    padding: 0 0 .375rem;    box-shadow: 0 1px 0 var(--color-line-hair);    list-style: none;    /* The closing hairline is a shadow, which forced colors drop: a line of the system's gray takes a pixel of the padding. */    @media (forced-colors: active) {      padding-block-end: calc(.375rem - 1px);      border-block-end: 1px solid GrayText;    }  }  /* The name of the band, in the rail: "All day". */  .schedule-allday-label {    grid-column: 1;    grid-row: 1;    align-self: center;    padding-inline-end: .5rem;    color: var(--color-text-muted);    font-size: .71875rem;    line-height: 1rem;    text-align: end;    white-space: nowrap;  }  /*   * A month: the names of the weekdays over its weeks. It is a size container, so a narrow month shows each day's   * events as dots under its number and leaves the words to the day it opens.   */  .schedule-month {    --schedule-color: var(--color-surface-inverse);    --schedule-surface: var(--surface-color, var(--color-surface-base));    container: schedule-month / inline-size;    display: grid;    grid-template-columns: minmax(0, 1fr);    min-width: 0;    color: var(--color-text-body);    font: 400 .8125rem/1.25rem var(--font-family-sans);    font-feature-settings: inherit;    font-variant-numeric: tabular-nums;    @media (forced-colors: active) {      --schedule-color: CanvasText;    }  }  .schedule-weekdays {    display: grid;    grid-template-columns: repeat(7, minmax(0, 1fr));    padding-block-end: .5rem;    color: var(--color-text-muted);    font-size: .75rem;    font-weight: var(--font-weight-control);    line-height: 1rem;  }  .schedule-weekday {    min-width: 0;    padding-inline: .5rem;    overflow: hidden;    text-overflow: ellipsis;    white-space: nowrap;  }  .schedule-weeks {    display: grid;    margin: 0;    padding: 0;    box-shadow: 0 -1px 0 var(--color-line-hair);    list-style: none;  }  /*   * A week: seven columns, the day's number on the first row, --lanes rows of events under it, and a row for the   * days that have more than the lanes hold. Each day is a cell from the top to the bottom of the week.   */  .schedule-week {    --schedule-lane-row: 2;    display: grid;    grid-template-columns: repeat(7, minmax(0, 1fr));    grid-template-rows: 2.25rem repeat(var(--lanes, 3), 1.375rem) 1.375rem;    row-gap: 2px;    padding-block-end: .375rem;    box-shadow: 0 1px 0 var(--color-line-hair);  }  /* A day of a month: a cell the height of its week, with a hairline at its end. */  .schedule-date {    --count: 0;    display: flex;    flex-direction: column;    align-items: flex-start;    grid-column: var(--column, 1);    grid-row: 1 / -1;    min-width: 0;    margin-block-end: -.375rem;    padding: .375rem;    /* A hairline at the end of every day but the last of the week, which stands at the month's edge. */    box-shadow: inset calc(-1px * min(1, 7 - var(--column, 1))) 0 0 var(--color-line-hair);    &:dir(rtl) {      box-shadow: inset calc(1px * min(1, 7 - var(--column, 1))) 0 0 var(--color-line-hair);    }    /* A day of the month before or after: a quieter number on a faint tray. */    &.schedule-date-outside {      background: color-mix(in oklab, var(--color-surface-tray) 45%, transparent);      color: var(--color-text-muted);    }    /*     * The month's hairlines are shadows, which forced colors drop: every day is outlined in the system's gray     * instead, half a pixel in, so the outlines of neighbors fall on one line. A day outside the month is gray too.     */    @media (forced-colors: active) {      outline: 1px solid GrayText;      outline-offset: -.5px;      &.schedule-date-outside {        color: GrayText;      }    }  }  /* The day's number: a round button that opens the day. Today's is ink. */  .schedule-date-number {    display: inline-grid;    flex: none;    place-items: center;    min-width: 1.5rem;    height: 1.5rem;    margin: 0;    padding: 0 .3125rem;    border: 0;    border-radius: 999px;    corner-shape: round;    background: transparent;    color: inherit;    font: var(--font-weight-control) .75rem/1 var(--font-family-sans);    font-feature-settings: inherit;    font-variant-numeric: tabular-nums;    text-decoration: none;    appearance: none;    cursor: pointer;    -webkit-tap-highlight-color: transparent;    @media (hover: hover) {      &:hover {        background: var(--color-surface-chip);        color: var(--color-text-strong);      }    }    &:focus-visible {      @apply --focus-ring;    }    .schedule-date[aria-current="date"] & {      background: var(--color-surface-inverse);      color: var(--color-text-inverse);      box-shadow: var(--shadow-ink-top);    }    @media (forced-colors: active) {      .schedule-date[aria-current="date"] & {        forced-color-adjust: none;        background: Highlight;        color: HighlightText;      }      &:focus-visible {        outline-color: Highlight;      }    }  }  /* The rest of a day's events, past its lanes: a quiet button on the week's last row that lists them. */  .schedule-more {    grid-column: var(--column, 1);    grid-row: -2;    justify-self: start;    align-self: center;    margin: 0 2px;    padding: 0 .375rem;    height: 1.25rem;    border: 0;    border-radius: calc(var(--radius-chip) * var(--corner-scale));    corner-shape: var(--corner-shape);    background: transparent;    color: var(--color-text-muted);    font: var(--font-weight-control) .6875rem/1 var(--font-family-sans);    font-feature-settings: inherit;    /* The font shorthand resets the figures the month sets: the count keeps its tabular ones. */    font-variant-numeric: tabular-nums;    white-space: nowrap;    appearance: none;    cursor: pointer;    -webkit-tap-highlight-color: transparent;    /* 20px tall in its lane: on touch its target reaches 24px, as far as the lanes over and under it allow. */    @media (pointer: coarse) {      position: relative;      &::after {        content: '';        position: absolute;        inset: -2px 0;      }    }    @media (hover: hover) {      &:hover {        background: var(--color-surface-chip);        color: var(--color-text-strong);      }    }    &:focus-visible {      @apply --focus-ring;      @media (forced-colors: active) {        outline-color: Highlight;      }    }  }  /* A narrow month: a dot for each event, three at most, under the day's number; the number opens the day. */  @container schedule-month (width < 36rem) {    .schedule-week {      grid-template-rows: 3rem;      padding-block-end: 0;      .schedule-event, .schedule-more {        display: none;      }    }    .schedule-weekday {      padding-inline: 0;      text-align: center;    }    .schedule-date {      align-items: center;      margin-block-end: 0;      padding: .25rem 0;      &::after {        content: '';        width: calc(min(var(--count), 3) * 6px);        height: 4px;        margin-block-start: .1875rem;        background: radial-gradient(circle, var(--color-text-muted) 1.5px, transparent 2px) 0 0 / 6px 4px repeat-x;        /* The dots are a gradient, which forced colors would drop: kept out of them, in the system's text color. */        @media (forced-colors: active) {          forced-color-adjust: none;          background: radial-gradient(circle, CanvasText 1.5px, transparent 2px) 0 0 / 6px 4px repeat-x;        }      }    }    .schedule-date-number {      min-width: 2rem;      height: 2rem;      font-size: .8125rem;      /*       * Here the number is the only way into the day, with no events under it: on touch its target reaches 44px       * tall, short of the next week's, and the number keeps its size. It grows up and down only, since on a phone       * seven days leave a column narrower than 44px.       */      @media (pointer: coarse) {        position: relative;        &::after {          @apply --touch-target-block;        }      }    }  }  /* A list of events, in the order they come: a day's in its popover, and each day's in the agenda. */  .schedule-list {    display: flex;    flex-direction: column;    gap: 2px;    min-width: 0;    margin: 0;    padding: 0;    /* In a day's popover the list stands outside the month: its times keep the tabular figures the month sets. */    font-variant-numeric: tabular-nums;    list-style: none;    .schedule-event {      --schedule-lane-height: 1.625rem;    }  }  /*   * Agenda: the period's days that have events, one to a row: the date at the start, its events beside it. In a   * narrow room the date stands over its events.   */  .schedule-agenda {    --schedule-color: var(--color-surface-inverse);    --schedule-surface: var(--surface-color, var(--color-surface-base));    container: schedule-agenda / inline-size;    display: grid;    margin: 0;    padding: 0;    color: var(--color-text-body);    font: 400 .8125rem/1.25rem var(--font-family-sans);    font-feature-settings: inherit;    font-variant-numeric: tabular-nums;    list-style: none;  }  .schedule-agenda-day {    display: grid;    grid-template-columns: 7rem minmax(0, 1fr);    gap: .25rem 1rem;    padding-block: .75rem;    box-shadow: 0 1px 0 var(--color-line-hair);    &:last-child {      box-shadow: none;    }    /* The hairline between days is a shadow, which forced colors drop: a line of the system's gray takes a pixel of the padding. */    @media (forced-colors: active) {      padding-block-end: calc(.75rem - 1px);      border-block-end: 1px solid GrayText;      &:last-child {        padding-block-end: .75rem;        border-block-end: 0;      }    }  }  .schedule-agenda-date {    margin: 0;    padding-block-start: .1875rem;    color: var(--color-text-muted);    font-size: .75rem;    font-weight: var(--font-weight-control);    line-height: 1.25rem;    .schedule-agenda-day[aria-current="date"] & {      color: var(--color-text-strong);    }  }  @container schedule-agenda (width < 28rem) {    .schedule-agenda-day {      grid-template-columns: minmax(0, 1fr);    }  }  /*   * A schedule a reader works: a header of controls over the body the schedule behavior writes. The header keeps   * the period's name between the turns and the switch, and puts the name on a line of its own when the room is narrow.   */  .schedule-view {    container: schedule-view / inline-size;    display: grid;    grid-template-columns: minmax(0, 1fr);    gap: 1rem;    min-width: 0;  }  .schedule-view-header {    display: flex;    flex-wrap: wrap;    align-items: center;    gap: .5rem .75rem;    min-width: 0;  }  /* The period on show: "November 2026". Announced when it changes. */  .schedule-view-title {    flex: 1 1 auto;    min-width: 0;    margin: 0;    color: var(--color-text-strong);    font: var(--font-weight-control) 1rem/1.5rem var(--font-family-sans);    font-feature-settings: inherit;    font-variant-numeric: tabular-nums;    text-wrap: balance;    overflow-wrap: anywhere;  }  .schedule-view-switch, .schedule-view-today, .schedule-view-previous, .schedule-view-next {    flex: none;  }  /* Back and on point the way the days run: where they run from the right, the square turns round. */  .schedule-view-previous, .schedule-view-next {    &:dir(rtl) {      scale: -1 1;    }  }  @container schedule-view (width < 34rem) {    .schedule-view-title {      flex-basis: 100%;      order: -1;    }    .schedule-view-switch {      margin-inline-start: auto;    }  }  /* The body the behavior writes; it takes the room the header leaves and keeps the schedule's own scrolling. */  .schedule-view-body {    min-width: 0;    &:focus-visible {      @apply --focus-ring;      @media (forced-colors: active) {        outline-color: Highlight;      }    }  }}