{
  "name": "@master/ui",
  "version": null,
  "schema": "https://ui.master.co/contract.schema.json",
  "contracts": [
    {
      "name": "surface",
      "title": "Surface",
      "tier": "component",
      "category": "Materials",
      "description": "Trays, sheets and wells: the material ladder every component is built on.",
      "use": "A panel, a group or a custom layout that shares the light and depth of the components. A tray holds sheets, a sheet is a raised face, a well sits below its surroundings.",
      "instead": [
        {
          "when": "The sheet has media, a header, a body or a footer of actions",
          "use": "card"
        },
        {
          "when": "The sheet opens over the page from a button",
          "use": "popover"
        },
        {
          "when": "The sheet holds a row of quiet controls",
          "use": "toolbar"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "sheet",
          "kind": "root",
          "description": "A raised face with a 16px corner, a half-pixel contour and the lifted shadow"
        },
        {
          "name": "sheet-flat",
          "kind": "modifier",
          "of": "sheet",
          "exclusive": "elevation",
          "description": "One contour and no shadow, for dense lists and tables"
        },
        {
          "name": "sheet-raised",
          "kind": "modifier",
          "of": "sheet",
          "exclusive": "elevation",
          "description": "The raised shadow, one step below the default, for small cards on a busy surface"
        },
        {
          "name": "sheet-floating",
          "kind": "modifier",
          "of": "sheet",
          "exclusive": "elevation",
          "description": "The floating surface and shadow, for popovers and menus over content"
        },
        {
          "name": "sheet-inverse",
          "kind": "modifier",
          "of": "sheet",
          "exclusive": "elevation",
          "description": "A sheet of ink with the inverse text color, for the one surface on a page that asks for something"
        },
        {
          "name": "well",
          "kind": "root",
          "description": "A recessed surface with a 10px corner and an inset shadow"
        },
        {
          "name": "tray",
          "kind": "root",
          "description": "A recessed holder for one or more sheets, with a 4px inset and a 20px corner around their 16px"
        }
      ],
      "properties": [
        {
          "name": "--well-radius",
          "on": "well",
          "default": "var(--radius-control)",
          "description": "Circular radius before the corner scale; use var(--radius-surface) on a well held directly in a tray"
        },
        {
          "name": "--surface-color",
          "on": "sheet",
          "default": "var(--color-surface-raised)",
          "description": "The color of the sheet, read by a ring that cuts a shape out of the surface behind it; a floating and an inverse sheet set their own"
        },
        {
          "name": "--surface-color",
          "on": "well",
          "default": "var(--color-surface-inset)",
          "description": "The color of the well, read by a ring that cuts a shape out of the surface behind it"
        },
        {
          "name": "--surface-color",
          "on": "tray",
          "default": "var(--color-surface-tray)",
          "description": "The color of the tray, read by a ring that cuts a shape out of the surface behind it"
        }
      ],
      "example": "<div class=\"tray\">\n  <div class=\"sheet\">\n    <p>Deployment</p>\n    <div class=\"well\">No builds are queued.</div>\n  </div>\n</div>",
      "stylesheet": "components/surface.css",
      "tokens": [
        "--color-surface-tray",
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-floating",
        "--color-surface-inverse",
        "--color-line-hair",
        "--color-text-body",
        "--color-text-inverse",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-shade-4",
        "--color-ink-highlight",
        "--color-ink-edge",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-lifted",
        "--shadow-floating",
        "--radius-control",
        "--radius-surface"
      ],
      "mixins": [
        "--surface-sheet",
        "--surface-ink",
        "--on-ink"
      ]
    },
    {
      "name": "card",
      "title": "Card",
      "tier": "component",
      "category": "Materials",
      "description": "A raised sheet whose parts follow the room the card is given.",
      "use": "One thing with a title, a description, optional media and actions, on an article, a section or a list item. The same markup works in a sidebar, a grid and a full-width column.",
      "instead": [
        {
          "when": "The surface has no header, media or footer",
          "use": "surface"
        },
        {
          "when": "It shows one figure and what it measures",
          "use": "stat"
        },
        {
          "when": "It is a radio or checkbox option with an explanation",
          "use": "choice"
        },
        {
          "when": "The content is something issued to one person and handed over or redeemed",
          "use": "ticket"
        },
        {
          "when": "It stands for several things of one kind",
          "use": "pile"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "none",
      "classes": [
        {
          "name": "card",
          "kind": "root",
          "description": "The raised sheet and size container; its parts are spaced by 1rem"
        },
        {
          "name": "card-flat",
          "kind": "modifier",
          "of": "card",
          "description": "One contour and no shadow, for cards in a dense list or on a tray"
        },
        {
          "name": "card-interactive",
          "kind": "modifier",
          "of": "card",
          "elements": [
            "a",
            "button"
          ],
          "description": "A card that is one link or button: it lifts under the pointer and sinks when pressed. No other control goes inside it"
        },
        {
          "name": "card-split",
          "kind": "modifier",
          "of": "card",
          "description": "Sets the media beside the content from 28rem of content width, and on top below that"
        },
        {
          "name": "card-link",
          "kind": "part",
          "of": "card",
          "elements": [
            "a"
          ],
          "description": "The main link, on the <a> in the title of a card that also holds other controls: its target covers the card under the description, the body, the action and the footer, which keep their own pointer and text selection. The card lifts while it is under the pointer and its focus rings the card"
        },
        {
          "name": "card-media",
          "kind": "part",
          "of": "card",
          "description": "An image or video at the top, 4px inside the card, 16 / 9 by default"
        },
        {
          "name": "card-header",
          "kind": "part",
          "of": "card",
          "description": "The heading group: a title, a description and an optional action at the end"
        },
        {
          "name": "card-title",
          "kind": "part",
          "of": "card",
          "description": "The title, in the header"
        },
        {
          "name": "card-description",
          "kind": "part",
          "of": "card",
          "description": "A muted line under the title, in the header"
        },
        {
          "name": "card-action",
          "kind": "part",
          "of": "card",
          "description": "A control or a status at the end of the header, beside the title's first line. A badge leaves the description the whole width; a button or a switch keeps a column of its own beside both. Under 15rem of content it moves below the text"
        },
        {
          "name": "card-body",
          "kind": "part",
          "of": "card",
          "description": "Free content"
        },
        {
          "name": "card-footer",
          "kind": "part",
          "of": "card",
          "description": "Actions at the foot, aligned to the end with the main one last; under 15rem of content they stack at full width, the main one first"
        }
      ],
      "states": [
        {
          "on": "card-interactive",
          "name": "disabled",
          "mark": ":disabled",
          "description": "A button card that cannot be pressed now, or a card with aria-disabled=\"true\": it lies flat in a well, in disabled ink, and does not lift"
        }
      ],
      "properties": [
        {
          "name": "--card-padding",
          "default": "1.25rem",
          "description": "Padding around the parts"
        },
        {
          "name": "--card-radius",
          "default": "var(--radius-surface)",
          "description": "Corner radius"
        },
        {
          "name": "--card-media-inset",
          "default": "4px",
          "description": "Space between the media and the card's edge"
        },
        {
          "name": "--card-split",
          "on": "card-split",
          "default": ".4",
          "description": "Share of the width the media takes in a split card"
        }
      ],
      "example": "<article class=\"card\">\n  <header class=\"card-header\">\n    <h3 class=\"card-title\">Atlas</h3>\n    <p class=\"card-description\">atlas.dev · Deployed 2 hours ago</p>\n  </header>\n  <footer class=\"card-footer\">\n    <button type=\"button\" class=\"btn btn-sm\">Logs</button>\n    <button type=\"button\" class=\"btn btn-sm btn-primary\">Visit</button>\n  </footer>\n</article>",
      "stylesheet": "components/card.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-line-image",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-lifted",
        "--shadow-floating",
        "--radius-surface",
        "--font-weight-control",
        "--lift",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "window",
      "title": "Window",
      "tier": "component",
      "category": "Media",
      "description": "The frame of an application around a screenshot, a demo or a terminal.",
      "use": "A screenshot, a short demo or a few lines of a terminal shown as an application window. The frame is decoration: its marks are not buttons.",
      "instead": [
        {
          "when": "A picture needs a caption and no application frame",
          "use": "figure"
        },
        {
          "when": "A window opens over the page and takes focus",
          "use": "dialog"
        },
        {
          "when": "Lines of code need no frame",
          "use": "code"
        },
        {
          "when": "What is shown is the screen of a phone",
          "use": "device"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "classes": [
        {
          "name": "window",
          "kind": "root",
          "description": "The frame: a lifted sheet with a 12px corner that clips what it holds"
        },
        {
          "name": "window-flat",
          "kind": "modifier",
          "of": "window",
          "description": "One contour and no shadow, for a window on a tray or in a dense page"
        },
        {
          "name": "window-bar",
          "kind": "part",
          "of": "window",
          "description": "The bar across the top: marks at the start, a title or an address in the middle, room for a control at the end"
        },
        {
          "name": "window-controls",
          "kind": "part",
          "of": "window",
          "description": "Three marks at the start of the bar, drawn from one empty element; hide it with aria-hidden=\"true\""
        },
        {
          "name": "window-title",
          "kind": "part",
          "of": "window",
          "description": "A title in the middle of the bar, on one line"
        },
        {
          "name": "window-address",
          "kind": "part",
          "of": "window",
          "description": "An address in a small well in the middle of the bar, instead of a title"
        },
        {
          "name": "window-end",
          "kind": "part",
          "of": "window",
          "description": "What stands at the end of the bar"
        },
        {
          "name": "window-body",
          "kind": "part",
          "of": "window",
          "description": "What the window shows: an image, a video, a pre or a div. It has no padding"
        }
      ],
      "properties": [
        {
          "name": "--window-radius",
          "default": "var(--radius-control-lg)",
          "description": "Corner of the frame"
        },
        {
          "name": "--window-bar-height",
          "default": "2.5rem",
          "description": "Height of the bar"
        }
      ],
      "example": "<figure class=\"window\">\n  <div class=\"window-bar\">\n    <span class=\"window-controls\" aria-hidden=\"true\"></span>\n    <span class=\"window-title\">Atlas · Deployments</span>\n  </div>\n  <img class=\"window-body\" src=\"deployments.png\" alt=\"The deployments view of Atlas\">\n</figure>",
      "stylesheet": "components/window.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-line-hair",
        "--color-line-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-highlight",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-lifted",
        "--radius-control-lg",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "ticket",
      "title": "Ticket",
      "tier": "component",
      "category": "Materials",
      "description": "A sheet with a tear line: a pass, a coupon, a receipt and its stub.",
      "use": "Something a person holds and hands over: a boarding pass, an event ticket, a voucher, a receipt. The stub carries what is checked or torn off: a code, a seat, a price. It is a material like a card, and what stands on it is yours.",
      "instead": [
        {
          "when": "The content is not something handed over or redeemed",
          "use": "card"
        },
        {
          "when": "It is one fact with a status in the flow of the page",
          "use": "alert"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "corner-shape: scoop",
          "fallback": "The two faces meet square, without the half-round notches; the perforation alone parts them"
        }
      ],
      "classes": [
        {
          "name": "ticket",
          "kind": "root",
          "description": "The sheet: a body over a stub, on a perforation between two notches"
        },
        {
          "name": "ticket-row",
          "kind": "modifier",
          "of": "ticket",
          "description": "The stub at the end of the body instead of under it, as a coupon has it"
        },
        {
          "name": "ticket-body",
          "kind": "part",
          "of": "ticket",
          "description": "What the ticket is for: a raised face with 20px of padding that takes the room the stub leaves"
        },
        {
          "name": "ticket-stub",
          "kind": "part",
          "of": "ticket",
          "description": "What is checked or torn off, beyond the perforation"
        }
      ],
      "properties": [
        {
          "name": "--ticket-radius",
          "default": "var(--radius-surface)",
          "description": "The sheet's corner"
        },
        {
          "name": "--ticket-notch",
          "default": ".5rem",
          "description": "Radius of the notch at each end of the tear line"
        },
        {
          "name": "--ticket-padding",
          "default": "1.25rem",
          "description": "Padding of the body and the stub"
        }
      ],
      "example": "<article class=\"ticket\">\n  <div class=\"ticket-body\">Taipei to Tokyo, 12 November</div>\n  <div class=\"ticket-stub\">Seat 14A</div>\n</article>",
      "stylesheet": "components/ticket.css",
      "tokens": [
        "--color-surface-raised",
        "--color-line-strong",
        "--color-text-body",
        "--shadow-raised",
        "--radius-surface"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "pile",
      "title": "Pile",
      "tier": "component",
      "category": "Materials",
      "description": "Several things shown as one, with the edges of the others under it.",
      "use": "A group collapsed to its first member: notifications of one kind, files sent together, drafts of one document. The pile holds one surface and draws two more behind it. The sheets under the top one are decoration, so say how many there are in words.",
      "instead": [
        {
          "when": "Every member should be seen",
          "use": "list"
        },
        {
          "when": "The members are people",
          "use": "avatar"
        },
        {
          "when": "The members are slides to step through",
          "use": "carousel"
        }
      ],
      "composes": [
        "card"
      ],
      "script": "none",
      "classes": [
        {
          "name": "pile",
          "kind": "root",
          "description": "The holder of the top surface: two sheets lie behind it, each 8px in on both sides and 6px lower than the one above"
        }
      ],
      "properties": [
        {
          "name": "--pile-radius",
          "default": "var(--radius-surface)",
          "description": "The corner of the sheets under the top one; set it to the top surface's own corner"
        },
        {
          "name": "--pile-step",
          "default": ".375rem",
          "description": "How far each sheet shows below the one above it"
        },
        {
          "name": "--pile-inset",
          "default": ".5rem",
          "description": "How far each sheet is in from the one above it, on both sides"
        }
      ],
      "example": "<div class=\"pile\">\n  <article class=\"card\">\n    <header class=\"card-header\">\n      <h3 class=\"card-title\">3 deployments failed</h3>\n      <p class=\"card-description\">atlas.dev, in the last hour</p>\n    </header>\n  </article>\n</div>",
      "stylesheet": "components/pile.css",
      "tokens": [
        "--color-surface-raised-low",
        "--color-shade-2",
        "--shadow-flat",
        "--radius-surface"
      ],
      "mixins": []
    },
    {
      "name": "device",
      "title": "Device",
      "tier": "component",
      "category": "Media",
      "description": "The body of a phone around a screenshot, a video or a running demo.",
      "use": "Showing a small-screen interface on a page: a screenshot in a hero, a recording, a live preview. The frame is one material with no color of its own, so it suits any picture and both themes. Resize it with --device-width, so the corner and the bezel follow.",
      "instead": [
        {
          "when": "What is shown is a desktop application, a site or a terminal",
          "use": "window"
        },
        {
          "when": "The picture needs a caption and no frame",
          "use": "figure"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "device",
          "kind": "root",
          "description": "The body: a lifted sheet 280px wide and 9 by 19.5, with a narrow bezel, the camera's well and the side buttons. The buttons stand 2px proud of the body inside the element's own box, so nothing is drawn outside it"
        },
        {
          "name": "device-screen",
          "kind": "part",
          "of": "device",
          "description": "The screen, on an image, a video, a frame or a block of markup: it fills the body inside the bezel and is finished by a corner concentric with the body's"
        }
      ],
      "properties": [
        {
          "name": "--device-width",
          "default": "17.5rem",
          "description": "The body's width; the corner and the bezel are measured from it"
        },
        {
          "name": "--device-ratio",
          "default": "9 / 19.5",
          "description": "The body's proportions"
        },
        {
          "name": "--device-radius",
          "default": "calc(var(--device-width) * .14)",
          "description": "The body's corner, as a circular radius"
        },
        {
          "name": "--device-bezel",
          "default": "calc(var(--device-width) * .03)",
          "description": "Width of the frame around the screen"
        }
      ],
      "example": "<div class=\"device\">\n  <img class=\"device-screen\" src=\"/screens/today.png\" alt=\"The Today view: three tasks under a date\">\n</div>",
      "stylesheet": "components/device.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-raised-low",
        "--color-surface-inset",
        "--color-line-hair",
        "--color-line-strong",
        "--color-line-image-strong",
        "--shadow-pressed",
        "--shadow-lifted"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "hotspot",
      "title": "Hotspot",
      "tier": "component",
      "category": "Media",
      "description": "Points on a picture that say what is there.",
      "use": "A product photo, a screenshot or a floor plan with a few places worth explaining. Each pin is a button placed at --x and --y of the picture, in percent, and opens what a button opens: a popover with popovertarget. Name every pin, and list the same points in the text for a reader who cannot see the picture.",
      "instead": [
        {
          "when": "One caption is enough for the whole picture",
          "use": "figure"
        },
        {
          "when": "Two pictures are compared",
          "use": "compare"
        },
        {
          "when": "The picture should open large",
          "use": "lightbox"
        }
      ],
      "composes": [
        "popover"
      ],
      "script": "none",
      "classes": [
        {
          "name": "hotspot",
          "kind": "root",
          "description": "The frame around a picture, as wide as the picture: pins are placed against it"
        },
        {
          "name": "hotspot-pin",
          "kind": "part",
          "of": "hotspot",
          "elements": [
            "button",
            "a"
          ],
          "label": true,
          "description": "One pin, on a button with an accessible name: a 24px disc of ink with a white rim, whose middle stands at --x and --y. It may hold a number. A ring leaves it now and then, and rests while the pin is under the pointer or has focus"
        }
      ],
      "properties": [
        {
          "name": "--x",
          "on": "hotspot-pin",
          "description": "The pin's place across the picture, in percent from its left edge"
        },
        {
          "name": "--y",
          "on": "hotspot-pin",
          "description": "The pin's place down the picture, in percent from its top edge"
        }
      ],
      "example": "<div class=\"hotspot\">\n  <img src=\"/product/lamp.jpg\" alt=\"A desk lamp with a brass arm\" width=\"640\" height=\"480\">\n  <button class=\"hotspot-pin\" type=\"button\" style=\"--x: 62%; --y: 30%\" popovertarget=\"lamp-arm\" aria-label=\"The arm\">1</button>\n  <div class=\"popover\" id=\"lamp-arm\" popover>Solid brass, with one joint at the base.</div>\n</div>",
      "stylesheet": "components/hotspot.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-text-inverse",
        "--color-focus",
        "--color-on-image",
        "--color-on-image-shade",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "divider",
      "title": "Divider",
      "tier": "component",
      "category": "Materials",
      "description": "One hairline between sections, with an optional label.",
      "use": "A line between two sections, on an hr or an element with role=\"separator\", after spacing and grouping have done what they can.",
      "instead": [
        {
          "when": "The line stands between groups of controls in a toolbar",
          "use": "toolbar"
        },
        {
          "when": "The line is a handle that resizes two panes",
          "use": "splitter"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "divider",
          "kind": "root",
          "description": "A 1px rule in --color-line-divider"
        },
        {
          "name": "divider-vertical",
          "kind": "modifier",
          "of": "divider",
          "exclusive": "form",
          "description": "A rule between items in a row; it takes the row's height"
        },
        {
          "name": "divider-label",
          "kind": "modifier",
          "of": "divider",
          "exclusive": "form",
          "attributes": {
            "role": "separator"
          },
          "description": "The line parts around a caption such as \"or\". An hr cannot hold text, so it goes on an element with role=\"separator\""
        }
      ],
      "example": "<hr class=\"divider\">",
      "stylesheet": "components/divider.css",
      "tokens": [
        "--color-line-divider",
        "--color-text-muted"
      ],
      "mixins": []
    },
    {
      "name": "texture",
      "title": "Texture",
      "tier": "component",
      "category": "Materials",
      "description": "Dots, a grid, stripes, a crosshatch and a checker, drawn across the face of a surface.",
      "use": "Room that holds no content and has to say what it is: a stage a specimen stands on, a measured canvas, a slot kept empty, a time that cannot be chosen, the ground under a transparent picture. The drawing stands on the color the element already has.",
      "instead": [
        {
          "when": "The room is empty because there is nothing to show yet, and it has words to say so",
          "use": "empty"
        },
        {
          "when": "The room is waiting for content that is loading",
          "use": "skeleton"
        },
        {
          "when": "One line parts two sections",
          "use": "divider"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "texture",
          "kind": "root",
          "description": "Dots: one point a tile, the field a specimen is seen against"
        },
        {
          "name": "texture-grid",
          "kind": "modifier",
          "of": "texture",
          "exclusive": "drawing",
          "description": "Ruled squares, for room that is measured"
        },
        {
          "name": "texture-stripes",
          "kind": "modifier",
          "of": "texture",
          "exclusive": "drawing",
          "description": "Diagonal hairlines, for room that is kept empty: a gutter, a clear space, a slot nothing fills"
        },
        {
          "name": "texture-crosshatch",
          "kind": "modifier",
          "of": "texture",
          "exclusive": "drawing",
          "description": "Hairlines both ways, for room that cannot be used: a blocked time, a range out of bounds"
        },
        {
          "name": "texture-checker",
          "kind": "modifier",
          "of": "texture",
          "exclusive": "drawing",
          "description": "Alternate squares, the ground under something transparent"
        },
        {
          "name": "texture-fade",
          "kind": "modifier",
          "of": "texture",
          "description": "The drawing thins out toward the edges. It masks what the element holds too, so it goes on an element of its own"
        }
      ],
      "properties": [
        {
          "name": "--texture-ink",
          "on": "texture",
          "default": "var(--color-texture)",
          "description": "The color of the marks. Rules and squares are drawn at half of it"
        },
        {
          "name": "--texture-size",
          "on": "texture",
          "default": "12px",
          "description": "The side of one tile: 12px for dots, 24px for a grid, 8px for stripes and a crosshatch, 16px for a checker"
        },
        {
          "name": "--texture-weight",
          "on": "texture",
          "default": "1px",
          "description": "The radius of a dot or the width of a rule; a stripe's is .5px. A checker has none"
        },
        {
          "name": "--texture-image",
          "on": "texture",
          "description": "The drawing itself, to lay under another image or to use as a mask. A crosshatch is two layers"
        }
      ],
      "example": "<div class=\"texture texture-stripes\" role=\"img\" aria-label=\"Reserved\"></div>",
      "stylesheet": "components/texture.css",
      "tokens": [
        "--color-texture"
      ],
      "mixins": []
    },
    {
      "name": "category",
      "title": "Category",
      "tier": "component",
      "category": "Materials",
      "description": "Named colors that tell which category a piece of data belongs to.",
      "use": "A project, a calendar, a label or any set of data told apart by color, always beside its name. Put a category-<name> class on the row, card or event that belongs to the category, or on the part itself; badge-category, chip-category, schedule-event-category and icon-frame-category read it, and nothing else does. A status (done, failing, at risk) is a tone such as badge-success, not a category.",
      "instead": [
        {
          "when": "The color says how something is (success, warning, danger), not what it belongs to",
          "use": "badge"
        },
        {
          "when": "The color is the content itself, such as a paint or a theme being chosen",
          "use": "swatch"
        }
      ],
      "composes": [
        "badge",
        "chip"
      ],
      "script": "none",
      "classes": [
        {
          "name": "category-stone",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the stone category for this element and what it holds"
        },
        {
          "name": "category-gray",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the gray category for this element and what it holds"
        },
        {
          "name": "category-zinc",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the zinc category for this element and what it holds"
        },
        {
          "name": "category-neutral",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the neutral category for this element and what it holds"
        },
        {
          "name": "category-slate",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the slate category for this element and what it holds"
        },
        {
          "name": "category-brown",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the brown category for this element and what it holds"
        },
        {
          "name": "category-orange",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the orange category for this element and what it holds"
        },
        {
          "name": "category-amber",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the amber category for this element and what it holds"
        },
        {
          "name": "category-yellow",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the yellow category for this element and what it holds"
        },
        {
          "name": "category-lime",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the lime category for this element and what it holds"
        },
        {
          "name": "category-green",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the green category for this element and what it holds"
        },
        {
          "name": "category-beryl",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the beryl category for this element and what it holds"
        },
        {
          "name": "category-teal",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the teal category for this element and what it holds"
        },
        {
          "name": "category-cyan",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the cyan category for this element and what it holds"
        },
        {
          "name": "category-sky",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the sky category for this element and what it holds"
        },
        {
          "name": "category-blue",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the blue category for this element and what it holds"
        },
        {
          "name": "category-indigo",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the indigo category for this element and what it holds"
        },
        {
          "name": "category-violet",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the violet category for this element and what it holds"
        },
        {
          "name": "category-purple",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the purple category for this element and what it holds"
        },
        {
          "name": "category-fuchsia",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the fuchsia category for this element and what it holds"
        },
        {
          "name": "category-pink",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the pink category for this element and what it holds"
        },
        {
          "name": "category-crimson",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the crimson category for this element and what it holds"
        },
        {
          "name": "category-red",
          "kind": "root",
          "exclusive": "category",
          "description": "Sets the red category for this element and what it holds"
        }
      ],
      "properties": [
        {
          "name": "--category-surface",
          "on": "category-blue",
          "description": "The tinted surface of a category part. Set by every category-<name> class; a part without one falls back to its neutral surface"
        },
        {
          "name": "--category-text",
          "on": "category-blue",
          "description": "Text on the category surface; 4.5:1 against it and against the base and raised faces"
        },
        {
          "name": "--category-line",
          "on": "category-blue",
          "description": "A decorative contour around the category surface; it is never the only edge of a control"
        },
        {
          "name": "--category-mark",
          "on": "category-blue",
          "description": "A dot or a bar that marks the category; 3:1 against the category surface and the base and raised faces"
        }
      ],
      "example": "<span class=\"badge badge-category category-violet\">Research</span>",
      "stylesheet": "components/category.css",
      "tokens": [
        "--color-category-stone-surface",
        "--color-category-stone-text",
        "--color-category-stone-line",
        "--color-category-stone-mark",
        "--color-category-gray-surface",
        "--color-category-gray-text",
        "--color-category-gray-line",
        "--color-category-gray-mark",
        "--color-category-zinc-surface",
        "--color-category-zinc-text",
        "--color-category-zinc-line",
        "--color-category-zinc-mark",
        "--color-category-neutral-surface",
        "--color-category-neutral-text",
        "--color-category-neutral-line",
        "--color-category-neutral-mark",
        "--color-category-slate-surface",
        "--color-category-slate-text",
        "--color-category-slate-line",
        "--color-category-slate-mark",
        "--color-category-brown-surface",
        "--color-category-brown-text",
        "--color-category-brown-line",
        "--color-category-brown-mark",
        "--color-category-orange-surface",
        "--color-category-orange-text",
        "--color-category-orange-line",
        "--color-category-orange-mark",
        "--color-category-amber-surface",
        "--color-category-amber-text",
        "--color-category-amber-line",
        "--color-category-amber-mark",
        "--color-category-yellow-surface",
        "--color-category-yellow-text",
        "--color-category-yellow-line",
        "--color-category-yellow-mark",
        "--color-category-lime-surface",
        "--color-category-lime-text",
        "--color-category-lime-line",
        "--color-category-lime-mark",
        "--color-category-green-surface",
        "--color-category-green-text",
        "--color-category-green-line",
        "--color-category-green-mark",
        "--color-category-beryl-surface",
        "--color-category-beryl-text",
        "--color-category-beryl-line",
        "--color-category-beryl-mark",
        "--color-category-teal-surface",
        "--color-category-teal-text",
        "--color-category-teal-line",
        "--color-category-teal-mark",
        "--color-category-cyan-surface",
        "--color-category-cyan-text",
        "--color-category-cyan-line",
        "--color-category-cyan-mark",
        "--color-category-sky-surface",
        "--color-category-sky-text",
        "--color-category-sky-line",
        "--color-category-sky-mark",
        "--color-category-blue-surface",
        "--color-category-blue-text",
        "--color-category-blue-line",
        "--color-category-blue-mark",
        "--color-category-indigo-surface",
        "--color-category-indigo-text",
        "--color-category-indigo-line",
        "--color-category-indigo-mark",
        "--color-category-violet-surface",
        "--color-category-violet-text",
        "--color-category-violet-line",
        "--color-category-violet-mark",
        "--color-category-purple-surface",
        "--color-category-purple-text",
        "--color-category-purple-line",
        "--color-category-purple-mark",
        "--color-category-fuchsia-surface",
        "--color-category-fuchsia-text",
        "--color-category-fuchsia-line",
        "--color-category-fuchsia-mark",
        "--color-category-pink-surface",
        "--color-category-pink-text",
        "--color-category-pink-line",
        "--color-category-pink-mark",
        "--color-category-crimson-surface",
        "--color-category-crimson-text",
        "--color-category-crimson-line",
        "--color-category-crimson-mark",
        "--color-category-red-surface",
        "--color-category-red-text",
        "--color-category-red-line",
        "--color-category-red-mark"
      ],
      "mixins": []
    },
    {
      "name": "scroll-area",
      "title": "Scroll area",
      "tier": "component",
      "category": "Structure",
      "description": "A scrolling region whose edges fade where content continues, and that can follow what arrives at its end.",
      "use": "A region that scrolls inside the page: a long list in a panel, a wide table, a log. Give it a height or a maximum height, and tabindex=\"0\", a role and a label unless it holds focusable content. A region that grows at its end while it is read (a chat, a build log, a streamed answer) takes role=\"log\" and the follow behavior, which keeps the end in view until the reader scrolls away.",
      "instead": [
        {
          "when": "The row of items snaps from one slide to the next",
          "use": "carousel"
        },
        {
          "when": "Two regions share the space and each scrolls by itself",
          "use": "splitter"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "optional",
      "behavior": "follow",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowDown, PageUp, PageDown, Home, End",
          "action": "Scroll the focused region, as the browser does"
        },
        {
          "keys": "ArrowUp, PageUp, Home",
          "action": "With the follow behavior: scrolling toward the start stops following and shows the scroll-area-latest button"
        },
        {
          "keys": "End",
          "action": "With the follow behavior: back at the end, the region follows again"
        },
        {
          "keys": "Enter, Space",
          "action": "On scroll-area-latest: scroll to the end and follow again, as a button does"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations (animation-timeline: scroll())",
          "fallback": "The region scrolls the same and its edges stay clean, with no fade"
        },
        {
          "feature": "Scroll anchoring (overflow-anchor)",
          "fallback": "The follow behavior keeps the reader's place itself when content is inserted above it"
        }
      ],
      "classes": [
        {
          "name": "scroll-area",
          "kind": "root",
          "description": "A region that scrolls along the block axis, with a thin scrollbar and edges that fade where content continues"
        },
        {
          "name": "scroll-area-inline",
          "kind": "modifier",
          "of": "scroll-area",
          "description": "Scrolls along the inline axis and fades the start and end edges"
        },
        {
          "name": "scroll-area-latest",
          "kind": "part",
          "of": "scroll-area",
          "elements": [
            "button"
          ],
          "description": "On a btn after the region's content: the way back to the end of a region that follows. Sticky at the foot over the content, above the fade; the behavior gives it hidden while the region follows"
        }
      ],
      "states": [
        {
          "on": "scroll-area-latest",
          "name": "following",
          "mark": "hidden",
          "description": "The region follows its end, so the way back to it is hidden"
        }
      ],
      "properties": [
        {
          "name": "--scroll-area-fade",
          "default": "1.5rem",
          "description": "Length of the fade at each edge"
        }
      ],
      "example": "<div class=\"scroll-area h(200)\" tabindex=\"0\" role=\"region\" aria-label=\"Release notes\">\n  <p>2.1 adds overlays that need no script.</p>\n  <p>Dialogs open with invoker commands and trap focus on their own.</p>\n  <p>Popovers, menus and tooltips are placed with anchor positioning and flip at the viewport edge.</p>\n</div>",
      "stylesheet": "components/scroll-area.css",
      "tokens": [
        "--color-line-strong"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "reveal",
      "title": "Reveal",
      "tier": "component",
      "category": "Structure",
      "description": "Content that arrives as it scrolls into view.",
      "use": "A section, a card or a picture on a long page that should come in as the reader reaches it. The scroll position is the clock: nothing observes the element and no class is added. Use it on whole blocks, sparingly, and never on text a reader needs at once.",
      "instead": [
        {
          "when": "Content is loading, not scrolling in",
          "use": "skeleton"
        },
        {
          "when": "A row should keep passing by",
          "use": "marquee"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Scroll-driven animations (animation-timeline: view())",
          "fallback": "The content is simply there, as it is for a reader who asks for reduced motion"
        }
      ],
      "classes": [
        {
          "name": "reveal",
          "kind": "root",
          "description": "An element that fades in and rises 16px while its first stretch enters the viewport, and is at rest from then on"
        }
      ],
      "properties": [
        {
          "name": "--reveal-distance",
          "default": "1rem",
          "description": "How far it rises; 0 for a fade alone"
        },
        {
          "name": "--reveal-scale",
          "default": "1",
          "description": "The size it arrives from, such as .96 for a picture"
        },
        {
          "name": "--reveal-range",
          "default": "12rem",
          "description": "How much of the element has entered when it has arrived; an element shorter than this has arrived once all of it is in view"
        }
      ],
      "example": "<section class=\"reveal\">\n  <h2>Built on the platform</h2>\n  <p>Every overlay is a native element.</p>\n</section>",
      "stylesheet": "components/reveal.css",
      "tokens": [
        "--easing-glide"
      ],
      "mixins": []
    },
    {
      "name": "icon",
      "title": "Icon",
      "tier": "component",
      "category": "Content",
      "description": "Size inline icons through the component that holds them.",
      "use": "An svg, an img or an icon component inside a control or a line of text. The component around it sets the size and the drawing keeps its own stroke; hide a decorative icon with aria-hidden=\"true\". The default set is Master Icons: pick its 16, 20 or 24 drawing by that size.",
      "instead": [
        {
          "when": "The mark says that work is under way",
          "use": "spinner"
        },
        {
          "when": "The picture is a person or a team",
          "use": "avatar"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "icon",
          "kind": "root",
          "description": "An inline icon sized by --icon-size, 1em outside a component, set slightly below the baseline"
        }
      ],
      "properties": [
        {
          "name": "--icon-size",
          "description": "Width and height. The component that holds the icon sets it; without one it is 1em"
        },
        {
          "name": "--icon-stroke",
          "description": "Replaces the stroke width the drawing carries, in the units of its viewBox. Not set, the icon keeps its own width; fill icons are unaffected"
        },
        {
          "name": "--icon-color",
          "description": "Color of the icon. A component sets it to quiet or tint its icons; without one the icon takes the text color"
        }
      ],
      "example": "<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=\"M3 8L13 8\"/><path d=\"M8 3L8 13\"/></svg>",
      "stylesheet": "components/icon.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "icon-frame",
      "title": "Icon frame",
      "tier": "component",
      "category": "Content",
      "description": "A small well that holds an icon at its size beside a heading.",
      "use": "An icon that names the kind of thing a section, a feature, an empty view or a notice is about, set in a material so it reads as a mark rather than a stray glyph. It is decoration: hide it with aria-hidden and let the heading beside it say what it means. It is not a control; a button with an icon is a btn-square.",
      "instead": [
        {
          "when": "The icon is pressed to do something",
          "use": "button"
        },
        {
          "when": "The icon sits inside a line of text or a control",
          "use": "icon"
        },
        {
          "when": "The picture is a person or a team",
          "use": "avatar"
        }
      ],
      "composes": [
        "icon",
        "category"
      ],
      "script": "none",
      "classes": [
        {
          "name": "icon-frame",
          "kind": "root",
          "description": "A 48px well pressed into the surface, holding a 20px icon"
        },
        {
          "name": "icon-frame-xs",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "size",
          "description": "32px with a 16px icon and the small control's corner"
        },
        {
          "name": "icon-frame-sm",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "size",
          "description": "40px with a 20px icon and the control's corner"
        },
        {
          "name": "icon-frame-lg",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "size",
          "description": "64px with a 28px icon and the surface's corner"
        },
        {
          "name": "icon-frame-raised",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "A small raised sheet instead of a well, for a frame that stands on a well, a tray or a busy surface"
        },
        {
          "name": "icon-frame-info",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "A wash of the info hue, beside words that say the same"
        },
        {
          "name": "icon-frame-success",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "A wash of the success hue, beside words that say the same"
        },
        {
          "name": "icon-frame-warning",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "A wash of the warning hue, beside words that say the same"
        },
        {
          "name": "icon-frame-danger",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "A wash of the danger hue, beside words that say the same"
        },
        {
          "name": "icon-frame-category",
          "kind": "modifier",
          "of": "icon-frame",
          "exclusive": "tone",
          "description": "The surface, line and text of the category set by a category-<name> class on it or around it; neutral without one"
        }
      ],
      "properties": [
        {
          "name": "--icon-frame-size",
          "default": "3rem",
          "description": "The width and height of the frame"
        },
        {
          "name": "--icon-frame-radius",
          "default": "var(--radius-control-lg)",
          "description": "The corner, before the corner scale"
        }
      ],
      "example": "<span class=\"icon-frame\" aria-hidden=\"true\">\n  <svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.3333 4.1667L16.6667 4.1667\"/><path d=\"M3.3333 7.9167L11.6667 7.9167\"/><path d=\"M3.3333 11.6667L16.6667 11.6667\"/><path d=\"M3.3333 15.4167L11.6667 15.4167\"/></svg>\n</span>",
      "stylesheet": "components/icon-frame.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-line-contour",
        "--color-text-strong",
        "--color-text-muted",
        "--color-info",
        "--color-success",
        "--color-warning",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-control-sm",
        "--radius-control",
        "--radius-control-lg",
        "--radius-surface"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "button",
      "title": "Button",
      "tier": "component",
      "category": "Actions",
      "description": "A raised control that lifts on hover and sinks when pressed.",
      "use": "An action in the page: save, open, confirm, toggle. One primary button per view; the rest stay plain or quiet.",
      "instead": [
        {
          "when": "It goes to another page and reads as part of a sentence",
          "use": "link"
        },
        {
          "when": "It picks one of a few options that stay visible",
          "use": "segmented"
        },
        {
          "when": "It turns a setting on or off at once",
          "use": "switch"
        }
      ],
      "composes": [
        "icon",
        "spinner"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "Activates the button, as the native element does"
        }
      ],
      "classes": [
        {
          "name": "btn",
          "kind": "root",
          "description": "The raised base button",
          "elements": [
            "button",
            "a",
            "summary",
            "label",
            "input"
          ]
        },
        {
          "name": "btn-primary",
          "kind": "modifier",
          "of": "btn",
          "exclusive": "face",
          "description": "Ink on moonstone, pearl on obsidian: the main action of a view. With btn-danger it fills with the danger hue to confirm a destructive act"
        },
        {
          "name": "btn-quiet",
          "kind": "modifier",
          "of": "btn",
          "exclusive": "face",
          "description": "No material until touched, for toolbars, headers and dense rows"
        },
        {
          "name": "btn-brand",
          "kind": "modifier",
          "of": "btn",
          "exclusive": "face",
          "description": "The one hued control, filled from --color-brand; at most one per view"
        },
        {
          "name": "btn-danger",
          "kind": "modifier",
          "of": "btn",
          "description": "The danger ink on the label of a destructive action"
        },
        {
          "name": "btn-sm",
          "kind": "modifier",
          "of": "btn",
          "exclusive": "size",
          "description": "32px tall; the default is 38px"
        },
        {
          "name": "btn-lg",
          "kind": "modifier",
          "of": "btn",
          "exclusive": "size",
          "description": "44px tall; the default is 38px"
        },
        {
          "name": "btn-square",
          "kind": "modifier",
          "of": "btn",
          "label": true,
          "description": "A square button for one icon; it needs an accessible name"
        },
        {
          "name": "btn-pill",
          "kind": "modifier",
          "of": "btn",
          "description": "Fully rounded ends"
        },
        {
          "name": "btn-hang-start",
          "kind": "modifier",
          "of": "btn",
          "description": "On a quiet button at the start of a bar or a header with no contour: its box reaches into the padding so its glyph meets the edge the content starts on"
        },
        {
          "name": "btn-hang-end",
          "kind": "modifier",
          "of": "btn",
          "description": "The same at the end: the glyph meets the edge the content ends on"
        },
        {
          "name": "btn-group",
          "kind": "root",
          "description": "A container that joins its buttons into one shape"
        }
      ],
      "states": [
        {
          "on": "btn",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link: a flat well with disabled ink"
        },
        {
          "on": "btn",
          "name": "busy",
          "mark": "aria-busy=\"true\"",
          "description": "Keeps its label, stops lifting; put a spinner beside the label"
        },
        {
          "on": "btn",
          "name": "pressed",
          "mark": "aria-pressed=\"true\"",
          "description": "A quiet toggle that is on stays sunk into a well"
        },
        {
          "on": "btn",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "A quiet button that is the current page stays sunk"
        }
      ],
      "properties": [
        {
          "name": "--btn-height",
          "default": "2.375rem",
          "description": "Minimum block size"
        },
        {
          "name": "--btn-padding-x",
          "default": "1rem",
          "description": "Inline padding"
        },
        {
          "name": "--btn-gap",
          "default": ".5rem",
          "description": "Space between icon and label"
        },
        {
          "name": "--btn-font-size",
          "default": ".84375rem",
          "description": "Label size"
        },
        {
          "name": "--btn-radius",
          "default": "var(--radius-control)",
          "description": "Corner radius: 10px, with 8px for small and 12px for large buttons"
        },
        {
          "name": "--icon-size",
          "default": "1rem",
          "description": "Size of an icon inside the button"
        }
      ],
      "example": "<button type=\"button\" class=\"btn btn-primary\">Save changes</button>",
      "stylesheet": "components/button.css",
      "tokens": [
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--color-danger",
        "--color-brand",
        "--color-brand-ink",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--radius-control-sm",
        "--radius-control",
        "--radius-control-lg",
        "--font-weight-control",
        "--lift",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--control-ink",
        "--control-ink-hover",
        "--control-ink-pressed",
        "--control-tone",
        "--control-tone-hover",
        "--control-tone-pressed",
        "--on-ink",
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "toolbar",
      "title": "Toolbar",
      "tier": "component",
      "category": "Actions",
      "description": "A small raised sheet that holds a row of quiet controls.",
      "use": "A row of small quiet buttons, selects and segmented controls that act on one thing: formatting tools, a selection bar. Give the container role=\"toolbar\", a label and focusgroup=\"toolbar wrap\"; with the behavior it is one stop in the tab order.",
      "instead": [
        {
          "when": "The buttons join into one shape and need no sheet",
          "use": "button"
        },
        {
          "when": "The row picks one of a few options",
          "use": "segmented"
        },
        {
          "when": "The bar is the top of the page and holds navigation",
          "use": "navbar"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "optional",
      "behavior": "toolbar",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Enter the toolbar on the control focused last, or the first, and leave it; without a script or focusgroup every control is a stop"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Move to the control before or after, wrapping at the ends; the other way around from right to left. ArrowUp and ArrowDown in a toolbar with aria-orientation=\"vertical\""
        },
        {
          "keys": "Home, End",
          "action": "Move to the first or the last control"
        },
        {
          "keys": "Enter, Space",
          "action": "Press a button; one with aria-pressed turns on or off"
        }
      ],
      "platform": [
        {
          "feature": "focusgroup",
          "fallback": "The behavior keeps one control in the tab order and moves focus with the arrow keys"
        }
      ],
      "classes": [
        {
          "name": "toolbar",
          "kind": "root",
          "description": "The raised row, 40px tall around 32px controls, with a 4px inset"
        },
        {
          "name": "toolbar-floating",
          "kind": "modifier",
          "of": "toolbar",
          "description": "On the floating surface, for tools that sit over content"
        },
        {
          "name": "toolbar-separator",
          "kind": "part",
          "of": "toolbar",
          "description": "A short rule between groups of controls"
        }
      ],
      "states": [
        {
          "on": "toolbar",
          "name": "vertical",
          "mark": "aria-orientation=\"vertical\"",
          "description": "A column of tools: the controls stack and the separators lie flat"
        }
      ],
      "properties": [
        {
          "name": "--toolbar-inset",
          "default": "4px",
          "description": "Padding around the controls"
        }
      ],
      "example": "<div class=\"toolbar\" role=\"toolbar\" aria-label=\"Formatting\" focusgroup=\"toolbar wrap\">\n  <button type=\"button\" class=\"btn btn-quiet btn-sm\" aria-pressed=\"true\">Bold</button>\n  <button type=\"button\" class=\"btn btn-quiet btn-sm\" aria-pressed=\"false\">Italic</button>\n  <span class=\"toolbar-separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n  <button type=\"button\" class=\"btn btn-quiet btn-sm\">Link</button>\n</div>",
      "stylesheet": "components/toolbar.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-floating",
        "--color-line-divider",
        "--color-text-body",
        "--shadow-raised",
        "--shadow-floating",
        "--radius-control-sm"
      ],
      "mixins": [
        "--surface-sheet",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "link",
      "title": "Link",
      "tier": "component",
      "category": "Actions",
      "description": "Text that goes somewhere, in the ink of its sentence.",
      "use": "Navigation written as words in a sentence, on an a. On a button it is an action inside a sentence, such as \"Undo\".",
      "instead": [
        {
          "when": "The navigation should look like a control",
          "use": "button"
        },
        {
          "when": "The words name a person, a team or an issue",
          "use": "mention"
        },
        {
          "when": "The links are the path to the current page",
          "use": "breadcrumb"
        },
        {
          "when": "It is the first link of the page and jumps past the navigation",
          "use": "skip"
        }
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter",
          "action": "Follows the link, as the native element does"
        },
        {
          "keys": "Enter, Space",
          "action": "On a button, activates it"
        }
      ],
      "classes": [
        {
          "name": "link",
          "kind": "root",
          "elements": [
            "a",
            "button"
          ],
          "description": "An underlined link in strong ink; the line takes the full ink under the pointer"
        },
        {
          "name": "link-quiet",
          "kind": "modifier",
          "of": "link",
          "description": "Inherits its color and shows no line until touched, for footers, metadata and navigation lists"
        }
      ],
      "states": [
        {
          "on": "link",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "Or disabled on a button: disabled ink and no line"
        },
        {
          "on": "link",
          "name": "new tab",
          "mark": "target=\"_blank\"",
          "description": "Draws a small arrow after the text; say \"opens in a new tab\" in the link's name too"
        }
      ],
      "example": "<p>Start with the <a class=\"link\" href=\"/installation\">installation guide</a>.</p>",
      "stylesheet": "components/link.css",
      "tokens": [
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-disabled",
        "--radius-chip",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "skip",
      "title": "Skip link",
      "tier": "component",
      "category": "Navigation",
      "description": "The first link of a page, shown while it has focus, that jumps past the navigation.",
      "use": "Once on every page, as the first element of the body, pointing at the id of the main region. A reader who starts with the Tab key meets it first and can go straight to the content; nobody else sees it. Give the target tabindex=\"-1\" so focus moves with the jump in every browser.",
      "instead": [
        {
          "when": "The link is part of a sentence or a row of navigation",
          "use": "link"
        },
        {
          "when": "The headings of the page are offered as a list",
          "use": "toc"
        }
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "From the top of the page: shows the link"
        },
        {
          "keys": "Enter",
          "action": "Jumps to the content the link points at"
        }
      ],
      "classes": [
        {
          "name": "skip",
          "kind": "root",
          "elements": [
            "a"
          ],
          "attributes": {
            "href": true
          },
          "description": "The link, on an anchor that points at an id: fixed 8px inside the top corner as a small control of ink, out of sight until it has focus. A long label wraps inside the viewport"
        }
      ],
      "states": [
        {
          "on": "skip",
          "name": "focused",
          "mark": ":focus",
          "description": "The link drops into view and can be pressed"
        }
      ],
      "properties": [
        {
          "name": "--skip-layer",
          "default": "1000",
          "description": "The z-index it stands at, over a sticky navbar"
        }
      ],
      "example": "<a class=\"skip\" href=\"#main\">Skip to content</a>\n<main id=\"main\" tabindex=\"-1\">Deployments</main>",
      "stylesheet": "components/skip.css",
      "tokens": [
        "--color-text-inverse",
        "--radius-control",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--control-ink",
        "--control-ink-hover",
        "--control-ink-pressed",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "input",
      "title": "Input",
      "tier": "component",
      "category": "Forms",
      "description": "Text fields cut into the surface, with labels, hints, errors and groups.",
      "use": "A value the reader types: a name, an email, a message, a date. Put it in a field so it has a label, and in an input group when an icon, a unit or a button belongs to it.",
      "instead": [
        {
          "when": "The value is one of a short list of plain options",
          "use": "select"
        },
        {
          "when": "The value is found by typing into a long list",
          "use": "combobox"
        },
        {
          "when": "It is a number the reader steps up and down often",
          "use": "stepper"
        },
        {
          "when": "It is a short code typed one character to a slot",
          "use": "otp"
        }
      ],
      "composes": [
        "button",
        "chip",
        "icon",
        "kbd",
        "tooltip"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "field-sizing: content",
          "fallback": "An input-auto textarea keeps its minimum height and the resize handle"
        },
        {
          "feature": "::-webkit-calendar-picker-indicator, ::-webkit-inner-spin-button and ::-webkit-search-cancel-button",
          "fallback": "Firefox keeps its own marks in date, time, number and search fields"
        }
      ],
      "classes": [
        {
          "name": "input",
          "kind": "root",
          "elements": [
            "input",
            "textarea"
          ],
          "label": true,
          "description": "A text input, a file input or a textarea, drawn as a well; it also draws the browser's date, time, number, search and color fields"
        },
        {
          "name": "input-sm",
          "kind": "modifier",
          "of": "input",
          "exclusive": "size",
          "description": "32px tall; the default is 38px, a button's height"
        },
        {
          "name": "input-lg",
          "kind": "modifier",
          "of": "input",
          "exclusive": "size",
          "description": "44px tall; the default is 38px, a button's height"
        },
        {
          "name": "input-auto",
          "kind": "modifier",
          "of": "input",
          "elements": [
            "textarea"
          ],
          "description": "A textarea that grows with its content, from --input-rows to --input-max-rows lines, then scrolls"
        },
        {
          "name": "input-group",
          "kind": "root",
          "description": "One well around a bare field and its icon, addon or button; it draws the hover, focus, invalid and disabled states of the field inside it"
        },
        {
          "name": "input-group-sm",
          "kind": "modifier",
          "of": "input-group",
          "exclusive": "size",
          "description": "A group 32px tall; the default is 38px"
        },
        {
          "name": "input-group-lg",
          "kind": "modifier",
          "of": "input-group",
          "exclusive": "size",
          "description": "A group 44px tall; the default is 38px"
        },
        {
          "name": "input-group-wrap",
          "kind": "modifier",
          "of": "input-group",
          "description": "A group that collects several values as chips and grows by lines; adding and removing a value is the page's own script or a round trip to the server"
        },
        {
          "name": "input-group-field",
          "kind": "part",
          "of": "input-group",
          "elements": [
            "input",
            "textarea",
            "select"
          ],
          "label": true,
          "description": "The bare native field inside a group; it keeps the semantics and the caret"
        },
        {
          "name": "input-group-addon",
          "kind": "part",
          "of": "input-group",
          "description": "Fixed text beside the value, such as a protocol, a unit or a domain"
        },
        {
          "name": "field",
          "kind": "root",
          "description": "A label stacked over its control, with optional guidance below. A label element when it holds its words and its control and nothing else; with a hint or an error, a div that holds a label with for, so the guidance describes the control and is not part of its name"
        },
        {
          "name": "field-hint",
          "kind": "part",
          "of": "field",
          "anywhere": true,
          "description": "Muted guidance under the control; inside a field it steps aside while the error shows"
        },
        {
          "name": "field-error",
          "kind": "part",
          "of": "field",
          "description": "The danger message; it shows only while a control in the field is invalid"
        },
        {
          "name": "field-help",
          "kind": "part",
          "of": "field",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "A question mark after the label, in muted ink over a dotted line, that shows a tooltip: a button with interestfor and popovertarget naming the tooltip. It stands beside the label in a row, never inside it"
        },
        {
          "name": "fieldset",
          "kind": "root",
          "elements": [
            "fieldset"
          ],
          "description": "A fieldset that groups related controls under one caption, without the browser's groove"
        },
        {
          "name": "fieldset-legend",
          "kind": "part",
          "of": "fieldset",
          "elements": [
            "legend"
          ],
          "description": "The legend: the group's caption, in the voice of a field label"
        }
      ],
      "states": [
        {
          "on": "input",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "A danger contour that stays while focused; the field-error in the same field shows and replaces the hint"
        },
        {
          "on": "input",
          "name": "user-invalid",
          "mark": ":user-invalid",
          "description": "The same drawing from the browser's own constraints (required, type, pattern), once the reader has edited the field or tried to submit"
        },
        {
          "on": "input",
          "name": "disabled",
          "mark": "disabled",
          "description": "Disabled ink on the value and the placeholder"
        },
        {
          "on": "input",
          "name": "read-only",
          "mark": "readonly",
          "description": "The well rests flat, without a caret, and keeps its tone under the pointer; focused, it rises as any field does"
        },
        {
          "on": "input",
          "name": "autofilled",
          "mark": ":autofill",
          "description": "Filled in by the browser: the well takes a faint tint of the info color"
        },
        {
          "on": "input-group-field",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "Or :user-invalid: the group takes the danger contour"
        },
        {
          "on": "input-group-field",
          "name": "disabled",
          "mark": "disabled",
          "description": "The group and everything in it take disabled ink"
        },
        {
          "on": "input-group-field",
          "name": "read-only",
          "mark": "readonly",
          "description": "The group rests flat, as a read-only input does, and the field shows no caret"
        },
        {
          "on": "input-group-field",
          "name": "autofilled",
          "mark": ":autofill",
          "description": "The whole group takes the tint"
        },
        {
          "on": "fieldset",
          "name": "disabled",
          "mark": "disabled",
          "description": "The legend takes disabled ink with the controls the fieldset disables"
        }
      ],
      "properties": [
        {
          "name": "--input-height",
          "default": "2.375rem",
          "description": "Minimum block size of an input or an input group, at every pointer"
        },
        {
          "name": "--input-padding-x",
          "default": ".75rem",
          "description": "Inline padding of an input or an input group"
        },
        {
          "name": "--input-font-size",
          "default": ".875rem",
          "description": "Text size"
        },
        {
          "name": "--input-radius",
          "default": "var(--radius-control)",
          "description": "Corner radius: 10px, with 8px for small and 12px for large"
        },
        {
          "name": "--input-rows",
          "on": "input-auto",
          "default": "3",
          "description": "The fewest lines an input-auto textarea shows"
        },
        {
          "name": "--input-max-rows",
          "on": "input-auto",
          "default": "12",
          "description": "The most lines an input-auto textarea grows to before it scrolls"
        }
      ],
      "example": "<label class=\"field\">\n  Email\n  <input class=\"input\" type=\"email\" autocomplete=\"email\" placeholder=\"you@example.com\">\n</label>",
      "stylesheet": "components/input.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus-halo",
        "--color-line-on-color",
        "--color-info",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--radius-chip",
        "--radius-control-sm",
        "--radius-control",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "editor",
      "title": "Editor",
      "tier": "component",
      "category": "Forms",
      "description": "The frame of a rich text editor: its toolbar, its document and their states.",
      "use": "Formatted text a reader writes: a description, a comment, a post. The editing itself, the document model, the selection, the history and the keys, belongs to an engine such as Tiptap or ProseMirror, which makes editor-document editable and writes the classes of its blocks; the editor draws the frame, the toolbar band, the states and what the document holds. For plain text, a textarea is simpler and better.",
      "instead": [
        {
          "when": "The text is plain, or a few lines without formatting",
          "use": "input"
        },
        {
          "when": "It is a message or a prompt sent with a button, which grows from one line",
          "use": "composer"
        },
        {
          "when": "The text is read, not edited",
          "use": "code"
        }
      ],
      "composes": [
        "toolbar",
        "button",
        "select",
        "input",
        "code"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves from the toolbar, one stop, to the document and on; the engine decides whether Tab indents a list item"
        },
        {
          "keys": "ArrowLeft, ArrowRight, Home, End",
          "action": "In the toolbar: move between its controls, as the toolbar behavior does"
        },
        {
          "keys": "Ctrl/Cmd+B, Ctrl/Cmd+I, Ctrl/Cmd+U, Ctrl/Cmd+Z, Ctrl/Cmd+Shift+Z",
          "action": "In the document: the engine's shortcuts for bold, italic, underline, undo and redo"
        }
      ],
      "platform": [
        {
          "feature": "contenteditable, made editable by the engine",
          "fallback": "Without the engine the frame and its states still draw: a document with contenteditable edits as the browser's own contenteditable does, without structure, and the toolbar does nothing"
        },
        {
          "feature": ":has()",
          "fallback": "The frame does not rise or take the danger edge with the document's focus and state; the document itself still shows them"
        }
      ],
      "classes": [
        {
          "name": "editor",
          "kind": "root",
          "description": "The frame: the well of a field that holds the toolbar band and the document, and rises with the document's focus"
        },
        {
          "name": "editor-toolbar",
          "kind": "part",
          "of": "editor",
          "description": "On a toolbar at the top of the frame: laid flat, one inset in, with a hairline under it; it wraps on a narrow editor"
        },
        {
          "name": "editor-document",
          "kind": "part",
          "of": "editor",
          "attributes": {
            "role": "textbox",
            "aria-multiline": "true"
          },
          "label": true,
          "description": "The element the engine makes editable: it grows from --editor-rows lines to --editor-max-rows, then scrolls. Name it with aria-labelledby, and describe it with the field's hint"
        },
        {
          "name": "editor-paragraph",
          "kind": "part",
          "of": "editor",
          "description": "A paragraph of the document"
        },
        {
          "name": "editor-heading",
          "kind": "part",
          "of": "editor",
          "description": "A heading of the document, on an h2 or the level the engine writes"
        },
        {
          "name": "editor-subheading",
          "kind": "part",
          "of": "editor",
          "description": "A heading a level below editor-heading"
        },
        {
          "name": "editor-list",
          "kind": "part",
          "of": "editor",
          "elements": [
            "ul",
            "ol"
          ],
          "description": "A list with bullets, its markers in the muted ink; a list inside an item takes circles"
        },
        {
          "name": "editor-list-numbered",
          "kind": "modifier",
          "of": "editor-list",
          "description": "Numbers instead of bullets, on an ol"
        },
        {
          "name": "editor-item",
          "kind": "part",
          "of": "editor",
          "elements": [
            "li"
          ],
          "description": "An item of a list"
        },
        {
          "name": "editor-quote",
          "kind": "part",
          "of": "editor",
          "description": "A quotation, on a blockquote: a rule at its start and its words a step quieter"
        },
        {
          "name": "editor-link",
          "kind": "part",
          "of": "editor",
          "elements": [
            "a"
          ],
          "description": "A link in the document, underlined in the line's ink"
        },
        {
          "name": "editor-rule",
          "kind": "part",
          "of": "editor",
          "elements": [
            "hr"
          ],
          "description": "A horizontal rule between parts of the document"
        }
      ],
      "states": [
        {
          "on": "editor-document",
          "name": "focus",
          "mark": ":focus",
          "description": "The frame rises to a raised face with the field's focus halo"
        },
        {
          "on": "editor-document",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "The frame takes the danger edge, and a field-error in the field shows"
        },
        {
          "on": "editor-document",
          "name": "read only",
          "mark": "aria-readonly=\"true\"",
          "description": "The frame rests flat with no caret: the words can be read and copied, not changed"
        },
        {
          "on": "editor",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The frame keeps its well, as a disabled input does, and takes disabled ink; disable the toolbar's controls and the engine with it"
        }
      ],
      "properties": [
        {
          "name": "--editor-rows",
          "default": "6",
          "description": "How many lines the document shows when it is empty"
        },
        {
          "name": "--editor-max-rows",
          "default": "18",
          "description": "How many lines it grows to before it scrolls"
        }
      ],
      "example": "<div class=\"editor\">\n  <div class=\"toolbar editor-toolbar\" role=\"toolbar\" aria-label=\"Formatting\">\n    <button type=\"button\" class=\"btn btn-quiet btn-sm\" aria-pressed=\"false\">Bold</button>\n    <button type=\"button\" class=\"btn btn-quiet btn-sm\" aria-pressed=\"false\">Italic</button>\n  </div>\n  <div class=\"editor-document\" role=\"textbox\" aria-multiline=\"true\" aria-label=\"Description\" contenteditable=\"true\">\n    <p class=\"editor-paragraph\">A map of every deployment, live.</p>\n  </div>\n</div>",
      "stylesheet": "components/editor.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-hair",
        "--color-line-divider",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus-halo",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-flat",
        "--radius-control-lg",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "select",
      "title": "Select",
      "tier": "component",
      "category": "Forms",
      "description": "A native select whose option list is drawn in the same material.",
      "use": "One value from a list of readable options, when the list is too long to show whole or space is tight. The browser keeps the keys, type-ahead and the form value.",
      "instead": [
        {
          "when": "The list is long and the reader finds a value by typing",
          "use": "combobox"
        },
        {
          "when": "There are two to five short options that fit in one row",
          "use": "segmented"
        },
        {
          "when": "Every option should stay visible, a row each",
          "use": "radio"
        },
        {
          "when": "Options need rich content in every browser or filtering by a script",
          "use": "listbox"
        }
      ],
      "composes": [
        "input"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space, ArrowDown, ArrowUp",
          "action": "Open the list or move through its options, as the native select does"
        },
        {
          "keys": "Typing",
          "action": "Moves to the option that starts with the typed letters"
        },
        {
          "keys": "Escape",
          "action": "Closes the list"
        }
      ],
      "platform": [
        {
          "feature": "appearance: base-select",
          "fallback": "The select keeps its well and chevron and opens the platform's own option list; select-option has no effect"
        }
      ],
      "classes": [
        {
          "name": "select",
          "kind": "root",
          "elements": [
            "select"
          ],
          "label": true,
          "description": "A native select drawn as a well with a chevron"
        },
        {
          "name": "select-option",
          "kind": "part",
          "of": "select",
          "elements": [
            "option"
          ],
          "description": "An option in the customizable list: a row that takes a chip tone under the pointer or the keys, with a check on the current one"
        },
        {
          "name": "select-raised",
          "kind": "modifier",
          "of": "select",
          "description": "A raised select for toolbars and filter rows, beside buttons; 38px tall unless a size is set"
        },
        {
          "name": "select-sm",
          "kind": "modifier",
          "of": "select",
          "exclusive": "size",
          "description": "32px tall; the default is 38px, a button's height"
        },
        {
          "name": "select-lg",
          "kind": "modifier",
          "of": "select",
          "exclusive": "size",
          "description": "44px tall; the default is 38px, a button's height"
        }
      ],
      "states": [
        {
          "on": "select",
          "name": "open",
          "mark": ":open",
          "description": "The select keeps its focused face and, in the customizable select, the chevron turns over"
        },
        {
          "on": "select",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "A danger contour that stays while focused or open; the field-error in the same field shows and replaces the hint"
        },
        {
          "on": "select",
          "name": "user-invalid",
          "mark": ":user-invalid",
          "description": "The same drawing from the browser's own constraint, a required select left on an empty option, once the reader has changed it or tried to submit"
        },
        {
          "on": "select",
          "name": "disabled",
          "mark": "disabled",
          "description": "Disabled ink; a raised select drops to a flat well"
        },
        {
          "on": "select-option",
          "name": "disabled",
          "mark": "disabled",
          "description": "Disabled ink, and no tone under the pointer"
        }
      ],
      "example": "<label class=\"field\">\n  Framework\n  <select class=\"select\">\n    <option class=\"select-option\">Astro</option>\n    <option class=\"select-option\">Next.js</option>\n    <option class=\"select-option\">SvelteKit</option>\n  </select>\n</label>",
      "stylesheet": "components/select.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-raised-low",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-surface-floating",
        "--color-surface-chip",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--color-focus-halo",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--shadow-floating",
        "--radius-control-sm",
        "--radius-control",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "checkbox",
      "title": "Checkbox",
      "tier": "component",
      "category": "Forms",
      "description": "A small native well that fills with ink when checked.",
      "use": "A yes or no that is submitted with a form, alone or in a group where any number can be checked. Wrap it with its text in a check label so the whole row is the target.",
      "instead": [
        {
          "when": "Only one of the options can be chosen",
          "use": "radio"
        },
        {
          "when": "The setting takes effect at once, without a save button",
          "use": "switch"
        },
        {
          "when": "Each option needs a title and a description",
          "use": "choice"
        },
        {
          "when": "The options filter a view",
          "use": "chip"
        }
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Space",
          "action": "Toggles the checkbox, as the native input does"
        }
      ],
      "classes": [
        {
          "name": "check",
          "kind": "root",
          "elements": [
            "label"
          ],
          "description": "A label row around a checkbox, a radio or a switch and its text; it takes disabled ink while its control is disabled"
        },
        {
          "name": "checkbox",
          "kind": "root",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "checkbox"
          },
          "label": true,
          "description": "A native type=\"checkbox\" input: a square well with a chip's corner"
        }
      ],
      "states": [
        {
          "on": "checkbox",
          "name": "checked",
          "mark": ":checked",
          "description": "The well fills with ink and shows a check"
        },
        {
          "on": "checkbox",
          "name": "indeterminate",
          "mark": ":indeterminate",
          "description": "The well fills with ink and shows a dash. Set the indeterminate property from script; HTML has no attribute for it"
        },
        {
          "on": "checkbox",
          "name": "disabled",
          "mark": "disabled",
          "description": "The checkbox fades"
        },
        {
          "on": "checkbox",
          "name": "invalid",
          "mark": ":user-invalid",
          "description": "Or aria-invalid=\"true\": an empty required box takes the danger edge of a field once the reader has tried to send the form"
        }
      ],
      "example": "<label class=\"check\"><input type=\"checkbox\" class=\"checkbox\" checked> Email me about releases</label>",
      "stylesheet": "components/checkbox.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-disabled",
        "--color-text-inverse",
        "--color-danger",
        "--shadow-pressed",
        "--radius-chip",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--check-well",
        "--check-well-hover",
        "--check-ink",
        "--check-mark",
        "--check-dash",
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "radio",
      "title": "Radio",
      "tier": "component",
      "category": "Forms",
      "description": "A small round well for one choice among several.",
      "use": "One choice among a few options that all stay visible, a row each. Radios that share a name form one group; put the group in a fieldset with a legend.",
      "instead": [
        {
          "when": "Any number of the options can be chosen",
          "use": "checkbox"
        },
        {
          "when": "There are two to five short options that fit in one row",
          "use": "segmented"
        },
        {
          "when": "There are more options than fit, or space is tight",
          "use": "select"
        },
        {
          "when": "Each option needs a title and a sentence",
          "use": "choice"
        },
        {
          "when": "The choice filters a view at once",
          "use": "chip"
        }
      ],
      "composes": [
        "checkbox",
        "input"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Reaches the chosen radio of a group, or the first when none is chosen"
        },
        {
          "keys": "ArrowDown, ArrowRight, ArrowUp, ArrowLeft",
          "action": "Move the choice along the radios that share a name"
        },
        {
          "keys": "Space",
          "action": "Chooses the focused radio"
        }
      ],
      "classes": [
        {
          "name": "radio",
          "kind": "root",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "radio"
          },
          "label": true,
          "description": "A native type=\"radio\" input: a round well"
        }
      ],
      "states": [
        {
          "on": "radio",
          "name": "checked",
          "mark": ":checked",
          "description": "The well fills with ink and shows a dot"
        },
        {
          "on": "radio",
          "name": "disabled",
          "mark": "disabled",
          "description": "The radio fades"
        },
        {
          "on": "radio",
          "name": "invalid",
          "mark": ":user-invalid",
          "description": "Or aria-invalid=\"true\": every radio of a required group without a choice takes the danger edge of a field once the reader has tried to send the form"
        }
      ],
      "example": "<fieldset class=\"fieldset\">\n  <legend class=\"fieldset-legend\">Visibility</legend>\n  <label class=\"check\"><input type=\"radio\" class=\"radio\" name=\"visibility\" value=\"public\" checked> Public</label>\n  <label class=\"check\"><input type=\"radio\" class=\"radio\" name=\"visibility\" value=\"team\"> Team only</label>\n  <label class=\"check\"><input type=\"radio\" class=\"radio\" name=\"visibility\" value=\"private\"> Private</label>\n</fieldset>",
      "stylesheet": "components/radio.css",
      "tokens": [
        "--color-text-inverse",
        "--color-danger",
        "--shadow-pressed",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--check-well",
        "--check-well-hover",
        "--check-ink",
        "--focus-ring"
      ]
    },
    {
      "name": "switch",
      "title": "Switch",
      "tier": "component",
      "category": "Forms",
      "description": "A pearl thumb that slides onto ink for settings that apply at once.",
      "use": "A setting that is on or off and takes effect immediately, without a save button.",
      "instead": [
        {
          "when": "The choice is submitted with a form",
          "use": "checkbox"
        },
        {
          "when": "The setting needs a title and a sentence of its own",
          "use": "choice"
        },
        {
          "when": "It picks one of a few options instead of on or off",
          "use": "segmented"
        }
      ],
      "composes": [
        "checkbox"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Space",
          "action": "Toggles the switch, as the native checkbox does"
        }
      ],
      "classes": [
        {
          "name": "switch",
          "kind": "root",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "checkbox",
            "role": "switch"
          },
          "label": true,
          "description": "A native checkbox with role=\"switch\": a track 22px tall with a thumb 3px inside it. On a touch screen its target is 44px around the same track, and where words run from the right the thumb travels the other way"
        },
        {
          "name": "switch-sm",
          "kind": "modifier",
          "of": "switch",
          "exclusive": "size",
          "description": "An 18px track; the default is 22px"
        },
        {
          "name": "switch-lg",
          "kind": "modifier",
          "of": "switch",
          "exclusive": "size",
          "description": "A 26px track; the default is 22px"
        }
      ],
      "states": [
        {
          "on": "switch",
          "name": "on",
          "mark": ":checked",
          "description": "The track fills with ink and the thumb slides to the end"
        },
        {
          "on": "switch",
          "name": "disabled",
          "mark": "disabled",
          "description": "The switch fades"
        }
      ],
      "example": "<label class=\"check\">\n  <input type=\"checkbox\" role=\"switch\" class=\"switch\" checked>\n  Email notifications\n</label>",
      "stylesheet": "components/switch.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-line-strong",
        "--color-shade-1",
        "--color-shade-2",
        "--color-thumb-on-high",
        "--color-thumb-on-low",
        "--shadow-pressed",
        "--shadow-ink-well",
        "--shadow-thumb-on-ink",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--surface-thumb",
        "--focus-ring"
      ]
    },
    {
      "name": "slider",
      "title": "Slider",
      "tier": "component",
      "category": "Forms",
      "description": "A native range input: a thin well with a pearl thumb.",
      "use": "A value from a range where the position matters more than the exact number: volume, opacity, zoom. The browser keeps the keys, the form value and touch dragging.",
      "instead": [
        {
          "when": "Two values on one scale, such as a lowest and a highest price",
          "use": "range"
        },
        {
          "when": "The exact number matters and the reader steps it",
          "use": "stepper"
        },
        {
          "when": "The exact number matters and the reader types it",
          "use": "input"
        }
      ],
      "composes": [
        "input"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the value by one step, as the native range input does; on slider-vertical ArrowUp raises it"
        },
        {
          "keys": "Home, End",
          "action": "Move to the lowest or the highest value"
        }
      ],
      "platform": [
        {
          "feature": "Vertical writing modes on form controls, for slider-vertical",
          "fallback": "A browser that cannot turn a range input draws it level, at the length it was given, and it still works"
        },
        {
          "feature": "Scroll-driven animations (view-timeline and timeline-scope)",
          "fallback": "Firefox fills the track natively through ::-moz-range-progress; elsewhere the track stays an empty well and the thumb still shows the value"
        }
      ],
      "classes": [
        {
          "name": "slider",
          "kind": "root",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "A range input: a thin well with a pearl thumb, filled with ink before the thumb"
        },
        {
          "name": "slider-vertical",
          "kind": "modifier",
          "of": "slider",
          "description": "Upright, with the lowest value at the foot: writing-mode: vertical-lr and direction: rtl turn the native input, so ArrowUp raises the value. Its length is the height it is given, or the platform's own"
        }
      ],
      "states": [
        {
          "on": "slider",
          "name": "disabled",
          "mark": "disabled",
          "description": "The slider fades"
        }
      ],
      "properties": [
        {
          "name": "--slider-track",
          "default": ".375rem",
          "description": "Track thickness"
        },
        {
          "name": "--slider-thumb",
          "default": "1.125rem",
          "description": "Thumb diameter. On touch screens the input reaches 44px across the track around it, and in a range, whose thumbs are their own only target, a thumb is at least 1.5rem"
        },
        {
          "name": "--slider-color",
          "default": "var(--color-surface-inverse)",
          "description": "Fill color"
        },
        {
          "name": "--slider-background",
          "default": "var(--color-surface-inset)",
          "description": "What the track is painted with under the fill: a color or a gradient, such as a color picker's hues"
        }
      ],
      "example": "<label class=\"field\">\n  Volume\n  <input type=\"range\" class=\"slider\" value=\"60\">\n</label>",
      "stylesheet": "components/slider.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-strong",
        "--color-line-mark",
        "--color-focus",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--shadow-pressed",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-thumb"
      ]
    },
    {
      "name": "range",
      "title": "Range",
      "tier": "component",
      "category": "Forms",
      "description": "Two values on one track, with ink between them.",
      "use": "Two values on one scale: the lowest and the highest price, the start and the end of a clip. It is two native sliders in one group; each keeps its own keys, its own label and its own value in the form, and the smaller value is the lower bound. The range behavior keeps the thumbs from crossing, or a distance apart.",
      "instead": [
        {
          "when": "There is one value on the scale",
          "use": "slider"
        },
        {
          "when": "The exact numbers matter more than the feel of the scale",
          "use": "stepper"
        },
        {
          "when": "The two values are dates",
          "use": "calendar"
        }
      ],
      "composes": [
        "slider"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves from one thumb to the other; each is a tab stop"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the focused thumb by one step, as the native range input does; with the behavior it stops at the distance from the other thumb"
        },
        {
          "keys": "Home, End",
          "action": "Move the focused thumb to the lowest or the highest value; with the behavior, as far as the other thumb allows"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations (view-timeline and timeline-scope)",
          "fallback": "The track stays a plain well under the two thumbs, and both inputs work as they always have"
        }
      ],
      "classes": [
        {
          "name": "range",
          "kind": "root",
          "description": "The group around the two sliders: one track, filled between its two thumbs. Give it role=\"group\" and a name"
        },
        {
          "name": "range-start",
          "kind": "part",
          "of": "range",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "exclusive": "thumb",
          "description": "On one of the two slider inputs: names its thumb for the fill"
        },
        {
          "name": "range-end",
          "kind": "part",
          "of": "range",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "exclusive": "thumb",
          "description": "On the other slider input: names its thumb for the fill"
        }
      ],
      "states": [
        {
          "on": "range",
          "name": "disabled",
          "mark": "disabled",
          "description": "On both slider inputs: the thumbs and the fill fade together"
        }
      ],
      "properties": [
        {
          "name": "--range-track",
          "default": ".375rem",
          "description": "Track thickness"
        },
        {
          "name": "--range-color",
          "default": "var(--color-surface-inverse)",
          "description": "Fill color"
        }
      ],
      "example": "<div class=\"range\" role=\"group\" aria-label=\"Price\">\n  <input type=\"range\" class=\"slider range-start\" min=\"0\" max=\"500\" step=\"10\" value=\"120\" aria-label=\"Lowest price\">\n  <input type=\"range\" class=\"slider range-end\" min=\"0\" max=\"500\" step=\"10\" value=\"380\" aria-label=\"Highest price\">\n</div>",
      "stylesheet": "components/range.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inverse",
        "--shadow-pressed"
      ],
      "mixins": []
    },
    {
      "name": "dial",
      "title": "Dial",
      "tier": "component",
      "category": "Forms",
      "description": "A value set by turning a thumb around a circle.",
      "use": "A value that is a turn: an angle, a direction, or a level set like a knob, where the circle says more than a line would and the dial has room of its own. It is a role=\"slider\" the behavior moves; a hidden input inside it carries the value to a form.",
      "instead": [
        {
          "when": "A value along a line, which works without a script and in every form",
          "use": "slider"
        },
        {
          "when": "The value is read, not set",
          "use": "gauge"
        },
        {
          "when": "The exact number matters and the reader steps it",
          "use": "stepper"
        },
        {
          "when": "The exact number matters and the reader types it",
          "use": "input"
        }
      ],
      "script": "required",
      "behavior": "dial",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowRight",
          "action": "Turn the value up by a step, clockwise in every writing direction; around a full circle, past the greatest value it comes round to the least"
        },
        {
          "keys": "ArrowDown, ArrowLeft",
          "action": "Turn the value down by a step, anticlockwise; around a full circle, below the least it comes round to the greatest"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "Turn the value up or down by a larger step, a tenth of the range unless the page sets another"
        },
        {
          "keys": "Home, End",
          "action": "Move to aria-valuemin or aria-valuemax; around a full circle, End is the last step before the value comes round"
        }
      ],
      "platform": [
        {
          "feature": "Typed attr(), as in attr(aria-valuenow type(<number>))",
          "fallback": "The dial does not read aria-valuenow, aria-valuemin and aria-valuemax: the behavior writes --dial-value with every change, and the first markup writes it in a style attribute, with --dial-min and --dial-max when the range is not 0 to 100"
        }
      ],
      "classes": [
        {
          "name": "dial",
          "kind": "root",
          "attributes": {
            "role": "slider",
            "tabindex": [
              "0",
              "-1"
            ],
            "aria-valuenow": true
          },
          "label": true,
          "description": "The dial, 120px across, on a focusable role=\"slider\" with an accessible name, aria-valuenow, aria-valuemin and aria-valuemax: a round track filled with ink from its start to the value. By default a knob of 270 degrees, open at the foot"
        },
        {
          "name": "dial-full",
          "kind": "modifier",
          "of": "dial",
          "description": "The whole circle, starting at the top: an angle, which comes round again past its greatest value"
        },
        {
          "name": "dial-sm",
          "kind": "modifier",
          "of": "dial",
          "exclusive": "size",
          "description": "An 88px dial; the default is 120px"
        },
        {
          "name": "dial-lg",
          "kind": "modifier",
          "of": "dial",
          "exclusive": "size",
          "description": "A 160px dial; the default is 120px"
        },
        {
          "name": "dial-thumb",
          "kind": "part",
          "of": "dial",
          "description": "The pearl thumb on the track at the value's angle, an empty element. Focus rings it, and a press on it turns the dial without a jump"
        },
        {
          "name": "dial-value",
          "kind": "part",
          "of": "dial",
          "description": "The value as text, in tabular figures at the middle of the dial; the behavior writes it with every change"
        },
        {
          "name": "dial-ticks",
          "kind": "part",
          "of": "dial",
          "description": "An empty element that draws --dial-ticks equal steps as fine lines just outside the thumb's path"
        },
        {
          "name": "dial-mark",
          "kind": "part",
          "of": "dial",
          "description": "A short word or figure in the rim, at the value its --dial-at stands for"
        }
      ],
      "states": [
        {
          "on": "dial",
          "name": "value",
          "mark": "aria-valuenow=\"40\"",
          "description": "The value, between aria-valuemin and aria-valuemax or 0 and 100. The fill follows it at once"
        },
        {
          "on": "dial",
          "name": "focus",
          "mark": ":focus-visible",
          "description": "The thumb takes the focus ring"
        },
        {
          "on": "dial",
          "name": "held",
          "mark": ":active",
          "description": "The thumb grows a little while the dial is held, except with reduced motion"
        },
        {
          "on": "dial",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The dial fades and takes no pointer, key or wheel"
        }
      ],
      "properties": [
        {
          "name": "--dial-value",
          "description": "The value. It comes from aria-valuenow where typed attr() is supported; the behavior writes it too"
        },
        {
          "name": "--dial-min",
          "default": "0",
          "description": "The least value. It comes from aria-valuemin where typed attr() is supported"
        },
        {
          "name": "--dial-max",
          "default": "100",
          "description": "The greatest value. It comes from aria-valuemax where typed attr() is supported"
        },
        {
          "name": "--dial-start",
          "default": "225deg",
          "description": "Where the least value stands, clockwise from the top; 0deg on dial-full. The behavior reads it to turn a pointer into a value"
        },
        {
          "name": "--dial-sweep",
          "default": "270deg",
          "description": "How far the track runs from the start, clockwise; 360deg on dial-full, which makes the value come round. The behavior reads it too"
        },
        {
          "name": "--dial-size",
          "default": "7.5rem",
          "description": "The dial's diameter"
        },
        {
          "name": "--dial-track",
          "default": "calc(var(--dial-size) / 20)",
          "description": "Thickness of the track"
        },
        {
          "name": "--dial-thumb",
          "default": "1.125rem",
          "description": "Thumb diameter; the whole dial takes the pointer"
        },
        {
          "name": "--dial-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink of the fill; the track is the same color stepped back"
        },
        {
          "name": "--dial-ticks",
          "on": "dial-ticks",
          "default": "10",
          "description": "How many equal steps the ticks mark across the sweep"
        },
        {
          "name": "--dial-at",
          "on": "dial-mark",
          "default": "0",
          "description": "The value a mark stands at"
        }
      ],
      "example": "<div class=\"dial\" role=\"slider\" tabindex=\"0\" aria-label=\"Volume\" aria-valuenow=\"40\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"--dial-value: 40\">\n  <span class=\"dial-value\">40</span>\n  <span class=\"dial-thumb\"></span>\n  <input type=\"hidden\" name=\"volume\" value=\"40\">\n</div>",
      "stylesheet": "components/dial.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-thumb",
        "--focus-ring"
      ]
    },
    {
      "name": "segmented",
      "title": "Segmented control",
      "tier": "component",
      "category": "Forms",
      "description": "A few options in one well; a sheet glides to the current one.",
      "use": "Two to five short, mutually exclusive options in one row, such as a view switch. As labels around native radios it is a value in a form and needs no script; as buttons with aria-pressed or links with aria-current it triggers actions or goes to sibling pages.",
      "instead": [
        {
          "when": "Each option takes a row of its own, or needs more than a word or two",
          "use": "radio"
        },
        {
          "when": "There are more options than fit in one row",
          "use": "select"
        },
        {
          "when": "The options switch between panels of content",
          "use": "tabs"
        },
        {
          "when": "The options filter a view and any number can be on",
          "use": "chip"
        },
        {
          "when": "The options are numbers on a scale from one end to the other",
          "use": "scale"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Reaches the chosen radio of the group, or each button or link in turn"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the choice along radios that share a name"
        },
        {
          "keys": "Enter, Space",
          "action": "Activate a button option; Enter follows a link option"
        }
      ],
      "platform": [
        {
          "feature": "CSS anchor positioning (anchor-scope)",
          "fallback": "The current option carries the sheet itself and changes at once, without the glide"
        }
      ],
      "classes": [
        {
          "name": "segmented",
          "kind": "root",
          "description": "The well around the options; 38px tall, matching a button"
        },
        {
          "name": "segmented-item",
          "kind": "part",
          "of": "segmented",
          "elements": [
            "button",
            "a",
            "label"
          ],
          "description": "An option: a button with aria-pressed, a link with aria-current, or a label around a segmented-input radio"
        },
        {
          "name": "segmented-input",
          "kind": "part",
          "of": "segmented",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "radio"
          },
          "label": true,
          "description": "The radio inside a label option; it covers the option invisibly, so the label is the target and the radio keeps the state"
        },
        {
          "name": "segmented-sm",
          "kind": "modifier",
          "of": "segmented",
          "exclusive": "size",
          "description": "A 32px track; the default is 38px"
        },
        {
          "name": "segmented-lg",
          "kind": "modifier",
          "of": "segmented",
          "exclusive": "size",
          "description": "A 44px track; the default is 38px"
        }
      ],
      "states": [
        {
          "on": "segmented-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The option around the radio is the current one: it rises as a sheet"
        },
        {
          "on": "segmented-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The option around the radio takes disabled ink"
        },
        {
          "on": "segmented-item",
          "name": "pressed",
          "mark": "aria-pressed=\"true\"",
          "description": "A button option that is the current one; the page's script moves the attribute"
        },
        {
          "on": "segmented-item",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "An option with a role that takes aria-selected, such as a tab, that is the current one"
        },
        {
          "on": "segmented-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "A link option that points at the current page"
        },
        {
          "on": "segmented-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link: disabled ink"
        }
      ],
      "example": "<div class=\"segmented\" role=\"radiogroup\" aria-label=\"View\">\n  <label class=\"segmented-item\"><input type=\"radio\" class=\"segmented-input\" name=\"view\" value=\"list\" checked>List</label>\n  <label class=\"segmented-item\"><input type=\"radio\" class=\"segmented-input\" name=\"view\" value=\"board\">Board</label>\n  <label class=\"segmented-item\"><input type=\"radio\" class=\"segmented-input\" name=\"view\" value=\"timeline\">Timeline</label>\n</div>",
      "stylesheet": "components/segmented.css",
      "tokens": [
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-chip",
        "--radius-control-sm",
        "--radius-control",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "chip",
      "title": "Chip",
      "tier": "component",
      "category": "Forms",
      "description": "A small pill that is a filter or a removable value.",
      "use": "A filter the reader turns on or off, as a label around a native checkbox or radio; or a value that can be removed, such as a recipient, a tag or an applied filter. A value may carry a picture, a category dot and a count; keep the remove button out of a filter chip, whose label is already the target.",
      "instead": [
        {
          "when": "The pill only describes something and cannot be acted on",
          "use": "badge"
        },
        {
          "when": "It is one value in a form that should read as one control",
          "use": "segmented"
        },
        {
          "when": "It is a yes or no submitted with a form",
          "use": "checkbox"
        }
      ],
      "composes": [
        "icon",
        "avatar",
        "badge",
        "category"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Space",
          "action": "Toggles the focused filter chip, as the native input does"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the choice along radio chips that share a name"
        }
      ],
      "classes": [
        {
          "name": "chip",
          "kind": "root",
          "description": "The pill, 28px tall: a label around a chip-input, or a plain element that holds a value. On touch a filter's target and a remove button's reach 44px tall while the pill keeps its height"
        },
        {
          "name": "chip-sm",
          "kind": "modifier",
          "of": "chip",
          "exclusive": "size",
          "description": "24px tall; the default is 28px"
        },
        {
          "name": "chip-lg",
          "kind": "modifier",
          "of": "chip",
          "exclusive": "size",
          "description": "32px tall; the default is 28px"
        },
        {
          "name": "chip-category",
          "kind": "modifier",
          "of": "chip",
          "description": "A value takes the surface, text and line of the category set by a category-<name> class on it or around it; a filter keeps its face and shows the category in its chip-dot"
        },
        {
          "name": "chip-input",
          "kind": "part",
          "of": "chip",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": [
              "checkbox",
              "radio"
            ]
          },
          "label": true,
          "description": "The checkbox or radio inside a filter chip; it covers the chip invisibly, so the label is the target and the input keeps the state"
        },
        {
          "name": "chip-remove",
          "kind": "part",
          "of": "chip",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "A round remove button at the end of a value, holding its icon; its accessible name includes the value"
        },
        {
          "name": "chip-label",
          "kind": "part",
          "of": "chip",
          "description": "The words: they shrink first and end in an ellipsis, so a picture, a count and the remove button keep their size"
        },
        {
          "name": "chip-media",
          "kind": "part",
          "of": "chip",
          "description": "A round picture at the start, the chip's height less two insets: holds an avatar or an icon, which it sizes"
        },
        {
          "name": "chip-dot",
          "kind": "part",
          "of": "chip",
          "description": "An 8px dot in the category's mark, or muted ink without one; decorative, so the label names the category"
        },
        {
          "name": "chip-count",
          "kind": "part",
          "of": "chip",
          "description": "Goes on a badge inside the chip: fits it to the chip as a concentric pill, and gives it a tone of the ink on a chosen filter"
        }
      ],
      "states": [
        {
          "on": "chip-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The chip around the input fills with ink"
        },
        {
          "on": "chip-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The chip around the input drops to a flat well with disabled ink"
        }
      ],
      "example": "<div role=\"group\" aria-label=\"Topics\">\n  <label class=\"chip\"><input type=\"checkbox\" class=\"chip-input\" name=\"topic\" value=\"design\" checked>Design</label>\n  <label class=\"chip\"><input type=\"checkbox\" class=\"chip-input\" name=\"topic\" value=\"research\">Research</label>\n</div>",
      "properties": [
        {
          "name": "--chip-height",
          "default": "1.75rem",
          "description": "Height; a field that holds values sets it for the chips in its well"
        },
        {
          "name": "--chip-inset",
          "default": ".25rem",
          "description": "How far a chip-media or a chip-count stands in from the chip's end"
        }
      ],
      "stylesheet": "components/chip.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-ink-highlight",
        "--color-ink-edge",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--font-weight-control",
        "--lift",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--control-ink",
        "--control-ink-pressed",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "tags",
      "title": "Tags",
      "tier": "component",
      "category": "Forms",
      "description": "A field that turns what is typed into values, each a chip in the well.",
      "use": "A short list of free values a reader types: labels, keywords, email addresses. Put the tags class on an input group with input-group-wrap; its chips are the values and its field takes the next one. A value the behavior refuses marks the field aria-invalid=\"true\", which the input group draws.",
      "instead": [
        {
          "when": "The values come from a known list",
          "use": "combobox"
        },
        {
          "when": "A few known options are switched on and off",
          "use": "chip"
        },
        {
          "when": "One value",
          "use": "input"
        }
      ],
      "composes": [
        "input",
        "chip"
      ],
      "script": "required",
      "behavior": "tags",
      "keyboard": [
        {
          "keys": "Enter, Comma",
          "action": "Turn the field's text into a value; Enter in an empty field is left to the form"
        },
        {
          "keys": "Backspace",
          "action": "In an empty field, move to the last value; on a value, remove it and move to the one before"
        },
        {
          "keys": "Delete",
          "action": "On a value, remove it and move to the one after"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "From the start of the field, move to the last value; between values, move to the one before or after, and past the last back to the field. The other way around from right to left"
        },
        {
          "keys": "Home, End",
          "action": "On a value, move to the first value, or back to the field"
        },
        {
          "keys": "Escape",
          "action": "On a value, return to the field"
        }
      ],
      "platform": [
        {
          "feature": "@starting-style",
          "fallback": "A new value appears without growing in"
        }
      ],
      "classes": [
        {
          "name": "tags",
          "kind": "root",
          "description": "On an input group with input-group-wrap: the values are its chips and the field takes the next one, keeping room for a word before it wraps to a line of its own"
        }
      ],
      "properties": [
        {
          "name": "--tags-field-min",
          "default": "6rem",
          "description": "The narrowest the field becomes before it wraps to a line of its own"
        }
      ],
      "example": "<div class=\"tags input-group input-group-wrap\">\n  <span class=\"chip\" data-value=\"design\">design<input type=\"hidden\" name=\"labels\" value=\"design\"><button type=\"button\" class=\"chip-remove\" tabindex=\"-1\" aria-label=\"Remove design\"><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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg></button></span>\n  <span class=\"chip\" data-value=\"research\">research<input type=\"hidden\" name=\"labels\" value=\"research\"><button type=\"button\" class=\"chip-remove\" tabindex=\"-1\" aria-label=\"Remove research\"><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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg></button></span>\n  <input class=\"input-group-field\" aria-label=\"Labels\" placeholder=\"Add a label\" autocomplete=\"off\">\n</div>",
      "stylesheet": "components/tags.css",
      "tokens": [
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "editable",
      "title": "Editable",
      "tier": "component",
      "category": "Forms",
      "description": "A value read as text that becomes a field in place.",
      "use": "A value read far more often than it is changed, changed one at a time where it stands: a title, a name, a cell. It takes the type of what holds it, so it may be a heading. The page saves the value; the stylesheet draws pending with aria-busy=\"true\".",
      "instead": [
        {
          "when": "Several values are changed together and saved at once",
          "use": "input"
        },
        {
          "when": "The value is always being edited",
          "use": "input"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "required",
      "behavior": "editable",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On the preview, open the field with the value selected"
        },
        {
          "keys": "Enter",
          "action": "In the field, save and return to the preview; in a textarea, Control or Command with Enter"
        },
        {
          "keys": "Escape",
          "action": "Put the saved value back and return to the preview"
        },
        {
          "keys": "Tab",
          "action": "Leave the field, which saves the value, or puts it back when the field's constraints refuse it"
        }
      ],
      "platform": [
        {
          "feature": "field-sizing: content",
          "fallback": "The field keeps the preview's width and its text scrolls past it"
        }
      ],
      "classes": [
        {
          "name": "editable",
          "kind": "root",
          "description": "The value and its field, in one cell that the preview holds open; it reaches out by its padding so the text lines up with the column"
        },
        {
          "name": "editable-preview",
          "kind": "part",
          "of": "editable",
          "elements": [
            "button"
          ],
          "attributes": {
            "type": "button"
          },
          "description": "The saved value, as a button: plain text at rest, a faint well with a pencil under the pointer. Hidden, it still holds the cell open"
        },
        {
          "name": "editable-pencil",
          "kind": "part",
          "of": "editable",
          "description": "The pencil after the words of the preview, an icon that shows under the pointer and with focus, and always where no pointer hovers"
        },
        {
          "name": "editable-field",
          "kind": "part",
          "of": "editable",
          "elements": [
            "input",
            "textarea"
          ],
          "label": true,
          "description": "The field that takes the preview's place, hidden at rest: a focused well in the same font, padding and corner"
        },
        {
          "name": "editable-placeholder",
          "kind": "part",
          "of": "editable",
          "description": "Inside the preview, what it says while the value is empty: the field's placeholder, in the muted ink"
        }
      ],
      "states": [
        {
          "on": "editable",
          "name": "pending",
          "mark": "aria-busy=\"true\"",
          "description": "The value is on its way: the preview reads muted and takes no press"
        },
        {
          "on": "editable-field",
          "name": "editing",
          "mark": "hidden",
          "description": "Hidden at rest; the behavior shows it and hides the preview"
        },
        {
          "on": "editable-field",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "Or :user-invalid: the field takes the danger edge"
        },
        {
          "on": "editable-preview",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The value cannot be changed: no well, no pencil"
        }
      ],
      "properties": [
        {
          "name": "--editable-padding-x",
          "default": ".375em",
          "description": "Inline padding of the preview and the field, which the root bleeds into"
        },
        {
          "name": "--editable-padding-y",
          "default": ".125em",
          "description": "Block padding of the preview and the field"
        },
        {
          "name": "--editable-radius",
          "default": "var(--radius-control-sm)",
          "description": "The corner of the well"
        }
      ],
      "example": "<span id=\"title-label\">Report title</span>\n<div class=\"editable\">\n  <button type=\"button\" class=\"editable-preview\" id=\"title-preview\" aria-labelledby=\"title-label title-preview\">Quarterly report<svg class=\"icon editable-pencil\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.6556 12.4849L3.2844 10.1793A0.7 0.7 0 0 1 3.4647 9.8686L10.505 2.8283A0.7 0.7 0 0 1 11.495 2.8283L13.1717 4.505A0.7 0.7 0 0 1 13.1717 5.495L6.1314 12.5353A0.7 0.7 0 0 1 5.8207 12.7156L3.5151 13.3444A0.7 0.7 0 0 1 2.6556 12.4849Z\"/><path d=\"M9.6667 3.6667L12.3333 6.3333\"/></svg></button>\n  <input class=\"editable-field\" value=\"Quarterly report\" aria-labelledby=\"title-label\" required hidden>\n</div>",
      "stylesheet": "components/editable.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-contour",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-focus-halo",
        "--color-danger",
        "--radius-control-sm",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "swatch",
      "title": "Swatch",
      "tier": "component",
      "category": "Forms",
      "description": "A color to look at or to pick, as a disc with a finished edge.",
      "use": "A color shown beside its name, or one of a few colors to pick as a label around a native radio or checkbox. Set the color with --swatch.",
      "instead": [
        {
          "when": "The reader picks any color from the platform's picker",
          "use": "input"
        }
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the choice along radio swatches that share a name"
        },
        {
          "keys": "Space",
          "action": "Toggles a checkbox swatch, as the native input does"
        }
      ],
      "classes": [
        {
          "name": "swatch",
          "kind": "root",
          "description": "The disc, 24px wide: a label around a swatch-input, or a plain mark"
        },
        {
          "name": "swatch-input",
          "kind": "part",
          "of": "swatch",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": [
              "radio",
              "checkbox"
            ]
          },
          "label": true,
          "description": "The radio or checkbox inside a swatch; it covers the disc invisibly and needs a name, since a color has no text"
        },
        {
          "name": "swatch-sm",
          "kind": "modifier",
          "of": "swatch",
          "exclusive": "size",
          "description": "16px; the default is 24px"
        },
        {
          "name": "swatch-lg",
          "kind": "modifier",
          "of": "swatch",
          "exclusive": "size",
          "description": "32px; the default is 24px"
        },
        {
          "name": "swatch-square",
          "kind": "modifier",
          "of": "swatch",
          "description": "A tile with a chip's corner, for a palette or a token table"
        }
      ],
      "states": [
        {
          "on": "swatch-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The swatch stands in a ring of ink, a 2px gap away, cut in the color of the surface it sits on"
        },
        {
          "on": "swatch-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The swatch fades"
        }
      ],
      "properties": [
        {
          "name": "--swatch",
          "default": "currentColor",
          "description": "The color, or any background image"
        },
        {
          "name": "--swatch-size",
          "default": "1.5rem",
          "description": "The diameter"
        }
      ],
      "example": "<div role=\"radiogroup\" aria-label=\"Color\">\n  <label class=\"swatch\" style=\"--swatch: oklch(24% .004 265)\"><input class=\"swatch-input\" type=\"radio\" name=\"color\" aria-label=\"Graphite\" checked></label>\n  <label class=\"swatch\" style=\"--swatch: oklch(58% .2 280)\"><input class=\"swatch-input\" type=\"radio\" name=\"color\" aria-label=\"Indigo\"></label>\n  <label class=\"swatch\" style=\"--swatch: oklch(66% .14 150)\"><input class=\"swatch-input\" type=\"radio\" name=\"color\" aria-label=\"Moss\"></label>\n</div>",
      "stylesheet": "components/swatch.css",
      "tokens": [
        "--color-surface-base",
        "--color-text-strong",
        "--color-line-on-color",
        "--color-highlight-on-color",
        "--radius-chip",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "rating",
      "title": "Rating",
      "tier": "component",
      "category": "Forms",
      "description": "A score out of a few stars, as native radios.",
      "use": "A score a reader gives out of a few stars: a review, an answer to how it went. With rating-half the score moves by halves. To show a score without taking one, such as an average of 4.3, use rating-display, named in words for assistive technology.",
      "instead": [
        {
          "when": "The answer is a position on a long scale",
          "use": "slider"
        },
        {
          "when": "The options have names instead of a rank",
          "use": "radio"
        },
        {
          "when": "The answer is a degree on a numbered scale with named ends",
          "use": "scale"
        }
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move to the star before or after and check it, as a radio group does; with rating-half, to the half star"
        },
        {
          "keys": "Tab",
          "action": "Enters the group at the checked star and leaves it; the group is one tab stop"
        },
        {
          "keys": "Space",
          "action": "Checks the star that has focus when none is checked"
        }
      ],
      "platform": [
        {
          "feature": "CSS round(), for the fraction of the last star of rating-display",
          "fallback": "The fill runs the score's share of the whole row, gaps included, and may stand up to a pixel off the exact fraction of the last star"
        }
      ],
      "classes": [
        {
          "name": "rating",
          "kind": "root",
          "label": true,
          "description": "The group of stars, on a fieldset named by aria-label or a legend. It carries the focus ring for its radios. With rating-display it is the picture of a score instead"
        },
        {
          "name": "rating-input",
          "kind": "part",
          "of": "rating",
          "elements": [
            "input"
          ],
          "label": true,
          "attributes": {
            "type": "radio"
          },
          "description": "A star, on a radio named with its score. The radios stand in reading order, lowest first"
        },
        {
          "name": "rating-sm",
          "kind": "modifier",
          "of": "rating",
          "exclusive": "size",
          "description": "16px stars, for a row in a list; the default is 20px"
        },
        {
          "name": "rating-lg",
          "kind": "modifier",
          "of": "rating",
          "exclusive": "size",
          "description": "24px stars; the default is 20px"
        },
        {
          "name": "rating-half",
          "kind": "modifier",
          "of": "rating",
          "exclusive": "mode",
          "description": "Two radios to a star, each drawn as one half of it, so a score is chosen by halves. Name each radio with its score: 0.5 stars, 1 star, 1.5 stars"
        },
        {
          "name": "rating-display",
          "kind": "modifier",
          "of": "rating",
          "exclusive": "mode",
          "attributes": {
            "role": "img"
          },
          "description": "A score to read, not to choose: an empty element with role=\"img\" named with the score in words, filled to --rating-value, the last star in part. It holds no radios"
        }
      ],
      "states": [
        {
          "on": "rating-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The star and every star before it fill with ink"
        },
        {
          "on": "rating-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "On the radios or on the fieldset: the stars keep their ink and stop answering the pointer, to show a score"
        }
      ],
      "properties": [
        {
          "name": "--rating-value",
          "on": "rating-display",
          "description": "The score rating-display fills to, a number such as 4.3; set it beside the name that says it in words"
        },
        {
          "name": "--rating-max",
          "on": "rating-display",
          "default": "5",
          "description": "How many stars rating-display draws"
        }
      ],
      "example": "<fieldset class=\"rating\" aria-label=\"Rating\">\n  <input type=\"radio\" class=\"rating-input\" name=\"rating\" value=\"1\" aria-label=\"1 star\">\n  <input type=\"radio\" class=\"rating-input\" name=\"rating\" value=\"2\" aria-label=\"2 stars\">\n  <input type=\"radio\" class=\"rating-input\" name=\"rating\" value=\"3\" aria-label=\"3 stars\">\n  <input type=\"radio\" class=\"rating-input\" name=\"rating\" value=\"4\" aria-label=\"4 stars\" checked>\n  <input type=\"radio\" class=\"rating-input\" name=\"rating\" value=\"5\" aria-label=\"5 stars\">\n</fieldset>",
      "stylesheet": "components/rating.css",
      "tokens": [
        "--color-line-strong",
        "--color-text-strong",
        "--radius-chip",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "vote",
      "title": "Vote",
      "tier": "component",
      "category": "Forms",
      "description": "A score that a reader moves up or down by one.",
      "use": "The score of an answer, a post or a comment that each reader may raise or lower once. The arrows are two native radios of one group, so the vote works and is submitted with no script; a few lines of script let a second press take the vote back.",
      "instead": [
        {
          "when": "The reader gives a score out of a few stars",
          "use": "rating"
        },
        {
          "when": "The reader answers with an emoji, and several answers can stand side by side",
          "use": "reaction"
        },
        {
          "when": "The reader picks one answer to a question",
          "use": "poll"
        },
        {
          "when": "The number is a quantity the reader types or steps to any value",
          "use": "stepper"
        }
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowDown, ArrowLeft, ArrowRight",
          "action": "Move the vote to the other arrow, as a radio group does"
        },
        {
          "keys": "Tab",
          "action": "Enters the group at the chosen arrow, or the first, and leaves it; the group is one tab stop"
        },
        {
          "keys": "Space",
          "action": "Votes with the arrow that has focus; with the script, takes back the vote it already holds"
        }
      ],
      "classes": [
        {
          "name": "vote",
          "kind": "root",
          "label": true,
          "description": "The group, on a fieldset named by aria-label or a legend: an up arrow, the score and a down arrow, stacked. Set --votes to the score without the reader's vote"
        },
        {
          "name": "vote-horizontal",
          "kind": "modifier",
          "of": "vote",
          "description": "The arrows beside the score, for a row of actions under a comment; the score keeps the width of three figures"
        },
        {
          "name": "vote-up",
          "kind": "part",
          "of": "vote",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "radio"
          },
          "label": true,
          "description": "The up arrow, a radio named \"Upvote\": a quiet 32px square whose arrow fills with ink while checked"
        },
        {
          "name": "vote-score",
          "kind": "part",
          "of": "vote",
          "description": "The score, written by the counter when the element is empty: --votes, one more or one less. On an output, it is announced when it changes. Text inside it, such as 1.2k, is shown instead"
        },
        {
          "name": "vote-down",
          "kind": "part",
          "of": "vote",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "radio"
          },
          "label": true,
          "description": "The down arrow, a radio of the same name as the up arrow, named \"Downvote\""
        }
      ],
      "states": [
        {
          "on": "vote-up",
          "name": "checked",
          "mark": ":checked",
          "description": "The arrow fills with ink and the score is one more"
        },
        {
          "on": "vote-down",
          "name": "checked",
          "mark": ":checked",
          "description": "The arrow fills with ink and the score is one less"
        },
        {
          "on": "vote-up",
          "name": "disabled",
          "mark": "disabled",
          "description": "On the radios or on the fieldset: the arrows take disabled ink and the score stays, for a post the reader cannot vote on"
        }
      ],
      "properties": [
        {
          "name": "--votes",
          "default": "0",
          "description": "The score without the reader's vote; the checked arrow adds or takes one"
        },
        {
          "name": "--vote-size",
          "default": "2rem",
          "description": "The side of each arrow's square; on a touch screen the target around it is 44px"
        }
      ],
      "example": "<fieldset class=\"vote\" aria-label=\"Vote on this answer\" style=\"--votes: 41\">\n  <input type=\"radio\" class=\"vote-up\" name=\"vote\" value=\"up\" aria-label=\"Upvote\">\n  <output class=\"vote-score\"></output>\n  <input type=\"radio\" class=\"vote-down\" name=\"vote\" value=\"down\" aria-label=\"Downvote\">\n</fieldset>",
      "stylesheet": "components/vote.css",
      "tokens": [
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-control-sm",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "choice",
      "title": "Choice",
      "tier": "component",
      "category": "Forms",
      "description": "A radio or checkbox option large enough to explain itself.",
      "use": "An option that needs a title and a sentence: a plan, a payment method, a setting. It is a label around a native radio, checkbox or switch, and it reads its state from that input.",
      "instead": [
        {
          "when": "A short label is enough and one option can be chosen",
          "use": "radio"
        },
        {
          "when": "A short label is enough and any number can be chosen",
          "use": "checkbox"
        },
        {
          "when": "There are more options than fit on the page",
          "use": "select"
        },
        {
          "when": "Choosing an answer should show how everyone answered",
          "use": "poll"
        }
      ],
      "composes": [
        "radio",
        "checkbox",
        "switch",
        "input"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "ArrowDown, ArrowRight, ArrowUp, ArrowLeft",
          "action": "Move the choice along radios that share a name"
        },
        {
          "keys": "Space",
          "action": "Toggles the checkbox or the switch inside, or chooses the focused radio"
        }
      ],
      "classes": [
        {
          "name": "choice",
          "kind": "root",
          "elements": [
            "label"
          ],
          "description": "The option, on a label around a radio, a checkbox or a switch; the focus ring is drawn around the whole option"
        },
        {
          "name": "choice-body",
          "kind": "part",
          "of": "choice",
          "description": "The words: a title and an optional description, on one edge"
        },
        {
          "name": "choice-title",
          "kind": "part",
          "of": "choice",
          "description": "The option's name, inside choice-body"
        },
        {
          "name": "choice-description",
          "kind": "part",
          "of": "choice",
          "description": "One muted sentence under the title, inside choice-body"
        },
        {
          "name": "choice-end",
          "kind": "part",
          "of": "choice",
          "description": "A price, a badge or a figure at the end of the first line"
        }
      ],
      "states": [
        {
          "on": "choice",
          "name": "chosen",
          "mark": ":checked",
          "description": "On the input inside: the face rises one step and its contour turns to ink"
        },
        {
          "on": "choice",
          "name": "disabled",
          "mark": "disabled",
          "description": "On the input inside: the face drops to a well with disabled ink"
        }
      ],
      "properties": [
        {
          "name": "--choice-padding",
          "default": ".875rem",
          "description": "Padding inside the option"
        },
        {
          "name": "--choice-radius",
          "default": "var(--radius-control-lg)",
          "description": "Corner radius"
        }
      ],
      "example": "<fieldset class=\"fieldset\">\n  <legend class=\"fieldset-legend\">Plan</legend>\n  <label class=\"choice\">\n    <input type=\"radio\" class=\"radio\" name=\"plan\" value=\"hobby\">\n    <span class=\"choice-body\">\n      <span class=\"choice-title\">Hobby</span>\n      <span class=\"choice-description\">For personal projects and experiments.</span>\n    </span>\n    <span class=\"choice-end\">Free</span>\n  </label>\n  <label class=\"choice\">\n    <input type=\"radio\" class=\"radio\" name=\"plan\" value=\"pro\" checked>\n    <span class=\"choice-body\">\n      <span class=\"choice-title\">Pro</span>\n      <span class=\"choice-description\">For teams that ship every day.</span>\n    </span>\n    <span class=\"choice-end\">$20</span>\n  </label>\n</fieldset>",
      "stylesheet": "components/choice.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-highlight",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--shadow-pressed",
        "--shadow-flat",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "poll",
      "title": "Poll",
      "tier": "component",
      "category": "Forms",
      "description": "A question, a few answers, and how the votes fell once one is chosen.",
      "use": "A quick vote in a feed, a chat or a document. Each answer is a label around a native radio, or a checkbox when several may be chosen. Set each answer's share as --value in percent and write it in poll-value: both show once an answer is checked, or from the start when the inputs are disabled because the poll is over.",
      "instead": [
        {
          "when": "The options explain themselves in a sentence and no result follows",
          "use": "choice"
        },
        {
          "when": "It is a plain option in a form",
          "use": "radio"
        },
        {
          "when": "Only the result is shown and nobody votes",
          "use": "chart"
        }
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Arrow keys",
          "action": "Move between the answers of a radio group and choose the one they land on"
        },
        {
          "keys": "Space",
          "action": "Chooses the focused answer, or clears a checkbox"
        }
      ],
      "classes": [
        {
          "name": "poll",
          "kind": "root",
          "description": "The group, on a fieldset or an element with role=\"group\": answers 8px apart"
        },
        {
          "name": "poll-title",
          "kind": "part",
          "of": "poll",
          "description": "The question, on the legend or a heading"
        },
        {
          "name": "poll-option",
          "kind": "part",
          "of": "poll",
          "elements": [
            "label"
          ],
          "description": "One answer, on a label: a flat face 38px tall that fills from its start with a tint as long as its share; chosen, it takes an ink contour and a check"
        },
        {
          "name": "poll-input",
          "kind": "part",
          "of": "poll",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": [
              "radio",
              "checkbox"
            ]
          },
          "description": "The native radio or checkbox inside the answer. It covers the answer and is not drawn"
        },
        {
          "name": "poll-label",
          "kind": "part",
          "of": "poll",
          "description": "The answer's words"
        },
        {
          "name": "poll-value",
          "kind": "part",
          "of": "poll",
          "description": "The answer's share as text, at the end; hidden until the result shows"
        },
        {
          "name": "poll-meta",
          "kind": "part",
          "of": "poll",
          "description": "A quiet line under the answers: how many voted, how long is left"
        }
      ],
      "states": [
        {
          "on": "poll-input",
          "name": "chosen",
          "mark": ":checked",
          "description": "The answer is chosen, and with it the result shows: every answer fills to its share and its figure appears"
        },
        {
          "on": "poll-input",
          "name": "over",
          "mark": "disabled",
          "description": "The poll is closed: the result shows from the start and nothing can be chosen"
        }
      ],
      "properties": [
        {
          "name": "--value",
          "on": "poll-option",
          "description": "The answer's share of the votes, from 0 to 100"
        },
        {
          "name": "--poll-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink the shares are tinted with"
        },
        {
          "name": "--poll-radius",
          "default": "var(--radius-control)",
          "description": "An answer's corner"
        }
      ],
      "example": "<fieldset class=\"poll\">\n  <legend class=\"poll-title\">Which name should ship?</legend>\n  <label class=\"poll-option\" style=\"--value: 62\"><input class=\"poll-input\" type=\"radio\" name=\"name\" value=\"moonstone\"><span class=\"poll-label\">Moonstone</span><span class=\"poll-value\">62%</span></label>\n  <label class=\"poll-option\" style=\"--value: 38\"><input class=\"poll-input\" type=\"radio\" name=\"name\" value=\"obsidian\"><span class=\"poll-label\">Obsidian</span><span class=\"poll-value\">38%</span></label>\n</fieldset>",
      "stylesheet": "components/poll.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-highlight",
        "--color-shade-1",
        "--color-shade-2",
        "--shadow-pressed",
        "--shadow-flat",
        "--radius-control",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "scale",
      "title": "Scale",
      "tier": "component",
      "category": "Forms",
      "description": "One answer on a row of numbers, from one end to the other.",
      "use": "A question answered with a degree: how likely, how satisfied, how hard. Each number is a label around a native radio that shares a name with the others. Name the two ends in scale-ends, since a number alone says nothing, and put the question in a fieldset legend or an aria-label.",
      "instead": [
        {
          "when": "There are two to five named options that switch a view",
          "use": "segmented"
        },
        {
          "when": "The answer is a score out of a few stars",
          "use": "rating"
        },
        {
          "when": "The value is approximate and the range is long",
          "use": "slider"
        },
        {
          "when": "Choosing should show how everyone answered",
          "use": "poll"
        }
      ],
      "composes": [
        "input"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Arrow keys",
          "action": "Move between the numbers and choose the one they land on"
        }
      ],
      "classes": [
        {
          "name": "scale",
          "kind": "root",
          "description": "The row: cells that share its width, 4px apart, on a fieldset or an element with role=\"radiogroup\""
        },
        {
          "name": "scale-option",
          "kind": "part",
          "of": "scale",
          "elements": [
            "label"
          ],
          "description": "One number, on a label: a flat face 38px tall and never narrower than 28px, so a row too narrow for every cell wraps; pressed, it sinks into a well, and chosen, it is a mark of ink"
        },
        {
          "name": "scale-input",
          "kind": "part",
          "of": "scale",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "radio"
          },
          "description": "The native radio inside the cell. It covers the cell and is not drawn"
        },
        {
          "name": "scale-ends",
          "kind": "part",
          "of": "scale",
          "description": "A line under the row with two names, one for each end"
        }
      ],
      "states": [
        {
          "on": "scale-input",
          "name": "chosen",
          "mark": ":checked",
          "description": "The cell is ink"
        },
        {
          "on": "scale-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The cell is a flat well and cannot be chosen"
        }
      ],
      "properties": [
        {
          "name": "--scale-gap",
          "default": ".25rem",
          "description": "Space between cells"
        }
      ],
      "example": "<div class=\"scale\" role=\"radiogroup\" aria-label=\"How likely are you to recommend Atlas?\">\n  <label class=\"scale-option\"><input class=\"scale-input\" type=\"radio\" name=\"likely\" value=\"1\">1</label>\n  <label class=\"scale-option\"><input class=\"scale-input\" type=\"radio\" name=\"likely\" value=\"2\">2</label>\n  <label class=\"scale-option\"><input class=\"scale-input\" type=\"radio\" name=\"likely\" value=\"3\">3</label>\n  <p class=\"scale-ends\"><span>Not likely</span><span>Very likely</span></p>\n</div>",
      "stylesheet": "components/scale.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-ink-mark",
        "--radius-control-sm",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "keypad",
      "title": "Keypad",
      "tier": "component",
      "category": "Forms",
      "description": "The keys of a phone, for a code or an amount typed with a thumb.",
      "use": "A passcode, a PIN or an amount entered on a touch screen, where the keyboard of the system would cover the page or offer too much. Each key is a button: the page puts its figure into an OTP field, an input or a total. Keep a real field on the page as well, so a hardware keyboard and a password manager still work.",
      "instead": [
        {
          "when": "The code is typed with the system keyboard",
          "use": "otp"
        },
        {
          "when": "A small count is stepped by one",
          "use": "stepper"
        },
        {
          "when": "Any other number or text is typed",
          "use": "input"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "optional",
      "classes": [
        {
          "name": "keypad",
          "kind": "root",
          "description": "The pad: keys in three columns, 8px apart, 17rem wide at most. It never selects its figures and never zooms on a double tap"
        },
        {
          "name": "keypad-key",
          "kind": "part",
          "of": "keypad",
          "elements": [
            "button"
          ],
          "description": "One key, on a button: a raised face 52px tall with a large figure, which sinks at once under a press"
        },
        {
          "name": "keypad-key-quiet",
          "kind": "modifier",
          "of": "keypad-key",
          "description": "A key that is not a figure, such as delete or a decimal point: no face until it is pressed"
        },
        {
          "name": "keypad-letters",
          "kind": "part",
          "of": "keypad",
          "description": "The letters under a figure, small and quiet"
        }
      ],
      "states": [
        {
          "on": "keypad-key",
          "name": "disabled",
          "mark": "disabled",
          "description": "The key is a flat well and cannot be pressed"
        }
      ],
      "properties": [
        {
          "name": "--keypad-key",
          "default": "3.25rem",
          "description": "Height of a key"
        },
        {
          "name": "--keypad-gap",
          "default": ".5rem",
          "description": "Space between keys"
        }
      ],
      "example": "<div class=\"keypad\" role=\"group\" aria-label=\"Keypad\">\n  <button class=\"keypad-key\" type=\"button\">1</button>\n  <button class=\"keypad-key\" type=\"button\">2<span class=\"keypad-letters\">abc</span></button>\n  <button class=\"keypad-key\" type=\"button\">3<span class=\"keypad-letters\">def</span></button>\n</div>",
      "stylesheet": "components/keypad.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--radius-control-lg",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "checklist",
      "title": "Checklist",
      "tier": "component",
      "category": "Forms",
      "description": "A short list of things to do that counts how many are done.",
      "use": "Steps the reader ticks off: the steps of a setup, the points of a review. Each step is a native checkbox in a label with a title and a line of help. The checklist has no surface of its own; put it in a card.",
      "instead": [
        {
          "when": "The system completes the steps and the reader only follows them",
          "use": "steps"
        },
        {
          "when": "The rows have nothing to check",
          "use": "list"
        },
        {
          "when": "The checkboxes are options of a form, not things to do",
          "use": "checkbox"
        },
        {
          "when": "The items are read, not ticked off",
          "use": "bullets"
        }
      ],
      "composes": [
        "checkbox"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Space",
          "action": "Checks or clears the focused step, as the native checkbox does"
        }
      ],
      "classes": [
        {
          "name": "checklist",
          "kind": "root",
          "description": "The list, on a ul, or an ol when the steps are done in order; it counts its steps and the checked ones"
        },
        {
          "name": "checklist-item",
          "kind": "part",
          "of": "checklist",
          "description": "A step, on the li; it counts itself, and counts itself done while its checkbox is checked"
        },
        {
          "name": "checklist-label",
          "kind": "part",
          "of": "checklist",
          "elements": [
            "label"
          ],
          "description": "The label: the checkbox, then the words. The whole row checks the box, and is 44px tall on a touch screen"
        },
        {
          "name": "checklist-body",
          "kind": "part",
          "of": "checklist",
          "description": "The words of a step: a title over a description"
        },
        {
          "name": "checklist-title",
          "kind": "part",
          "of": "checklist",
          "description": "The step's name, on an inline element; a hairline is drawn through it when the step is done"
        },
        {
          "name": "checklist-description",
          "kind": "part",
          "of": "checklist",
          "description": "A muted line of help under the title"
        },
        {
          "name": "checklist-end",
          "kind": "part",
          "of": "checklist",
          "description": "Something at the end of a step: a link, a badge, a time"
        },
        {
          "name": "checklist-count",
          "kind": "part",
          "of": "checklist",
          "description": "Steps done and steps in all, written before its own text; it comes after the last step in the markup"
        }
      ],
      "states": [
        {
          "on": "checklist-item",
          "name": "done",
          "mark": ":checked",
          "description": "On the checkbox inside: the title turns to muted ink with a hairline through it, and the count goes up by one"
        },
        {
          "on": "checklist-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "On the checkbox inside: the title takes disabled ink"
        }
      ],
      "properties": [
        {
          "name": "--checklist-of",
          "default": "' / '",
          "description": "What stands between the two numbers of the count"
        },
        {
          "name": "--checklist-gap",
          "default": ".75rem",
          "description": "Space between the checkbox and the words"
        }
      ],
      "example": "<ul class=\"checklist\">\n  <li class=\"checklist-item\">\n    <label class=\"checklist-label\">\n      <input type=\"checkbox\" class=\"checkbox\" checked>\n      <span class=\"checklist-body\">\n        <span class=\"checklist-title\">Create a project</span>\n        <span class=\"checklist-description\">Atlas was created on 3 November.</span>\n      </span>\n    </label>\n  </li>\n  <li class=\"checklist-item\">\n    <label class=\"checklist-label\">\n      <input type=\"checkbox\" class=\"checkbox\">\n      <span class=\"checklist-body\">\n        <span class=\"checklist-title\">Add a domain</span>\n        <span class=\"checklist-description\">Point a domain you own at the project.</span>\n      </span>\n    </label>\n  </li>\n  <li class=\"checklist-count\">steps done</li>\n</ul>",
      "stylesheet": "components/checklist.css",
      "tokens": [
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "dropzone",
      "title": "Dropzone",
      "tier": "component",
      "category": "Forms",
      "description": "A wide target for choosing or dropping files.",
      "use": "Uploading files where the upload is the main thing in the form: attachments, an import. A click opens the picker, a dropped file lands in the input and the form submits it, all without script.",
      "instead": [
        {
          "when": "One file in a row of fields; a plain file input shows its own file name",
          "use": "input"
        },
        {
          "when": "A file that is already chosen or uploaded is shown as a thing with a name",
          "use": "file"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "Open the file picker, as a file input does"
        }
      ],
      "classes": [
        {
          "name": "dropzone",
          "kind": "root",
          "elements": [
            "label"
          ],
          "description": "The zone, on a label: a well with a dashed contour. It draws the focus ring for its input"
        },
        {
          "name": "dropzone-input",
          "kind": "part",
          "of": "dropzone",
          "elements": [
            "input"
          ],
          "label": true,
          "attributes": {
            "type": "file"
          },
          "description": "The file input. It fills the zone invisibly, so files dropped anywhere on the zone are taken"
        },
        {
          "name": "dropzone-title",
          "kind": "part",
          "of": "dropzone",
          "description": "What to do, in strong ink"
        },
        {
          "name": "dropzone-description",
          "kind": "part",
          "of": "dropzone",
          "description": "The limits a reader must meet, such as types and sizes"
        }
      ],
      "states": [
        {
          "on": "dropzone-input",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "Or :user-invalid, such as a required input left empty once the reader has tried to submit: the dashed contour takes the danger color"
        },
        {
          "on": "dropzone-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The zone drops to disabled ink and stops answering the pointer"
        }
      ],
      "example": "<label class=\"dropzone\">\n  <input type=\"file\" class=\"dropzone-input\" name=\"attachments\" multiple accept=\"image/*,.pdf\">\n  <span class=\"dropzone-title\">Drop files here or choose them</span>\n  <span class=\"dropzone-description\">PNG, JPG or PDF, up to 10 MB each</span>\n</label>",
      "stylesheet": "components/dropzone.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-danger",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "signature",
      "title": "Signature",
      "tier": "component",
      "category": "Forms",
      "description": "A well to sign in with a finger, a pen or a mouse, or a name typed instead.",
      "use": "Consent the reader gives by signing: an agreement, a delivery, a form to authorize. The drawing goes into the form as SVG; the typed name is the keyboard's way to sign and the whole signature without a script.",
      "instead": [
        {
          "when": "A typed name or a checkbox is all the consent needs",
          "use": "input"
        },
        {
          "when": "The reader gives a picture of a signature they already have",
          "use": "dropzone"
        }
      ],
      "composes": [
        "input",
        "button"
      ],
      "script": "required",
      "behavior": "signature",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves to the typed name, which signs with the keyboard, and to Undo and Clear once something is drawn. The pad itself takes no focus: a drawing has no keys"
        },
        {
          "keys": "Enter, Space",
          "action": "On Undo, takes back the last stroke; on Clear, takes back every stroke, as native buttons do"
        }
      ],
      "classes": [
        {
          "name": "signature",
          "kind": "root",
          "elements": [
            "fieldset"
          ],
          "description": "The group, on a <fieldset> with a legend: the pad, its buttons, the typed name, the field a form submits and the status"
        },
        {
          "name": "signature-readonly",
          "kind": "modifier",
          "of": "signature",
          "description": "Shows the drawing as it is: nothing draws on it and Undo and Clear step aside. Make the typed name readonly too"
        },
        {
          "name": "signature-label",
          "kind": "part",
          "of": "signature",
          "elements": [
            "legend"
          ],
          "description": "The <legend>: what is being signed"
        },
        {
          "name": "signature-pad",
          "kind": "part",
          "of": "signature",
          "description": "The well the pointer draws in; it takes no touch gesture of the browser's, so a finger draws instead of scrolling"
        },
        {
          "name": "signature-ink",
          "kind": "part",
          "of": "signature",
          "elements": [
            "svg"
          ],
          "attributes": {
            "role": "img"
          },
          "label": true,
          "description": "The drawing, an inline <svg> in the pad. Its viewBox sets the pad's proportions and the units of a stroke; name it as an image"
        },
        {
          "name": "signature-stroke",
          "kind": "part",
          "of": "signature",
          "elements": [
            "path"
          ],
          "description": "One stroke, a filled outline the script writes into the drawing"
        },
        {
          "name": "signature-line",
          "kind": "part",
          "of": "signature",
          "description": "The line to sign on, with a fine cross where the name begins; hide it with aria-hidden=\"true\""
        },
        {
          "name": "signature-placeholder",
          "kind": "part",
          "of": "signature",
          "description": "Words that say where to sign, shown until the first stroke; hide them with aria-hidden=\"true\", the drawing's name says it"
        },
        {
          "name": "signature-actions",
          "kind": "part",
          "of": "signature",
          "description": "The row of Undo and Clear, in the pad's top corner"
        },
        {
          "name": "signature-undo",
          "kind": "part",
          "of": "signature",
          "elements": [
            "button"
          ],
          "description": "A button that takes back the last stroke; out of sight until there is one, and marked aria-disabled by the script while there is none"
        },
        {
          "name": "signature-clear",
          "kind": "part",
          "of": "signature",
          "elements": [
            "button"
          ],
          "description": "A button that takes back every stroke; out of sight until there is one, and marked aria-disabled by the script while there is none"
        },
        {
          "name": "signature-name",
          "kind": "part",
          "of": "signature",
          "elements": [
            "input"
          ],
          "description": "The typed name, on an input with the input class, set in a script face. Give it a visible label"
        },
        {
          "name": "signature-value",
          "kind": "part",
          "of": "signature",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "hidden"
          },
          "description": "The field a form submits: the drawing as an SVG document, written by the script. Give it a name"
        },
        {
          "name": "signature-status",
          "kind": "part",
          "of": "signature",
          "attributes": {
            "role": "status"
          },
          "description": "Clipped out of sight: what the script says when the pad is signed or emptied, for assistive technology"
        }
      ],
      "states": [
        {
          "on": "signature",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The fieldset is disabled: nothing draws, the ink and the words turn to disabled ink, and the fieldset disables its buttons and the typed name"
        },
        {
          "on": "signature-name",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "The signature is missing or refused: the field and the pad take the danger contour. Say why under the field and point to it with aria-describedby"
        },
        {
          "on": "signature-name",
          "name": "required",
          "mark": ":user-invalid",
          "description": "Required and empty once the reader tried to submit: the field and the pad take the danger contour. The script lifts required while there is a drawing"
        }
      ],
      "properties": [
        {
          "name": "--signature-ink",
          "default": "var(--color-text-strong)",
          "description": "The color of the strokes"
        },
        {
          "name": "--signature-weight",
          "default": "2.5",
          "description": "The width of a stroke at an even pressure, in the units of the drawing's viewBox; the script reads it when it writes a stroke"
        },
        {
          "name": "--signature-radius",
          "default": "var(--radius-control-lg)",
          "description": "Corner of the pad"
        },
        {
          "name": "--signature-font",
          "default": "\"Snell Roundhand\", \"Segoe Script\", \"Bradley Hand\", \"Apple Chancery\", cursive",
          "description": "The script face the typed name is set in"
        }
      ],
      "example": "<fieldset class=\"signature\">\n  <legend class=\"signature-label\">Sign the agreement</legend>\n  <div class=\"signature-pad\">\n    <svg class=\"signature-ink\" viewBox=\"0 0 400 160\" role=\"img\" aria-label=\"Your drawn signature\"></svg>\n    <span class=\"signature-line\" aria-hidden=\"true\"></span>\n    <span class=\"signature-placeholder\" aria-hidden=\"true\">Sign here</span>\n    <div class=\"signature-actions\">\n      <button type=\"button\" class=\"btn btn-sm btn-quiet signature-undo\">Undo</button>\n      <button type=\"button\" class=\"btn btn-sm btn-quiet signature-clear\">Clear</button>\n    </div>\n  </div>\n  <label class=\"field\">Or type your full name\n    <input class=\"input signature-name\" name=\"signer\" autocomplete=\"name\" required>\n  </label>\n  <input type=\"hidden\" class=\"signature-value\" name=\"signature\">\n  <span class=\"signature-status\" role=\"status\"></span>\n</fieldset>",
      "stylesheet": "components/signature.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-danger",
        "--shadow-pressed",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "otp",
      "title": "OTP",
      "tier": "component",
      "category": "Forms",
      "description": "A short code typed one character to a slot.",
      "use": "A short code from a text message or an authenticator, where the product calls for one slot per character. Each slot is a native input; the script makes the slots one field to the hand.",
      "instead": [
        {
          "when": "The phone fills the code from a text message, or no script may run: one field with autocomplete=\"one-time-code\" takes the same code",
          "use": "input"
        },
        {
          "when": "The code is entered on a touch screen with keys drawn on the page",
          "use": "keypad"
        }
      ],
      "script": "required",
      "behavior": "otp",
      "keyboard": [
        {
          "keys": "A character",
          "action": "Fills the slot and moves focus to the next one; a character the slot does not allow is refused"
        },
        {
          "keys": "Backspace",
          "action": "Clears the slot; in an empty slot, moves focus to the slot before and clears it"
        },
        {
          "keys": "Delete",
          "action": "Clears the slot"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Move focus to the slot before or after; the other way around from right to left"
        },
        {
          "keys": "Home, End",
          "action": "Move focus to the first or the last slot"
        },
        {
          "keys": "Paste",
          "action": "Spreads a pasted code across the slots: a whole code from the first slot, a part of one from the slot that has focus"
        }
      ],
      "classes": [
        {
          "name": "otp",
          "kind": "root",
          "label": true,
          "description": "The group of slots, on a fieldset with a label"
        },
        {
          "name": "otp-slot",
          "kind": "part",
          "of": "otp",
          "elements": [
            "input"
          ],
          "label": true,
          "description": "One character, on an input drawn as a small well; it has no visible label, so it needs a name such as \"Digit 1\""
        },
        {
          "name": "otp-separator",
          "kind": "part",
          "of": "otp",
          "description": "A short dash between groups of slots, such as three and three; hide it with aria-hidden=\"true\""
        }
      ],
      "states": [
        {
          "on": "otp-slot",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "Or :user-invalid, such as a character its pattern refuses: a danger contour on the slot; say why under the group"
        },
        {
          "on": "otp-slot",
          "name": "disabled",
          "mark": "disabled",
          "description": "Disabled ink"
        },
        {
          "on": "otp-slot",
          "name": "read-only",
          "mark": "readonly",
          "description": "The slot rests flat, without a caret; the behavior walks it but writes nothing to it"
        }
      ],
      "properties": [
        {
          "name": "--otp-width",
          "default": "2.5rem",
          "description": "Slot width"
        },
        {
          "name": "--otp-height",
          "default": "2.75rem",
          "description": "Slot height, already a comfortable touch target"
        }
      ],
      "example": "<fieldset class=\"otp\" aria-label=\"Verification code\">\n  <input class=\"otp-slot\" inputmode=\"numeric\" pattern=\"[0-9]\" maxlength=\"1\" autocomplete=\"one-time-code\" aria-label=\"Digit 1\">\n  <input class=\"otp-slot\" inputmode=\"numeric\" pattern=\"[0-9]\" maxlength=\"1\" aria-label=\"Digit 2\">\n  <input class=\"otp-slot\" inputmode=\"numeric\" pattern=\"[0-9]\" maxlength=\"1\" aria-label=\"Digit 3\">\n  <input class=\"otp-slot\" inputmode=\"numeric\" pattern=\"[0-9]\" maxlength=\"1\" aria-label=\"Digit 4\">\n</fieldset>",
      "stylesheet": "components/otp.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-disabled",
        "--color-focus-halo",
        "--color-info",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-flat",
        "--radius-control",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "stepper",
      "title": "Stepper",
      "tier": "component",
      "category": "Forms",
      "description": "A number between the two buttons that step it.",
      "use": "A small number a reader nudges more often than types: seats, a quantity, a font size, a price. It is an input group around a native number input; min, max and step are written once, on the field, and the script makes the two buttons call stepDown() and stepUp(). A figure with a unit, a currency or grouping is written by Intl.NumberFormat into a stepper-display while the field is not focused, and a stepper-scrub handle or label steps the number as it is dragged sideways, as in a design tool.",
      "instead": [
        {
          "when": "The number is typed once and rarely adjusted, such as a port or a price",
          "use": "input"
        },
        {
          "when": "The value is a position in a wide range, where the exact figure matters less",
          "use": "slider"
        },
        {
          "when": "The choice is among a few named amounts",
          "use": "segmented"
        }
      ],
      "composes": [
        "input",
        "button",
        "icon"
      ],
      "script": "required",
      "behavior": "stepper",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Step the value by step and stop at min and max, as a number input does"
        },
        {
          "keys": "Shift (while scrubbing)",
          "action": "Step ten steps for each step the drag moves"
        }
      ],
      "platform": [
        {
          "feature": "field-sizing: content",
          "fallback": "The field keeps the width of --stepper-min instead of following the digits typed"
        },
        {
          "feature": "Pointer lock (requestPointerLock)",
          "fallback": "A scrub with a mouse captures the pointer instead, and stops stepping where the pointer meets the edge of the screen"
        }
      ],
      "classes": [
        {
          "name": "stepper",
          "kind": "root",
          "description": "On an input-group: a well as wide as its figure, with a button at each end. A button disabled at its limit lies flat in the well"
        },
        {
          "name": "stepper-field",
          "kind": "part",
          "of": "stepper",
          "elements": [
            "input"
          ],
          "label": true,
          "attributes": {
            "type": "number"
          },
          "description": "On the group's input-group-field, a native number input: centered tabular figures, no spin buttons"
        },
        {
          "name": "stepper-value",
          "kind": "part",
          "of": "stepper",
          "description": "Around the field and its stepper-display: one cell as wide as the wider of the two. While the field is not focused and the display has a figure, the field's own digits are clear"
        },
        {
          "name": "stepper-display",
          "kind": "part",
          "of": "stepper",
          "description": "In a stepper-value after the field, with aria-hidden=\"true\": the figure as Intl.NumberFormat writes it, shown in the field's place while the field is not focused. The behavior writes it"
        },
        {
          "name": "stepper-scrub",
          "kind": "part",
          "of": "stepper",
          "anywhere": true,
          "description": "A handle in the well, or a label of the field anywhere in the page, that steps the number as it is dragged sideways: an ew-resize cursor, and no text selection"
        }
      ],
      "properties": [
        {
          "name": "--stepper-min",
          "default": "3ch",
          "description": "The narrowest the figure's box gets"
        },
        {
          "name": "--stepper-max",
          "default": "9ch",
          "description": "The widest it grows with field-sizing"
        }
      ],
      "example": "<div class=\"input-group stepper\">\n  <button type=\"button\" class=\"btn btn-square\" value=\"-1\" tabindex=\"-1\" aria-label=\"Fewer seats\"><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=\"M3 8L13 8\"/></svg></button>\n  <input class=\"input-group-field stepper-field\" type=\"number\" min=\"1\" max=\"12\" value=\"4\" aria-label=\"Seats\">\n  <button type=\"button\" class=\"btn btn-square\" value=\"1\" tabindex=\"-1\" aria-label=\"More seats\"><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=\"M3 8L13 8\"/><path d=\"M8 3L8 13\"/></svg></button>\n</div>",
      "stylesheet": "components/stepper.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-disabled",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "wheel",
      "title": "Wheel",
      "tier": "component",
      "category": "Forms",
      "description": "A value picked by turning a column until it rests under a mark.",
      "use": "A short, ordered set a reader knows by heart, picked by touch in the page: an hour and a minute, a unit, an interval. Scrolling and snapping are the platform's; the script reads which option rests under the mark and moves aria-selected to it.",
      "instead": [
        {
          "when": "A keyboard and a pointer are the main input",
          "use": "select"
        },
        {
          "when": "The value is a number nudged up and down",
          "use": "stepper"
        },
        {
          "when": "The value is a date",
          "use": "calendar"
        },
        {
          "when": "A time in a form on a phone: a native time input opens the platform's own wheel",
          "use": "input"
        }
      ],
      "script": "required",
      "behavior": "wheel",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Scroll the focused column until the option before or after rests under the mark, skipping disabled options"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "Scroll the focused column by a page: as many options as it shows"
        },
        {
          "keys": "Home, End",
          "action": "Scroll the focused column to its first or its last option"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations (animation-timeline: view())",
          "fallback": "Options are drawn flat, and the one marked aria-selected=\"true\" takes the strong ink"
        }
      ],
      "classes": [
        {
          "name": "wheel",
          "kind": "root",
          "description": "The well and the mark across its middle, which its columns share"
        },
        {
          "name": "wheel-sm",
          "kind": "modifier",
          "of": "wheel",
          "exclusive": "size",
          "description": "Three 32px rows; the default is five 36px rows"
        },
        {
          "name": "wheel-column",
          "kind": "part",
          "of": "wheel",
          "label": true,
          "attributes": {
            "role": "listbox"
          },
          "description": "A column that scrolls and snaps every option, including the first and last, to its center, on a role=\"listbox\" with a label and tabindex=\"0\""
        },
        {
          "name": "wheel-option",
          "kind": "part",
          "of": "wheel",
          "attributes": {
            "role": "option"
          },
          "description": "One value in a column, on a role=\"option\""
        },
        {
          "name": "wheel-separator",
          "kind": "part",
          "of": "wheel",
          "description": "Fixed text between columns that rests on the mark: the colon of a time, a unit after a number"
        }
      ],
      "states": [
        {
          "on": "wheel-option",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "The option under the mark, kept by the script; it takes the strong ink where view timelines are missing"
        },
        {
          "on": "wheel-option",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "Disabled ink, and no turn or fade"
        }
      ],
      "properties": [
        {
          "name": "--wheel-row",
          "default": "2.25rem",
          "description": "Height of a row and of the mark"
        },
        {
          "name": "--wheel-rows",
          "default": "5",
          "description": "Rows in view; keep it odd"
        },
        {
          "name": "--wheel-radius",
          "default": "var(--radius-control-lg)",
          "description": "Corner of the well"
        }
      ],
      "example": "<div class=\"wheel\" role=\"group\" aria-label=\"Repeat every\">\n  <div class=\"wheel-column\" role=\"listbox\" aria-label=\"Interval\" tabindex=\"0\">\n    <div class=\"wheel-option\" role=\"option\" aria-selected=\"false\">Hour</div>\n    <div class=\"wheel-option\" role=\"option\" aria-selected=\"false\">Day</div>\n    <div class=\"wheel-option\" role=\"option\" aria-selected=\"true\">Week</div>\n    <div class=\"wheel-option\" role=\"option\" aria-selected=\"false\">Month</div>\n    <div class=\"wheel-option\" role=\"option\" aria-selected=\"false\">Year</div>\n  </div>\n</div>",
      "stylesheet": "components/wheel.css",
      "tokens": [
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-control",
        "--radius-control-lg",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "composer",
      "title": "Composer",
      "tier": "component",
      "category": "Forms",
      "description": "Where a message or a prompt is written: a growing field over a row of tools.",
      "use": "Writing a message or a prompt to send: a chat, a reply, an assistant. The sheet is a form, so the send button submits it.",
      "instead": [
        {
          "when": "Longer text is one field among others in a form, under a label",
          "use": "input"
        }
      ],
      "composes": [
        "button",
        "chip",
        "icon"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Enter",
          "action": "Adds a line, as a textarea does. A listener can send on Enter instead; say so in a composer-hint"
        },
        {
          "keys": "Shift+Enter",
          "action": "With that listener, adds a line"
        }
      ],
      "platform": [
        {
          "feature": "field-sizing: content",
          "fallback": "The field keeps three lines and scrolls from there"
        }
      ],
      "classes": [
        {
          "name": "composer",
          "kind": "root",
          "description": "The raised sheet around the field and its tools, on a form. It draws the field's focus, and gives its buttons the concentric corner"
        },
        {
          "name": "composer-field",
          "kind": "part",
          "of": "composer",
          "elements": [
            "textarea"
          ],
          "label": true,
          "description": "The textarea, with no material of its own. It grows with its content from --composer-rows to --composer-max-rows lines, then scrolls"
        },
        {
          "name": "composer-attachments",
          "kind": "part",
          "of": "composer",
          "description": "A wrapping row above the field for what goes with the message: chips or thumbnails"
        },
        {
          "name": "composer-toolbar",
          "kind": "part",
          "of": "composer",
          "description": "The row of tools under the field"
        },
        {
          "name": "composer-end",
          "kind": "part",
          "of": "composer",
          "description": "The group pushed to the end of the toolbar, where the send button goes"
        },
        {
          "name": "composer-hint",
          "kind": "part",
          "of": "composer",
          "description": "A quiet note beside the tools, on one line: a model's name, a character count, a shortcut"
        }
      ],
      "states": [
        {
          "on": "composer-field",
          "name": "invalid",
          "mark": "aria-invalid=\"true\"",
          "description": "Or :user-invalid, such as a required field left empty once the reader has tried to send: the sheet takes the danger contour, which stays while the field is focused"
        },
        {
          "on": "composer-field",
          "name": "disabled",
          "mark": "disabled",
          "description": "The sheet settles into a well and stops lifting; disable the send button with it"
        }
      ],
      "properties": [
        {
          "name": "--composer-rows",
          "default": "1",
          "description": "Lines the field starts with"
        },
        {
          "name": "--composer-max-rows",
          "default": "10",
          "description": "Lines after which the field scrolls"
        },
        {
          "name": "--composer-radius",
          "default": "var(--radius-surface)",
          "description": "The sheet's corner"
        },
        {
          "name": "--composer-inset",
          "default": ".5rem",
          "description": "The sheet's padding, and the inset its buttons' corners follow"
        }
      ],
      "example": "<form class=\"composer\">\n  <textarea class=\"composer-field\" name=\"message\" aria-label=\"Message\" placeholder=\"Ask anything\"></textarea>\n  <div class=\"composer-toolbar\">\n    <button type=\"button\" class=\"btn btn-quiet btn-sm\">Attach a file</button>\n    <div class=\"composer-end\">\n      <span class=\"composer-hint\">0 / 2000</span>\n      <button class=\"btn btn-primary btn-sm\">Send</button>\n    </div>\n  </div>\n</form>",
      "stylesheet": "components/composer.css",
      "tokens": [
        "--color-surface-inset",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus-halo",
        "--color-danger",
        "--shadow-flat",
        "--shadow-lifted",
        "--radius-surface",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "tabs",
      "title": "Tabs",
      "tier": "component",
      "category": "Navigation",
      "description": "Words on one hairline, the current one underlined in ink.",
      "use": "Switching between sibling pages, or between the panels of one page. As links in a nav, the current one has aria-current=\"page\" and no script is needed. For panels in place, the row is a role=\"tablist\" of role=\"tab\" buttons with aria-selected, each naming its panel in aria-controls, and the behavior switches the panels.",
      "instead": [
        {
          "when": "It is a compact choice among a few values",
          "use": "segmented"
        },
        {
          "when": "The destinations are the main ones of a small-screen app",
          "use": "tabbar"
        },
        {
          "when": "The destinations stack in a sidebar",
          "use": "nav"
        }
      ],
      "composes": [
        "badge",
        "icon"
      ],
      "script": "optional",
      "behavior": "tabs",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "As links, every tab is a tab stop. In a tablist with the behavior, the selected tab is the one tab stop"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "In a tablist, with the behavior: move to the tab before or after and select it, skipping disabled ones and wrapping at the ends; the other way around from right to left. ArrowUp and ArrowDown instead when the tablist has aria-orientation=\"vertical\""
        },
        {
          "keys": "Home, End",
          "action": "In a tablist, with the behavior: move to the first or the last tab and select it"
        }
      ],
      "platform": [
        {
          "feature": "CSS anchor positioning (anchor-scope)",
          "fallback": "Each current tab draws its own underline, which does not glide"
        }
      ],
      "classes": [
        {
          "name": "tabs",
          "kind": "root",
          "description": "The hairline row, on a nav with a label or on a role=\"tablist\". It scrolls sideways when the tabs do not fit"
        },
        {
          "name": "tabs-item",
          "kind": "part",
          "of": "tabs",
          "description": "A tab: a link with aria-current=\"page\", or a role=\"tab\" button with aria-selected"
        },
        {
          "name": "tabs-sm",
          "kind": "modifier",
          "of": "tabs",
          "exclusive": "size",
          "description": "Compact tabs, 36px tall with 13px labels; the default is 44px with 14px labels"
        }
      ],
      "states": [
        {
          "on": "tabs-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "On a link: strong ink and the underline"
        },
        {
          "on": "tabs-item",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "On a role=\"tab\" button: strong ink and the underline"
        },
        {
          "on": "tabs-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link without href: disabled ink, and the tab stops answering the pointer"
        }
      ],
      "example": "<nav class=\"tabs\" aria-label=\"Project\">\n  <a class=\"tabs-item\" href=\"#overview\" aria-current=\"page\">Overview</a>\n  <a class=\"tabs-item\" href=\"#activity\">Activity</a>\n  <a class=\"tabs-item\" href=\"#settings\">Settings</a>\n</nav>",
      "stylesheet": "components/tabs.css",
      "tokens": [
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--radius-chip",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "navbar",
      "title": "Navbar",
      "tier": "component",
      "category": "Navigation",
      "description": "The bar at the top of a page, which takes its material once content scrolls under it.",
      "use": "The top of a page or an app: the brand, the main links and a few actions. It sticks to the top of its scroll container. Below 36rem of bar the links step aside for a toggle that opens the same links in a menu or a drawer.",
      "instead": [
        {
          "when": "The main destinations of a small-screen app sit along the bottom edge",
          "use": "tabbar"
        },
        {
          "when": "The destinations stack in a sidebar",
          "use": "nav"
        },
        {
          "when": "The links switch between views of one page",
          "use": "tabs"
        }
      ],
      "composes": [
        "button",
        "icon",
        "menu"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Scroll-state container queries (container-type: scroll-state)",
          "fallback": "The pane is always drawn, at the top of the page too"
        },
        {
          "feature": "Scroll-driven animations (animation-timeline: scroll())",
          "fallback": "navbar-progress is not drawn"
        }
      ],
      "classes": [
        {
          "name": "navbar",
          "kind": "root",
          "description": "The sticky bar, on a header; a size and scroll-state container named navbar. It has no material until content scrolls under it"
        },
        {
          "name": "navbar-floating",
          "kind": "modifier",
          "of": "navbar",
          "description": "A bar with a margin around it, a surface corner and its material from the start"
        },
        {
          "name": "navbar-brand",
          "kind": "part",
          "of": "navbar",
          "description": "The mark and the name, as one link home; it also stands alone at the head of a shell or a sidebar",
          "anywhere": true
        },
        {
          "name": "navbar-nav",
          "kind": "part",
          "of": "navbar",
          "description": "The row of main links, on a nav with a label; hidden below 36rem of bar"
        },
        {
          "name": "navbar-link",
          "kind": "part",
          "of": "navbar",
          "description": "A link or a button in the row: a word at rest, on a chip under the pointer"
        },
        {
          "name": "navbar-end",
          "kind": "part",
          "of": "navbar",
          "description": "The actions at the far end"
        },
        {
          "name": "navbar-toggle",
          "kind": "part",
          "of": "navbar",
          "description": "On the button that opens the links in a menu or a drawer; shown only while navbar-nav is hidden"
        },
        {
          "name": "navbar-progress",
          "kind": "part",
          "of": "navbar",
          "description": "A reading-progress line along the foot of the bar, which fills as the page scrolls; give it role=\"presentation\""
        }
      ],
      "states": [
        {
          "on": "navbar-link",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "The current page is in strong ink, with a short mark of ink under its word"
        },
        {
          "on": "navbar-link",
          "name": "open",
          "mark": "aria-expanded=\"true\"",
          "description": "A button in the row whose menu is open stays in strong ink"
        },
        {
          "on": "navbar-link",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "Disabled ink"
        }
      ],
      "properties": [
        {
          "name": "--navbar-height",
          "default": "3.5rem",
          "description": "The bar's minimum height"
        },
        {
          "name": "--navbar-padding-x",
          "default": "1rem",
          "description": "Inline padding. Set it to the inline padding of the content under the bar, so the bar and the column start on one edge at every width"
        },
        {
          "name": "--navbar-color",
          "default": "var(--color-surface-base)",
          "description": "The color the pane is tinted with; match the page behind it"
        }
      ],
      "example": "<header class=\"navbar\">\n  <a class=\"navbar-brand\" href=\"/\">Atlas</a>\n  <nav class=\"navbar-nav\" aria-label=\"Main\">\n    <a class=\"navbar-link\" href=\"/overview\" aria-current=\"page\">Overview</a>\n    <a class=\"navbar-link\" href=\"/projects\">Projects</a>\n    <a class=\"navbar-link\" href=\"/docs\">Docs</a>\n  </nav>\n  <div class=\"navbar-end\">\n    <a class=\"btn btn-primary btn-sm\" href=\"/start\">Get started</a>\n    <button type=\"button\" class=\"btn btn-quiet btn-square btn-sm navbar-toggle\" popovertarget=\"main-menu\" aria-label=\"Open the menu\"><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=\"M3 5.5L13 5.5\"/><path d=\"M3 10.5L13 10.5\"/></svg></button>\n    <div class=\"menu menu-end\" id=\"main-menu\" popover>\n      <a class=\"menu-item\" href=\"/overview\">Overview</a>\n      <a class=\"menu-item\" href=\"/projects\">Projects</a>\n      <a class=\"menu-item\" href=\"/docs\">Docs</a>\n    </div>\n  </div>\n</header>",
      "stylesheet": "components/navbar.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inset-hover",
        "--color-surface-floating",
        "--color-surface-chip",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-shade-1",
        "--color-shade-2",
        "--shadow-lifted",
        "--radius-chip",
        "--radius-control-sm",
        "--radius-surface",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "tabbar",
      "title": "Tab bar",
      "tier": "component",
      "category": "Navigation",
      "description": "The main destinations of a small-screen app, along the bottom edge.",
      "use": "Three to five destinations of equal weight that a reader moves between all day, on a small screen. It sticks to the bottom of its scroll container and keeps clear of the home indicator. Keep each label to one word.",
      "instead": [
        {
          "when": "The items switch between views of one page",
          "use": "tabs"
        },
        {
          "when": "The screen is wide and the destinations go along the top",
          "use": "navbar"
        },
        {
          "when": "The screen is wide and the destinations stack in a sidebar",
          "use": "nav"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "classes": [
        {
          "name": "tabbar",
          "kind": "root",
          "description": "The bar, sticky at the bottom, on a nav with a label: a pane of frosted glass whose items share its width equally"
        },
        {
          "name": "tabbar-floating",
          "kind": "modifier",
          "of": "tabbar",
          "description": "A bar lifted off the edge, with a margin, a surface corner and a floating shadow"
        },
        {
          "name": "tabbar-item",
          "kind": "part",
          "of": "tabbar",
          "description": "A destination: an icon over a tabbar-label, on a link or a button"
        },
        {
          "name": "tabbar-label",
          "kind": "part",
          "of": "tabbar",
          "description": "The word under the icon, on one line, cut with an ellipsis before it pushes its neighbors"
        }
      ],
      "states": [
        {
          "on": "tabbar-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "On a link: strong ink, and the icon rests on a soft pill"
        },
        {
          "on": "tabbar-item",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "On a role=\"tab\" item that switches panels in place: drawn the same"
        },
        {
          "on": "tabbar-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link: disabled ink"
        }
      ],
      "properties": [
        {
          "name": "--tabbar-height",
          "default": "3.5rem",
          "description": "An item's minimum height"
        },
        {
          "name": "--tabbar-color",
          "default": "var(--color-surface-base)",
          "description": "The color the pane is tinted with"
        }
      ],
      "example": "<nav class=\"tabbar\" aria-label=\"Main\">\n  <a class=\"tabbar-item\" href=\"/\" aria-current=\"page\"><svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 16.25L4 8.5672A1.25 1.25 0 0 1 4.4269 7.6265L9.1769 3.4702A1.25 1.25 0 0 1 10.8231 3.4702L15.5731 7.6265A1.25 1.25 0 0 1 16 8.5672L16 16.25A1.25 1.25 0 0 1 14.75 17.5L5.25 17.5A1.25 1.25 0 0 1 4 16.25Z\"/><path d=\"M8 17.5L8 13.5A1 1 0 0 1 9 12.5L11 12.5A1 1 0 0 1 12 13.5L12 17.5\"/></svg><span class=\"tabbar-label\">Home</span></a>\n  <a class=\"tabbar-item\" href=\"/search\"><svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"8.75\" cy=\"8.75\" r=\"5.75\"/><path d=\"M12.8159 12.8159L17.5 17.5\"/></svg><span class=\"tabbar-label\">Search</span></a>\n  <a class=\"tabbar-item\" href=\"/library\"><svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.5 2.5L2.5 17.5\"/><path d=\"M6.6667 5L6.6667 17.5\"/><path d=\"M10.8333 4.1667L10.8333 17.5\"/><path d=\"M14.1667 4.1667L18.3333 17.0833\"/></svg><span class=\"tabbar-label\">Library</span></a>\n</nav>",
      "stylesheet": "components/tabbar.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-floating",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-floating",
        "--radius-control",
        "--radius-surface",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "dock",
      "title": "Dock",
      "tier": "component",
      "category": "Navigation",
      "description": "A row of launchers that swell toward the pointer.",
      "use": "A handful of places or tools, each shown by its picture or icon, that a reader returns to again and again: the apps of a desktop, the spaces of a workspace, the tools of a canvas. Each launcher carries its name as a label that shows under the pointer and the keys. The page places the dock, usually centered along the foot of a screen.",
      "instead": [
        {
          "when": "The destinations of a small-screen app, each with a word under its icon, along the bottom edge",
          "use": "tabbar"
        },
        {
          "when": "A row of quiet controls that act on what is selected",
          "use": "toolbar"
        },
        {
          "when": "The main links of a site or an app, in words",
          "use": "navbar"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Move from one launcher to the next; the one with focus shows its label"
        },
        {
          "keys": "Enter",
          "action": "Follow the link, or press the button"
        }
      ],
      "platform": [
        {
          "feature": "Neighbors read with :has() and the next-sibling combinator",
          "fallback": "Supported in all current browsers; where :has() is missing, only the tile under the pointer and those after it grow"
        },
        {
          "feature": "backdrop-filter",
          "fallback": "The tray is drawn in its own color, mostly opaque, without the blur"
        },
        {
          "feature": "corner-shape",
          "fallback": "The tray and the tiles have circular corners"
        }
      ],
      "classes": [
        {
          "name": "dock",
          "kind": "root",
          "description": "The tray, a pane of frosted glass 56px tall, on a nav with an aria-label or a div with role=\"group\". Its tiles stand on its foot and grow over its top edge. It places nothing; the page decides where it stands"
        },
        {
          "name": "dock-item",
          "kind": "part",
          "of": "dock",
          "elements": [
            "a",
            "button"
          ],
          "description": "A launcher: a link or a button, a 40px square raised tile holding an icon or a dock-image, with a dock-label for its name. Under a hovering pointer it grows by half, and its two neighbors on each side by less"
        },
        {
          "name": "dock-image",
          "kind": "part",
          "of": "dock",
          "elements": [
            "img"
          ],
          "description": "A picture that fills the tile, with an empty alt: the label names the launcher"
        },
        {
          "name": "dock-label",
          "kind": "part",
          "of": "dock",
          "description": "The launcher's name, in ink over the tile while it is under the pointer or has focus. It is also its accessible name, so it stays in the page while unseen"
        },
        {
          "name": "dock-divider",
          "kind": "part",
          "of": "dock",
          "description": "A short hairline between groups of launchers, with role=\"separator\" and aria-orientation=\"vertical\". The lens steps over it"
        }
      ],
      "states": [
        {
          "on": "dock-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "On a link: a dot of ink under the tile"
        },
        {
          "on": "dock-item",
          "name": "pressed",
          "mark": "aria-pressed=\"true\"",
          "description": "On a button that toggles something on, such as a panel: the same dot"
        },
        {
          "on": "dock-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link: faded"
        }
      ],
      "properties": [
        {
          "name": "--dock-size",
          "default": "2.5rem",
          "description": "A tile's side at rest"
        },
        {
          "name": "--dock-magnify",
          "default": "1.5",
          "description": "How many times its size the tile under the pointer grows to; its neighbors grow by about a half and a sixth of that growth"
        },
        {
          "name": "--dock-inset",
          "default": "8px",
          "description": "Space between the tiles and the tray's edge; the tray's corner is a tile's corner plus this inset"
        },
        {
          "name": "--dock-gap",
          "default": "6px",
          "description": "Space between two tiles"
        },
        {
          "name": "--dock-color",
          "default": "var(--color-surface-floating)",
          "description": "The color the glass is tinted with"
        }
      ],
      "example": "<nav class=\"dock\" aria-label=\"Apps\">\n  <a class=\"dock-item\" href=\"/harbor\" aria-current=\"page\"><img class=\"dock-image\" src=\"/demo/harbor.svg\" alt=\"\"><span class=\"dock-label\">Harbor</span></a>\n  <a class=\"dock-item\" href=\"/dunes\"><img class=\"dock-image\" src=\"/demo/dunes.svg\" alt=\"\"><span class=\"dock-label\">Dunes</span></a>\n  <span class=\"dock-divider\" role=\"separator\" aria-orientation=\"vertical\"></span>\n  <button type=\"button\" class=\"dock-item\"><svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2.5\" y=\"2.9167\" width=\"15\" height=\"4.1667\" rx=\"1\"/><path d=\"M4.1667 7.0833L4.1667 15.8333A1.25 1.25 0 0 0 5.4167 17.0833L14.5833 17.0833A1.25 1.25 0 0 0 15.8333 15.8333L15.8333 7.0833\"/><path d=\"M7.5 10.4167L12.5 10.4167\"/></svg><span class=\"dock-label\">Archive</span></button>\n</nav>",
      "stylesheet": "components/dock.css",
      "tokens": [
        "--color-surface-floating",
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-inverse",
        "--color-surface-tip",
        "--color-line-image",
        "--shadow-raised",
        "--shadow-floating",
        "--shadow-tip",
        "--radius-chip",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "toc",
      "title": "Table of contents",
      "tier": "component",
      "category": "Navigation",
      "description": "The headings of a page as links, with the section in view marked by CSS.",
      "use": "The headings of a long page as a column of links beside it. Where the browser has scroll-target-group the link of the section in view is marked without script; elsewhere a script or the server sets aria-current.",
      "instead": [
        {
          "when": "The links go to other pages",
          "use": "nav"
        },
        {
          "when": "The entries nest many levels deep and fold",
          "use": "tree"
        }
      ],
      "script": "optional",
      "platform": [
        {
          "feature": "scroll-target-group and :target-current",
          "fallback": "No link is marked until a script or the server sets aria-current on it"
        },
        {
          "feature": "CSS anchor positioning (anchor-scope)",
          "fallback": "Each current link draws its own mark on the rail, which does not glide"
        }
      ],
      "classes": [
        {
          "name": "toc",
          "kind": "root",
          "description": "The container, on a nav with a label such as \"On this page\"; a scroll-target group"
        },
        {
          "name": "toc-title",
          "kind": "part",
          "of": "toc",
          "description": "A caption over the list"
        },
        {
          "name": "toc-list",
          "kind": "part",
          "of": "toc",
          "description": "A list of links on a hairline rail. A toc-list inside a list item is a deeper level: it shares the rail and indents its links by one step"
        },
        {
          "name": "toc-link",
          "kind": "part",
          "of": "toc",
          "elements": [
            "a"
          ],
          "description": "A link to a heading by its id; the one of the section in view is in ink, with a mark on the rail"
        }
      ],
      "states": [
        {
          "on": "toc-link",
          "name": "in view",
          "mark": ":target-current",
          "description": "Matched by the browser for the link whose target is in view"
        },
        {
          "on": "toc-link",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "Set by the server or a script; drawn the same"
        }
      ],
      "properties": [
        {
          "name": "--toc-indent",
          "default": ".875rem",
          "description": "The distance from the rail to the words, and one level's indent"
        }
      ],
      "example": "<nav class=\"toc\" aria-label=\"On this page\">\n  <p class=\"toc-title\">On this page</p>\n  <ul class=\"toc-list\">\n    <li><a class=\"toc-link\" href=\"#install\">Install</a></li>\n    <li><a class=\"toc-link\" href=\"#theme\">Theme</a></li>\n    <li><a class=\"toc-link\" href=\"#corners\">Corners</a></li>\n  </ul>\n</nav>",
      "stylesheet": "components/toc.css",
      "tokens": [
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-muted",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "nav",
      "title": "Nav",
      "tier": "component",
      "category": "Navigation",
      "description": "A vertical list of destinations for a sidebar.",
      "use": "The destinations of an app or a settings page, stacked in a sidebar, with at most one level of folding groups. A group is a native details, so it folds without script.",
      "instead": [
        {
          "when": "The rows nest many levels deep",
          "use": "tree"
        },
        {
          "when": "The links are sibling pages inside a page",
          "use": "tabs"
        },
        {
          "when": "The links are the path above the current page",
          "use": "breadcrumb"
        },
        {
          "when": "The destinations go along the top of the page",
          "use": "navbar"
        }
      ],
      "composes": [
        "icon",
        "badge"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On the summary of a group: fold or unfold it, as details does"
        }
      ],
      "platform": [
        {
          "feature": "interpolate-size and ::details-content",
          "fallback": "A group opens and closes at once, without the transition to its own height"
        }
      ],
      "classes": [
        {
          "name": "nav",
          "kind": "root",
          "description": "The list, on a nav with a label"
        },
        {
          "name": "nav-item",
          "kind": "part",
          "of": "nav",
          "description": "A destination: a link, a button, or the summary of a group. Quiet until touched; the current one rises as a small sheet"
        },
        {
          "name": "nav-end",
          "kind": "part",
          "of": "nav",
          "description": "A count, a shortcut or a badge at the end of a row, in tabular figures"
        },
        {
          "name": "nav-label",
          "kind": "part",
          "of": "nav",
          "description": "A quiet caption over a set of rows, nearer the rows it leads than the set before"
        },
        {
          "name": "nav-group",
          "kind": "part",
          "of": "nav",
          "elements": [
            "details"
          ],
          "description": "A details that folds a set of rows under its summary"
        },
        {
          "name": "nav-toggle",
          "kind": "modifier",
          "of": "nav-item",
          "elements": [
            "summary"
          ],
          "description": "On the summary of a group: the row that holds the group's chevron at its end, which turns over while the group is open"
        },
        {
          "name": "nav-chevron",
          "kind": "part",
          "of": "nav",
          "description": "The chevron at the end of a group's summary, an icon that turns over while the group is open"
        },
        {
          "name": "nav-sub",
          "kind": "part",
          "of": "nav",
          "description": "The rows under a group, set in from the icon column on a hairline guide"
        }
      ],
      "states": [
        {
          "on": "nav-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "The row rises as a small sheet, in strong ink"
        },
        {
          "on": "nav-item",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "Drawn the same, for a row that selects a view in place"
        },
        {
          "on": "nav-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link with its href removed: disabled ink"
        },
        {
          "on": "nav-group",
          "name": "open",
          "mark": "open",
          "description": "The rows under the group show and the chevron turns over"
        },
        {
          "on": "nav-group",
          "name": "holds the current page",
          "mark": ":not([open]):has(.nav-item[aria-current=\"page\"])",
          "description": "A folded group that holds the current page: its row takes strong ink and a dot before the chevron, so the way to the current page stays in sight"
        }
      ],
      "properties": [
        {
          "name": "--nav-item-height",
          "default": "2rem",
          "description": "Row height; at least 2.75rem on touch screens"
        },
        {
          "name": "--nav-item-radius",
          "default": "var(--radius-control-sm)",
          "description": "Row corner"
        }
      ],
      "example": "<nav class=\"nav\" aria-label=\"Project\">\n  <a class=\"nav-item\" href=\"/overview\" aria-current=\"page\">Overview</a>\n  <a class=\"nav-item\" href=\"/domains\">Domains <span class=\"nav-end\">3</span></a>\n  <details class=\"nav-group\" open>\n    <summary class=\"nav-item nav-toggle\">Deployments<svg class=\"icon nav-chevron\" 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(90 8 8)\"/></svg></summary>\n    <div class=\"nav-sub\">\n      <a class=\"nav-item\" href=\"/production\">Production</a>\n      <a class=\"nav-item\" href=\"/preview\">Preview</a>\n    </div>\n  </details>\n</nav>",
      "stylesheet": "components/nav.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--shadow-raised",
        "--radius-control-sm",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "breadcrumb",
      "title": "Breadcrumb",
      "tier": "component",
      "category": "Navigation",
      "description": "The path to the current page as a list of links.",
      "use": "Where the current page sits in a hierarchy, with a link back to each level above it. It goes at the top of the page, inside a nav with a label.",
      "instead": [
        {
          "when": "The list is a sequence a reader goes through in order, not a path of parent pages",
          "use": "steps"
        },
        {
          "when": "The links are sibling views of one page",
          "use": "tabs"
        },
        {
          "when": "The links are the numbered pages of one long list",
          "use": "pagination"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "breadcrumb",
          "kind": "root",
          "description": "The list of steps, on an ol inside a nav with aria-label. Steps wrap onto a second line when the row runs out"
        },
        {
          "name": "breadcrumb-item",
          "kind": "part",
          "of": "breadcrumb",
          "description": "A step, on an li. The stylesheet draws a chevron before every step but the first and mirrors it in right-to-left text"
        },
        {
          "name": "breadcrumb-link",
          "kind": "part",
          "of": "breadcrumb",
          "description": "The link of a step. A long name ends in an ellipsis at 16rem"
        }
      ],
      "states": [
        {
          "on": "breadcrumb-link",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "The last step, the page the reader is on: strong ink"
        }
      ],
      "example": "<nav aria-label=\"Breadcrumb\">\n  <ol class=\"breadcrumb\">\n    <li class=\"breadcrumb-item\"><a class=\"breadcrumb-link\" href=\"/projects\">Projects</a></li>\n    <li class=\"breadcrumb-item\"><a class=\"breadcrumb-link\" href=\"/projects/atlas\">Atlas</a></li>\n    <li class=\"breadcrumb-item\"><a class=\"breadcrumb-link\" href=\"/projects/atlas/deployments\" aria-current=\"page\">Deployments</a></li>\n  </ol>\n</nav>",
      "stylesheet": "components/breadcrumb.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--radius-chip",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "pagination",
      "title": "Pagination",
      "tier": "component",
      "category": "Navigation",
      "description": "The pages of a long list, as a row of links.",
      "use": "A list or a table split over numbered pages. The links are quiet square buttons; the current page has aria-current=\"page\" and stays sunk, which the button stylesheet draws. When the number of pages is unknown, two labelled buttons, Previous and Next, are enough and need no pagination class.",
      "instead": [
        {
          "when": "The views have names instead of numbers",
          "use": "tabs"
        },
        {
          "when": "The pages are the steps of one task, done in order",
          "use": "steps"
        },
        {
          "when": "The links are the parent pages of the current one",
          "use": "breadcrumb"
        },
        {
          "when": "The pages are read in an order and named, as the chapters of a guide are",
          "use": "pager"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "none",
      "classes": [
        {
          "name": "pagination",
          "kind": "root",
          "description": "The row of page links, on an ol inside a nav with aria-label. Figures are tabular, so the row keeps its width from page to page"
        },
        {
          "name": "pagination-gap",
          "kind": "part",
          "of": "pagination",
          "description": "An ellipsis where pages are left out. It is not a control: hide it with aria-hidden=\"true\""
        }
      ],
      "example": "<nav aria-label=\"Pagination\">\n  <ol class=\"pagination\">\n    <li><a class=\"btn btn-quiet btn-square btn-sm\" href=\"?page=1\" aria-label=\"Page 1\">1</a></li>\n    <li><a class=\"btn btn-quiet btn-square btn-sm\" href=\"?page=2\" aria-label=\"Page 2\" aria-current=\"page\">2</a></li>\n    <li><a class=\"btn btn-quiet btn-square btn-sm\" href=\"?page=3\" aria-label=\"Page 3\">3</a></li>\n    <li class=\"pagination-gap\" aria-hidden=\"true\">…</li>\n    <li><a class=\"btn btn-quiet btn-square btn-sm\" href=\"?page=24\" aria-label=\"Page 24\">24</a></li>\n  </ol>\n</nav>",
      "stylesheet": "components/pagination.css",
      "tokens": [
        "--color-text-muted"
      ],
      "mixins": [
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "pager",
      "title": "Pager",
      "tier": "component",
      "category": "Navigation",
      "description": "The page before and the page after, at the foot of an article.",
      "use": "Pages read in an order: a guide, a course, the chapters of a document. Each link says which it is with rel=\"prev\" or rel=\"next\"; the stylesheet reads that to place it and to move its arrow, an icon in its label. Leave out the link that does not exist: the first page has only a next.",
      "instead": [
        {
          "when": "The pages are numbered pages of one long list",
          "use": "pagination"
        },
        {
          "when": "The reader needs to see where the page is in the site",
          "use": "breadcrumb"
        },
        {
          "when": "It is a short sequence with the current step marked",
          "use": "steps"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "classes": [
        {
          "name": "pager",
          "kind": "root",
          "label": true,
          "description": "The two links side by side, on a nav with an accessible name; in a container under 26rem they stack"
        },
        {
          "name": "pager-link",
          "kind": "part",
          "of": "pager",
          "elements": [
            "a"
          ],
          "attributes": {
            "rel": [
              "prev",
              "next"
            ]
          },
          "description": "One link, with rel=\"prev\" or rel=\"next\": a flat face that rises a step under the pointer. The next page stands at the end with its words set to the end"
        },
        {
          "name": "pager-label",
          "kind": "part",
          "of": "pager",
          "description": "The quiet word over the title, Previous or Next, with the icon that points the way the link goes: an arrow before the word of the page before, after the word of the next. The label sizes it at 14px and turns it round in a right-to-left page"
        },
        {
          "name": "pager-title",
          "kind": "part",
          "of": "pager",
          "description": "The title of the page the link leads to"
        }
      ],
      "states": [
        {
          "on": "pager-link",
          "name": "next",
          "mark": "rel=\"next\"",
          "description": "The link to the page after: it stands at the end, and its arrow follows the word and points forward"
        }
      ],
      "example": "<nav class=\"pager\" aria-label=\"Guide pages\">\n  <a class=\"pager-link\" rel=\"prev\" href=\"/guide/installation\"><span class=\"pager-label\"><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=\"M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\" transform=\"rotate(180 8 8)\"/><path d=\"M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5\" transform=\"rotate(180 8 8)\"/></svg>Previous</span><span class=\"pager-title\">Installation</span></a>\n  <a class=\"pager-link\" rel=\"next\" href=\"/guide/theming\"><span class=\"pager-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=\"M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\"/><path d=\"M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5\"/></svg></span><span class=\"pager-title\">Theming</span></a>\n</nav>",
      "stylesheet": "components/pager.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "steps",
      "title": "Steps",
      "tier": "component",
      "category": "Navigation",
      "description": "Where a reader is in a short sequence.",
      "use": "A checkout, a setup or another task of a few named steps done in order. Mark only the current step with aria-current=\"step\": the steps before it are drawn complete and the steps after it wait. Keep a horizontal row to four or five short titles.",
      "instead": [
        {
          "when": "The amount done is a number, not a list of named steps",
          "use": "progress"
        },
        {
          "when": "The entries are events that already happened",
          "use": "timeline"
        },
        {
          "when": "The reader may open the sections in any order",
          "use": "tabs"
        },
        {
          "when": "The list is the path of parent pages",
          "use": "breadcrumb"
        },
        {
          "when": "The reader ticks the items off",
          "use": "checklist"
        },
        {
          "when": "The steps are a record of work that ran, not a path the reader walks",
          "use": "trace"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "steps",
          "kind": "root",
          "description": "The list of steps, on an ol. A CSS counter numbers the markers and a line joins each marker to the next"
        },
        {
          "name": "steps-vertical",
          "kind": "modifier",
          "of": "steps",
          "description": "One step under another, for a narrow column or steps that carry a sentence each"
        },
        {
          "name": "steps-complete",
          "kind": "modifier",
          "of": "steps",
          "description": "Every step is complete; no step is current"
        },
        {
          "name": "steps-item",
          "kind": "part",
          "of": "steps",
          "description": "A step, on an li. Its marker is a number in a well while it waits, and an ink disc with a check once the current step comes after it"
        },
        {
          "name": "steps-body",
          "kind": "part",
          "of": "steps",
          "description": "Wraps the title and the description of a step that has both"
        },
        {
          "name": "steps-title",
          "kind": "part",
          "of": "steps",
          "description": "The name of a step, on one line; it wraps in a vertical list"
        },
        {
          "name": "steps-description",
          "kind": "part",
          "of": "steps",
          "description": "A quiet line under the title"
        }
      ],
      "states": [
        {
          "on": "steps-item",
          "name": "current",
          "mark": "aria-current=\"step\"",
          "description": "The marker rises as a small sheet with an ink contour, and the steps before this one are drawn complete"
        }
      ],
      "properties": [
        {
          "name": "--steps-marker",
          "default": "1.5rem",
          "description": "Marker diameter"
        }
      ],
      "example": "<ol class=\"steps\">\n  <li class=\"steps-item\"><span class=\"steps-title\">Account</span></li>\n  <li class=\"steps-item\" aria-current=\"step\"><span class=\"steps-title\">Billing</span></li>\n  <li class=\"steps-item\"><span class=\"steps-title\">Confirm</span></li>\n</ol>",
      "stylesheet": "components/steps.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-shade-1",
        "--color-shade-2",
        "--shadow-pressed",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "dialog",
      "title": "Dialog",
      "tier": "component",
      "category": "Overlays",
      "description": "A native modal on an overlay sheet, opened and closed without script.",
      "use": "A decision or a short task that must be finished or dismissed before the page is used again: confirm a destructive act, fill a short form. With dialog-drawer it is a side panel for filters, details or navigation; with dialog-sheet it is a panel from the bottom edge on a small screen. Add dialog-swipe to a drawer or a sheet that should follow a finger and be let go of to close, and dialog-detents to a sheet that should also rest at half height.",
      "instead": [
        {
          "when": "The content belongs to one button and the page stays usable around it",
          "use": "popover"
        },
        {
          "when": "It is a list of actions opened from a button",
          "use": "menu"
        },
        {
          "when": "It is one search field over a list of commands",
          "use": "command"
        },
        {
          "when": "It confirms something that just happened and needs no answer",
          "use": "toast"
        },
        {
          "when": "The message can stay in the page and blocks nothing",
          "use": "alert"
        },
        {
          "when": "The overlay holds one picture and nothing to decide",
          "use": "lightbox"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "optional",
      "behavior": "drawer",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On a button with commandfor and command=\"show-modal\": open the dialog and move focus into it, to the element with autofocus when there is one"
        },
        {
          "keys": "Tab, Shift+Tab",
          "action": "Move between the controls inside the dialog; the page behind it is inert"
        },
        {
          "keys": "Escape",
          "action": "Close the dialog and return focus to the button that opened it"
        },
        {
          "keys": "Enter",
          "action": "In a form with method=\"dialog\": submit it, which closes the dialog and sets its returnValue"
        },
        {
          "keys": "Enter, Space",
          "action": "On the dialog-handle of a sheet with dialog-detents, once the drawer behavior is attached: move the sheet to the other rest, half or full height"
        },
        {
          "keys": "ArrowUp",
          "action": "On the dialog-handle of a sheet with dialog-detents: grow the sheet to full height"
        },
        {
          "keys": "ArrowDown",
          "action": "On the dialog-handle of a sheet with dialog-detents: shrink the sheet to half height"
        }
      ],
      "platform": [
        {
          "feature": "commandfor with command=\"show-modal\" and command=\"close\" (invoker commands)",
          "fallback": "Call dialog.showModal() and dialog.close() from a click handler; the stylesheet is the same"
        },
        {
          "feature": "closedby=\"any\" (light dismiss)",
          "fallback": "A click on the scrim does nothing; Escape and the close buttons still close the dialog"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The dialog and its scrim appear and leave at once, without the fade"
        },
        {
          "feature": "Scroll snapping on the track of a dialog-swipe (the browser follows the hand, carries a fling and settles on a rest)",
          "fallback": "Baseline everywhere. A mouse cannot scroll by dragging, so the drawer behavior scrolls the track for it"
        },
        {
          "feature": "@media (scripting: enabled) for the gone rest of a dialog-swipe",
          "fallback": "Without scripting, or before the media feature is known, a panel let go of past its edge springs back; Escape and the close buttons close the dialog"
        },
        {
          "feature": "scroll-initial-target on the half rest of dialog-detents",
          "fallback": "The sheet opens at full height until the drawer behavior moves it to half height; without the behavior it stays at full height"
        },
        {
          "feature": "The drawer behavior, for the scrim of a dialog-swipe",
          "fallback": "The scrim does not thin as the panel leaves; it stays until the dialog closes, then fades"
        }
      ],
      "classes": [
        {
          "name": "dialog",
          "kind": "root",
          "elements": [
            "dialog"
          ],
          "label": true,
          "description": "The overlay sheet, on a dialog element named with aria-labelledby or aria-label. It is 28rem wide and keeps 1rem clear of the viewport"
        },
        {
          "name": "dialog-sm",
          "kind": "modifier",
          "of": "dialog",
          "exclusive": "size",
          "description": "22rem wide, for a confirmation of one sentence; the default is 28rem"
        },
        {
          "name": "dialog-lg",
          "kind": "modifier",
          "of": "dialog",
          "exclusive": "size",
          "description": "40rem wide; the default is 28rem"
        },
        {
          "name": "dialog-drawer",
          "kind": "modifier",
          "of": "dialog",
          "exclusive": "position",
          "description": "A panel on the inline-end edge, 24rem wide, for work that keeps the page in view. It floats 8px inside the viewport and slides in from the edge it rests on"
        },
        {
          "name": "dialog-drawer-start",
          "kind": "modifier",
          "of": "dialog",
          "description": "With dialog-drawer: the panel rests on the inline-start edge, 18rem wide, where navigation lives"
        },
        {
          "name": "dialog-sheet",
          "kind": "modifier",
          "of": "dialog",
          "exclusive": "position",
          "description": "A panel that rises from the bottom edge, with square lower corners, clear of the home indicator"
        },
        {
          "name": "dialog-swipe",
          "kind": "modifier",
          "of": "dialog",
          "description": "With dialog-drawer or dialog-sheet: the dialog becomes a transparent track as large as the viewport, and its dialog-panel follows a finger, a trackpad, a wheel or a mouse and is let go of to close. Attach the drawer behavior"
        },
        {
          "name": "dialog-detents",
          "kind": "modifier",
          "of": "dialog",
          "description": "With dialog-sheet and dialog-swipe: the sheet is as tall as it may be, opens showing half the viewport and rests there or at full height"
        },
        {
          "name": "dialog-panel",
          "kind": "part",
          "of": "dialog",
          "description": "In a dialog-swipe, the drawer or the sheet itself: it wears the material and holds the header, the body, the footer and the close button"
        },
        {
          "name": "dialog-handle",
          "kind": "part",
          "of": "dialog",
          "description": "A grab handle: a short groove in a sheet's top edge, at the start of its dialog-panel. A button named for what it does in a sheet with dialog-detents, where the behavior moves the sheet with it and sets aria-expanded; otherwise a div with aria-hidden=\"true\""
        },
        {
          "name": "dialog-header",
          "kind": "part",
          "of": "dialog",
          "description": "Holds the title and the description at the top of the sheet"
        },
        {
          "name": "dialog-title",
          "kind": "part",
          "of": "dialog",
          "description": "The title; point the dialog's aria-labelledby at it"
        },
        {
          "name": "dialog-description",
          "kind": "part",
          "of": "dialog",
          "description": "A quiet sentence under the title that says what the title means"
        },
        {
          "name": "dialog-body",
          "kind": "part",
          "of": "dialog",
          "description": "Content between header and footer. It takes the remaining height and scrolls inside the sheet when it is long"
        },
        {
          "name": "dialog-footer",
          "kind": "part",
          "of": "dialog",
          "description": "The actions, the main one last. Under 22rem of dialog width they stack at full width, the main one first"
        },
        {
          "name": "dialog-close",
          "kind": "part",
          "of": "dialog",
          "label": true,
          "description": "Places a quiet square button in the top corner at the inline end; it needs an accessible name"
        }
      ],
      "states": [
        {
          "on": "dialog",
          "name": "open",
          "mark": "open",
          "description": "Set by the browser when the dialog is shown. Do not write it in markup: a dialog that starts with open is not modal"
        },
        {
          "on": "dialog",
          "name": "modal",
          "mark": ":modal",
          "description": "Opened with show-modal or showModal(): the page behind it does not scroll"
        },
        {
          "on": "dialog-handle",
          "name": "held",
          "mark": ":active",
          "description": "Held by a pointer: the groove takes ink, and while a fine pointer holds the panel the track stops snapping"
        }
      ],
      "properties": [
        {
          "name": "--dialog-width",
          "default": "28rem",
          "description": "Preferred width"
        },
        {
          "name": "--dialog-padding",
          "default": "1.5rem",
          "description": "Padding around the parts"
        },
        {
          "name": "--dialog-radius",
          "default": "1.25rem",
          "description": "Corner radius"
        },
        {
          "name": "--dialog-scrim",
          "description": "In a dialog-swipe, how much of the scrim is left, from 1 (all of it, when unset) down to 0 as the panel leaves. The drawer behavior writes it"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" commandfor=\"delete-project\" command=\"show-modal\">Delete project</button>\n\n<dialog id=\"delete-project\" class=\"dialog\" closedby=\"any\" aria-labelledby=\"delete-project-title\">\n  <header class=\"dialog-header\">\n    <h2 class=\"dialog-title\" id=\"delete-project-title\">Delete this project?</h2>\n    <p class=\"dialog-description\">Atlas and its 14 deployments are removed, and its domains stop resolving at once.</p>\n  </header>\n  <footer class=\"dialog-footer\">\n    <button type=\"button\" class=\"btn\" commandfor=\"delete-project\" command=\"close\" autofocus>Cancel</button>\n    <button type=\"button\" class=\"btn btn-primary\" commandfor=\"delete-project\" command=\"close\">Delete project</button>\n  </footer>\n</dialog>",
      "stylesheet": "components/dialog.css",
      "tokens": [
        "--color-surface-floating",
        "--color-surface-scrim",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--shadow-overlay",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "lightbox",
      "title": "Lightbox",
      "tier": "component",
      "category": "Overlays",
      "description": "A picture opened large over the page, in a native dialog.",
      "use": "A thumbnail, a figure or a screenshot a reader may want to see large. The thumbnail's own button opens the dialog with commandfor and command=\"show-modal\"; closedby=\"any\" lets a click outside the picture close it. Set --lightbox-ratio to the picture's proportions.",
      "instead": [
        {
          "when": "The overlay holds a title, text or a form",
          "use": "dialog"
        },
        {
          "when": "The picture stays in the page with its caption",
          "use": "figure"
        },
        {
          "when": "Two versions of one picture are compared",
          "use": "compare"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Escape",
          "action": "Closes the lightbox and returns focus to the button that opened it"
        }
      ],
      "platform": [
        {
          "feature": "commandfor with command=\"show-modal\" and command=\"close\" (invoker commands)",
          "fallback": "Call dialog.showModal() and dialog.close() from a click handler; the stylesheet is the same"
        },
        {
          "feature": "closedby=\"any\" (light dismiss)",
          "fallback": "A click outside the picture does nothing; Escape and the close button still close it"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The picture and the scrim appear and leave at once, without the fade"
        }
      ],
      "classes": [
        {
          "name": "lightbox",
          "kind": "root",
          "elements": [
            "dialog"
          ],
          "label": true,
          "description": "The dialog, with no sheet of its own: it is exactly as large as the picture, over a dimmed and blurred page"
        },
        {
          "name": "lightbox-media",
          "kind": "part",
          "of": "lightbox",
          "description": "The picture, a video or a frame: 64rem wide or as large as the viewport allows with a 24px gutter, at the proportions of --lightbox-ratio"
        },
        {
          "name": "lightbox-caption",
          "kind": "part",
          "of": "lightbox",
          "description": "A floating bar under the picture, as wide as it is"
        },
        {
          "name": "lightbox-close",
          "kind": "part",
          "of": "lightbox",
          "label": true,
          "description": "On the close button: it rests 8px inside the top corner of the picture"
        }
      ],
      "states": [
        {
          "on": "lightbox",
          "name": "open",
          "mark": "open",
          "description": "Set by the browser when the dialog is shown. Do not write it in markup: a dialog that starts with open is not modal"
        }
      ],
      "properties": [
        {
          "name": "--lightbox-ratio",
          "default": "3 / 2",
          "description": "The picture's proportions, width over height; the picture is cropped to them"
        },
        {
          "name": "--lightbox-width",
          "default": "64rem",
          "description": "The widest the picture gets"
        },
        {
          "name": "--lightbox-gutter",
          "default": "1.5rem",
          "description": "The room kept between the picture and each edge of the viewport"
        },
        {
          "name": "--lightbox-radius",
          "default": "var(--radius-control-lg)",
          "description": "The corner of the picture and of its caption"
        }
      ],
      "example": "<button class=\"btn\" type=\"button\" commandfor=\"shot\" command=\"show-modal\">View the screenshot</button>\n<dialog class=\"lightbox\" id=\"shot\" closedby=\"any\" aria-label=\"The dashboard in the light theme\">\n  <img class=\"lightbox-media\" src=\"/screens/dashboard.png\" alt=\"The dashboard in the light theme\">\n  <button class=\"btn btn-sm btn-square lightbox-close\" type=\"button\" commandfor=\"shot\" command=\"close\" aria-label=\"Close\">\n    <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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg>\n  </button>\n</dialog>",
      "stylesheet": "components/lightbox.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-floating",
        "--color-surface-scrim",
        "--color-text-body",
        "--color-line-image",
        "--shadow-floating",
        "--shadow-overlay",
        "--radius-control-lg",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "popover",
      "title": "Popover",
      "tier": "component",
      "category": "Overlays",
      "description": "A floating sheet anchored to the button that opens it.",
      "use": "Content that belongs to one button and can be left at any time: a share link, a short form, a few settings. The page stays usable around it and an outside click or Escape closes it. With popover=\"hint\" and interestfor on the trigger it is a preview shown on hover and focus.",
      "instead": [
        {
          "when": "The task must be finished or dismissed before the page is used again",
          "use": "dialog"
        },
        {
          "when": "The content is a list of actions",
          "use": "menu"
        },
        {
          "when": "It is a few words that name a control, with nothing in it to act on",
          "use": "tooltip"
        },
        {
          "when": "It picks the value of a form field from a list",
          "use": "select"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On the button with popovertarget: open or close the popover. Focus stays on the button unless an element inside has autofocus"
        },
        {
          "keys": "Tab",
          "action": "Move from the button into the popover, which is next in the tab order"
        },
        {
          "keys": "Escape",
          "action": "Close the popover and return focus to its button"
        }
      ],
      "platform": [
        {
          "feature": "The popover attribute with popovertarget, or commandfor with command=\"toggle-popover\"",
          "fallback": "Supported in all current browsers: the popover opens, closes on an outside click or Escape and reports aria-expanded on its button without script. Where no button can point at it, call showPopover() and hidePopover() from script; the stylesheet is the same"
        },
        {
          "feature": "CSS anchor positioning (position-area and position-try-fallbacks)",
          "fallback": "The popover still opens and closes; it appears centered in the viewport, where the browser places any popover"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The popover appears and leaves at once, without the fade"
        },
        {
          "feature": "popover=\"hint\" with interestfor (interest invokers)",
          "fallback": "The trigger works as a plain link or button and the preview does not appear"
        }
      ],
      "classes": [
        {
          "name": "popover",
          "kind": "root",
          "attributes": {
            "popover": true
          },
          "description": "The floating sheet, on an element with the popover attribute; without the attribute it is never shown. It opens below its button, lined up with the start edge, at a distance of --anchored-gap (6px), and flips at the viewport edge"
        },
        {
          "name": "popover-end",
          "kind": "modifier",
          "of": "popover",
          "exclusive": "align",
          "description": "Lines up with the button's end edge, for a button at the end of a row"
        },
        {
          "name": "popover-center",
          "kind": "modifier",
          "of": "popover",
          "exclusive": "align",
          "description": "Centers on the button"
        },
        {
          "name": "popover-top",
          "kind": "modifier",
          "of": "popover",
          "description": "Opens above the button; it combines with popover-end or popover-center"
        }
      ],
      "properties": [
        {
          "name": "--popover-padding",
          "default": "1rem",
          "description": "Padding inside the sheet"
        },
        {
          "name": "--popover-max-width",
          "default": "22rem",
          "description": "Widest the sheet grows before its text wraps"
        },
        {
          "name": "--anchored-gap",
          "on": "popover",
          "description": "Space between the surface and the control that opened it; 6px when not set"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" popovertarget=\"share\">Share</button>\n\n<div id=\"share\" popover class=\"popover\">\n  <p>Anyone with the link can view the latest deployment.</p>\n  <button type=\"button\" class=\"btn btn-sm\">Copy link</button>\n</div>",
      "stylesheet": "components/popover.css",
      "tokens": [
        "--color-surface-floating",
        "--color-line-strong",
        "--color-text-body",
        "--shadow-floating",
        "--radius-control-sm"
      ],
      "mixins": [
        "--anchored",
        "--pop"
      ]
    },
    {
      "name": "color-picker",
      "title": "Color picker",
      "tier": "component",
      "category": "Forms",
      "description": "Any color, chosen on a field of lightness and chroma, a hue and an opacity, or typed.",
      "use": "A color the reader may choose freely, such as a brand color, a label's color or a theme token. It chooses in OKLCH, so lightness and chroma move as the eye sees them, and it writes the color in hex, rgb() or oklch(). Inline, or opened from a button in a popover.",
      "instead": [
        {
          "when": "The color is one of a few the page offers",
          "use": "swatch"
        },
        {
          "when": "The platform's own picker is enough, with no opacity and no OKLCH",
          "use": "input"
        }
      ],
      "composes": [
        "slider",
        "swatch",
        "select",
        "input",
        "popover",
        "button"
      ],
      "script": "required",
      "behavior": "color-picker",
      "keyboard": [
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "On the field's thumb, make the color lighter or darker by 1% of lightness"
        },
        {
          "keys": "ArrowRight, ArrowLeft",
          "action": "On the field's thumb, add or take away .005 of chroma, toward the end of the line or its start (mirrored right to left)"
        },
        {
          "keys": "Shift with an arrow",
          "action": "On the field's thumb, ten times the step: 10% of lightness or .05 of chroma"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "On the field's thumb, make the color lighter or darker by 10% of lightness"
        },
        {
          "keys": "Home, End",
          "action": "On the field's thumb, take the chroma to none (a grey) or to the end of the field"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown, Home, End, PageUp, PageDown",
          "action": "On the hue and the opacity, what the native range input does"
        },
        {
          "keys": "Enter",
          "action": "In the text field, take what is typed; the field is written again in the format chosen, or put back when it is not a color"
        }
      ],
      "platform": [
        {
          "feature": "oklch() and gradients interpolated in Oklab",
          "fallback": "Supported in all current browsers. An older one leaves the field and the tracks unpainted; the text field still takes and writes the color"
        },
        {
          "feature": "The popover attribute and CSS anchor positioning",
          "fallback": "Opened from a button, the picker is a popover: without anchor positioning it opens centered, as the browser places any popover"
        }
      ],
      "classes": [
        {
          "name": "color-picker",
          "kind": "root",
          "description": "The picker: a column 16rem wide of the field, the tracks and the text. When it holds a color-picker-popover it holds only the button and the popover, which takes the column"
        },
        {
          "name": "color-picker-area",
          "kind": "part",
          "of": "color-picker",
          "description": "The field: lightness from 100% at the top to 0 at the bottom, chroma from 0 to .37 along the line, at the hue held. It holds the thumb and takes the pointer"
        },
        {
          "name": "color-picker-thumb",
          "kind": "part",
          "of": "color-picker",
          "attributes": {
            "role": "slider",
            "tabindex": [
              "0",
              "-1"
            ]
          },
          "label": true,
          "description": "The one thumb of the field, placed from the numbers on the root: a slider whose value is the lightness and whose aria-valuetext names the lightness and the chroma"
        },
        {
          "name": "color-picker-hue",
          "kind": "part",
          "of": "color-picker",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "On a slider from 0 to 360: the hue, on a track painted with the circle of hues"
        },
        {
          "name": "color-picker-alpha",
          "kind": "part",
          "of": "color-picker",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "On a slider from 0 to 100: the opacity, on a track where the color fades in over a checker. Leave it out for an opaque color"
        },
        {
          "name": "color-picker-swatch",
          "kind": "part",
          "of": "color-picker",
          "description": "On a swatch: the color held, over a checker. In the column it stands at the start of the two tracks; in the button that opens a popover it shows the color while the picker is closed"
        },
        {
          "name": "color-picker-fields",
          "kind": "part",
          "of": "color-picker",
          "description": "The row of the format and the text"
        },
        {
          "name": "color-picker-format",
          "kind": "part",
          "of": "color-picker",
          "elements": [
            "select"
          ],
          "label": true,
          "description": "On a small select: the format the text is written in, with the options hex, rgb and oklch"
        },
        {
          "name": "color-picker-text",
          "kind": "part",
          "of": "color-picker",
          "elements": [
            "input"
          ],
          "label": true,
          "description": "On a small text field: the color, written in the format chosen. It takes a color typed in any of the three, and carries the name a form submits"
        },
        {
          "name": "color-picker-popover",
          "kind": "part",
          "of": "color-picker",
          "attributes": {
            "popover": true
          },
          "description": "On a popover inside the root: the column, opened from a button beside it, whose swatch shows the color"
        }
      ],
      "states": [
        {
          "on": "color-picker-thumb",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The field fades and takes no pointer and no key, and the behavior takes the thumb out of the tab order with tabindex=\"-1\" until it is enabled again; disable the sliders and the fields beside it"
        },
        {
          "on": "color-picker-popover",
          "name": "open",
          "mark": ":popover-open",
          "description": "The popover is the column"
        }
      ],
      "properties": [
        {
          "name": "--color-picker-width",
          "default": "16rem",
          "description": "Width of the column"
        },
        {
          "name": "--color-picker-lightness",
          "default": "0",
          "description": "The color's lightness, from 0 to 1. The behavior writes it on the root; write the first value in the markup's style"
        },
        {
          "name": "--color-picker-chroma",
          "default": "0",
          "description": "The color's chroma, from 0; the field reaches .37"
        },
        {
          "name": "--color-picker-hue",
          "default": "0",
          "description": "The color's hue, in degrees without a unit"
        },
        {
          "name": "--color-picker-alpha",
          "default": "1",
          "description": "The color's opacity, from 0 to 1"
        },
        {
          "name": "--color-picker-color",
          "description": "The color held, made from the four numbers: read it for anything else inside the root that shows the color"
        }
      ],
      "example": "<div class=\"color-picker\" style=\"--color-picker-lightness: .62; --color-picker-chroma: .19; --color-picker-hue: 260\">\n  <div class=\"color-picker-area\">\n    <div class=\"color-picker-thumb\" role=\"slider\" tabindex=\"0\" aria-label=\"Lightness and chroma\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"62\" aria-valuetext=\"Lightness 62%, chroma 0.19\"></div>\n  </div>\n  <span class=\"swatch swatch-lg color-picker-swatch\"></span>\n  <input type=\"range\" class=\"slider color-picker-hue\" min=\"0\" max=\"360\" value=\"260\" aria-label=\"Hue\">\n  <input type=\"range\" class=\"slider color-picker-alpha\" min=\"0\" max=\"100\" value=\"100\" aria-label=\"Opacity\">\n  <div class=\"color-picker-fields\">\n    <select class=\"select select-sm color-picker-format\" aria-label=\"Format\">\n      <option value=\"hex\">Hex</option>\n      <option value=\"rgb\">RGB</option>\n      <option value=\"oklch\" selected>OKLCH</option>\n    </select>\n    <input class=\"input input-sm color-picker-text\" value=\"oklch(62% 0.19 260)\" aria-label=\"Color\" spellcheck=\"false\" autocomplete=\"off\">\n  </div>\n</div>",
      "stylesheet": "components/color-picker.css",
      "tokens": [
        "--color-surface-raised",
        "--color-line-strong",
        "--color-text-strong",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-thumb-high",
        "--color-line-on-color",
        "--radius-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--color-picker-color",
        "--color-picker-hues",
        "--color-picker-field",
        "--color-picker-field-between"
      ]
    },
    {
      "name": "gradient",
      "title": "Gradient",
      "tier": "component",
      "category": "Forms",
      "description": "A gradient being made: its stops on a bar, the stop in hand in a color picker, and its type, angle and centre.",
      "use": "A reader makes a linear, radial or conic gradient for a background, a theme or a brand asset. The value is the gradient as data: its type, angle, centre and stops, each stop with an id, an offset and a color; gradientCss() writes it as CSS for the preview and the copy alike. Every control in it is the library's own: color-picker, slider, number input, segmented and dial.",
      "instead": [
        {
          "when": "One color is chosen",
          "use": "color-picker"
        },
        {
          "when": "A color is chosen from a few the page offers",
          "use": "swatch"
        }
      ],
      "composes": [
        "color-picker",
        "slider",
        "input",
        "segmented",
        "dial",
        "button"
      ],
      "script": "required",
      "behavior": "gradient",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves to the stop in hand on the bar, then through the controls; the other stops are reached by taking them in hand with the pointer or from their place in the tab order of the bar"
        },
        {
          "keys": "ArrowRight, ArrowUp",
          "action": "On a stop: moves it one point toward the end; ten with Shift. ArrowRight goes left where the page runs right to left"
        },
        {
          "keys": "ArrowLeft, ArrowDown",
          "action": "On a stop: moves it one point toward the start; ten with Shift"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "On a stop: moves it ten points"
        },
        {
          "keys": "Home, End",
          "action": "On a stop: moves it to 0 or to 100"
        },
        {
          "keys": "Delete, Backspace",
          "action": "On a stop: removes it while there are more than two, and hands focus to its neighbor"
        }
      ],
      "platform": [
        {
          "feature": "Gradients interpolated in a color space, as in linear-gradient(in oklab …)",
          "fallback": "The preview and the bar are painted from --gradient-fallback, interpolated in sRGB"
        },
        {
          "feature": "Container queries",
          "fallback": "The controls stay in one column at every width"
        }
      ],
      "classes": [
        {
          "name": "gradient",
          "kind": "root",
          "description": "The editor: a preview, a bar of stops and the controls. The gradient behavior writes the stops' handles and publishes the gradient. Mark aria-readonly=\"true\" or aria-disabled=\"true\" on it to keep it from changing"
        },
        {
          "name": "gradient-preview",
          "kind": "part",
          "of": "gradient",
          "description": "The gradient over a checkerboard, 16 : 9 unless --gradient-ratio says otherwise; hide it with aria-hidden, since the stops and the CSS say the same"
        },
        {
          "name": "gradient-bar",
          "kind": "part",
          "of": "gradient",
          "description": "The stops from start to end, whatever the type, as a short well the handles stand on"
        },
        {
          "name": "gradient-stop",
          "kind": "part",
          "of": "gradient",
          "attributes": {
            "role": "slider"
          },
          "label": true,
          "description": "A stop's handle, written by the behavior: a disc of its color in a pearl ring at --gradient-offset along the bar, a slider of the offset named with its place among the stops"
        },
        {
          "name": "gradient-fields",
          "kind": "part",
          "of": "gradient",
          "description": "The controls, in one column, and two side by side when the room allows"
        },
        {
          "name": "gradient-color",
          "kind": "part",
          "of": "gradient",
          "description": "Holds the color-picker of the stop in hand; the gradient behavior attaches the picker"
        },
        {
          "name": "gradient-offset",
          "kind": "part",
          "of": "gradient",
          "description": "Holds a range and a number input, from 0 to 100, for the offset of the stop in hand"
        },
        {
          "name": "gradient-type",
          "kind": "part",
          "of": "gradient",
          "description": "Holds the radios, linear, radial and conic, that choose the type; a segmented control"
        },
        {
          "name": "gradient-angle",
          "kind": "part",
          "of": "gradient",
          "description": "Holds a dial of the angle, from 0 to 360 degrees, for a linear and a conic gradient"
        },
        {
          "name": "gradient-center",
          "kind": "part",
          "of": "gradient",
          "description": "Holds two number inputs, the centre's x and y in percent, for a radial and a conic gradient"
        },
        {
          "name": "gradient-add",
          "kind": "part",
          "of": "gradient",
          "elements": [
            "button"
          ],
          "description": "Adds a stop of the color in hand ten points after it, 100 at most"
        },
        {
          "name": "gradient-remove",
          "kind": "part",
          "of": "gradient",
          "elements": [
            "button"
          ],
          "description": "Removes the stop in hand; disabled at two stops"
        },
        {
          "name": "gradient-reverse",
          "kind": "part",
          "of": "gradient",
          "elements": [
            "button"
          ],
          "description": "Turns the stops round"
        },
        {
          "name": "gradient-css",
          "kind": "part",
          "of": "gradient",
          "description": "The gradient as CSS to copy, written by the behavior: the fallback, then the line interpolated in OKLab"
        }
      ],
      "states": [
        {
          "on": "gradient-stop",
          "name": "in hand",
          "mark": "aria-current=\"true\"",
          "description": "The stop the controls show: it stands a little forward with an ink ring"
        },
        {
          "on": "gradient-stop",
          "name": "locked",
          "mark": "aria-disabled=\"true\"",
          "description": "The gradient is read-only or disabled: the handle does not move"
        },
        {
          "on": "gradient",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The editor is not in use: it fades"
        }
      ],
      "properties": [
        {
          "name": "--gradient",
          "default": "none",
          "description": "The gradient interpolated in OKLab, written by the behavior"
        },
        {
          "name": "--gradient-fallback",
          "default": "none",
          "description": "The gradient interpolated in sRGB, for a browser that cannot be told how to interpolate"
        },
        {
          "name": "--gradient-bar",
          "on": "gradient",
          "description": "The bar's paint: every stop from start to end as a straight gradient in sRGB, whatever the type, written by the behavior"
        },
        {
          "name": "--gradient-ratio",
          "on": "gradient-preview",
          "description": "The preview's shape; 16 / 9 by default"
        },
        {
          "name": "--gradient-offset",
          "on": "gradient-stop",
          "description": "Where a handle stands along the bar, from 0 to 100, written by the behavior"
        },
        {
          "name": "--gradient-color",
          "on": "gradient-stop",
          "description": "The color of a handle's stop, written by the behavior"
        }
      ],
      "example": "<div class=\"gradient\">\n  <div class=\"gradient-preview\" aria-hidden=\"true\"></div>\n  <div class=\"gradient-bar\"></div>\n  <div class=\"gradient-fields\">\n    <div class=\"gradient-offset\">\n      <input type=\"range\" class=\"slider\" min=\"0\" max=\"100\" aria-label=\"Position\">\n      <input type=\"number\" class=\"input input-sm\" min=\"0\" max=\"100\" aria-label=\"Position in percent\">\n    </div>\n    <button type=\"button\" class=\"btn btn-sm gradient-add\">Add a stop</button>\n    <button type=\"button\" class=\"btn btn-sm gradient-remove\">Remove the stop</button>\n  </div>\n  <pre class=\"gradient-css\"></pre>\n</div>",
      "stylesheet": "components/gradient.css",
      "tokens": [
        "--color-surface-raised",
        "--color-line-strong",
        "--color-text-strong",
        "--color-shade-1",
        "--color-shade-2",
        "--color-thumb-high",
        "--color-line-image-strong",
        "--shadow-pressed",
        "--radius-control-lg",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "panel",
      "title": "Panel",
      "tier": "component",
      "category": "Overlays",
      "description": "A floating surface the reader moves, resizes, folds to its header and closes.",
      "use": "Tools that stay open beside the work while the page stays usable: the layers of a canvas, a color picker, an inspector, a chat. The reader drags it by its header, resizes it from its corner, folds it to its header and closes it; the application keeps where it was through the behavior's value.",
      "instead": [
        {
          "when": "The task must be finished or dismissed before the page is used again",
          "use": "dialog"
        },
        {
          "when": "The content belongs to one button and leaves on an outside click",
          "use": "popover"
        },
        {
          "when": "The surface keeps a place in the layout and two regions share the space",
          "use": "splitter"
        },
        {
          "when": "It is a picture of an application window, not a window that moves",
          "use": "window"
        },
        {
          "when": "It is a row of tools over content, with no title or body",
          "use": "toolbar"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "required",
      "behavior": "panel",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On a button with commandfor and command=\"toggle-popover\": open the panel and move focus to its handle; again, close it"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "On the handle: move the panel a step, 16px, that way; it stops at the edges of the viewport"
        },
        {
          "keys": "Shift+Arrow keys",
          "action": "On the handle: move the panel four steps"
        },
        {
          "keys": "Alt+ArrowRight, Alt+ArrowLeft",
          "action": "On the handle: make the panel wider or narrower by a step, four with Shift; the other way around from right to left, where the corner it resizes from is at the left"
        },
        {
          "keys": "Alt+ArrowDown, Alt+ArrowUp",
          "action": "On the handle: make the panel taller or shorter by a step, four with Shift; a folded panel keeps its height"
        },
        {
          "keys": "Enter, Space",
          "action": "On the minimize button: fold the panel to its header, or unfold it"
        },
        {
          "keys": "Escape",
          "action": "With focus in the panel: close it and return focus to the control that opened it. A control inside that handles Escape, such as an open menu, keeps it"
        },
        {
          "keys": "Tab, Shift+Tab",
          "action": "Move between the handle, the actions and the body, and on to the page: the panel is not modal"
        }
      ],
      "platform": [
        {
          "feature": "popover=\"manual\" with commandfor and command=\"toggle-popover\" (or popovertarget)",
          "fallback": "Supported in all current browsers: the panel opens over the page in the top layer and closes from its button without script. Where no button can point at it, call showPopover() and hidePopover(); the stylesheet is the same"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The panel appears and leaves at once, without the fade"
        },
        {
          "feature": ":has()",
          "fallback": "Supported in all current browsers; without it a folded panel keeps its body and a held one its shadow"
        }
      ],
      "classes": [
        {
          "name": "panel",
          "kind": "root",
          "label": true,
          "attributes": {
            "popover": "manual",
            "role": "dialog"
          },
          "description": "The floating sheet: a popover=\"manual\" with role=\"dialog\", named by its title with aria-labelledby. It stands where --panel-x and --panel-y say, kept inside the viewport, 20rem wide unless told otherwise, at the top end corner when given no place"
        },
        {
          "name": "panel-header",
          "kind": "part",
          "of": "panel",
          "description": "The bar at the top: the title at the start, the actions at the end and the handle under both. It is the part that never leaves the viewport"
        },
        {
          "name": "panel-handle",
          "kind": "part",
          "of": "panel",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "type": "button"
          },
          "description": "A button the size of the header, first in it, that carries the panel: a drag anywhere on the bar that is not a control moves it, and the arrow keys move it while it has focus. Name it with what it moves and how, such as \"Move the Layers panel with the arrow keys\". Its focus rings the panel"
        },
        {
          "name": "panel-title",
          "kind": "part",
          "of": "panel",
          "description": "The title, on one line; point the panel's aria-labelledby at it. It takes no pointer, so a press on it reaches the handle"
        },
        {
          "name": "panel-actions",
          "kind": "part",
          "of": "panel",
          "description": "The controls at the end of the header, over the handle: small quiet square buttons"
        },
        {
          "name": "panel-minimize",
          "kind": "part",
          "of": "panel",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "aria-pressed": [
              "true",
              "false"
            ]
          },
          "description": "The button that folds the panel to its header. Pressed, it sits in a well, and the body and the corner are hidden"
        },
        {
          "name": "panel-body",
          "kind": "part",
          "of": "panel",
          "description": "What the panel holds, under a hairline, with --panel-padding around it. A long body scrolls inside the panel. Lay out what it holds in an element inside it: the panel hides the body when it is folded"
        },
        {
          "name": "panel-resize",
          "kind": "part",
          "of": "panel",
          "attributes": {
            "aria-hidden": "true"
          },
          "description": "The corner a pointer resizes the panel from, at the bottom end: a 16px target, 44px on touch screens. The keys resize from the handle, so hide it from assistive technology"
        }
      ],
      "states": [
        {
          "on": "panel",
          "name": "open",
          "mark": ":popover-open",
          "description": "Shown by the browser, from its button or showPopover()"
        },
        {
          "on": "panel-minimize",
          "name": "minimized",
          "mark": "aria-pressed=\"true\"",
          "description": "Folded to its header: the body and the corner are hidden and the panel is as tall as its header"
        },
        {
          "on": "panel-handle",
          "name": "held",
          "mark": ":active",
          "description": "Carried by the pointer, as is panel-resize: the panel rises to the overlay shadow and the drag selects no text"
        },
        {
          "on": "panel-handle",
          "name": "focused",
          "mark": ":focus-visible",
          "description": "The focus ring is drawn around the whole panel, the thing the keys move"
        },
        {
          "on": "panel-handle",
          "name": "disabled",
          "mark": ":disabled",
          "description": "A handle the page turned off, as is panel-resize with aria-disabled=\"true\": the behavior moves or resizes nothing, the hand cursor is gone and the panel does not rise when pressed"
        }
      ],
      "properties": [
        {
          "name": "--panel-x",
          "default": "100%",
          "description": "The left edge, from the viewport's left edge; the script writes it in pixels. It is kept so the whole width stays in the viewport, at the right edge by default and at the left from right to left"
        },
        {
          "name": "--panel-y",
          "default": "0px",
          "description": "The top edge, from the viewport's top edge; the script writes it in pixels. It is kept so the header stays in the viewport"
        },
        {
          "name": "--panel-width",
          "default": "20rem",
          "description": "The width; the script writes it in pixels. It is kept between --panel-min-width and the viewport's width"
        },
        {
          "name": "--panel-height",
          "default": "auto",
          "description": "The height, as tall as the content by default; the script writes it in pixels. It is never more than the viewport's height"
        },
        {
          "name": "--panel-min-width",
          "default": "12rem",
          "description": "The narrowest a resize makes it"
        },
        {
          "name": "--panel-gutter",
          "default": ".5rem",
          "description": "The least room kept between the panel and the edges of the viewport"
        },
        {
          "name": "--panel-padding",
          "default": "1rem",
          "description": "Padding around the body"
        },
        {
          "name": "--panel-radius",
          "default": "calc(var(--radius-control-sm) + var(--panel-inset) / var(--corner-scale))",
          "description": "The corner: a small button's corner plus the 6px the header keeps around it"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" commandfor=\"layers\" command=\"toggle-popover\">Layers</button>\n\n<div id=\"layers\" popover=\"manual\" role=\"dialog\" class=\"panel\" aria-labelledby=\"layers-title\">\n  <div class=\"panel-header\">\n    <button type=\"button\" class=\"panel-handle\" aria-label=\"Move the Layers panel with the arrow keys\"></button>\n    <h2 class=\"panel-title\" id=\"layers-title\">Layers</h2>\n    <div class=\"panel-actions\">\n      <button type=\"button\" class=\"btn btn-quiet btn-sm btn-square panel-minimize\" aria-pressed=\"false\" aria-label=\"Minimize\">\n        <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=\"M3 8L13 8\"/></svg>\n      </button>\n      <button type=\"button\" class=\"btn btn-quiet btn-sm btn-square\" commandfor=\"layers\" command=\"hide-popover\" aria-label=\"Close\">\n        <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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg>\n      </button>\n    </div>\n  </div>\n  <div class=\"panel-body\">Header, Hero image, Pricing table</div>\n  <span class=\"panel-resize\" aria-hidden=\"true\"></span>\n</div>",
      "stylesheet": "components/panel.css",
      "tokens": [
        "--color-surface-floating",
        "--color-line-hair",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-floating",
        "--shadow-overlay",
        "--radius-control-sm",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block",
        "--pop"
      ]
    },
    {
      "name": "menu",
      "title": "Menu",
      "tier": "component",
      "category": "Overlays",
      "description": "A list of actions in a popover, placed against its button.",
      "use": "A few actions or links behind one button: the actions of a row, an account menu, the hidden levels of a breadcrumb. Items may be checkable, may open a submenu, and the menu may open at the pointer as a context menu. Without script it is a popover of buttons and links, so do not add role=\"menu\"; add the roles only together with the behavior that provides arrow keys.",
      "instead": [
        {
          "when": "It picks the value of a form field",
          "use": "select"
        },
        {
          "when": "The content is a form, a preview or anything but a list of actions",
          "use": "popover"
        },
        {
          "when": "There are many commands and the reader finds one by typing",
          "use": "command"
        },
        {
          "when": "The choice must be made before the page is used again",
          "use": "dialog"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "optional",
      "behavior": "menu",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On the button with popovertarget: open or close the menu. On an item: run it, or open its submenu"
        },
        {
          "keys": "Tab, Shift+Tab",
          "action": "Without the behavior: move through the items. With the behavior: close the menu and move on from its button"
        },
        {
          "keys": "Escape",
          "action": "Close the menu, one level at a time when a submenu is open, and return focus to the button"
        },
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "With the behavior: move to the next or the previous item, skipping disabled ones and wrapping at the ends"
        },
        {
          "keys": "Home, End",
          "action": "With the behavior: move to the first or the last item"
        },
        {
          "keys": "ArrowRight, ArrowLeft",
          "action": "With the behavior: open the submenu of the focused item and move into it, or close the submenu and return to its item; the two change places in a right-to-left menu"
        },
        {
          "keys": "Typing",
          "action": "With the behavior: move to the next item that starts with the typed letters"
        },
        {
          "keys": "ContextMenu, Shift+F10",
          "action": "With contextMenu() from the behavior: open a menu-context at the focused element, as a right click and a long press do at the pointer"
        }
      ],
      "platform": [
        {
          "feature": "The popover attribute with popovertarget and popovertargetaction=\"hide\"",
          "fallback": "Supported in all current browsers: the menu opens, closes on an outside click or Escape and keeps a parent menu open under a submenu without script. A context menu has no declarative trigger: a script sets --menu-x and --menu-y and calls showPopover()"
        },
        {
          "feature": "CSS anchor positioning (position-area and position-try-fallbacks)",
          "fallback": "The menu still opens and closes; it appears centered in the viewport, where the browser places any popover, and a submenu does too"
        },
        {
          "feature": "@position-try for menu-context",
          "fallback": "The context menu opens down and to the end of the pointer and does not turn back at the viewport edge"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The menu appears and leaves at once, without the fade"
        }
      ],
      "classes": [
        {
          "name": "menu",
          "kind": "root",
          "attributes": {
            "popover": true
          },
          "description": "The floating list, on an element with the popover attribute; without the attribute it is never shown. It opens below its button, lined up with the start edge, at a distance of --anchored-gap (6px), and flips at the viewport edge"
        },
        {
          "name": "menu-end",
          "kind": "modifier",
          "of": "menu",
          "description": "Lines up with the button's end edge, for a button at the end of a row or a toolbar"
        },
        {
          "name": "menu-top",
          "kind": "modifier",
          "of": "menu",
          "description": "Opens above the button"
        },
        {
          "name": "menu-sub",
          "kind": "modifier",
          "of": "menu",
          "exclusive": "placement",
          "description": "A submenu: written right after the item that opens it, inside the parent menu, it opens beside that item"
        },
        {
          "name": "menu-context",
          "kind": "modifier",
          "of": "menu",
          "exclusive": "placement",
          "description": "A context menu: opens at --menu-x and --menu-y instead of against a button"
        },
        {
          "name": "menu-item",
          "kind": "part",
          "of": "menu",
          "elements": [
            "button",
            "a",
            "label"
          ],
          "description": "An action: a button, a link, or a label around a menu-input. An icon inside takes the item's size and stays quiet until the row is in use"
        },
        {
          "name": "menu-chevron",
          "kind": "part",
          "of": "menu",
          "description": "The chevron at the end of an item that opens a submenu, an icon that points to where the submenu opens"
        },
        {
          "name": "menu-item-danger",
          "kind": "modifier",
          "of": "menu-item",
          "description": "A destructive action, in the danger ink"
        },
        {
          "name": "menu-input",
          "kind": "part",
          "of": "menu",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": [
              "checkbox",
              "radio"
            ]
          },
          "description": "The checkbox or radio inside a label item. It covers the row invisibly and keeps the state; the row shows a check at its end"
        },
        {
          "name": "menu-shortcut",
          "kind": "part",
          "of": "menu",
          "description": "A shortcut at the end of an item"
        },
        {
          "name": "menu-label",
          "kind": "part",
          "of": "menu",
          "description": "A quiet caption over a group of items"
        },
        {
          "name": "menu-separator",
          "kind": "part",
          "of": "menu",
          "description": "A hairline between groups, on an hr, running to the menu's edges"
        }
      ],
      "states": [
        {
          "on": "menu",
          "name": "open",
          "mark": ":popover-open",
          "description": "Set by the browser. A quiet button or a menu item right before an open menu stays lit"
        },
        {
          "on": "menu-item",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link without href, or a disabled menu-input inside: disabled ink, no hover tone"
        },
        {
          "on": "menu-item",
          "name": "checked",
          "mark": "aria-checked=\"true\"",
          "description": "For an item driven by script with role=\"menuitemcheckbox\" or role=\"menuitemradio\": a check at the end of the row. aria-checked=\"false\" keeps the room for it"
        },
        {
          "on": "menu-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The native state of the checkbox or radio: its row shows the check"
        },
        {
          "on": "menu-item",
          "name": "submenu",
          "mark": "aria-haspopup=\"menu\"",
          "description": "The item opens the menu-sub right after it: it gains a chevron at its end"
        }
      ],
      "properties": [
        {
          "name": "--menu-inset",
          "default": "4px",
          "description": "Padding around the items"
        },
        {
          "name": "--menu-item-radius",
          "default": "var(--radius-control-sm)",
          "description": "Row corner; the menu's corner is this plus the inset"
        },
        {
          "name": "--menu-x",
          "on": "menu-context",
          "description": "Distance from the left edge of the viewport where a context menu opens, set by script from the event; 0px when not set"
        },
        {
          "name": "--menu-y",
          "on": "menu-context",
          "description": "Distance from the top edge of the viewport where a context menu opens, set by script from the event; 0px when not set"
        },
        {
          "name": "--anchored-gap",
          "on": "menu",
          "description": "Space between the surface and the control that opened it; 6px when not set"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" popovertarget=\"project-menu\">Project</button>\n\n<div id=\"project-menu\" popover class=\"menu\">\n  <button type=\"button\" class=\"menu-item\" popovertarget=\"project-menu\" popovertargetaction=\"hide\">Rename <span class=\"menu-shortcut\">⌘R</span></button>\n  <button type=\"button\" class=\"menu-item\" popovertarget=\"project-menu\" popovertargetaction=\"hide\">Duplicate</button>\n  <a class=\"menu-item\" href=\"/settings\">Settings</a>\n  <hr class=\"menu-separator\">\n  <button type=\"button\" class=\"menu-item menu-item-danger\" popovertarget=\"project-menu\" popovertargetaction=\"hide\">Delete</button>\n</div>",
      "stylesheet": "components/menu.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-floating",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--color-danger",
        "--shadow-floating",
        "--radius-control-sm"
      ],
      "mixins": [
        "--anchored",
        "--pop"
      ]
    },
    {
      "name": "listbox",
      "title": "Listbox",
      "tier": "component",
      "category": "Forms",
      "description": "A list of options, the surface a combobox and a command palette open.",
      "use": "Values or results that a script filters, groups or loads: the list of a combobox, a command palette or a multi-select. It also stands in the page by itself.",
      "instead": [
        {
          "when": "One value from plain text options, with no script",
          "use": "select"
        },
        {
          "when": "The rows are actions, as native buttons and links",
          "use": "menu"
        },
        {
          "when": "A text field opens the list and filters it",
          "use": "combobox"
        }
      ],
      "composes": [
        "icon",
        "mark"
      ],
      "script": "required",
      "behavior": "listbox",
      "keyboard": [
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "Move the active option, skipping disabled ones, and scroll it into view"
        },
        {
          "keys": "Home, End",
          "action": "Move to the first or the last option"
        },
        {
          "keys": "Enter, Space",
          "action": "Choose the active option; in a list with aria-multiselectable=\"true\", check or uncheck it"
        },
        {
          "keys": "Shift+ArrowDown, Shift+ArrowUp",
          "action": "In a multiselectable list, move and check every option from the one chosen last to the new active one"
        },
        {
          "keys": "Shift+Space, Shift+click",
          "action": "In a multiselectable list, check every option from the one chosen last to this one"
        },
        {
          "keys": "Control+Shift+Home, Control+Shift+End",
          "action": "In a multiselectable list, check every option up to the first or the last; Command on a Mac"
        },
        {
          "keys": "Control+A",
          "action": "In a multiselectable list, check every option, or uncheck them all when they are all checked; Command on a Mac"
        },
        {
          "keys": "Typing",
          "action": "Move to the next option that starts with the typed letters"
        }
      ],
      "platform": [
        {
          "feature": "CSS anchor positioning (position-area)",
          "fallback": "A listbox with the popover attribute stays centered, as the browser places any popover"
        }
      ],
      "classes": [
        {
          "name": "listbox",
          "kind": "root",
          "attributes": {
            "role": "listbox"
          },
          "label": true,
          "description": "The list; a floating sheet when it has the popover attribute"
        },
        {
          "name": "listbox-option",
          "kind": "part",
          "of": "listbox",
          "attributes": {
            "role": "option"
          },
          "description": "An option, on an element with role=\"option\". It stands for its data-value, or for its text when it has none"
        },
        {
          "name": "listbox-body",
          "kind": "part",
          "of": "listbox",
          "description": "Inside an option: a title stacked over a description"
        },
        {
          "name": "listbox-description",
          "kind": "part",
          "of": "listbox",
          "description": "The muted line under an option's title, inside listbox-body"
        },
        {
          "name": "listbox-path",
          "kind": "part",
          "of": "listbox",
          "description": "Where an option is: one small line under its title, inside listbox-body, holding a listbox-crumb for each step. It never wraps, and the title over it takes a control's weight"
        },
        {
          "name": "listbox-crumb",
          "kind": "part",
          "of": "listbox",
          "description": "One step of a listbox-path, with a chevron before every step but the first. It is text, not a link"
        },
        {
          "name": "listbox-excerpt",
          "kind": "part",
          "of": "listbox",
          "description": "A passage under an option's words, inside listbox-body, where a search shows what it matched: two lines at most. With it the icon and the end stand beside the title"
        },
        {
          "name": "listbox-end",
          "kind": "part",
          "of": "listbox",
          "description": "A shortcut or a hint at the end of an option"
        },
        {
          "name": "listbox-group",
          "kind": "part",
          "of": "listbox",
          "description": "A set of options with its caption, on an element with role=\"group\" labelled by the caption; it hides while all of its options are hidden"
        },
        {
          "name": "listbox-label",
          "kind": "part",
          "of": "listbox",
          "description": "A quiet caption over a group of options"
        },
        {
          "name": "listbox-separator",
          "kind": "part",
          "of": "listbox",
          "description": "A hairline between groups, running to the list's edges"
        },
        {
          "name": "listbox-empty",
          "kind": "part",
          "of": "listbox",
          "description": "What the list says when nothing matches; it shows once every option is hidden"
        }
      ],
      "states": [
        {
          "on": "listbox",
          "name": "floating",
          "mark": "popover",
          "description": "A floating sheet placed against its anchor; use popover=\"manual\" when a text field owns it"
        },
        {
          "on": "listbox-option",
          "name": "active",
          "mark": "aria-selected=\"true\"",
          "description": "The option the arrow keys are on: a chip tone"
        },
        {
          "on": "listbox-option",
          "name": "chosen",
          "mark": "aria-checked=\"true\"",
          "description": "A value that is set: a check at the end. An option with aria-checked in either state keeps room for the check"
        },
        {
          "on": "listbox-option",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "Disabled ink, and no tone under the pointer"
        },
        {
          "on": "listbox-option",
          "name": "filtered out",
          "mark": "hidden",
          "description": "Set by the script that filters; the option leaves the list"
        }
      ],
      "properties": [
        {
          "name": "--listbox-inset",
          "default": "4px",
          "description": "Padding around the options"
        },
        {
          "name": "--listbox-option-radius",
          "default": "var(--radius-control-sm)",
          "description": "Row corner; a floating list's corner is this plus the inset"
        }
      ],
      "example": "<div class=\"listbox\" role=\"listbox\" aria-label=\"Framework\" tabindex=\"0\" aria-activedescendant=\"fw-astro\">\n  <div class=\"listbox-option\" role=\"option\" id=\"fw-astro\" aria-selected=\"true\" aria-checked=\"true\">Astro</div>\n  <div class=\"listbox-option\" role=\"option\" id=\"fw-next\" aria-checked=\"false\">Next.js</div>\n  <div class=\"listbox-option\" role=\"option\" id=\"fw-svelte\" aria-checked=\"false\">SvelteKit</div>\n</div>",
      "stylesheet": "components/listbox.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-floating",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--shadow-floating",
        "--radius-control-sm",
        "--font-weight-control"
      ],
      "mixins": [
        "--focus-ring",
        "--anchored",
        "--pop"
      ]
    },
    {
      "name": "combobox",
      "title": "Combobox",
      "tier": "component",
      "category": "Forms",
      "description": "A text field that opens a listbox of matches.",
      "use": "A value from a list too long to scan, found by typing; or several, shown as chips in the field, when the list has aria-multiselectable=\"true\".",
      "instead": [
        {
          "when": "The list is short enough to read without typing",
          "use": "select"
        },
        {
          "when": "The values are typed freely, not chosen from a list",
          "use": "tags"
        },
        {
          "when": "The list runs commands instead of filling a field",
          "use": "command"
        }
      ],
      "composes": [
        "input",
        "listbox",
        "chip",
        "icon"
      ],
      "script": "required",
      "behavior": "combobox",
      "keyboard": [
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "Open the list and move the active option, wrapping at the ends"
        },
        {
          "keys": "Home, End",
          "action": "Move to the first or the last option while the list is open"
        },
        {
          "keys": "Enter",
          "action": "Choose the active option and close the list; with several values, check or uncheck it and keep the list open"
        },
        {
          "keys": "Escape",
          "action": "Close the list; the field keeps its text"
        },
        {
          "keys": "Typing",
          "action": "Filter the options and open the list on the first match"
        },
        {
          "keys": "Backspace",
          "action": "With several values: in an empty field, move to the last chip; on a chip, uncheck its option and move to the chip before, to the one after when it was the first, or to the field when none is left"
        },
        {
          "keys": "Delete",
          "action": "With several values, on a chip: uncheck its option and move to the chip after, or to the field when it was the last"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "With several values, walk the chips from the start of the field, as in a tags field"
        },
        {
          "keys": "Home, End",
          "action": "With several values, on a chip: move to the first chip, or back to the field"
        },
        {
          "keys": "Escape",
          "action": "With several values, on a chip: return to the field"
        }
      ],
      "platform": [
        {
          "feature": "anchor-scope and anchor-size()",
          "fallback": "The list sits in the flow directly under the field, at its own width"
        }
      ],
      "classes": [
        {
          "name": "combobox",
          "kind": "root",
          "description": "The wrapper that anchors the listbox to the field"
        },
        {
          "name": "combobox-toggle",
          "kind": "part",
          "of": "combobox",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "type": "button"
          },
          "description": "A button at the field's end, holding a chevron icon, that opens and closes the list"
        }
      ],
      "states": [
        {
          "on": "combobox",
          "name": "open",
          "mark": "aria-expanded=\"true\"",
          "description": "On the field with role=\"combobox\": the chevron turns over"
        }
      ],
      "example": "<div class=\"combobox\">\n  <div class=\"input-group\">\n    <input class=\"input-group-field\" id=\"region\" role=\"combobox\" aria-expanded=\"false\" aria-controls=\"region-list\" aria-autocomplete=\"list\" autocomplete=\"off\" aria-label=\"Region\">\n    <button type=\"button\" class=\"combobox-toggle\" tabindex=\"-1\" aria-label=\"Show regions\"><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(90 8 8)\"/></svg></button>\n  </div>\n  <div id=\"region-list\" popover=\"manual\" class=\"listbox\" role=\"listbox\" aria-label=\"Regions\">\n    <div class=\"listbox-option\" role=\"option\" id=\"region-hnd\" data-value=\"hnd\" aria-checked=\"false\">Tokyo</div>\n    <div class=\"listbox-option\" role=\"option\" id=\"region-sin\" data-value=\"sin\" aria-checked=\"false\">Singapore</div>\n    <div class=\"listbox-empty\">No regions match.</div>\n  </div>\n</div>",
      "stylesheet": "components/combobox.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--radius-chip",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "command",
      "title": "Command palette",
      "tier": "component",
      "category": "Overlays",
      "description": "A dialog that is one search field over a list of commands.",
      "use": "A shortcut to every command of an application, opened from anywhere with a key such as ⌘K and searched by typing. It is a dialog with a different interior: write class=\"dialog command\". Every command in it must be reachable some other way too.",
      "instead": [
        {
          "when": "The list fills a form field with one value",
          "use": "combobox"
        },
        {
          "when": "It is a short list of actions that belongs to one button",
          "use": "menu"
        },
        {
          "when": "The modal holds a question or a form, not a search over commands",
          "use": "dialog"
        }
      ],
      "composes": [
        "dialog",
        "listbox",
        "button"
      ],
      "script": "required",
      "behavior": "command",
      "keyboard": [
        {
          "keys": "Meta+K, Control+K",
          "action": "With the behavior: open the palette from anywhere, or close it when it is open"
        },
        {
          "keys": "Typing",
          "action": "With the behavior: hide the options that do not match and make the first match the active one"
        },
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "With the behavior: move the active option, skipping disabled ones and wrapping at the ends"
        },
        {
          "keys": "Home, End",
          "action": "With the behavior: move to the first or the last option"
        },
        {
          "keys": "Enter",
          "action": "With the behavior: run the active command and close the palette"
        },
        {
          "keys": "Escape",
          "action": "Close the palette and return focus to where it was, as the native dialog does"
        }
      ],
      "platform": [
        {
          "feature": "commandfor with command=\"show-modal\" (invoker commands)",
          "fallback": "A button opens the palette without script where they are supported; elsewhere call dialog.showModal() from a click handler"
        },
        {
          "feature": "closedby=\"any\" (light dismiss)",
          "fallback": "A click on the scrim does nothing; Escape still closes the palette"
        }
      ],
      "classes": [
        {
          "name": "command",
          "kind": "root",
          "elements": [
            "dialog"
          ],
          "label": true,
          "description": "Beside dialog, on the same dialog element: the palette's interior without padding, 36rem wide, placed near the top of the viewport so the field stays where it is while the list changes length"
        },
        {
          "name": "command-search",
          "kind": "part",
          "of": "command",
          "elements": [
            "label"
          ],
          "description": "The field row, on a label so the whole row focuses the input. It holds an icon, the command-input and an optional hint"
        },
        {
          "name": "command-input",
          "kind": "part",
          "of": "command",
          "elements": [
            "input"
          ],
          "label": true,
          "description": "The bare search input, with role=\"combobox\" and aria-controls pointing at the list. It has no material of its own: the dialog is its surface"
        },
        {
          "name": "command-list",
          "kind": "part",
          "of": "command",
          "description": "On the listbox of results: it takes the remaining height and scrolls inside the dialog"
        },
        {
          "name": "command-footer",
          "kind": "part",
          "of": "command",
          "description": "A row of key hints under the list"
        },
        {
          "name": "command-hint",
          "kind": "part",
          "of": "command",
          "description": "One hint in the footer: keys, then what they do"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" commandfor=\"palette\" command=\"show-modal\">Search commands</button>\n\n<dialog id=\"palette\" class=\"dialog command\" closedby=\"any\" aria-label=\"Command palette\">\n  <label class=\"command-search\">\n    <input class=\"command-input\" type=\"search\" role=\"combobox\" aria-expanded=\"true\" aria-controls=\"palette-list\" aria-activedescendant=\"cmd-new\" aria-autocomplete=\"list\" aria-label=\"Search commands\" autocomplete=\"off\" spellcheck=\"false\" enterkeyhint=\"go\" placeholder=\"Type a command or search\" autofocus>\n  </label>\n  <div class=\"listbox command-list\" id=\"palette-list\" role=\"listbox\" aria-label=\"Commands\">\n    <div class=\"listbox-option\" role=\"option\" id=\"cmd-new\" aria-selected=\"true\">New project</div>\n    <div class=\"listbox-option\" role=\"option\" id=\"cmd-deploy\">Deploy to production</div>\n    <div class=\"listbox-option\" role=\"option\" id=\"cmd-invite\">Invite a member</div>\n    <div class=\"listbox-empty\">No commands match.</div>\n  </div>\n</dialog>",
      "stylesheet": "components/command.css",
      "tokens": [
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-muted",
        "--radius-surface"
      ],
      "mixins": []
    },
    {
      "name": "tooltip",
      "title": "Tooltip",
      "tier": "component",
      "category": "Overlays",
      "description": "A short label in ink, shown on hover, focus and long press.",
      "use": "A few words that name a control or show its shortcut. It adds to the control's accessible name and does not replace it: an icon-only button keeps its aria-label. Nothing in a tooltip can be clicked, and a touch screen shows it only on a long press, so nothing may be available in a tooltip alone.",
      "instead": [
        {
          "when": "The content has a link, a form or anything else a reader acts on, or is a preview longer than a few words",
          "use": "popover"
        },
        {
          "when": "It explains a form field and should stay visible",
          "use": "input"
        },
        {
          "when": "It reports something that just happened",
          "use": "toast"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Focus on the control shows its tooltip after a short delay, as hover does"
        },
        {
          "keys": "Escape",
          "action": "Hide the tooltip; focus stays on the control"
        }
      ],
      "platform": [
        {
          "feature": "popover=\"hint\" with interestfor on the control (interest invokers)",
          "fallback": "The tooltip does not appear and the control keeps its accessible name. To show it there, call showPopover() and hidePopover() from pointer and focus handlers; the stylesheet is the same"
        },
        {
          "feature": "CSS anchor positioning (position-area and position-try-fallbacks)",
          "fallback": "The tooltip appears centered in the viewport, where the browser places any popover"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The tooltip appears and leaves at once, without the fade"
        }
      ],
      "classes": [
        {
          "name": "tooltip",
          "kind": "root",
          "attributes": {
            "popover": true
          },
          "description": "The label, on an element with popover=\"hint\"; without the popover attribute it is never shown. It sits centered above its control at a distance of --anchored-gap (6px), flips below when there is no room, and wraps at 16rem. A kbd inside reads on the ink surface without a variant"
        },
        {
          "name": "tooltip-bottom",
          "kind": "modifier",
          "of": "tooltip",
          "description": "Prefers the space below the control, for controls in a top bar"
        }
      ],
      "properties": [
        {
          "name": "--anchored-gap",
          "on": "tooltip",
          "description": "Space between the surface and the control that opened it; 6px when not set"
        }
      ],
      "example": "<button type=\"button\" class=\"btn\" interestfor=\"tip-deploy\">Deploy</button>\n\n<div id=\"tip-deploy\" popover=\"hint\" class=\"tooltip\">Ships the main branch to production</div>",
      "stylesheet": "components/tooltip.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-inverse",
        "--color-surface-tip",
        "--shadow-tip",
        "--radius-chip",
        "--duration-quick"
      ],
      "mixins": [
        "--on-ink",
        "--anchored",
        "--pop"
      ]
    },
    {
      "name": "coachmark",
      "title": "Coachmark",
      "tier": "component",
      "category": "Overlays",
      "description": "One step of a tour, pointing at the control it explains.",
      "use": "A short explanation tied to one place on the page: what a new control does, or one step of a tour through a screen. A beacon marks the place and opens it, or the tour behavior opens the steps of a tour in turn. Keep it to a title, a sentence and a way on; the reader should be able to leave a tour at any step.",
      "instead": [
        {
          "when": "It is a few words that name a control, with nothing in it to act on",
          "use": "tooltip"
        },
        {
          "when": "The content belongs to a button and is opened for its own sake, such as a share link or a short form",
          "use": "popover"
        },
        {
          "when": "The reader must answer before going on",
          "use": "dialog"
        },
        {
          "when": "It says where the reader is in a sequence of pages or a form",
          "use": "steps"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "optional",
      "behavior": "tour",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On the beacon: open or close its coachmark. On a step of a tour: Next, Back, Skip or Done, as the button says in its value. An action inside with autofocus takes focus as a coachmark opens; a step without one takes focus itself"
        },
        {
          "keys": "Tab",
          "action": "Move between the actions in the coachmark, and from it back to the page after the beacon. A step does not keep focus: the page stays usable while it is open"
        },
        {
          "keys": "Escape",
          "action": "Close a coachmark opened with popover=\"auto\" and return focus to the beacon. In a tour, with focus in the step: end the tour, skipped, and return focus to where it was when the tour started"
        }
      ],
      "platform": [
        {
          "feature": "The popover attribute with popovertarget on a beacon, or showPopover({ source }) from the tour behavior",
          "fallback": "Supported in all current browsers. Where the source option of showPopover() is missing, a tour's step opens without an anchor, where the browser places a popover"
        },
        {
          "feature": "CSS anchor positioning (position-area, position-try-fallbacks and anchor() with anchor-name and anchor-scope)",
          "fallback": "The coachmark still opens and closes; it appears centered in the viewport, where the browser places any popover, and has no arrow. A tour's spotlight stays a point and dims nothing"
        },
        {
          "feature": "Invoker commands: a button with command=\"--start\" and commandfor naming the tour",
          "fallback": "The tour behavior hears the button's click itself and starts the tour"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The coachmark and the spotlight's scrim appear and leave at once, without the fade and the short slide"
        }
      ],
      "classes": [
        {
          "name": "coachmark",
          "kind": "root",
          "attributes": {
            "popover": true
          },
          "description": "The card of ink, on an element with the popover attribute and role=\"dialog\", labelled by its title; without the popover attribute it is never shown. It opens centered under the element that opened it, flips above when there is no room, and is 18rem wide. Its arrow points at the element right before it in the markup, so put it right after its beacon or the control it explains"
        },
        {
          "name": "coachmark-top",
          "kind": "modifier",
          "of": "coachmark",
          "description": "Prefers the space above, for a control near the foot of the screen or a beacon on a control's top corner"
        },
        {
          "name": "coachmark-count",
          "kind": "part",
          "of": "coachmark",
          "description": "A short line over the title in a quieter ink: where the step stands in the tour (2 of 4), or a word such as New"
        },
        {
          "name": "coachmark-title",
          "kind": "part",
          "of": "coachmark",
          "description": "The heading of the step, which labels the coachmark"
        },
        {
          "name": "coachmark-text",
          "kind": "part",
          "of": "coachmark",
          "description": "One or two sentences that say what the control does"
        },
        {
          "name": "coachmark-actions",
          "kind": "part",
          "of": "coachmark",
          "description": "A row of small buttons along the foot, 12px from the card's edges: the first of several stands at the start (Skip), the others at the end (Back, Next). A default button reads as the action on ink, and a quiet one takes the card's ink"
        },
        {
          "name": "coachmark-tour",
          "kind": "root",
          "description": "Holds the steps of a tour, each a coachmark with popover=\"manual\", in the order they are taken, and its spotlight. The tour behavior attaches to it; give it an id for the button that starts it. It draws nothing, and keeps the name of what its arrows point at to itself"
        },
        {
          "name": "coachmark-spotlight",
          "kind": "part",
          "of": "coachmark-tour",
          "attributes": {
            "popover": "manual"
          },
          "description": "An empty popover the tour opens over each step's target, before the step: it covers the target and 4px around it, and the open step's arrow points at it wherever the step stands in the markup. By itself it draws nothing and lets the pointer through"
        },
        {
          "name": "coachmark-spotlight-dim",
          "kind": "modifier",
          "of": "coachmark-spotlight",
          "description": "Dims the page around the target with the scrim of a dialog, and leaves the target lit. The page under the scrim stays usable. In forced colors an outline of the system's highlight marks the target instead"
        },
        {
          "name": "coachmark-beacon",
          "kind": "root",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "A 10px dot of ink that marks where a step is and opens it with popovertarget. It sends out a ring now and then, which rests as a halo while it is under the pointer, has focus or its coachmark is open, and under reduced motion. Its target is 24px, and 44px on a touch screen. The page places it, usually on the top corner of the control it marks"
        }
      ],
      "states": [
        {
          "on": "coachmark",
          "name": "open",
          "mark": ":popover-open",
          "description": "Shown in the top layer, faded in and slid 4px toward the element that opened it"
        },
        {
          "on": "coachmark-beacon",
          "name": "found",
          "mark": ":has(+ .coachmark:popover-open)",
          "description": "Its coachmark, right after it, is open: the ring rests as a halo"
        },
        {
          "on": "coachmark-spotlight",
          "name": "open",
          "mark": ":popover-open",
          "description": "Open over the current step's target; dimmed, its scrim fades in"
        }
      ],
      "properties": [
        {
          "name": "--coachmark-width",
          "default": "18rem",
          "description": "The card's width, never wider than the viewport less a rem"
        },
        {
          "name": "--coachmark-inset",
          "default": "12px",
          "description": "Space between the actions and the card's edges; the text has 4px more. The card's corner is a small button's corner plus this inset"
        },
        {
          "name": "--coachmark-arrow",
          "default": "7px",
          "description": "How far the arrow's point stands out from the card"
        },
        {
          "name": "--anchored-gap",
          "default": "calc(var(--coachmark-arrow) + 6px)",
          "description": "Space between the card and the element that opened it; the arrow's point stands 6px from that element"
        },
        {
          "name": "--coachmark-beacon-size",
          "on": "coachmark-beacon",
          "default": ".625rem",
          "description": "The beacon dot's diameter"
        },
        {
          "name": "--coachmark-spotlight-inset",
          "on": "coachmark-spotlight",
          "default": "4px",
          "description": "How far the spotlight reaches past its target on every side"
        },
        {
          "name": "--coachmark-spotlight-radius",
          "on": "coachmark-spotlight",
          "default": "var(--radius-control)",
          "description": "The corner of the target it lights; the spotlight's corner is this plus the inset"
        }
      ],
      "example": "<button type=\"button\" class=\"coachmark-beacon\" popovertarget=\"tip-filter\" aria-label=\"What is new in Filter\"></button>\n<div id=\"tip-filter\" popover class=\"coachmark\" role=\"dialog\" aria-labelledby=\"tip-filter-title\">\n  <p class=\"coachmark-count\">New</p>\n  <h2 class=\"coachmark-title\" id=\"tip-filter-title\">Filter by author</h2>\n  <p class=\"coachmark-text\">Narrow the deployments to the ones you shipped.</p>\n  <div class=\"coachmark-actions\">\n    <button type=\"button\" class=\"btn btn-sm\" popovertarget=\"tip-filter\" popovertargetaction=\"hide\" autofocus>Got it</button>\n  </div>\n</div>",
      "stylesheet": "components/coachmark.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inverse",
        "--color-surface-scrim",
        "--color-text-inverse",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-shade-4",
        "--color-shade-5",
        "--color-ink-highlight",
        "--color-ink-edge",
        "--radius-control-sm",
        "--radius-control",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--on-ink",
        "--focus-ring",
        "--anchored"
      ]
    },
    {
      "name": "toast",
      "title": "Toast",
      "tier": "component",
      "category": "Feedback",
      "description": "A brief message over the page that can leave by itself.",
      "use": "A confirmation of something that just happened (saved, deployed, copied), or of work that is under way and will say how it ended. A reader must be able to miss it without losing anything: an action in a toast, such as Undo, is a shortcut, and the same action also lives somewhere that stays. Toasts stack in one toast-region per page, and each toast is a non-modal dialog.",
      "instead": [
        {
          "when": "The message must stay until it is dealt with, or belongs to one part of the page",
          "use": "alert"
        },
        {
          "when": "It is news for everyone on the page and stays across its top",
          "use": "banner"
        },
        {
          "when": "It needs an answer before the reader goes on",
          "use": "dialog"
        },
        {
          "when": "It reports how much of a long task is done",
          "use": "progress"
        }
      ],
      "composes": [
        "button",
        "icon",
        "spinner"
      ],
      "script": "optional",
      "platform": [
        {
          "feature": "A dialog with the open attribute, dismissed by a form with method=\"dialog\" or a button with commandfor and command=\"close\"",
          "fallback": "A toast rendered with open is shown and dismissed without script. To show one after the page has loaded, append a new dialog with open to the region, or set open on one that is there: show() would move focus into the toast"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The toast appears and leaves at once, without the fade"
        },
        {
          "feature": "popover=\"manual\" on the region, shown once with showPopover()",
          "fallback": "Without it the region is a fixed element with a z-index and stays under an open modal dialog"
        }
      ],
      "classes": [
        {
          "name": "toast-region",
          "kind": "root",
          "description": "The fixed stack at the bottom, at the end edge, with the newest toast last. Make it a live region with aria-live=\"polite\" and name it with aria-label. It takes no pointer events itself, and spans the width on a narrow screen"
        },
        {
          "name": "toast-region-top",
          "kind": "modifier",
          "of": "toast-region",
          "description": "The stack at the top; toasts arrive downward and the newest is on top"
        },
        {
          "name": "toast-region-center",
          "kind": "modifier",
          "of": "toast-region",
          "description": "The stack centered instead of at the end edge; it combines with toast-region-top"
        },
        {
          "name": "toast",
          "kind": "root",
          "elements": [
            "dialog"
          ],
          "label": true,
          "description": "A message, on a dialog element inside the region, named with aria-labelledby pointing at its title or with aria-label. Give it aria-atomic=\"true\" when its words change in place, so a change is announced once, as a whole"
        },
        {
          "name": "toast-timed",
          "kind": "modifier",
          "of": "toast",
          "description": "Leaves by itself after --toast-duration. The clock pauses while any toast of its region is hovered or holds focus, does not run while the toast is busy, and a hairline along its foot runs out with the clock"
        },
        {
          "name": "toast-info",
          "kind": "modifier",
          "of": "toast",
          "exclusive": "status",
          "description": "Colors the icon with the info hue; the words stay in ink"
        },
        {
          "name": "toast-success",
          "kind": "modifier",
          "of": "toast",
          "exclusive": "status",
          "description": "Colors the icon with the success hue; the words stay in ink"
        },
        {
          "name": "toast-warning",
          "kind": "modifier",
          "of": "toast",
          "exclusive": "status",
          "description": "Colors the icon with the warning hue; the words stay in ink"
        },
        {
          "name": "toast-danger",
          "kind": "modifier",
          "of": "toast",
          "exclusive": "status",
          "description": "Colors the icon with the danger hue; the words stay in ink"
        },
        {
          "name": "toast-icon",
          "kind": "part",
          "of": "toast",
          "description": "Beside icon on the status icon, or beside spinner on the spinner of a pending toast: centers it on the first line of text and gives it the status hue. A new icon that replaces the old one grows into place"
        },
        {
          "name": "toast-body",
          "kind": "part",
          "of": "toast",
          "description": "Holds the words and takes the remaining width; a button after it sits at the end of the row"
        },
        {
          "name": "toast-title",
          "kind": "part",
          "of": "toast",
          "description": "The few strong words that say what happened"
        },
        {
          "name": "toast-description",
          "kind": "part",
          "of": "toast",
          "description": "A quiet sentence under the title, or the whole message of a toast without a title"
        },
        {
          "name": "toast-action",
          "kind": "part",
          "of": "toast",
          "description": "The one action a toast may offer (Undo, View), after the body and before the dismiss button: a form with method=\"dialog\" around a btn btn-sm, or the button itself with commandfor and command=\"close\", so the action dismisses the toast once it has run"
        },
        {
          "name": "toast-close",
          "kind": "part",
          "of": "toast",
          "description": "The form with method=\"dialog\", or the button, that dismisses the toast, pulled into the padding at the end"
        }
      ],
      "states": [
        {
          "on": "toast",
          "name": "open",
          "mark": "open",
          "description": "The toast is shown. Written in markup it shows the toast when the page loads; close(), or the form or button that dismisses the toast, removes it"
        },
        {
          "on": "toast",
          "name": "pending",
          "mark": "aria-busy=\"true\"",
          "description": "The work the toast reports is under way: it holds a spinner for its icon and its clock does not run. Remove the attribute and say how the work ended in the same toast"
        }
      ],
      "properties": [
        {
          "name": "--toast-duration",
          "on": "toast",
          "description": "How long a toast-timed stays; 6s when not set"
        },
        {
          "name": "--toast-inset",
          "on": "toast-region",
          "default": "1rem",
          "description": "Distance of the region from the viewport edge"
        },
        {
          "name": "--toast-gap",
          "on": "toast-region",
          "default": ".5rem",
          "description": "Space between toasts"
        }
      ],
      "example": "<div class=\"toast-region\" role=\"region\" aria-label=\"Notifications\" aria-live=\"polite\">\n  <dialog open class=\"toast\" aria-labelledby=\"toast-deployed\">\n    <div class=\"toast-body\">\n      <p class=\"toast-title\" id=\"toast-deployed\">Deployed to production</p>\n      <p class=\"toast-description\">atlas.dev is live in 14 regions.</p>\n    </div>\n    <form method=\"dialog\" class=\"toast-close\">\n      <button class=\"btn btn-quiet btn-square btn-sm\" aria-label=\"Dismiss\">\n        <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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg>\n      </button>\n    </form>\n  </dialog>\n</div>",
      "stylesheet": "components/toast.css",
      "tokens": [
        "--color-surface-floating",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-info",
        "--color-success",
        "--color-warning",
        "--color-danger",
        "--shadow-floating",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "alert",
      "title": "Alert",
      "tier": "component",
      "category": "Feedback",
      "description": "A message in the flow of the page, with an optional status.",
      "use": "A message about the page or the task it sits in, which stays until the condition is gone: a notice, a warning before something goes wrong, a failure. Choose the status by what the reader has to do and say it in the words as well. An alert that appears after the page has loaded needs role=\"status\", or role=\"alert\" for a failure that needs action now; one that is in the page from the start needs no role.",
      "instead": [
        {
          "when": "It confirms something that just happened and may be missed",
          "use": "toast"
        },
        {
          "when": "It concerns everyone on the page and runs across its top",
          "use": "banner"
        },
        {
          "when": "The reader must answer before going on",
          "use": "dialog"
        },
        {
          "when": "It is the error of one form field",
          "use": "input"
        },
        {
          "when": "The view has nothing to show yet",
          "use": "empty"
        }
      ],
      "composes": [
        "icon",
        "button"
      ],
      "script": "none",
      "classes": [
        {
          "name": "alert",
          "kind": "root",
          "description": "A neutral message: a flat face with a half-pixel contour. A button or a link after the body sits at the end of the row and wraps under the text when the alert is narrow"
        },
        {
          "name": "alert-info",
          "kind": "modifier",
          "of": "alert",
          "exclusive": "status",
          "description": "Context that changes nothing yet: a faint tint and icon in the info hue"
        },
        {
          "name": "alert-success",
          "kind": "modifier",
          "of": "alert",
          "exclusive": "status",
          "description": "Something that just completed: a faint tint and icon in the success hue"
        },
        {
          "name": "alert-warning",
          "kind": "modifier",
          "of": "alert",
          "exclusive": "status",
          "description": "Attention before something goes wrong: a faint tint and icon in the warning hue"
        },
        {
          "name": "alert-danger",
          "kind": "modifier",
          "of": "alert",
          "exclusive": "status",
          "description": "A failure or a blocked action: a faint tint and icon in the danger hue"
        },
        {
          "name": "alert-icon",
          "kind": "part",
          "of": "alert",
          "description": "Beside icon on the icon: centers it on the first line of text, however many lines follow"
        },
        {
          "name": "alert-body",
          "kind": "part",
          "of": "alert",
          "description": "Holds the words and takes the remaining width"
        },
        {
          "name": "alert-title",
          "kind": "part",
          "of": "alert",
          "description": "The few strong words that carry the message"
        },
        {
          "name": "alert-description",
          "kind": "part",
          "of": "alert",
          "description": "The sentence under the title, or the whole message of an alert without a title"
        }
      ],
      "properties": [
        {
          "name": "--alert-radius",
          "on": "alert",
          "default": "var(--radius-control-lg)",
          "description": "Circular radius before the corner scale; use var(--radius-surface) when held directly in a tray"
        }
      ],
      "example": "<div class=\"alert alert-warning\" role=\"status\">\n  <svg class=\"icon alert-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8.8742 3.8235L13.4246 12.0144A1 1 0 0 1 12.5505 13.5L3.4495 13.5A1 1 0 0 1 2.5754 12.0144L7.1258 3.8235A1 1 0 0 1 8.8742 3.8235Z\"/><path d=\"M8 6.5L8 9\"/><circle cx=\"8\" cy=\"11.5\" r=\"0.5\" fill=\"currentColor\" stroke=\"none\"/></svg>\n  <div class=\"alert-body\">\n    <p class=\"alert-title\">Your card expires this month</p>\n    <p class=\"alert-description\">Update the payment method to keep deployments running.</p>\n  </div>\n  <button type=\"button\" class=\"btn btn-sm\">Update</button>\n</div>",
      "stylesheet": "components/alert.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-chip",
        "--color-line-contour",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-info",
        "--color-success",
        "--color-warning",
        "--color-danger",
        "--radius-control-lg",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "banner",
      "title": "Banner",
      "tier": "component",
      "category": "Feedback",
      "description": "One line across the top of a page for news everyone on it should have.",
      "use": "A release, planned maintenance or an incident that everyone on a page or a panel should know about. Write one sentence and at most one link. A banner that stays is any element with a role that matches its urgency; one that can be dismissed is a dialog with open and banner-dismissible.",
      "instead": [
        {
          "when": "The message belongs to one task or one part of the page",
          "use": "alert"
        },
        {
          "when": "It reports one event that just happened and may leave by itself",
          "use": "toast"
        },
        {
          "when": "The reader must answer before going on",
          "use": "dialog"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "A dialog with the open attribute, dismissed by a form with method=\"dialog\"",
          "fallback": "The banner is in the page from the first paint and its button closes it without script. To remember the dismissal, a script listens for the dialog's close event and the page is then rendered without open"
        },
        {
          "feature": "interpolate-size: allow-keywords",
          "fallback": "A dismissed banner leaves at once instead of folding away"
        }
      ],
      "classes": [
        {
          "name": "banner",
          "kind": "root",
          "description": "The band: the tray tone with a hairline under it. An icon inside takes the band's tone"
        },
        {
          "name": "banner-dismissible",
          "kind": "modifier",
          "of": "banner",
          "elements": [
            "dialog"
          ],
          "label": true,
          "description": "On a dialog with open: the band folds away to nothing when the dialog closes. Without open it is not shown"
        },
        {
          "name": "banner-info",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A faint tint and icon in the info hue"
        },
        {
          "name": "banner-success",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A faint tint and icon in the success hue"
        },
        {
          "name": "banner-warning",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A faint tint and icon in the warning hue"
        },
        {
          "name": "banner-danger",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A faint tint and icon in the danger hue"
        },
        {
          "name": "banner-inverse",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A band of ink, for the one announcement of a release"
        },
        {
          "name": "banner-brand",
          "kind": "modifier",
          "of": "banner",
          "exclusive": "tone",
          "description": "A band of the brand color; with it on the page, no other brand surface belongs in the view"
        },
        {
          "name": "banner-content",
          "kind": "part",
          "of": "banner",
          "description": "The message, centered in the band: an icon, the words and one action, wrapping as a group"
        },
        {
          "name": "banner-title",
          "kind": "part",
          "of": "banner",
          "description": "The few strong words that carry the news"
        },
        {
          "name": "banner-action",
          "kind": "part",
          "of": "banner",
          "description": "The one link out, underlined in the band's text color"
        },
        {
          "name": "banner-close",
          "kind": "part",
          "of": "banner",
          "description": "The form with method=\"dialog\", or the button, that dismisses the banner, at the far end of the band"
        }
      ],
      "states": [
        {
          "on": "banner-dismissible",
          "name": "open",
          "mark": "open",
          "description": "The banner is shown. Leave it out when the reader has dismissed the banner before"
        }
      ],
      "properties": [
        {
          "name": "--banner-tone",
          "default": "var(--color-text-strong)",
          "description": "The icon color, and the hue of a tint"
        },
        {
          "name": "--banner-color",
          "default": "var(--color-surface-tray)",
          "description": "The band's color"
        }
      ],
      "example": "<dialog open class=\"banner banner-dismissible\" aria-label=\"Announcement\">\n  <p class=\"banner-content\"><span class=\"banner-title\">Atlas 4 is here.</span> Faster builds and a new dashboard. <a class=\"banner-action\" href=\"/changelog\">Read the notes</a></p>\n  <form method=\"dialog\" class=\"banner-close\">\n    <button class=\"btn btn-quiet btn-square btn-sm\" aria-label=\"Dismiss\">\n      <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=\"M4 4L12 12\"/><path d=\"M4 12L12 4\"/></svg>\n    </button>\n  </form>\n</dialog>",
      "stylesheet": "components/banner.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-tray",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-inverse",
        "--color-info",
        "--color-success",
        "--color-warning",
        "--color-danger",
        "--color-brand",
        "--color-brand-ink",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-brand",
        "--on-ink"
      ]
    },
    {
      "name": "progress",
      "title": "Progress",
      "tier": "component",
      "category": "Feedback",
      "description": "A thin well that fills with ink as work completes.",
      "use": "How much of a task is done: an upload, a build, a count of steps. Without a value the amount is unknown and the bar is indeterminate. Write the number beside the label, or in a progress-marker that rides the end of the fill. progress-ring draws the same amount around a circle, for a tile, a row or the corner of a card, and progress-ring-half along an arch.",
      "instead": [
        {
          "when": "It is a measurement within a range, such as storage used or a score, not a task that completes",
          "use": "meter"
        },
        {
          "when": "The length is unknown and the place is a button or another small space",
          "use": "spinner"
        },
        {
          "when": "Content is loading and its shape is known",
          "use": "skeleton"
        },
        {
          "when": "The task is a few named steps and the reader should see which one is current",
          "use": "steps"
        }
      ],
      "composes": [
        "input"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Typed attr(), as in attr(aria-valuenow type(<number>))",
          "fallback": "The ring does not read aria-valuenow and aria-valuemax: set --progress-ring-value in a style attribute as well, and --progress-ring-max when the maximum is not 100"
        },
        {
          "feature": "Registered custom properties (@property)",
          "fallback": "The arc of a ring jumps to a new amount instead of easing to it, and an indeterminate half ring rests on its first quarter"
        }
      ],
      "classes": [
        {
          "name": "progress",
          "kind": "root",
          "elements": [
            "progress"
          ],
          "label": true,
          "description": "A progress bar, on a native progress element with a label: a 6px track that fills with ink and eases to each new value. The text inside the element is a fallback"
        },
        {
          "name": "progress-sm",
          "kind": "modifier",
          "of": "progress",
          "exclusive": "size",
          "description": "A 4px track, for a row in a list; the default is 6px"
        },
        {
          "name": "progress-lg",
          "kind": "modifier",
          "of": "progress",
          "exclusive": "size",
          "description": "An 8px track; the default is 6px"
        },
        {
          "name": "progress-segmented",
          "kind": "modifier",
          "of": "progress",
          "description": "The track in --progress-steps equal pieces, five by default, for a count of things. Set --progress-steps to the same number as max"
        },
        {
          "name": "progress-label",
          "kind": "root",
          "description": "Holds a progress bar and a progress-marker over the end of its fill, with room kept above the bar for the marker. Set --progress-value to the bar's amount as a percentage"
        },
        {
          "name": "progress-label-below",
          "kind": "modifier",
          "of": "progress-label",
          "description": "The marker under the bar instead of over it"
        },
        {
          "name": "progress-marker",
          "kind": "part",
          "of": "progress-label",
          "description": "The figure on a small sheet whose point touches the end of the fill; it slides under its point so it stays inside the bar's ends. Hide it with aria-hidden: the bar is the amount. An indeterminate bar does not show it"
        },
        {
          "name": "progress-ring",
          "kind": "root",
          "attributes": {
            "role": "progressbar"
          },
          "label": true,
          "description": "A ring, 40px across, on an element with role=\"progressbar\", an accessible name and the amount in aria-valuenow. The element's own content is the label in the middle"
        },
        {
          "name": "progress-ring-half",
          "kind": "modifier",
          "of": "progress-ring",
          "description": "The amount along an arch, the top half of the ring, with round ends and the figure standing in the arch. Without aria-valuenow a quarter of the arch travels from end to end"
        },
        {
          "name": "progress-ring-sm",
          "kind": "modifier",
          "of": "progress-ring",
          "exclusive": "size",
          "description": "A 20px ring; the default is 40px"
        },
        {
          "name": "progress-ring-lg",
          "kind": "modifier",
          "of": "progress-ring",
          "exclusive": "size",
          "description": "A 64px ring; the default is 40px"
        },
        {
          "name": "progress-ring-xl",
          "kind": "modifier",
          "of": "progress-ring",
          "exclusive": "size",
          "description": "A 96px ring with a larger figure in the middle; the default is 40px"
        }
      ],
      "states": [
        {
          "on": "progress",
          "name": "indeterminate",
          "mark": ":indeterminate",
          "description": "The element has no value attribute: a band of ink travels along the track, and with reduced motion the track rests at an even half tone"
        },
        {
          "on": "progress-ring",
          "name": "value",
          "mark": "aria-valuenow=\"64\"",
          "description": "The amount, out of aria-valuemax or 100. Without aria-valuenow the amount is unknown and a quarter arc travels the track"
        },
        {
          "on": "progress-label",
          "name": "indeterminate",
          "mark": ":indeterminate",
          "description": "The bar it holds has no value: the marker is not shown, since there is no amount to show"
        }
      ],
      "properties": [
        {
          "name": "--progress-height",
          "on": "progress",
          "default": ".375rem",
          "description": "Track thickness"
        },
        {
          "name": "--progress-color",
          "on": "progress",
          "default": "var(--color-surface-inverse)",
          "description": "Fill color"
        },
        {
          "name": "--progress-steps",
          "on": "progress-segmented",
          "default": "5",
          "description": "Number of pieces of a segmented track; set it to the same number as max"
        },
        {
          "name": "--progress-value",
          "on": "progress-label",
          "default": "0",
          "description": "The bar's amount as a percentage of its max, for the marker: written by the page beside the bar's value"
        },
        {
          "name": "--progress-ring-value",
          "on": "progress-ring",
          "description": "The ring's amount. It comes from aria-valuenow where typed attr() is supported; set it by hand elsewhere"
        },
        {
          "name": "--progress-ring-max",
          "on": "progress-ring",
          "default": "100",
          "description": "The amount of a full ring. It comes from aria-valuemax where typed attr() is supported; set it by hand elsewhere"
        },
        {
          "name": "--progress-ring-size",
          "on": "progress-ring",
          "default": "2.5rem",
          "description": "The ring's diameter"
        },
        {
          "name": "--progress-ring-width",
          "on": "progress-ring",
          "default": "max(2px, calc(var(--progress-ring-size) / 10))",
          "description": "The ring's thickness: a tenth of the size, and 2px at least"
        },
        {
          "name": "--progress-ring-color",
          "on": "progress-ring",
          "default": "var(--color-surface-inverse)",
          "description": "The arc's color; set it to a status color when the ring reports one"
        }
      ],
      "example": "<label class=\"field\">\n  Uploading 3 of 5 files\n  <progress class=\"progress\" value=\"62\" max=\"100\">62%</progress>\n</label>",
      "stylesheet": "components/progress.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-raised-low",
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-text-strong",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-control-sm",
        "--font-weight-control",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "meter",
      "title": "Meter",
      "tier": "component",
      "category": "Data display",
      "description": "A measurement within a known range.",
      "use": "Where a quantity stands in a range: storage used, a score, a password's strength. The element's low, high and optimum attributes decide the tone, so no class picks the color: ink while the value is where it should be, the warning ink when it is off, the danger ink when it is far off. A meter does not print its number: write the reading beside it, in words that say what the color says.",
      "instead": [
        {
          "when": "It is how far a task has come, or the amount is unknown; a meter has no indeterminate state",
          "use": "progress"
        },
        {
          "when": "The reader sets the value",
          "use": "slider"
        },
        {
          "when": "The figure itself is the message, with what it measures and how it moved",
          "use": "stat"
        },
        {
          "when": "The figure is the point and has room of its own, as on a dashboard",
          "use": "gauge"
        }
      ],
      "composes": [
        "input"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Styling the parts of the native meter (Chromium and Firefox)",
          "fallback": "Safari keeps the platform's own meter, which reports the same value and the same three tones in its own style"
        }
      ],
      "classes": [
        {
          "name": "meter",
          "kind": "root",
          "elements": [
            "meter"
          ],
          "label": true,
          "description": "A native meter element with a label: a 6px well with a fill whose tone follows low, high and optimum. The text inside the element is a fallback"
        },
        {
          "name": "meter-sm",
          "kind": "modifier",
          "of": "meter",
          "exclusive": "size",
          "description": "A 4px track; the default is 6px"
        },
        {
          "name": "meter-lg",
          "kind": "modifier",
          "of": "meter",
          "exclusive": "size",
          "description": "An 8px track; the default is 6px"
        },
        {
          "name": "meter-segmented",
          "kind": "modifier",
          "of": "meter",
          "description": "The track in --meter-steps equal pieces, four by default, for a reading that comes in levels"
        }
      ],
      "properties": [
        {
          "name": "--meter-height",
          "default": ".375rem",
          "description": "Track thickness"
        },
        {
          "name": "--meter-steps",
          "on": "meter-segmented",
          "default": "4",
          "description": "Number of pieces of a segmented track; set it to the number of levels"
        }
      ],
      "example": "<label class=\"field\">\n  7.4 of 10 GB used, getting full\n  <meter class=\"meter\" min=\"0\" max=\"10\" low=\"6\" high=\"9\" optimum=\"0\" value=\"7.4\">7.4 of 10 GB</meter>\n</label>",
      "stylesheet": "components/meter.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-warning",
        "--color-danger",
        "--shadow-pressed",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "gauge",
      "title": "Gauge",
      "tier": "component",
      "category": "Data display",
      "description": "A reading on a dial: an arc that fills as far as the value has come.",
      "use": "One measurement a reader takes in at a glance, where the figure is the point and the arc says how near the limit it is: a load, a score, a quota. Write the reading in aria-valuenow and again as the text of gauge-value, with its unit.",
      "instead": [
        {
          "when": "The reading stands in a row or a form beside its label and needs no figure of its own",
          "use": "meter"
        },
        {
          "when": "It is a task that completes, not a measurement",
          "use": "progress"
        },
        {
          "when": "The reader needs the figure and how it moved, without a picture of a range",
          "use": "stat"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Typed attr(), as in attr(aria-valuenow type(<number>))",
          "fallback": "The gauge does not read aria-valuenow, aria-valuemin and aria-valuemax: set --gauge-value in a style attribute as well, and --gauge-min and --gauge-max when the range is not 0 to 100"
        }
      ],
      "classes": [
        {
          "name": "gauge",
          "kind": "root",
          "attributes": {
            "role": "meter"
          },
          "label": true,
          "description": "The dial, 120px across, on an element with role=\"meter\", an accessible name and the reading in aria-valuenow: two thirds of a ring, open at the foot, filled with ink as far as the reading"
        },
        {
          "name": "gauge-sm",
          "kind": "modifier",
          "of": "gauge",
          "exclusive": "size",
          "description": "An 88px dial; the default is 120px"
        },
        {
          "name": "gauge-lg",
          "kind": "modifier",
          "of": "gauge",
          "exclusive": "size",
          "description": "A 160px dial; the default is 120px"
        },
        {
          "name": "gauge-value",
          "kind": "part",
          "of": "gauge",
          "description": "The reading as text, in large tabular figures at the middle of the dial"
        },
        {
          "name": "gauge-label",
          "kind": "part",
          "of": "gauge",
          "description": "One quiet word under the figure, between the two ends of the arc; without it the figure stands at the middle"
        }
      ],
      "states": [
        {
          "on": "gauge",
          "name": "value",
          "mark": "aria-valuenow=\"72\"",
          "description": "The reading, between aria-valuemin and aria-valuemax or 0 and 100. The fill eases to each new reading"
        }
      ],
      "properties": [
        {
          "name": "--gauge-value",
          "description": "The reading. It comes from aria-valuenow where typed attr() is supported; set it by hand elsewhere"
        },
        {
          "name": "--gauge-min",
          "default": "0",
          "description": "The foot of the range. It comes from aria-valuemin where typed attr() is supported"
        },
        {
          "name": "--gauge-max",
          "default": "100",
          "description": "The top of the range. It comes from aria-valuemax where typed attr() is supported"
        },
        {
          "name": "--gauge-size",
          "default": "7.5rem",
          "description": "The dial's diameter"
        },
        {
          "name": "--gauge-width",
          "default": "calc(var(--gauge-size) / 15)",
          "description": "Thickness of the arc"
        },
        {
          "name": "--gauge-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink of the fill; the track is the same color stepped back. Set a status color when the reading is one, and say so in words"
        }
      ],
      "example": "<div class=\"gauge\" role=\"meter\" aria-label=\"Memory\" aria-valuenow=\"72\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"--gauge-value: 72\">\n  <span class=\"gauge-value\">72%</span>\n  <span class=\"gauge-label\">Memory</span>\n</div>",
      "stylesheet": "components/gauge.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-text-strong",
        "--color-text-muted",
        "--font-weight-control",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "uptime",
      "title": "Uptime",
      "tier": "component",
      "category": "Data display",
      "description": "How a service has been, one tick to a day.",
      "use": "A status page or a service's row on a dashboard: the last thirty, sixty or ninety days at a glance. Each item says in words what its day was like; the stylesheet draws it as a tick and keeps the words for assistive technology. Good days are quiet, so the days that were not are what is seen.",
      "instead": [
        {
          "when": "Each cell is a number on a scale, not a state",
          "use": "heatmap"
        },
        {
          "when": "It is one reading now, not a history",
          "use": "badge"
        },
        {
          "when": "The incidents themselves are listed with their times",
          "use": "timeline"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "uptime",
          "kind": "root",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The row, 32px tall: ticks that share its width, 2px apart"
        },
        {
          "name": "uptime-sm",
          "kind": "modifier",
          "of": "uptime",
          "description": "A 16px row with ticks 1px apart, for a line of a table"
        },
        {
          "name": "uptime-day",
          "kind": "part",
          "of": "uptime",
          "elements": [
            "li"
          ],
          "description": "One day, as a tick in a quiet tint of ink. Its text says what the day was like and is moved out of sight"
        },
        {
          "name": "uptime-degraded",
          "kind": "modifier",
          "of": "uptime-day",
          "exclusive": "state",
          "description": "A day the service was slow or partly failing, in the warning hue"
        },
        {
          "name": "uptime-down",
          "kind": "modifier",
          "of": "uptime-day",
          "exclusive": "state",
          "description": "A day the service was down, in the danger hue"
        },
        {
          "name": "uptime-none",
          "kind": "modifier",
          "of": "uptime-day",
          "exclusive": "state",
          "description": "A day with no data, in the tone of a hairline"
        }
      ],
      "properties": [
        {
          "name": "--uptime-height",
          "default": "2rem",
          "description": "Height of the row"
        },
        {
          "name": "--uptime-gap",
          "default": "2px",
          "description": "Space between ticks"
        },
        {
          "name": "--uptime-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink a good day is tinted with"
        }
      ],
      "example": "<ol class=\"uptime\" aria-label=\"API, the last three days\">\n  <li class=\"uptime-day\">10 November: operational</li>\n  <li class=\"uptime-day uptime-degraded\">11 November: degraded for 42 minutes</li>\n  <li class=\"uptime-day\">12 November: operational</li>\n</ol>",
      "stylesheet": "components/uptime.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-line-strong",
        "--color-line-mark",
        "--color-warning",
        "--color-danger"
      ],
      "mixins": []
    },
    {
      "name": "gantt",
      "title": "Gantt",
      "tier": "component",
      "category": "Data display",
      "description": "Things that last, as bars on one scale of time.",
      "use": "A plan or a record in which each thing has a beginning and an end: phases of a project, on-call shifts, a release train. The scale runs from --gantt-from to --gantt-to in any unit, and each row sets --from and --to. Write what a bar says as its text, so the list reads without the drawing. Where the reader plans, mark the bars that move role=\"slider\" and attach the behavior: they are dragged and resized with the pointer and moved with the keys, and the page keeps the right to refuse a change.",
      "instead": [
        {
          "when": "The events are moments, not spans, and their order is what matters",
          "use": "timeline"
        },
        {
          "when": "The amounts are compared with each other and have no place in time",
          "use": "chart"
        },
        {
          "when": "It is a fixed sequence the reader moves through",
          "use": "steps"
        }
      ],
      "script": "optional",
      "behavior": "gantt",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Enter the chart on one bar, and leave it: the chart is one stop"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Go to the bar above or below, passing over a disabled one"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Move the bar a step earlier or later, its length kept; from right to left, ArrowLeft is later"
        },
        {
          "keys": "Shift+ArrowLeft, Shift+ArrowRight",
          "action": "Move the bar's end a step, never closer to its start than a step"
        },
        {
          "keys": "Alt+ArrowLeft, Alt+ArrowRight",
          "action": "Move the bar's start a step (Option on a Mac)"
        },
        {
          "keys": "Home, End",
          "action": "Move the bar to the earliest start or the latest end it may take; with Shift its end, with Alt its start"
        },
        {
          "keys": "Escape",
          "action": "While a bar is dragged, put it back where the drag started"
        }
      ],
      "classes": [
        {
          "name": "gantt",
          "kind": "root",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The list: names in one column and bars in the other, on a scale from --gantt-from to --gantt-to with a hairline at every unit"
        },
        {
          "name": "gantt-now",
          "kind": "modifier",
          "of": "gantt",
          "description": "Draws an ink line down the rows at --gantt-now, for today"
        },
        {
          "name": "gantt-row",
          "kind": "part",
          "of": "gantt",
          "elements": [
            "li"
          ],
          "description": "One row; set --from and --to in its style, and --progress for how far along it is. Under the pointer its bar is a step firmer. In a container under 26rem the name stands over the bar"
        },
        {
          "name": "gantt-scale",
          "kind": "modifier",
          "of": "gantt-row",
          "description": "The row that names the scale's units: it holds gantt-ticks and has no track. Hide it from assistive technology when the bars already say their dates"
        },
        {
          "name": "gantt-label",
          "kind": "part",
          "of": "gantt",
          "description": "What the row is, at the start; one line that ends in an ellipsis"
        },
        {
          "name": "gantt-bar",
          "kind": "part",
          "of": "gantt",
          "description": "The bar, 28px tall: a tint of ink from --from to --to, filled with a firmer tint as far as --progress percent. Its text is what the bar says, such as its dates. Marked role=\"slider\", it moves: the pointer drags its body and resizes it by the grip at either end, which stays shown and wider on a touch screen while the bar keeps its 28px"
        },
        {
          "name": "gantt-milestone",
          "kind": "modifier",
          "of": "gantt-bar",
          "description": "A point in time instead of a span: a small ink diamond at --from. Its text stays for assistive technology"
        },
        {
          "name": "gantt-resize-start",
          "kind": "modifier",
          "of": "gantt-bar",
          "description": "Set by the behavior while the pointer holds the bar's start: its grip is firm and the cursor resizes wherever the pointer goes"
        },
        {
          "name": "gantt-resize-end",
          "kind": "modifier",
          "of": "gantt-bar",
          "description": "Set by the behavior while the pointer holds the bar's end"
        },
        {
          "name": "gantt-ticks",
          "kind": "part",
          "of": "gantt",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The names of the scale's units inside gantt-scale, one item to a unit"
        },
        {
          "name": "gantt-status",
          "kind": "part",
          "of": "gantt",
          "anywhere": true,
          "attributes": {
            "role": "status"
          },
          "description": "A region right after the chart that says what a bar's value cannot: that a change was refused, or a drag cancelled. It takes no room"
        }
      ],
      "states": [
        {
          "on": "gantt-row",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The row that matters now: its bar is ink and its name takes the strong ink"
        },
        {
          "on": "gantt-bar",
          "name": "movable",
          "mark": "role=\"slider\"",
          "description": "The bar moves: a grab cursor, a grip at each end on hover and focus, and one stop in the tab order for the chart"
        },
        {
          "on": "gantt-bar",
          "name": "focused",
          "mark": ":focus-visible",
          "description": "The focus ring, above the rows, and the grips"
        },
        {
          "on": "gantt-bar",
          "name": "held",
          "mark": "aria-busy=\"true\"",
          "description": "Set by the behavior while the pointer carries the bar: it lifts on a firmer tint and follows the pointer with no easing"
        },
        {
          "on": "gantt-bar",
          "name": "read-only",
          "mark": "aria-readonly=\"true\"",
          "description": "The bar takes focus and is read, and does not move"
        },
        {
          "on": "gantt-bar",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The bar does not move and the keys pass over it; its text is in the disabled ink"
        }
      ],
      "properties": [
        {
          "name": "--gantt-from",
          "default": "0",
          "description": "Where the scale begins"
        },
        {
          "name": "--gantt-to",
          "default": "12",
          "description": "Where the scale ends"
        },
        {
          "name": "--gantt-now",
          "default": "0",
          "description": "Where the line of gantt-now stands on the scale"
        },
        {
          "name": "--from",
          "on": "gantt-row",
          "description": "Where the row's bar begins, in the scale's unit. The behavior writes it as the bar moves"
        },
        {
          "name": "--to",
          "on": "gantt-row",
          "description": "Where the row's bar ends. The behavior writes it as the bar moves or is resized"
        },
        {
          "name": "--progress",
          "on": "gantt-row",
          "description": "How much of the bar is done, from 0 to 100"
        },
        {
          "name": "--gantt-gap",
          "default": ".375rem",
          "description": "Space between rows"
        },
        {
          "name": "--gantt-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink the bars are tinted with"
        }
      ],
      "example": "<ol class=\"gantt\" style=\"--gantt-from: 0; --gantt-to: 8\" aria-label=\"Launch plan, in weeks\">\n  <li class=\"gantt-row\" style=\"--from: 0; --to: 3; --progress: 100\"><span class=\"gantt-label\">Research</span><span class=\"gantt-bar\">Weeks 1 to 3</span></li>\n  <li class=\"gantt-row\" aria-current=\"true\" style=\"--from: 2; --to: 6\"><span class=\"gantt-label\">Design</span><span class=\"gantt-bar\">Weeks 3 to 6</span></li>\n</ol>",
      "stylesheet": "components/gantt.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--shadow-lifted",
        "--shadow-ink-top",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "schedule",
      "title": "Schedule",
      "tier": "component",
      "category": "Data display",
      "description": "Events placed in time: a day or a week as hours down a rail, a month as weeks of lanes, or an agenda.",
      "use": "Things booked at a time: meetings, appointments, shifts, talks at a conference, a team's calendar. A day or a few days show the hours, with each event as tall as it lasts and what lasts whole days in the band above them; a month shows each day's events in lanes; an agenda lists them by day. Write each event's title and time as text, so it reads without the drawing. A schedule-view, driven by the schedule behavior, lets the reader move through the periods and switch views; it does not edit, store or repeat events.",
      "instead": [
        {
          "when": "The spans are compared on one shared scale, one row to a thing, such as phases of a project",
          "use": "gantt"
        },
        {
          "when": "A reader picks a day, or a range of days, from a month",
          "use": "calendar"
        },
        {
          "when": "The events are moments in the order they happened, with no length",
          "use": "timeline"
        },
        {
          "when": "The events are read as rows of facts and sorted, not placed in time",
          "use": "table"
        }
      ],
      "script": "optional",
      "classes": [
        {
          "name": "schedule",
          "kind": "root",
          "description": "The hours from --schedule-from to --schedule-to, each --schedule-hour tall: a rail of labels at the start, then one column for each day"
        },
        {
          "name": "schedule-now",
          "kind": "modifier",
          "of": "schedule",
          "description": "Draws an ink line with a dot at --now through the day marked aria-current=\"date\", or through every day when none is, and a hairline through the other days"
        },
        {
          "name": "schedule-rail",
          "kind": "part",
          "of": "schedule",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The labels of the hours, one item to an hour from --schedule-from to --schedule-to, each centered on its hairline. Hide it with aria-hidden: the events say their times in words"
        },
        {
          "name": "schedule-day",
          "kind": "part",
          "of": "schedule",
          "description": "One day's column, for several days side by side: an optional schedule-heading over its schedule-events. Mark today with aria-current=\"date\". A schedule of one day may leave it out"
        },
        {
          "name": "schedule-heading",
          "kind": "part",
          "of": "schedule",
          "description": "The name of a day, over its column, in muted ink; today's takes the strong ink"
        },
        {
          "name": "schedule-events",
          "kind": "part",
          "of": "schedule",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The events of one day, in order of time, on the scale's hairlines: one at every hour and one down the day's start"
        },
        {
          "name": "schedule-event",
          "kind": "part",
          "of": [
            "schedule",
            "schedule-month",
            "schedule-list"
          ],
          "description": "One event from --start to --end, in lane --lane of --lanes: a quiet sheet of tinted ink with a rounded ink bar inside its start, a pixel clear of the hairlines. Put it on the list item, or on a link or a button inside one. A short event keeps one line"
        },
        {
          "name": "schedule-title",
          "kind": "part",
          "of": "schedule",
          "description": "What the event is: one line that ends in an ellipsis. It stands in an event wherever the event is: on the hours, in a month, a list or an agenda",
          "anywhere": true
        },
        {
          "name": "schedule-time",
          "kind": "part",
          "of": "schedule",
          "description": "When it is, written with <time> elements: a quiet line under the title, or beside it in a short event when both fit. It stands in an event wherever the event is: on the hours, in a month, a list or an agenda",
          "anywhere": true
        },
        {
          "name": "schedule-event-lane",
          "kind": "modifier",
          "of": "schedule-event",
          "description": "In a lane instead of on the hours: --span days from day --column, on lane --lane, one line high. For an all-day band, a month and a list of events"
        },
        {
          "name": "schedule-event-continued",
          "kind": "modifier",
          "of": "schedule-event",
          "description": "A piece of an event that began before: on the hours its top is square, in a lane its start, and it has no bar"
        },
        {
          "name": "schedule-event-continues",
          "kind": "modifier",
          "of": "schedule-event",
          "description": "A piece of an event that goes on after: on the hours its bottom is square, in a lane its end"
        },
        {
          "name": "schedule-event-plain",
          "kind": "modifier",
          "of": "schedule-event",
          "description": "A short event in a month or a list: no sheet, a dot for the bar, then its time and its title"
        },
        {
          "name": "schedule-event-category",
          "kind": "modifier",
          "of": "schedule-event",
          "description": "The sheet, bar and words of the category set by a category-<name> class on it or around it"
        },
        {
          "name": "schedule-allday",
          "kind": "part",
          "of": "schedule",
          "description": "The band under the headings for what lasts whole days, across the day columns: each day names its column with --column and the schedule says how many in --schedule-days. Holds a schedule-allday-label and lane events"
        },
        {
          "name": "schedule-allday-label",
          "kind": "part",
          "of": "schedule",
          "description": "The band's name in the rail's column, such as \"All day\"; aria-hidden, with the band named by its aria-label"
        },
        {
          "name": "schedule-month",
          "kind": "root",
          "description": "A month: schedule-weekdays over schedule-weeks. In a narrow room each day shows a dot for each of its events instead of lanes"
        },
        {
          "name": "schedule-weekdays",
          "kind": "part",
          "of": "schedule-month",
          "description": "The names of the weekdays over the weeks; aria-hidden, since each day's number is named in full"
        },
        {
          "name": "schedule-weekday",
          "kind": "part",
          "of": "schedule-month",
          "description": "One weekday's name"
        },
        {
          "name": "schedule-weeks",
          "kind": "part",
          "of": "schedule-month",
          "elements": [
            "ol"
          ],
          "description": "The weeks, in order"
        },
        {
          "name": "schedule-week",
          "kind": "part",
          "of": "schedule-month",
          "elements": [
            "li"
          ],
          "description": "A week: seven days, the numbers on the first row, --lanes rows of events and a row for the more buttons. Write each day, then the events that start on it, then its more button, so they read in the order of the days"
        },
        {
          "name": "schedule-date",
          "kind": "part",
          "of": "schedule-month",
          "description": "A day: a cell from the top to the bottom of the week in column --column, with --count its number of events. Mark today with aria-current=\"date\""
        },
        {
          "name": "schedule-date-outside",
          "kind": "modifier",
          "of": "schedule-date",
          "description": "A day of the month before or after: a quieter number on a faint tray"
        },
        {
          "name": "schedule-date-number",
          "kind": "part",
          "of": "schedule-month",
          "elements": [
            "button",
            "a"
          ],
          "label": true,
          "description": "The day's number, a round button that opens the day; its accessible name is the whole date and its count of events. Today's is ink"
        },
        {
          "name": "schedule-more",
          "kind": "part",
          "of": "schedule-month",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "The rest of a day's events past its lanes, on the week's last row in column --column: opens a popover that lists the day's events. Its accessible name says how many and which day"
        },
        {
          "name": "schedule-list",
          "kind": "root",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "Events in the order they come, as lane events one above the other: a day's in its popover, each day's in the agenda"
        },
        {
          "name": "schedule-agenda",
          "kind": "root",
          "elements": [
            "ol"
          ],
          "description": "The period's days that have events, one to a row: the date at the start and a schedule-list beside it, or over it in a narrow room"
        },
        {
          "name": "schedule-agenda-day",
          "kind": "part",
          "of": "schedule-agenda",
          "elements": [
            "li"
          ],
          "description": "One day of the agenda; mark today with aria-current=\"date\""
        },
        {
          "name": "schedule-agenda-date",
          "kind": "part",
          "of": [
            "schedule-agenda",
            "schedule-month"
          ],
          "description": "The day's date, at the start of its row or over a day's list in a popover; today's takes the strong ink"
        },
        {
          "name": "schedule-view",
          "kind": "root",
          "description": "A schedule the reader works: a schedule-view-header over a schedule-view-body, driven by the schedule behavior"
        },
        {
          "name": "schedule-view-header",
          "kind": "part",
          "of": "schedule-view",
          "description": "The controls: today, previous and next, the period's name and the view switch, with the name on a line of its own in a narrow room"
        },
        {
          "name": "schedule-view-title",
          "kind": "part",
          "of": "schedule-view",
          "description": "The period on show, such as \"November 2026\"; mark it aria-live=\"polite\" so a move is heard"
        },
        {
          "name": "schedule-view-previous",
          "kind": "part",
          "of": "schedule-view",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "Moves back by the view's period"
        },
        {
          "name": "schedule-view-next",
          "kind": "part",
          "of": "schedule-view",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "Moves on by the view's period"
        },
        {
          "name": "schedule-view-today",
          "kind": "part",
          "of": "schedule-view",
          "elements": [
            "button"
          ],
          "description": "Moves to the period that holds today"
        },
        {
          "name": "schedule-view-switch",
          "kind": "part",
          "of": "schedule-view",
          "description": "Holds the radios that choose the view, with the values day, week, month and agenda; a segmented control"
        },
        {
          "name": "schedule-view-body",
          "kind": "part",
          "of": "schedule-view",
          "description": "Where the behavior writes the period: a schedule for a day or a week, a schedule-month or a schedule-agenda"
        }
      ],
      "states": [
        {
          "on": "schedule-event",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The event in progress, or the one open beside the schedule: an ink sheet"
        },
        {
          "on": "schedule-day",
          "name": "today",
          "mark": "aria-current=\"date\"",
          "description": "Today: its heading takes the strong ink and schedule-now draws its line through it"
        },
        {
          "on": "schedule-date",
          "name": "today",
          "mark": "aria-current=\"date\"",
          "description": "Today: its number is ink"
        },
        {
          "on": "schedule-agenda-day",
          "name": "today",
          "mark": "aria-current=\"date\"",
          "description": "Today: its date takes the strong ink"
        }
      ],
      "properties": [
        {
          "name": "--schedule-from",
          "default": "8",
          "description": "The first hour, from 0 to 24; fractions work"
        },
        {
          "name": "--schedule-to",
          "default": "18",
          "description": "The hour the schedule ends"
        },
        {
          "name": "--schedule-hour",
          "default": "3rem",
          "description": "The height of an hour"
        },
        {
          "name": "--schedule-rail",
          "default": "3rem",
          "description": "The width of the rail of labels"
        },
        {
          "name": "--schedule-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink the events are tinted and edged with"
        },
        {
          "name": "--now",
          "on": "schedule",
          "description": "The hour of the line of schedule-now, such as 13.5 for half past one"
        },
        {
          "name": "--start",
          "on": "schedule-event",
          "description": "The hour the event begins"
        },
        {
          "name": "--end",
          "on": "schedule-event",
          "description": "The hour the event ends"
        },
        {
          "name": "--lane",
          "on": "schedule-event",
          "description": "Where the event stands among events that overlap it, from 0 at the start; 0 by default"
        },
        {
          "name": "--lanes",
          "on": "schedule-event",
          "description": "How many events stand side by side where this one does; 1 by default"
        },
        {
          "name": "--schedule-days",
          "on": "schedule",
          "description": "How many day columns stand side by side, for a schedule with an all-day band; 1 by default"
        },
        {
          "name": "--column",
          "on": "schedule-event",
          "description": "In a lane, the day the event starts on in its row, from 1; on a schedule-day, schedule-date or schedule-more, its column"
        },
        {
          "name": "--span",
          "on": "schedule-event",
          "description": "In a lane, how many days the event covers in its row; 1 by default"
        },
        {
          "name": "--lanes",
          "on": "schedule-week",
          "description": "How many lanes of events a week shows; 3 by default"
        },
        {
          "name": "--count",
          "on": "schedule-date",
          "default": "0",
          "description": "How many events the day holds, drawn as up to three dots in a narrow month"
        }
      ],
      "example": "<div class=\"schedule\" style=\"--schedule-from: 9; --schedule-to: 12\">\n  <ol class=\"schedule-rail\" aria-hidden=\"true\"><li>9 AM</li><li>10 AM</li><li>11 AM</li><li>12 PM</li></ol>\n  <ol class=\"schedule-events\" aria-label=\"Thursday 13 November\">\n    <li class=\"schedule-event\" style=\"--start: 9; --end: 9.5\">\n      <p class=\"schedule-title\">Standup</p>\n      <p class=\"schedule-time\"><time datetime=\"09:00\">9:00</time> – <time datetime=\"09:30\">9:30</time></p>\n    </li>\n    <li class=\"schedule-event\" style=\"--start: 10; --end: 11.5\">\n      <p class=\"schedule-title\">Design review</p>\n      <p class=\"schedule-time\"><time datetime=\"10:00\">10:00</time> – <time datetime=\"11:30\">11:30</time></p>\n    </li>\n  </ol>\n</div>",
      "composes": [
        "button",
        "segmented",
        "popover",
        "empty",
        "category"
      ],
      "behavior": "schedule",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves through the header's controls, then each day's number, its events and its more button in the order of the days"
        },
        {
          "keys": "Enter, Space",
          "action": "Activates a control: previous, today and next move by the view's period, a day's number opens the day, an event does what the page gives it, and a more button opens the day's list"
        },
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Choose a view among the switch's radios, as radios do"
        },
        {
          "keys": "Escape",
          "action": "Closes a day's list, as any popover does"
        }
      ],
      "platform": [
        {
          "feature": "Container queries",
          "fallback": "A month keeps its lanes at every width, and an agenda keeps the date beside its events"
        },
        {
          "feature": "CSS subgrid, for the all-day band",
          "fallback": "The band's events do not line up with the day columns under it"
        }
      ],
      "stylesheet": "components/schedule.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-tray",
        "--color-surface-chip",
        "--color-surface-inverse",
        "--color-line-hair",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-inverse",
        "--shadow-ink-top",
        "--radius-chip",
        "--font-weight-control"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "price",
      "title": "Price",
      "tier": "component",
      "category": "Data display",
      "description": "What something costs, set the way a price is read.",
      "use": "A price on a plan, a product or an invoice total: large figures, a small currency mark hung from their top, a quiet period on their baseline. Put a price that no longer holds before the amount on an s element. Everything is sized from the amount.",
      "instead": [
        {
          "when": "The figure is a measurement with a label and a change, not a cost",
          "use": "stat"
        },
        {
          "when": "The amount is one cell of a table of figures",
          "use": "table"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "price",
          "kind": "root",
          "description": "The price on one line, 36px figures in tabular numerals with a tight fit"
        },
        {
          "name": "price-sm",
          "kind": "modifier",
          "of": "price",
          "exclusive": "size",
          "description": "24px figures; the default is 36px"
        },
        {
          "name": "price-lg",
          "kind": "modifier",
          "of": "price",
          "exclusive": "size",
          "description": "56px figures, for the one price a page is about; the default is 36px"
        },
        {
          "name": "price-amount",
          "kind": "part",
          "of": "price",
          "description": "The figures, or a word such as Free"
        },
        {
          "name": "price-currency",
          "kind": "part",
          "of": "price",
          "description": "The currency mark, under half the size of the figures and level with their top"
        },
        {
          "name": "price-period",
          "kind": "part",
          "of": "price",
          "description": "Per what, small and muted on the baseline: a month, a seat"
        },
        {
          "name": "price-was",
          "kind": "part",
          "of": "price",
          "description": "The price that no longer holds, quiet and struck through, before the amount"
        }
      ],
      "properties": [
        {
          "name": "--price-size",
          "default": "2.25rem",
          "description": "Size of the figures; the other parts follow it"
        }
      ],
      "example": "<p class=\"price\"><span class=\"price-currency\">$</span><span class=\"price-amount\">29</span><span class=\"price-period\">per month</span></p>",
      "stylesheet": "components/price.css",
      "tokens": [
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "skeleton",
      "title": "Skeleton",
      "tier": "component",
      "category": "Feedback",
      "description": "The shape of content that is on its way.",
      "use": "Content whose layout is known before its data arrives: a card, a row, an avatar. Size each skeleton like the content it replaces, so the page does not jump when the content lands.",
      "instead": [
        {
          "when": "The wait has no shape to show, as in a busy button or a region of unknown content",
          "use": "spinner"
        },
        {
          "when": "Words can say what is happening",
          "use": "shimmer"
        },
        {
          "when": "The amount of work done is known",
          "use": "progress"
        },
        {
          "when": "The content is already there and is being fetched again",
          "use": "busy"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "sibling-index()",
          "fallback": "Every skeleton in a block starts its band of light at the same moment"
        }
      ],
      "classes": [
        {
          "name": "skeleton",
          "kind": "root",
          "description": "A placeholder block; give it the height of the image, chart or card it stands for"
        },
        {
          "name": "skeleton-text",
          "kind": "modifier",
          "of": "skeleton",
          "exclusive": "shape",
          "description": "One line of text: as tall as the letters and centered in the line it stands for"
        },
        {
          "name": "skeleton-circle",
          "kind": "modifier",
          "of": "skeleton",
          "exclusive": "shape",
          "description": "A circle for an avatar or an icon, sized by its width"
        }
      ],
      "example": "<section aria-busy=\"true\" aria-label=\"Loading member\">\n  <span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>\n  <span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>\n</section>",
      "stylesheet": "components/skeleton.css",
      "tokens": [
        "--color-surface-chip",
        "--color-sheen",
        "--radius-chip"
      ],
      "mixins": []
    },
    {
      "name": "shimmer",
      "title": "Shimmer",
      "tier": "component",
      "category": "Feedback",
      "description": "Words that say work is under way, with light passing over them.",
      "use": "A status that can be said in words while the work runs: \"Thinking\", \"Searching 14 files\", \"Deploying\". Replace the line with its result when the work is done.",
      "instead": [
        {
          "when": "The shape of the coming content is known and its words are not",
          "use": "skeleton"
        },
        {
          "when": "There is nothing to say except that something is happening",
          "use": "spinner"
        },
        {
          "when": "The amount of work done is known",
          "use": "progress"
        },
        {
          "when": "Words are already being written and more are coming",
          "use": "caret"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "shimmer",
          "kind": "root",
          "description": "Words in a quieter ink with a band of light passing over them; goes on the element that holds the words"
        }
      ],
      "properties": [
        {
          "name": "--shimmer-duration",
          "default": "2s",
          "description": "Time of one pass"
        },
        {
          "name": "--shimmer-color",
          "default": "color-mix(in oklab, currentColor 56%, transparent)",
          "description": "Ink of the words at rest"
        },
        {
          "name": "--shimmer-light",
          "default": "currentColor",
          "description": "Ink of the band"
        }
      ],
      "example": "<p class=\"shimmer\" role=\"status\">Searching 14 files</p>",
      "stylesheet": "components/shimmer.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "spinner",
      "title": "Spinner",
      "tier": "component",
      "category": "Feedback",
      "description": "A fine ring for work of unknown duration.",
      "use": "A short wait with nothing to show yet: a busy button, a field that checks its value, a panel that loads. Alone it has role=\"status\" and an aria-label; beside text that says the same it has aria-hidden=\"true\".",
      "instead": [
        {
          "when": "The shape of the coming content is known",
          "use": "skeleton"
        },
        {
          "when": "Words can say what is happening",
          "use": "shimmer"
        },
        {
          "when": "The amount of work done is known",
          "use": "progress"
        },
        {
          "when": "A whole region that already shows content is refreshing",
          "use": "busy"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "spinner",
          "kind": "root",
          "description": "The ring, 16px, in the current text color"
        },
        {
          "name": "spinner-sm",
          "kind": "modifier",
          "of": "spinner",
          "exclusive": "size",
          "description": "12px; the default is 16px"
        },
        {
          "name": "spinner-lg",
          "kind": "modifier",
          "of": "spinner",
          "exclusive": "size",
          "description": "24px; the default is 16px"
        },
        {
          "name": "spinner-xl",
          "kind": "modifier",
          "of": "spinner",
          "exclusive": "size",
          "description": "36px; the default is 16px"
        },
        {
          "name": "spinner-inline",
          "kind": "modifier",
          "of": "spinner",
          "exclusive": "size",
          "description": "As large as the icons of the control around it, or 1em where no control sets an icon size"
        }
      ],
      "properties": [
        {
          "name": "--spinner-size",
          "default": "1rem",
          "description": "Diameter of the ring; a control may set it for the spinner it holds"
        },
        {
          "name": "--icon-size",
          "on": "spinner-inline",
          "description": "Read from the control around the spinner; the stylesheet falls back to 1em"
        }
      ],
      "example": "<span class=\"spinner\" role=\"status\" aria-label=\"Loading\"></span>",
      "stylesheet": "components/spinner.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "busy",
      "title": "Busy",
      "tier": "component",
      "category": "Feedback",
      "description": "A region whose content is being fetched again, under a veil and a spinner.",
      "use": "A card, a table or a panel that already shows content and is refreshing it: after a filter changes, while a form saves. The old content keeps its place under a veil, so nothing jumps when the new content arrives. Set aria-busy=\"true\" while the work runs and remove it after; add inert to keep the keyboard out, and say what is happening in a live region.",
      "instead": [
        {
          "when": "The content has never loaded and only its shape is known",
          "use": "skeleton"
        },
        {
          "when": "The wait belongs to one button or one line",
          "use": "spinner"
        },
        {
          "when": "The amount of work is known",
          "use": "progress"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "busy",
          "kind": "root",
          "description": "On the region itself: while it carries aria-busy=\"true\", a veil in the color of its surface steps the content back and a spinner turns in the middle. The veil takes the region's corner and waits 160ms before it shows"
        }
      ],
      "states": [
        {
          "on": "busy",
          "name": "busy",
          "mark": "aria-busy=\"true\"",
          "description": "The region is being refreshed. Without the attribute the class draws nothing"
        }
      ],
      "properties": [
        {
          "name": "--busy-size",
          "default": "1.25rem",
          "description": "The spinner's diameter"
        }
      ],
      "example": "<section class=\"busy\" aria-busy=\"true\" aria-label=\"Revenue\">\n  <p>$48,200 this month</p>\n</section>",
      "stylesheet": "components/busy.css",
      "tokens": [
        "--color-surface-base",
        "--color-text-strong",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "caret",
      "title": "Caret",
      "tier": "component",
      "category": "Feedback",
      "description": "The mark at the end of text that is still being written.",
      "use": "After the last word of an answer as it streams, or after a prompt that waits for input. It is decoration: hide it with aria-hidden, mark the region that is being written with aria-busy, and remove the caret when the text is complete.",
      "instead": [
        {
          "when": "Nothing is written yet and the words say work is under way",
          "use": "shimmer"
        },
        {
          "when": "Another person is typing in a conversation",
          "use": "message"
        },
        {
          "when": "The wait belongs to a control",
          "use": "spinner"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "caret",
          "kind": "root",
          "description": "A fine upright bar in the ink of the words it follows, as tall as their letters, that fades out and back about once a second"
        },
        {
          "name": "caret-block",
          "kind": "modifier",
          "of": "caret",
          "description": "A terminal's caret: half an em wide"
        }
      ],
      "example": "<p aria-busy=\"true\">The column is added as nullable first<span class=\"caret\" aria-hidden=\"true\"></span></p>",
      "stylesheet": "components/caret.css",
      "tokens": [
        "--easing-glide"
      ],
      "mixins": []
    },
    {
      "name": "presence",
      "title": "Presence",
      "tier": "component",
      "category": "Content",
      "description": "Another person's pointer, caret or selection, in the color that names them.",
      "use": "Shared work where others are here at the same time: a canvas, a board, a document edited together. Draw each collaborator's pointer where the application says it is, with their name, and their caret and selection in text. Give each person one of the eight identities for the session, presence-1 to presence-8, and keep their name beside it. The pointers are decoration: hide them from assistive technology and say who is here in words elsewhere, such as a pile of avatars.",
      "instead": [
        {
          "when": "It says who is here or who took part, not where they are",
          "use": "avatar"
        },
        {
          "when": "It marks the place where text is still being written by the application",
          "use": "caret"
        },
        {
          "when": "It highlights words for the reader, such as a search match",
          "use": "mark"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "presence",
          "kind": "root",
          "description": "A pointer: an arrow whose tip stands at --presence-x and --presence-y in the positioned element that holds it, in the person's identity color. It glides to each new point and takes no pointer event"
        },
        {
          "name": "presence-name",
          "kind": "part",
          "of": [
            "presence",
            "presence-caret"
          ],
          "anywhere": true,
          "description": "The person's name, in a flag of their color with the identity ink: beside the arrow's tip, standing on a caret, or on its own in a list of who is here"
        },
        {
          "name": "presence-message",
          "kind": "part",
          "of": "presence",
          "description": "A short message the person is writing, in a bubble of their color under the name"
        },
        {
          "name": "presence-caret",
          "kind": "root",
          "description": "Another person's caret in text: an inline bar as tall as the line, in their identity color, that takes no room. A presence-name inside it stands on top of it"
        },
        {
          "name": "presence-selection",
          "kind": "root",
          "description": "Another person's selection: a tint of their identity color behind the words it holds, carried across lines"
        },
        {
          "name": "presence-1",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 1, --color-identity-1: red in hue. Without a modifier or --presence-color, a presence takes this one"
        },
        {
          "name": "presence-2",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 2, --color-identity-2: orange in hue"
        },
        {
          "name": "presence-3",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 3, --color-identity-3: amber in hue"
        },
        {
          "name": "presence-4",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 4, --color-identity-4: green in hue"
        },
        {
          "name": "presence-5",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 5, --color-identity-5: teal in hue"
        },
        {
          "name": "presence-6",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 6, --color-identity-6: blue in hue"
        },
        {
          "name": "presence-7",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 7, --color-identity-7: violet in hue"
        },
        {
          "name": "presence-8",
          "kind": "modifier",
          "of": [
            "presence",
            "presence-caret",
            "presence-selection",
            "presence-name"
          ],
          "exclusive": "identity",
          "description": "Identity 8, --color-identity-8: pink in hue"
        }
      ],
      "properties": [
        {
          "name": "--presence-color",
          "default": "var(--color-identity-1)",
          "description": "The person's color. A presence-1 to presence-8 modifier sets it to an identity; set it for a color of the product's own. Read by a presence, a presence-caret, a presence-selection and a presence-name"
        },
        {
          "name": "--presence-x",
          "default": "0px",
          "description": "Where the arrow's tip stands, from the left edge of the positioned element that holds it. The application sets it"
        },
        {
          "name": "--presence-y",
          "default": "0px",
          "description": "Where the arrow's tip stands, from the top edge of that element. The application sets it"
        },
        {
          "name": "--presence-arrow",
          "default": "1.25rem",
          "description": "The size of the arrow; the name stands beside its point"
        }
      ],
      "example": "<div class=\"presence presence-6\" style=\"--presence-x: 96px; --presence-y: 40px\" aria-hidden=\"true\">\n  <span class=\"presence-name\">Ada Lovelace</span>\n</div>\n<p>The release ships <span class=\"presence-selection presence-4\">on Thursday</span><span class=\"presence-caret presence-4\" aria-hidden=\"true\"><span class=\"presence-name\">Alan</span></span> after the docs build.</p>",
      "stylesheet": "components/presence.css",
      "tokens": [
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-line-on-color",
        "--color-identity-1",
        "--color-identity-2",
        "--color-identity-3",
        "--color-identity-4",
        "--color-identity-5",
        "--color-identity-6",
        "--color-identity-7",
        "--color-identity-8",
        "--color-identity-ink",
        "--radius-chip",
        "--radius-control",
        "--font-weight-control",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "flash",
      "title": "Flash",
      "tier": "component",
      "category": "Feedback",
      "description": "A ring that shows where a link has landed, then fades.",
      "use": "Anything a link can point at among many like it: a heading, a row, a comment, a card. When its id is the fragment of the address, a ring of ink stands around it for two seconds. It also keeps the element clear of a bar fixed at the top of the page: set --flash-offset to that bar's height.",
      "instead": [
        {
          "when": "Words are emphasized where they stand, for as long as they are there",
          "use": "mark"
        },
        {
          "when": "Something happened and the reader should be told",
          "use": "toast"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "flash",
          "kind": "root",
          "attributes": {
            "id": true
          },
          "description": "On an element with an id: when it becomes the target of the address a ring stands around it and fades away, following the element's own corner"
        }
      ],
      "states": [
        {
          "on": "flash",
          "name": "target",
          "mark": ":target",
          "description": "The element's id is the fragment of the address: the ring shows and fades. With reduced motion a hairline stays around it instead"
        }
      ],
      "properties": [
        {
          "name": "--flash-offset",
          "default": "5rem",
          "description": "How far below the top of the viewport the browser scrolls the element to"
        }
      ],
      "example": "<h2 class=\"flash\" id=\"pricing\">Pricing</h2>",
      "stylesheet": "components/flash.css",
      "tokens": [
        "--color-line-mark",
        "--color-text-strong",
        "--easing-glide"
      ],
      "mixins": []
    },
    {
      "name": "empty",
      "title": "Empty",
      "tier": "component",
      "category": "Feedback",
      "description": "What a view shows when it has nothing to show yet.",
      "use": "A list, a table or a panel with no items, or a search with no matches. It says what belongs here and offers the action that fills it. It has no surface of its own: put it in a card, a well or on the page.",
      "instead": [
        {
          "when": "The content exists and is still loading",
          "use": "skeleton"
        },
        {
          "when": "The view failed to load and the reader needs the reason",
          "use": "alert"
        }
      ],
      "composes": [
        "button",
        "icon",
        "icon-frame"
      ],
      "script": "none",
      "classes": [
        {
          "name": "empty",
          "kind": "root",
          "description": "The centered column"
        },
        {
          "name": "empty-media",
          "kind": "part",
          "of": "empty",
          "description": "Goes on an icon-frame at the top: names the kind of thing that is missing, with room under it"
        },
        {
          "name": "empty-title",
          "kind": "part",
          "of": "empty",
          "description": "The state in plain words, such as \"No deployments yet\""
        },
        {
          "name": "empty-description",
          "kind": "part",
          "of": "empty",
          "description": "How the view fills, in one or two sentences; it wraps at 24rem"
        },
        {
          "name": "empty-actions",
          "kind": "part",
          "of": "empty",
          "description": "A centered row of buttons"
        }
      ],
      "example": "<div class=\"empty\">\n  <span class=\"icon-frame empty-media\" aria-hidden=\"true\">\n    <svg class=\"icon\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.625 11L10.6242 2.4693A0.625 0.625 0 0 0 9.3818 2.4083L9.375 2.5L9.377 11.05A0.6255 0.6255 0 0 0 9.4989 11.3735Q9.7145 11.5422 10 11.5422Q10.2855 11.5422 10.5011 11.3735A0.625 0.625 0 0 0 10.625 11Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\"/><path d=\"M6.5 7.5L9.8586 10.8586A0.2 0.2 0 0 0 10.1414 10.8586L13.5 7.5\"/><path d=\"M3 13.5L3 15.75A1.25 1.25 0 0 0 4.25 17L15.75 17A1.25 1.25 0 0 0 17 15.75L17 13.5\"/></svg>\n  </span>\n  <h3 class=\"empty-title\">No deployments yet</h3>\n  <p class=\"empty-description\">Push to the main branch, or deploy from the dashboard, and the deployment appears here.</p>\n  <div class=\"empty-actions\">\n    <button type=\"button\" class=\"btn btn-sm btn-primary\">Deploy now</button>\n  </div>\n</div>",
      "stylesheet": "components/empty.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "accordion",
      "title": "Accordion",
      "tier": "component",
      "category": "Structure",
      "description": "Native details rows that open to their own height.",
      "use": "A list of headed rows that open in place: questions and answers, the stages of a build, sections of settings. Rows that share a name attribute keep one open at a time. It has no surface of its own: put it in a card or a sheet for a boxed list.",
      "instead": [
        {
          "when": "It is one long text that shows its first lines",
          "use": "expand"
        },
        {
          "when": "One panel is in view at a time and the others are a click away in a row of labels",
          "use": "tabs"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "Open or close the focused row, as the native summary does"
        }
      ],
      "platform": [
        {
          "feature": "::details-content with interpolate-size",
          "fallback": "The panel opens and closes at once"
        },
        {
          "feature": "The name attribute on details",
          "fallback": "Rows open and close independently"
        }
      ],
      "classes": [
        {
          "name": "accordion",
          "kind": "root",
          "description": "The list of rows"
        },
        {
          "name": "accordion-item",
          "kind": "part",
          "of": "accordion",
          "elements": [
            "details"
          ],
          "description": "A row, on a details element; a hairline parts it from the next"
        },
        {
          "name": "accordion-trigger",
          "kind": "part",
          "of": "accordion",
          "elements": [
            "summary"
          ],
          "description": "The row's title, on the summary, with a chevron at its end"
        },
        {
          "name": "accordion-chevron",
          "kind": "part",
          "of": "accordion",
          "description": "The chevron at the end of the trigger, an icon the row holds: centred on the first line of the title, it turns over while the row is open"
        },
        {
          "name": "accordion-content",
          "kind": "part",
          "of": "accordion",
          "description": "The panel: running text under the title"
        }
      ],
      "states": [
        {
          "on": "accordion-item",
          "name": "open",
          "mark": "open",
          "description": "The panel is at its full height and the chevron is turned over"
        }
      ],
      "example": "<div class=\"accordion\">\n  <details class=\"accordion-item\" name=\"faq\" open>\n    <summary class=\"accordion-trigger\">Does it need JavaScript?<svg class=\"icon accordion-chevron\" 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(90 8 8)\"/></svg></summary>\n    <div class=\"accordion-content\">No. Every component is a native element with one stylesheet; the browser keeps its behavior.</div>\n  </details>\n  <details class=\"accordion-item\" name=\"faq\">\n    <summary class=\"accordion-trigger\">Is dark mode a second stylesheet?<svg class=\"icon accordion-chevron\" 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(90 8 8)\"/></svg></summary>\n    <div class=\"accordion-content\">No. Every color token resolves with light-dark(), following the page's color scheme.</div>\n  </details>\n</div>",
      "stylesheet": "components/accordion.css",
      "tokens": [
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "expand",
      "title": "Expand",
      "tier": "component",
      "category": "Structure",
      "description": "A long text that shows its first lines and opens on request.",
      "use": "Prose that most readers skim: a description, a review, a changelog entry. Keep links and controls out of the part that is clipped while closed.",
      "instead": [
        {
          "when": "There are several rows, each closed to its heading",
          "use": "accordion"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "Open or close the text, as the native summary does"
        }
      ],
      "platform": [
        {
          "feature": "::details-content",
          "fallback": "The text is hidden while closed, as in any details, and the toggle still opens it"
        },
        {
          "feature": "interpolate-size",
          "fallback": "The preview opens to its full height at once"
        }
      ],
      "classes": [
        {
          "name": "expand",
          "kind": "root",
          "elements": [
            "details"
          ],
          "description": "The details element; while closed it shows a preview that fades out at its foot"
        },
        {
          "name": "expand-toggle",
          "kind": "part",
          "of": "expand",
          "elements": [
            "summary"
          ],
          "description": "The summary: first in the markup, drawn under the text, with a chevron that turns over"
        },
        {
          "name": "expand-chevron",
          "kind": "part",
          "of": "expand",
          "description": "The chevron the toggle holds after its words, an icon that turns over while the text is open"
        },
        {
          "name": "expand-more",
          "kind": "part",
          "of": "expand",
          "description": "The toggle's wording while closed"
        },
        {
          "name": "expand-less",
          "kind": "part",
          "of": "expand",
          "description": "The toggle's wording while open"
        }
      ],
      "states": [
        {
          "on": "expand",
          "name": "open",
          "mark": "open",
          "description": "The text is at its full height, the fade is gone and the toggle shows expand-less"
        }
      ],
      "properties": [
        {
          "name": "--expand-lines",
          "default": "4",
          "description": "The height of the preview, in lines of the text's own line height"
        }
      ],
      "example": "<details class=\"expand\">\n  <summary class=\"expand-toggle\"><span class=\"expand-more\">Show more</span><span class=\"expand-less\">Show less</span><svg class=\"icon expand-chevron\" 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(90 8 8)\"/></svg></summary>\n  <p>Moonstone is a feldspar with a soft glow that seems to move under its surface as the stone turns. The effect comes from light scattering between thin layers inside it. Cut as a smooth dome, it shows a band of light that glides across the top. Obsidian is its counterpart, a volcanic glass, dark and smooth, with edges that catch the light.</p>\n</details>",
      "stylesheet": "components/expand.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-muted",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "table",
      "title": "Table",
      "tier": "component",
      "category": "Data display",
      "description": "Rows of data on hairlines, with sortable headings and aligned figures.",
      "use": "Many things compared by the same properties, column by column. It has no surface of its own: put it in a sheet or a card, and in a scroll area when it can be wider than its column.",
      "instead": [
        {
          "when": "It describes one thing with many properties, so the headings would not repeat",
          "use": "data-list"
        },
        {
          "when": "Each row is a thing with media, a name and something at its end, and nothing is compared by column",
          "use": "list"
        }
      ],
      "script": "optional",
      "classes": [
        {
          "name": "table",
          "kind": "root",
          "description": "The table: a native table or a grid of roles"
        },
        {
          "name": "table-row",
          "kind": "part",
          "of": "table",
          "description": "A row"
        },
        {
          "name": "table-heading",
          "kind": "part",
          "of": "table",
          "description": "A column heading: a quiet caption on a firmer rule than the rows"
        },
        {
          "name": "table-cell",
          "kind": "part",
          "of": "table",
          "description": "A start-aligned data cell or row header. A native scope=row/rowgroup or role=rowheader uses the theme’s control weight instead of browser bold"
        },
        {
          "name": "table-sort",
          "kind": "part",
          "of": "table",
          "elements": [
            "button"
          ],
          "description": "A button inside a sortable heading that changes the order: the heading's words on a chip under the pointer, holding the chevron of a sorted column"
        },
        {
          "name": "table-title",
          "kind": "part",
          "of": "table",
          "elements": [
            "caption"
          ],
          "description": "The table's name, on a caption: a title at the start edge over the headings"
        },
        {
          "name": "table-primary",
          "kind": "modifier",
          "of": "table-cell",
          "description": "The identifying cell of a row, in strong ink"
        },
        {
          "name": "table-numeric",
          "kind": "modifier",
          "of": [
            "table-heading",
            "table-cell"
          ],
          "description": "Right-aligned tabular figures, on a heading or a cell"
        },
        {
          "name": "table-compact",
          "kind": "modifier",
          "of": "table",
          "description": "Denser rows, for long lists read by scanning"
        },
        {
          "name": "table-interactive",
          "kind": "modifier",
          "of": "table",
          "description": "Rows that hold cells answer the pointer and show a focus ring"
        },
        {
          "name": "table-sticky",
          "kind": "modifier",
          "of": "table",
          "description": "Headings stay in view while the rows scroll under them"
        }
      ],
      "states": [
        {
          "on": "table-heading",
          "name": "sorted ascending",
          "mark": "aria-sort=\"ascending\"",
          "description": "Strong ink and a chevron that points up; on a numeric column the chevron leads the label"
        },
        {
          "on": "table-heading",
          "name": "sorted descending",
          "mark": "aria-sort=\"descending\"",
          "description": "Strong ink and a chevron that points down; on a numeric column the chevron leads the label"
        },
        {
          "on": "table-row",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "The row rises as a raised sheet, apart from the chip tone of hover; say it with the row's checkbox as well"
        }
      ],
      "properties": [
        {
          "name": "--table-padding-x",
          "default": "1rem",
          "description": "Inline padding of headings and cells; .75rem in a compact table"
        },
        {
          "name": "--table-padding-y",
          "default": ".75rem",
          "description": "Block padding of cells; .4375rem in a compact table"
        }
      ],
      "example": "<table class=\"table\">\n  <thead>\n    <tr class=\"table-row\">\n      <th class=\"table-heading\" scope=\"col\">Project</th>\n      <th class=\"table-heading\" scope=\"col\">Region</th>\n      <th class=\"table-heading table-numeric\" scope=\"col\">Requests</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class=\"table-row\">\n      <th class=\"table-cell table-primary\" scope=\"row\">Atlas</th>\n      <td class=\"table-cell\">Tokyo</td>\n      <td class=\"table-cell table-numeric\">1,284,019</td>\n    </tr>\n    <tr class=\"table-row\">\n      <th class=\"table-cell table-primary\" scope=\"row\">Borealis</th>\n      <td class=\"table-cell\">Frankfurt</td>\n      <td class=\"table-cell table-numeric\">94,201</td>\n    </tr>\n  </tbody>\n</table>",
      "stylesheet": "components/table.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inset-hover",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-focus",
        "--shadow-raised",
        "--radius-chip",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "list",
      "title": "List",
      "tier": "component",
      "category": "Content",
      "description": "Rows of things with media, words and something at the end.",
      "use": "Members, files, integrations, notifications or settings: each row has something to recognize it by, a title with an optional second line, and a value, a status or a control at its end; a time or a status that needs a line of its own stands under the words as list-meta. It has no surface of its own: put it in a card or a sheet.",
      "instead": [
        {
          "when": "Rows are compared column by column",
          "use": "table"
        },
        {
          "when": "It states the facts about one thing as terms and values",
          "use": "data-list"
        },
        {
          "when": "It is a short list of destinations with icons and no second line",
          "use": "nav"
        },
        {
          "when": "The rows are options chosen with the keys",
          "use": "listbox"
        },
        {
          "when": "The items are sentences in running text",
          "use": "bullets"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "anchor-scope and anchor()",
          "fallback": "The hairline under a row spans the whole row instead of starting at the words"
        }
      ],
      "classes": [
        {
          "name": "list",
          "kind": "root",
          "description": "The list"
        },
        {
          "name": "list-row",
          "kind": "part",
          "of": "list",
          "description": "A row: a list item, or a link or a button when the whole row goes somewhere"
        },
        {
          "name": "list-media",
          "kind": "part",
          "of": "list",
          "description": "What the row is recognized by, at its start: an avatar, an icon or a thumbnail"
        },
        {
          "name": "list-body",
          "kind": "part",
          "of": "list",
          "description": "The words: a title and an optional description, and nothing else; a third line is list-meta"
        },
        {
          "name": "list-title",
          "kind": "part",
          "of": "list",
          "description": "The name of the row, on one line that ends in an ellipsis"
        },
        {
          "name": "list-description",
          "kind": "part",
          "of": "list",
          "description": "A quieter second line, on one line that ends in an ellipsis"
        },
        {
          "name": "list-meta",
          "kind": "part",
          "of": "list",
          "description": "A third line under the words, after list-body in the row: a time, a status, a count. The media and the end stay centered on the title and the description, not on the three lines"
        },
        {
          "name": "list-end",
          "kind": "part",
          "of": "list",
          "description": "A value, a status or a control at the end of the row"
        },
        {
          "name": "list-interactive",
          "kind": "modifier",
          "of": "list",
          "description": "Rows that open or select: each is a rounded target that answers the pointer and a press, at least 44px tall on a touch screen, and the hairlines are not drawn"
        }
      ],
      "states": [
        {
          "on": "list-row",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "In an interactive list, or aria-current=\"true\": the row rises as a small raised sheet in strong ink, apart from the chip tone of hover"
        },
        {
          "on": "list-row",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "In an interactive list: drawn the same as current"
        },
        {
          "on": "list-row",
          "name": "disabled",
          "mark": ":disabled",
          "description": "In an interactive list, or aria-disabled=\"true\" on a link: disabled ink and no answer to the pointer"
        }
      ],
      "properties": [
        {
          "name": "--list-padding-y",
          "default": ".75rem",
          "description": "Block padding of a row"
        },
        {
          "name": "--list-gap",
          "default": ".75rem",
          "description": "Space between media, words and end"
        },
        {
          "name": "--list-inset",
          "description": "In an interactive list, the room at each row's sides, .625rem when unset; it is read, not declared, so set on a container it reaches a heading over the list too, which then lines up with the rows' words"
        }
      ],
      "example": "<ul class=\"list\">\n  <li class=\"list-row\">\n    <div class=\"list-body\">\n      <p class=\"list-title\">Ada Lovelace</p>\n      <p class=\"list-description\">ada@example.com</p>\n    </div>\n    <span class=\"list-end\">Owner</span>\n  </li>\n  <li class=\"list-row\">\n    <div class=\"list-body\">\n      <p class=\"list-title\">Alan Turing</p>\n      <p class=\"list-description\">alan@example.com</p>\n    </div>\n    <span class=\"list-end\">Admin</span>\n  </li>\n</ul>",
      "stylesheet": "components/list.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--shadow-raised",
        "--radius-control",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "sortable",
      "title": "Sortable",
      "tier": "component",
      "category": "Structure",
      "description": "A list whose items are put in order by dragging a handle or with the keys.",
      "use": "An order the reader decides: priorities, a playlist, the steps of a workflow, the columns of a table. Put it on a list or a stack of cards; each item has a handle named with what it moves.",
      "instead": [
        {
          "when": "The order follows a column the reader picks",
          "use": "table"
        },
        {
          "when": "The items are only read in a fixed order",
          "use": "list"
        },
        {
          "when": "An item also moves between lists, such as the stages of a board",
          "use": "kanban"
        }
      ],
      "composes": [
        "list",
        "icon"
      ],
      "script": "required",
      "behavior": "sortable",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On a handle, pick the item up; again, drop it where it is"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Move the item that is picked up one place; ArrowLeft and ArrowRight in sortable-row, the other way around from right to left"
        },
        {
          "keys": "Home, End",
          "action": "Move the item that is picked up to the first or the last place"
        },
        {
          "keys": "Escape",
          "action": "Put the item back where it was picked up, or where a drag started"
        },
        {
          "keys": "Tab",
          "action": "Leave the handle, which drops the item"
        }
      ],
      "platform": [
        {
          "feature": "View transitions and view-transition-name: match-element",
          "fallback": "The carried item takes its new place at once; the others are already there"
        },
        {
          "feature": "Element.moveBefore()",
          "fallback": "The item is inserted again, and its handle is focused again"
        }
      ],
      "classes": [
        {
          "name": "sortable",
          "kind": "root",
          "description": "What holds the items: a list or a stack. While an item is carried the cursor is a closed hand"
        },
        {
          "name": "sortable-row",
          "kind": "modifier",
          "of": "sortable",
          "description": "The items run across: the offset and the room the items make are horizontal"
        },
        {
          "name": "sortable-item",
          "kind": "part",
          "of": "sortable",
          "description": "An item. It stands for its data-value, or its text. Carried, it lifts on a raised sheet a little past its edges and follows the pointer"
        },
        {
          "name": "sortable-item-back",
          "kind": "modifier",
          "of": "sortable-item",
          "description": "Set by the behavior during a drag on the items between the carried one's place and where it would land, when it is carried toward the end: each glides toward the start by --sortable-size"
        },
        {
          "name": "sortable-item-forward",
          "kind": "modifier",
          "of": "sortable-item",
          "description": "Set by the behavior during a drag when the carried item goes toward the start: each item it passes glides toward the end by --sortable-size"
        },
        {
          "name": "sortable-handle",
          "kind": "part",
          "of": "sortable",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "type": "button",
            "aria-pressed": [
              "true",
              "false"
            ]
          },
          "description": "The button that carries the item, holding a grip icon: name it with what it moves. A 24 by 28px target, 44px on touch screens"
        },
        {
          "name": "sortable-status",
          "kind": "part",
          "of": "sortable",
          "anywhere": true,
          "attributes": {
            "role": "status"
          },
          "description": "A region that says each pick, move and drop, inside the root or right after it. It takes no room"
        }
      ],
      "states": [
        {
          "on": "sortable-handle",
          "name": "carried",
          "mark": "aria-pressed=\"true\"",
          "description": "The item is picked up, by the pointer or the keys: the grip sits in a well and the item lifts"
        },
        {
          "on": "sortable-handle",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The item stays where it is"
        },
        {
          "on": "sortable",
          "name": "moving",
          "mark": "aria-busy=\"true\"",
          "description": "Set by the behavior while the items change places: nothing glides but the view transition"
        }
      ],
      "properties": [
        {
          "name": "--sortable-offset",
          "description": "How far the carried item is from its place along the list; the script writes it"
        },
        {
          "name": "--sortable-size",
          "description": "On the root during a drag: the carried item's size with the gap after it, the distance the others make room by; the script writes it"
        },
        {
          "name": "--sortable-radius",
          "default": "var(--radius-control)",
          "description": "The corner of the sheet a carried item lifts on"
        }
      ],
      "example": "<ol class=\"list sortable\" aria-label=\"Priorities\">\n  <li class=\"list-row sortable-item\" data-value=\"onboarding\">\n    <button type=\"button\" class=\"sortable-handle\" aria-pressed=\"false\" aria-label=\"Move Onboarding\"><svg class=\"icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"6\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg></button>\n    <span class=\"list-body\"><span class=\"list-title\">Onboarding</span></span>\n  </li>\n  <li class=\"list-row sortable-item\" data-value=\"billing\">\n    <button type=\"button\" class=\"sortable-handle\" aria-pressed=\"false\" aria-label=\"Move Billing\"><svg class=\"icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"6\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg></button>\n    <span class=\"list-body\"><span class=\"list-title\">Billing</span></span>\n  </li>\n</ol>\n<p class=\"sortable-status\" role=\"status\"></p>",
      "stylesheet": "components/sortable.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-pressed",
        "--shadow-lifted",
        "--radius-chip",
        "--radius-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "kanban",
      "title": "Kanban",
      "tier": "component",
      "category": "Structure",
      "description": "A board of columns whose items are moved within a column or into another, by dragging, with the keys or by choosing a place.",
      "use": "Work that passes through a few stages: tasks, candidates, orders, requests. Each column is a named section with a list; each item has a handle and a button that opens the mover, both named with what they move. What an item shows is a card, a badge or an avatar of the page's own.",
      "instead": [
        {
          "when": "One list is put in order and nothing changes column",
          "use": "sortable"
        },
        {
          "when": "The stages are only read, and nothing is moved",
          "use": "list"
        },
        {
          "when": "The work is laid out against time",
          "use": "gantt"
        }
      ],
      "composes": [
        "card",
        "popover",
        "select",
        "input",
        "button",
        "icon"
      ],
      "script": "required",
      "behavior": "kanban",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On a handle, pick the item up; again, drop it in the place chosen"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Choose the place before or after, in the column the item would land in"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Choose the column beside it, as it is seen: the other way around from right to left. The place stays, or is the column's last when it has fewer"
        },
        {
          "keys": "Home, End",
          "action": "Choose the first or the last place of that column"
        },
        {
          "keys": "Escape",
          "action": "Leave the item where it was and keep focus on its handle; during a drag, end the drag"
        },
        {
          "keys": "Tab",
          "action": "Drop the item in the place chosen, then leave the handle as Tab does"
        }
      ],
      "platform": [
        {
          "feature": "The popover API, for the carried item's name in the top layer",
          "fallback": "Nothing follows the pointer: the item fades in its place and the line marks where it would land"
        },
        {
          "feature": "Element.moveBefore()",
          "fallback": "The item is inserted again, and what had focus in it is focused again"
        },
        {
          "feature": "Element.startViewTransition() with view-transition-name: match-element, for the items' way to their new places",
          "fallback": "The items take their new places at once"
        },
        {
          "feature": ":has(), for the carried item and the empty column",
          "fallback": "The carried item does not fade and an empty column shows no well; the line still marks the place"
        }
      ],
      "classes": [
        {
          "name": "kanban",
          "kind": "root",
          "description": "The board: a row of columns that scrolls across. Give it a height and its columns stop there, each list scrolling by itself. While an item is carried the cursor is a closed hand"
        },
        {
          "name": "kanban-column",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "section"
          ],
          "label": true,
          "description": "A column, a tray named by its title. It stands for its data-value. With hidden it takes no item and is passed over"
        },
        {
          "name": "kanban-header",
          "kind": "part",
          "of": "kanban",
          "description": "The head of a column: its title and whatever stands beside it, such as a count. It stays while the list scrolls"
        },
        {
          "name": "kanban-title",
          "kind": "part",
          "of": "kanban",
          "description": "The column's name, on the line the items' words start on"
        },
        {
          "name": "kanban-items",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The list of a column, in the order of the document. It is the part that scrolls"
        },
        {
          "name": "kanban-items-target",
          "kind": "modifier",
          "of": "kanban-items",
          "description": "Set by the behavior on the list whose end is the place the carried item would land in: a line after its last item, or a ring around the well of an empty column"
        },
        {
          "name": "kanban-item",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "li"
          ],
          "description": "An item. It stands for its data-value, which no other item of the board has. Carried, it keeps its place and fades. A mouse carries it by any part that is not a link, a button or a field"
        },
        {
          "name": "kanban-item-target",
          "kind": "modifier",
          "of": "kanban-item",
          "description": "Set by the behavior on the item the carried one would land before: a line in the gap over it"
        },
        {
          "name": "kanban-handle",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "type": "button",
            "aria-pressed": [
              "true",
              "false"
            ]
          },
          "description": "The button that carries the item, holding a grip icon: name it with what it moves. A 24px target, 44px tall on touch screens, that stops halfway to the move button beside it"
        },
        {
          "name": "kanban-controls",
          "kind": "part",
          "of": "kanban",
          "description": "What holds an item's move button and its handle as a pair at the end of its first line: they stand close, hang into the item's padding so the grip's glyph meets the edge the words under it end on, and center on a line of --kanban-line"
        },
        {
          "name": "kanban-move",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "type": "button"
          },
          "description": "The button that opens the mover for its item, the grip's pair, holding an icon of two arrows that pass: a 24px target, 44px tall on touch screens, that stops halfway to the grip. Give it the popovertarget of the mover's popover and name it with what it moves. Where a pointer hovers it is drawn once the pointer or the keys are on its item"
        },
        {
          "name": "kanban-empty",
          "kind": "part",
          "of": "kanban",
          "description": "A few words in a shallow well, shown in place of the list while the column holds no item"
        },
        {
          "name": "kanban-preview",
          "kind": "part",
          "of": "kanban",
          "attributes": {
            "popover": "manual",
            "aria-hidden": "true"
          },
          "description": "An empty element the behavior shows in the top layer during a drag, with the carried item's name, at the pointer"
        },
        {
          "name": "kanban-preview-landing",
          "kind": "modifier",
          "of": "kanban-preview",
          "description": "Set by the behavior after the release, while the sheet glides to the place the item took"
        },
        {
          "name": "kanban-mover",
          "kind": "part",
          "of": "kanban",
          "elements": [
            "form"
          ],
          "description": "The form of a popover in the board, with a select named column and a select named position, which the behavior fills. A button in an item whose popovertarget is that popover, kanban-move or one of the page's own, opens it for the item; submitting it moves the item. The behavior gives the form that button's name as its aria-label, so it says which item it moves"
        },
        {
          "name": "kanban-mover-actions",
          "kind": "part",
          "of": "kanban",
          "description": "The mover's buttons, at its end: the one that closes it, then the one that moves"
        },
        {
          "name": "kanban-status",
          "kind": "part",
          "of": "kanban",
          "anywhere": true,
          "attributes": {
            "role": "status"
          },
          "description": "A region that says each pick, place, drop and cancel, inside the board or right after it. It takes no room"
        }
      ],
      "states": [
        {
          "on": "kanban-handle",
          "name": "carried",
          "mark": "aria-pressed=\"true\"",
          "description": "The item is picked up, by the pointer or the keys: the grip sits in a well and the item fades in its place"
        },
        {
          "on": "kanban-handle",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The item stays where it is: the pointer, the keys and the mover all leave it"
        },
        {
          "on": "kanban-column",
          "name": "hidden",
          "mark": "hidden",
          "description": "The column is not shown and takes no item"
        }
      ],
      "properties": [
        {
          "name": "--kanban-column-width",
          "default": "17.5rem",
          "description": "The width of a column, which is never wider than the board less 2rem"
        },
        {
          "name": "--kanban-gap",
          "default": ".75rem",
          "description": "The room between two columns"
        },
        {
          "name": "--kanban-inset",
          "default": ".375rem",
          "description": "The room between a column's edge and its items; the column's corner is the items' corner plus it"
        },
        {
          "name": "--kanban-item-gap",
          "default": ".375rem",
          "description": "The room between two items, where the line of a place stands"
        },
        {
          "name": "--kanban-padding",
          "default": ".75rem",
          "description": "The padding of a card the board holds; a column's title starts on the same line"
        },
        {
          "name": "--kanban-radius",
          "default": "var(--radius-control-lg)",
          "description": "The corner of a card the board holds, of an empty column's well and of the carried sheet"
        },
        {
          "name": "--kanban-marker",
          "default": "var(--color-focus)",
          "description": "The ink of the line, and of the ring around an empty column, that marks a place"
        },
        {
          "name": "--kanban-line",
          "on": "kanban-controls",
          "default": "calc(.9375rem * 1.4)",
          "description": "The height of the line the pair of controls centers on: a card title's by default"
        },
        {
          "name": "--kanban-x",
          "on": "kanban-preview",
          "description": "Where the carried sheet's start edge is, from the viewport's left; the script writes it"
        },
        {
          "name": "--kanban-y",
          "on": "kanban-preview",
          "description": "Where the carried sheet's top is, from the viewport's top; the script writes it"
        },
        {
          "name": "--kanban-width",
          "on": "kanban-preview",
          "description": "The width of the carried sheet, the carried item's own; the script writes it"
        }
      ],
      "example": "<div class=\"kanban\" role=\"group\" aria-label=\"Launch\">\n  <section class=\"kanban-column\" data-value=\"todo\" aria-labelledby=\"launch-todo\">\n    <header class=\"kanban-header\"><h3 class=\"kanban-title\" id=\"launch-todo\">To do</h3></header>\n    <ol class=\"kanban-items\">\n      <li class=\"kanban-item\" data-value=\"brief\">\n        <div class=\"card\">\n          <div class=\"card-header\">\n            <p class=\"card-title\">Write the brief</p>\n            <span class=\"card-action kanban-controls\">\n              <button type=\"button\" class=\"kanban-move\" popovertarget=\"launch-mover\" aria-label=\"Move Write the brief\"><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=\"M4.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\" transform=\"rotate(90 8 8)\"/><path d=\"M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5\" transform=\"rotate(90 8 8)\"/><path d=\"M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\" transform=\"rotate(90 8 8)\"/><path d=\"M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11\" transform=\"rotate(90 8 8)\"/></svg></button>\n              <button type=\"button\" class=\"kanban-handle\" aria-pressed=\"false\" aria-label=\"Drag Write the brief\"><svg class=\"icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"6\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"4\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"8\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"6\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg></button>\n            </span>\n          </div>\n        </div>\n      </li>\n    </ol>\n    <p class=\"kanban-empty\">Nothing to do</p>\n  </section>\n  <section class=\"kanban-column\" data-value=\"done\" aria-labelledby=\"launch-done\">\n    <header class=\"kanban-header\"><h3 class=\"kanban-title\" id=\"launch-done\">Done</h3></header>\n    <ol class=\"kanban-items\"></ol>\n    <p class=\"kanban-empty\">Nothing done yet</p>\n  </section>\n  <div class=\"popover popover-end\" popover id=\"launch-mover\">\n    <form class=\"kanban-mover\">\n      <label class=\"field\">Column<select class=\"select\" name=\"column\"></select></label>\n      <label class=\"field\">Position<select class=\"select\" name=\"position\"></select></label>\n      <button type=\"submit\" class=\"btn btn-primary\">Move</button>\n    </form>\n  </div>\n  <div class=\"kanban-preview\" popover=\"manual\" aria-hidden=\"true\"></div>\n  <p class=\"kanban-status\" role=\"status\"></p>\n</div>",
      "stylesheet": "components/kanban.css",
      "tokens": [
        "--color-surface-tray",
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-focus",
        "--color-shade-2",
        "--shadow-pressed",
        "--shadow-floating",
        "--radius-chip",
        "--radius-control-lg",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "swipe",
      "title": "Swipe",
      "tier": "component",
      "category": "Structure",
      "description": "A row that slides aside to show what can be done to it.",
      "use": "A row of a list on a touch screen that has one or two frequent actions: archive, delete, mark as read. The row is a scroller with two snap points, so a finger, a trackpad and the Tab key all reach the actions. Swiping is a shortcut and never the only way: offer the same actions in a menu or on the opened item.",
      "instead": [
        {
          "when": "The actions must be found with a mouse, or there are more than three",
          "use": "menu"
        },
        {
          "when": "The rows are slides to look at, not things to act on",
          "use": "carousel"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Moves to the first action; the browser scrolls the actions into view as it takes focus"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations (animation-timeline: scroll())",
          "fallback": "The actions do not fade in as they are uncovered: they are simply there behind the row"
        }
      ],
      "classes": [
        {
          "name": "swipe",
          "kind": "root",
          "description": "The row: a horizontal scroller with no scrollbar that rests on its content or on its actions"
        },
        {
          "name": "swipe-content",
          "kind": "part",
          "of": "swipe",
          "description": "What the row shows at rest, as wide as the row, on the color of the surface it lies on"
        },
        {
          "name": "swipe-actions",
          "kind": "part",
          "of": "swipe",
          "description": "The actions behind the end edge, in a well"
        },
        {
          "name": "swipe-action",
          "kind": "part",
          "of": "swipe",
          "elements": [
            "button",
            "a"
          ],
          "description": "One action, on a button or a link: a word, or an icon over a word, in a cell at least 72px wide and as tall as the row"
        },
        {
          "name": "swipe-action-danger",
          "kind": "modifier",
          "of": "swipe-action",
          "description": "The action that cannot be undone, in the danger ink on its own tint"
        }
      ],
      "states": [
        {
          "on": "swipe-action",
          "name": "disabled",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\" on a link: disabled ink on the bare well, answering neither pointer nor press"
        }
      ],
      "example": "<div class=\"swipe\">\n  <div class=\"swipe-content\">Notes on the engine</div>\n  <div class=\"swipe-actions\">\n    <button class=\"swipe-action\" type=\"button\">Archive</button>\n    <button class=\"swipe-action swipe-action-danger\" type=\"button\">Delete</button>\n  </div>\n</div>",
      "stylesheet": "components/swipe.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-line-hair",
        "--color-line-contour",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-disabled",
        "--color-focus",
        "--color-shade-1",
        "--color-shade-2",
        "--color-danger",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "data-list",
      "title": "Data list",
      "tier": "component",
      "category": "Data display",
      "description": "The facts about one thing, as terms and values.",
      "use": "One thing described by many properties: a deployment's region, commit and duration; an order's address and total. Write it as a dl with a div around each dt and dd.",
      "instead": [
        {
          "when": "Many things are compared by the same properties, so the terms would repeat for every row",
          "use": "table"
        },
        {
          "when": "Each row is a thing of its own, with media, a name and a control",
          "use": "list"
        },
        {
          "when": "It is one headline figure and how it moved",
          "use": "stat"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "data-list",
          "kind": "root",
          "description": "The list, on a dl: a two-column grid and a size container; under 20rem each term moves above its value"
        },
        {
          "name": "data-list-item",
          "kind": "part",
          "of": "data-list",
          "description": "A row, on a div around one term and its value; a hairline parts it from the next"
        },
        {
          "name": "data-list-term",
          "kind": "part",
          "of": "data-list",
          "description": "The term, on a dt, in muted ink"
        },
        {
          "name": "data-list-value",
          "kind": "part",
          "of": "data-list",
          "description": "The value, on a dd, in strong ink and tabular figures; long values wrap anywhere"
        }
      ],
      "example": "<dl class=\"data-list\">\n  <div class=\"data-list-item\">\n    <dt class=\"data-list-term\">Region</dt>\n    <dd class=\"data-list-value\">Tokyo (hnd1)</dd>\n  </div>\n  <div class=\"data-list-item\">\n    <dt class=\"data-list-term\">Framework preset</dt>\n    <dd class=\"data-list-value\">Astro</dd>\n  </div>\n  <div class=\"data-list-item\">\n    <dt class=\"data-list-term\">Duration</dt>\n    <dd class=\"data-list-value\">48 seconds</dd>\n  </div>\n</dl>",
      "stylesheet": "components/data-list.css",
      "tokens": [
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-muted"
      ],
      "mixins": []
    },
    {
      "name": "file",
      "title": "File",
      "tier": "component",
      "category": "Content",
      "description": "One file as a thing with a name: an attachment, an upload or a download.",
      "use": "A document shown as an object: a small page with its extension, the name over a line of facts, and one control at the end. Several files are a list with file on each item.",
      "instead": [
        {
          "when": "It is the place where files are chosen or dropped",
          "use": "dropzone"
        },
        {
          "when": "The rows are not files, or share one surface on hairlines",
          "use": "list"
        }
      ],
      "composes": [
        "button",
        "progress"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "corner-shape: bevel",
          "fallback": "The page keeps four round corners and has no folded flap"
        }
      ],
      "classes": [
        {
          "name": "file",
          "kind": "root",
          "description": "The flat sheet that holds the page, the words and the control"
        },
        {
          "name": "file-failed",
          "kind": "modifier",
          "of": "file",
          "exclusive": "state",
          "description": "An upload that failed: the contour and file-meta take the danger ink; say the reason in file-meta"
        },
        {
          "name": "file-sm",
          "kind": "modifier",
          "of": "file",
          "exclusive": "size",
          "description": "One line, 32px tall like a small button and as wide as its name; the page is too small to carry the extension and a button inside is 24px, 4px in"
        },
        {
          "name": "file-interactive",
          "kind": "modifier",
          "of": "file",
          "elements": [
            "a",
            "button"
          ],
          "exclusive": "state",
          "description": "The whole file is a link or a button: it stands raised, lifts under the pointer and sinks when pressed"
        },
        {
          "name": "file-page",
          "kind": "part",
          "of": "file",
          "description": "The small page, 28 by 36, with the extension written at its foot in capitals"
        },
        {
          "name": "file-thumb",
          "kind": "part",
          "of": "file",
          "description": "A picture in the page's place, when the file is one"
        },
        {
          "name": "file-body",
          "kind": "part",
          "of": "file",
          "description": "The name and the line of facts under it"
        },
        {
          "name": "file-name",
          "kind": "part",
          "of": "file",
          "description": "The file's name, on one line that ends in an ellipsis"
        },
        {
          "name": "file-meta",
          "kind": "part",
          "of": "file",
          "description": "Size, kind, how far the upload is, or why it failed"
        },
        {
          "name": "file-end",
          "kind": "part",
          "of": "file",
          "description": "The control at the end: remove, retry or download"
        },
        {
          "name": "file-progress",
          "kind": "part",
          "of": "file",
          "elements": [
            "progress"
          ],
          "description": "With progress on a progress element: the bar lies under the words and tints the sheet as far as the upload has come"
        }
      ],
      "states": [
        {
          "on": "file-interactive",
          "name": "disabled",
          "mark": ":disabled",
          "description": "A button that cannot open yet, such as a download still being prepared, or a link with aria-disabled=\"true\": it lies flat in a well, in disabled ink, and does not lift. Say why in file-meta"
        },
        {
          "on": "file-progress",
          "name": "indeterminate",
          "mark": ":indeterminate",
          "description": "A progress element without a value: a band of the tone lies across the sheet"
        }
      ],
      "properties": [
        {
          "name": "--file-padding",
          "default": ".625rem",
          "description": "Inset of the sheet; .25rem in a small file"
        },
        {
          "name": "--file-radius",
          "default": "var(--radius-control-lg)",
          "description": "Corner of the sheet; var(--radius-control-sm) in a small file"
        },
        {
          "name": "--file-page-width",
          "default": "1.75rem",
          "description": "Width of the page; 1rem in a small file"
        },
        {
          "name": "--file-page-height",
          "default": "2.25rem",
          "description": "Height of the page; 1.25rem in a small file"
        },
        {
          "name": "--file-fold",
          "default": ".5625rem",
          "description": "Size of the folded corner; .3125rem in a small file"
        }
      ],
      "example": "<div class=\"file\">\n  <span class=\"file-page\" aria-hidden=\"true\">pdf</span>\n  <div class=\"file-body\">\n    <p class=\"file-name\">Q3 infrastructure report.pdf</p>\n    <p class=\"file-meta\">2.4 MB · PDF document</p>\n  </div>\n  <div class=\"file-end\">\n    <button type=\"button\" class=\"btn btn-quiet btn-sm\" aria-label=\"Remove Q3 infrastructure report.pdf\">Remove</button>\n  </div>\n</div>",
      "stylesheet": "components/file.css",
      "tokens": [
        "--color-surface-tray",
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-line-contour",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-highlight",
        "--color-shade-1",
        "--color-shade-2",
        "--color-line-image",
        "--color-danger",
        "--shadow-pressed",
        "--shadow-flat",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--radius-control-sm",
        "--radius-control-lg",
        "--font-weight-control",
        "--lift",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "stat",
      "title": "Stat",
      "tier": "component",
      "category": "Data display",
      "description": "One figure, what it measures and how it moved.",
      "use": "A headline number on a dashboard or at the top of a page: a quiet label, the value in large tabular figures and an optional change beside it. It has no surface of its own: put it in a card, or set several in a row.",
      "instead": [
        {
          "when": "A few numbers on one scale are compared with each other",
          "use": "chart"
        },
        {
          "when": "The figure is a reading within a known range, such as a quota",
          "use": "meter"
        },
        {
          "when": "They are facts in words about one thing, not a figure to watch",
          "use": "data-list"
        },
        {
          "when": "The figure is a cost, with a currency and a period",
          "use": "price"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "classes": [
        {
          "name": "stat",
          "kind": "root",
          "description": "The group"
        },
        {
          "name": "stat-label",
          "kind": "part",
          "of": "stat",
          "description": "What is measured"
        },
        {
          "name": "stat-row",
          "kind": "part",
          "of": "stat",
          "description": "The value and its change, on one baseline"
        },
        {
          "name": "stat-value",
          "kind": "part",
          "of": "stat",
          "description": "The figure, in large tabular numerals"
        },
        {
          "name": "stat-delta",
          "kind": "part",
          "of": "stat",
          "description": "How the figure moved; a neutral note without a direction"
        },
        {
          "name": "stat-delta-up",
          "kind": "modifier",
          "of": "stat-delta",
          "exclusive": "direction",
          "description": "A rise: the success ink, with an icon of an arrow that points up before the figure"
        },
        {
          "name": "stat-delta-down",
          "kind": "modifier",
          "of": "stat-delta",
          "exclusive": "direction",
          "description": "A fall: the danger ink, with an icon of an arrow that points down before the figure"
        },
        {
          "name": "stat-description",
          "kind": "part",
          "of": "stat",
          "description": "A line under the figure: the period, the comparison or the target"
        }
      ],
      "example": "<div class=\"stat\">\n  <p class=\"stat-label\">Requests</p>\n  <div class=\"stat-row\">\n    <p class=\"stat-value\">1.28M</p>\n    <p class=\"stat-delta stat-delta-up\"><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=\"M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\" transform=\"rotate(-90 8 8)\"/><path d=\"M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5\" transform=\"rotate(-90 8 8)\"/></svg><span class=\"sr-only\">Up </span>12.4%</p>\n  </div>\n</div>",
      "stylesheet": "components/stat.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-muted",
        "--color-success",
        "--color-danger"
      ],
      "mixins": []
    },
    {
      "name": "odometer",
      "title": "Odometer",
      "tier": "component",
      "category": "Data display",
      "description": "A number whose digits roll to their new value.",
      "use": "A figure that changes while it is read, where seeing it move says something: a count going up, a total after a choice, a price as a plan changes, the seconds of a countdown. Write the number once as text in odometer-value, which assistive technology reads, and draw it in odometer-figures, aria-hidden, with one odometer-digit per digit and its numeral in --digit. It takes the type of the place it stands in, so it can be a stat's figure, a heading or a word in a sentence.",
      "instead": [
        {
          "when": "The figure is read once and does not change while the page is open",
          "use": "stat"
        },
        {
          "when": "It is the time left until something, in days, hours, minutes and seconds",
          "use": "countdown"
        },
        {
          "when": "It is a value the reader picks by turning a column",
          "use": "wheel"
        }
      ],
      "script": "optional",
      "platform": [
        {
          "feature": "A registered custom property (@property) that eases from one numeral to the next",
          "fallback": "The numeral changes in place, with no roll"
        },
        {
          "feature": "mod(), which shows a --digit past 9 or below 0 modulo ten",
          "fallback": "--digit is drawn as written: keep it between 0 and 9, and a change from 9 to 0 rolls back through the column"
        },
        {
          "feature": "sibling-index(), for a small delay from one digit to the next",
          "fallback": "The digits roll together"
        },
        {
          "feature": "Alternative text for generated content, content: '…' / ''",
          "fallback": "Nothing: the column is in odometer-figures, which is aria-hidden"
        }
      ],
      "classes": [
        {
          "name": "odometer",
          "kind": "root",
          "description": "The number, in the type of the place it stands in, with tabular figures. It has no surface and no size of its own"
        },
        {
          "name": "odometer-value",
          "kind": "part",
          "of": "odometer",
          "description": "The number as text, clipped out of sight: what assistive technology reads, find in page finds and a copy takes"
        },
        {
          "name": "odometer-figures",
          "kind": "part",
          "of": "odometer",
          "attributes": {
            "aria-hidden": "true"
          },
          "description": "The number as drawn, hidden from assistive technology: digits and, as plain text between them, the marks that stand still, such as a comma, a point, a currency or a unit"
        },
        {
          "name": "odometer-digit",
          "kind": "part",
          "of": "odometer",
          "description": "One digit: an empty element, a window one line tall onto a column of numerals that stands at --digit and rolls when it changes"
        }
      ],
      "properties": [
        {
          "name": "--digit",
          "on": "odometer-digit",
          "description": "The numeral, from 0 to 9. A value past 9 or below 0 is shown modulo ten, so counting on from 9 to 10 rolls one step to 0. The stylesheet reads 0 when it is not set"
        },
        {
          "name": "--odometer-duration",
          "default": "calc(var(--duration-base) * 2)",
          "description": "How long a digit takes to roll to its new numeral"
        },
        {
          "name": "--odometer-stagger",
          "default": "24ms",
          "description": "How much later each digit sets off than the one before it"
        }
      ],
      "example": "<span class=\"odometer\">\n  <span class=\"odometer-value\">1,284</span>\n  <span class=\"odometer-figures\" aria-hidden=\"true\">\n    <span class=\"odometer-digit\" style=\"--digit: 1\"></span>,\n    <span class=\"odometer-digit\" style=\"--digit: 2\"></span>\n    <span class=\"odometer-digit\" style=\"--digit: 8\"></span>\n    <span class=\"odometer-digit\" style=\"--digit: 4\"></span>\n  </span>\n</span>",
      "stylesheet": "components/odometer.css",
      "tokens": [
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "countdown",
      "title": "Countdown",
      "tier": "component",
      "category": "Data display",
      "description": "The time left until something, in days, hours, minutes and seconds.",
      "use": "A launch, the end of a sale, the start of an event or a reservation that expires: the time left, as figures over small labels. The root is a <time> whose datetime holds the same time left as a duration, such as P2DT14H5M9S. Without a script it is the time left when the page was made; a script may tick it, and a figure may be an odometer so its digits roll. It is never a live region: a screen reader reads it when the reader comes to it, not every second.",
      "instead": [
        {
          "when": "It is when things happened, in order, not the time left",
          "use": "timeline"
        },
        {
          "when": "It is one number that changes, not a time",
          "use": "odometer"
        },
        {
          "when": "It is a task that completes, with an amount done",
          "use": "progress"
        }
      ],
      "composes": [
        "odometer"
      ],
      "script": "optional",
      "platform": [
        {
          "feature": "Alternative text for generated content, so the colons between units are not read: content: ':' / ''",
          "fallback": "A screen reader may read the colons"
        }
      ],
      "classes": [
        {
          "name": "countdown",
          "kind": "root",
          "elements": [
            "time"
          ],
          "attributes": {
            "datetime": true
          },
          "description": "The units in equal columns, as wide as the widest, with a colon in the middle of each gap. On a <time> whose datetime is the time left as a duration"
        },
        {
          "name": "countdown-tiles",
          "kind": "modifier",
          "of": "countdown",
          "exclusive": "layout",
          "description": "Each figure in a small raised sheet, 2em square, with the label under it and no colons"
        },
        {
          "name": "countdown-inline",
          "kind": "modifier",
          "of": "countdown",
          "exclusive": "layout",
          "description": "The units on one baseline, each label after its figure, at the size of the sentence around it: the figures in strong ink, the labels quiet"
        },
        {
          "name": "countdown-unit",
          "kind": "part",
          "of": "countdown",
          "description": "One unit: its figure and its label"
        },
        {
          "name": "countdown-value",
          "kind": "part",
          "of": "countdown",
          "description": "The figure, in tabular numerals. It may hold an odometer"
        },
        {
          "name": "countdown-label",
          "kind": "part",
          "of": "countdown",
          "description": "What the unit counts, small and quiet: days, hours, minutes, seconds"
        }
      ],
      "states": [
        {
          "on": "countdown",
          "name": "ended",
          "mark": "datetime=\"PT0S\"",
          "description": "Time is up: the figures turn quiet and tiles sink to a flat well"
        }
      ],
      "properties": [
        {
          "name": "--countdown-size",
          "default": "1.75rem",
          "description": "Size of the figures; tiles are twice as tall. The inline countdown takes the size of its sentence instead"
        },
        {
          "name": "--countdown-gap",
          "default": "1.25rem",
          "description": "Space between units, where the colons stand"
        }
      ],
      "example": "<time class=\"countdown\" datetime=\"P2DT14H5M\">\n  <span class=\"countdown-unit\"><span class=\"countdown-value\">02</span> <span class=\"countdown-label\">days</span></span>\n  <span class=\"countdown-unit\"><span class=\"countdown-value\">14</span> <span class=\"countdown-label\">hours</span></span>\n  <span class=\"countdown-unit\"><span class=\"countdown-value\">05</span> <span class=\"countdown-label\">minutes</span></span>\n</time>",
      "stylesheet": "components/countdown.css",
      "tokens": [
        "--color-surface-inset",
        "--color-text-strong",
        "--color-text-muted",
        "--shadow-flat",
        "--shadow-raised",
        "--radius-control-lg",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "chart",
      "title": "Chart",
      "tier": "component",
      "category": "Data display",
      "description": "Numbers drawn in one SVG that fits any width, in more than twenty forms from a line to a sunburst.",
      "use": "Values a reader compares or follows: a trend over time, amounts side by side or stacked, the parts of a whole, a few goals, a profile on several measures, two measures against each other, how readings are spread, the stages of a flow. The plot is an SVG placed by percentages, so it fits any width and is written by a server, a framework component or the chart behavior from the same layout. Each point says its values in words, and a series is always named in the legend or on the plot. It is drawn for up to a few hundred marks; thousands of points, a zoom, a brush, a map, a network or a candlestick belong to a charting engine.",
      "instead": [
        {
          "when": "It is one figure and how it moved",
          "use": "stat"
        },
        {
          "when": "A trend stands in a sentence, a row or a stat, with no scale",
          "use": "sparkline"
        },
        {
          "when": "It is a single reading within a known range",
          "use": "meter"
        },
        {
          "when": "It is one reading and how near its limit it is",
          "use": "gauge"
        },
        {
          "when": "The parts of a total are read along one bar",
          "use": "breakdown"
        },
        {
          "when": "There are many small numbers and the pattern matters more than each value",
          "use": "heatmap"
        },
        {
          "when": "The exact numbers are read and compared in several columns",
          "use": "table"
        }
      ],
      "composes": [
        "category"
      ],
      "script": "optional",
      "behavior": "chart",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Enters the plot at the point last visited, or the first, and shows its readout; then moves to the legend's checkboxes"
        },
        {
          "keys": "ArrowRight, ArrowDown",
          "action": "Moves to the next point and shows its readout"
        },
        {
          "keys": "ArrowLeft, ArrowUp",
          "action": "Moves to the point before"
        },
        {
          "keys": "Home, End",
          "action": "Moves to the first or the last point"
        },
        {
          "keys": "Escape",
          "action": "Hides the readout and keeps the focus on the point"
        },
        {
          "keys": "Space",
          "action": "On a legend's checkbox, shows or hides its series"
        }
      ],
      "platform": [
        {
          "feature": "clip-path on an SVG shape",
          "fallback": "Bars have square ends and appear at their full length"
        },
        {
          "feature": "mask-image on an SVG shape",
          "fallback": "The area under a line is an even tint instead of fading out"
        },
        {
          "feature": "SVG geometry properties in CSS (r, rx)",
          "fallback": "A dot keeps the radius written in its markup, and the band a focused point outlines has square corners"
        },
        {
          "feature": "Container queries",
          "fallback": "Every label stays at any width, and a radar keeps its height in a narrow room"
        },
        {
          "feature": "@starting-style",
          "fallback": "Marks appear drawn instead of drawing themselves in"
        }
      ],
      "classes": [
        {
          "name": "chart",
          "kind": "root",
          "description": "The chart: the plot's body, then the legend under it"
        },
        {
          "name": "chart-quiet",
          "kind": "modifier",
          "of": "chart",
          "description": "Bars are a tint, and the point marked aria-current is ink"
        },
        {
          "name": "chart-split",
          "kind": "modifier",
          "of": "chart",
          "description": "The legend stands beside the plot as a column of names and figures, and goes under it when there is no room"
        },
        {
          "name": "chart-body",
          "kind": "part",
          "of": "chart",
          "description": "The plot's place: the readout is placed against it, and --chart-gutter keeps room beside it for the scale's figures"
        },
        {
          "name": "chart-plot",
          "kind": "part",
          "of": "chart",
          "label": true,
          "description": "The SVG, as wide as its room and --chart-height tall. Give it role=\"list\" and a name that says what is shown and in what unit"
        },
        {
          "name": "chart-plot-radial",
          "kind": "modifier",
          "of": "chart-plot",
          "exclusive": "shape",
          "description": "A pie, a donut, rings, a sunburst or a waffle: a square --chart-size wide"
        },
        {
          "name": "chart-plot-radar",
          "kind": "modifier",
          "of": "chart-plot",
          "exclusive": "shape",
          "description": "A radar: a square in the middle of the plot, with room beside it for the names around it"
        },
        {
          "name": "chart-canvas",
          "kind": "part",
          "of": "chart",
          "description": "The nested SVG paths are written in: a 100 by 100 box stretched to the plot with preserveAspectRatio=\"none\", or a box centered on 0 that keeps its shape in a radial chart. Where a form's points are paths, they stand in it"
        },
        {
          "name": "chart-grid",
          "kind": "part",
          "of": "chart",
          "description": "A hairline of the scale, placed by percentages"
        },
        {
          "name": "chart-grid-base",
          "kind": "modifier",
          "of": "chart-grid",
          "description": "The baseline: one step firmer"
        },
        {
          "name": "chart-tick",
          "kind": "part",
          "of": "chart",
          "description": "A figure of the scale or a name along it"
        },
        {
          "name": "chart-tick-y",
          "kind": "modifier",
          "of": "chart-tick",
          "exclusive": "axis",
          "description": "Beside the plot, on its hairline"
        },
        {
          "name": "chart-tick-x",
          "kind": "modifier",
          "of": "chart-tick",
          "exclusive": "axis",
          "description": "Under the plot, centered on its place"
        },
        {
          "name": "chart-tick-around",
          "kind": "modifier",
          "of": "chart-tick",
          "exclusive": "axis",
          "description": "Around a radar: moved from the middle of the plot to --chart-x and --chart-y of its square"
        },
        {
          "name": "chart-tick-start",
          "kind": "modifier",
          "of": "chart-tick",
          "exclusive": "anchor",
          "description": "Begins at its place instead of being centered on it: the first name of a line that runs from edge to edge"
        },
        {
          "name": "chart-tick-end",
          "kind": "modifier",
          "of": "chart-tick",
          "exclusive": "anchor",
          "description": "Ends at its place"
        },
        {
          "name": "chart-tick-scale",
          "kind": "modifier",
          "of": "chart-tick",
          "description": "A figure of a radar's scale: small, beside the first spoke"
        },
        {
          "name": "chart-tick-minor",
          "kind": "modifier",
          "of": "chart-tick",
          "description": "A name that gives way when the plot is narrower than 24rem"
        },
        {
          "name": "chart-line",
          "kind": "part",
          "of": "chart",
          "description": "A series as a line, --chart-stroke wide however far the canvas stretches"
        },
        {
          "name": "chart-area",
          "kind": "part",
          "of": "chart",
          "description": "The area under a line: a wash of its color that fades out downward"
        },
        {
          "name": "chart-area-stacked",
          "kind": "modifier",
          "of": "chart-area",
          "description": "A layer of stacked areas: a tint that hides the layer under it"
        },
        {
          "name": "chart-point",
          "kind": "part",
          "of": "chart",
          "label": true,
          "description": "One step of the scale, one slice, one ring, one tile, one series of a slope or one dot, with its marks. Give it role=\"listitem\" and a name that says its values; it carries --chart-x, --chart-y and --chart-reach for the readout"
        },
        {
          "name": "chart-hit",
          "kind": "part",
          "of": "chart",
          "description": "What the pointer lands on when it is more than the marks: the band of a step, the room around a dot, a radar's wedge. The focus ring is drawn on it"
        },
        {
          "name": "chart-hit-line",
          "kind": "modifier",
          "of": "chart-hit",
          "description": "Along a line: a wide stroke nobody sees, which the pointer lands on"
        },
        {
          "name": "chart-cursor",
          "kind": "part",
          "of": "chart",
          "description": "The hairline through the point, shown while the point is under the pointer or has the focus"
        },
        {
          "name": "chart-bar",
          "kind": "part",
          "of": "chart",
          "description": "A bar, placed by percentages, with its corners turned at the end away from the baseline"
        },
        {
          "name": "chart-bar-inner",
          "kind": "modifier",
          "of": "chart-bar",
          "description": "Under another bar of its stack: square, with a gap of --chart-gap before the next"
        },
        {
          "name": "chart-bar-down",
          "kind": "modifier",
          "of": "chart-bar",
          "description": "A value under zero: turned at its lower end, or at its start in a bar that runs across"
        },
        {
          "name": "chart-bar-across",
          "kind": "modifier",
          "of": "chart-bar",
          "description": "A bar that runs across, turned at its far end"
        },
        {
          "name": "chart-bar-floating",
          "kind": "modifier",
          "of": "chart-bar",
          "description": "Between two values, with no end on the baseline: both ends turned"
        },
        {
          "name": "chart-bar-bin",
          "kind": "modifier",
          "of": "chart-bar",
          "description": "A histogram's bin: it meets the bins beside it, parted by a hairline of the surface"
        },
        {
          "name": "chart-bar-rise",
          "kind": "modifier",
          "of": "chart-bar",
          "exclusive": "step",
          "description": "A waterfall's step up, in the success ink"
        },
        {
          "name": "chart-bar-fall",
          "kind": "modifier",
          "of": "chart-bar",
          "exclusive": "step",
          "description": "A waterfall's step down, in the danger ink"
        },
        {
          "name": "chart-dot",
          "kind": "part",
          "of": "chart",
          "description": "A point of a line, a radar or a scatter: a dot of its color with a ring of the surface"
        },
        {
          "name": "chart-dot-quiet",
          "kind": "modifier",
          "of": "chart-dot",
          "description": "Shown only while its point is under the pointer or has the focus"
        },
        {
          "name": "chart-dot-bubble",
          "kind": "modifier",
          "of": "chart-dot",
          "description": "A bubble: a wash of its color inside an edge of it, as large as --chart-dot on it"
        },
        {
          "name": "chart-dot-outlier",
          "kind": "modifier",
          "of": "chart-dot",
          "description": "A reading far from the others in a box plot: small and hollow"
        },
        {
          "name": "chart-value",
          "kind": "part",
          "of": "chart",
          "description": "Words written on the plot: a bar's value at its end, a line's name at its last point, a tile's name"
        },
        {
          "name": "chart-value-across",
          "kind": "modifier",
          "of": "chart-value",
          "description": "After the end of a bar that runs across",
          "exclusive": "place"
        },
        {
          "name": "chart-value-before",
          "kind": "modifier",
          "of": "chart-value",
          "exclusive": "place",
          "description": "Before the plot, ending at its edge"
        },
        {
          "name": "chart-value-tile",
          "kind": "modifier",
          "of": "chart-value",
          "exclusive": "place",
          "description": "On a tile, from its first corner: its name"
        },
        {
          "name": "chart-value-quiet",
          "kind": "modifier",
          "of": "chart-value",
          "description": "Under a tile's name: its value, quieter"
        },
        {
          "name": "chart-slice",
          "kind": "part",
          "of": "chart",
          "description": "A slice of a pie or a donut"
        },
        {
          "name": "chart-track",
          "kind": "part",
          "of": "chart",
          "description": "A ring's track: the whole its value is read against, in a tint of its color"
        },
        {
          "name": "chart-arc",
          "kind": "part",
          "of": "chart",
          "description": "A ring's value, from the top, with round ends. Give it pathLength=\"1\" so it fills when it first appears"
        },
        {
          "name": "chart-web",
          "kind": "part",
          "of": "chart",
          "description": "A radar's web: a ring at each tick and a spoke to each name"
        },
        {
          "name": "chart-shape",
          "kind": "part",
          "of": "chart",
          "description": "A radar's series: its outline with a wash of the same color"
        },
        {
          "name": "chart-band",
          "kind": "part",
          "of": "chart",
          "description": "What a line's values may be: a band between their lower and upper ends"
        },
        {
          "name": "chart-stem",
          "kind": "part",
          "of": "chart",
          "description": "A lollipop's line from the baseline to its dot, and the line between a dumbbell's ends"
        },
        {
          "name": "chart-whisker",
          "kind": "part",
          "of": "chart",
          "description": "From the lowest to the highest a value may be, through a bar's end or a box"
        },
        {
          "name": "chart-box",
          "kind": "part",
          "of": "chart",
          "description": "A box plot's box, from the first quartile to the third"
        },
        {
          "name": "chart-median",
          "kind": "part",
          "of": "chart",
          "description": "The median: a line of the surface cut through the box"
        },
        {
          "name": "chart-link",
          "kind": "part",
          "of": "chart",
          "description": "A waterfall's hairline from one bar's end to the next bar"
        },
        {
          "name": "chart-knot",
          "kind": "part",
          "of": "chart",
          "description": "A point of a slope or a bump: a path of no length with a round end, which stays a circle in a canvas that stretches"
        },
        {
          "name": "chart-cell",
          "kind": "part",
          "of": "chart",
          "description": "A heatmap's cell, as much of its color as --chart-tone says"
        },
        {
          "name": "chart-unit",
          "kind": "part",
          "of": "chart",
          "description": "A waffle's unit: one percent of the whole"
        },
        {
          "name": "chart-stage",
          "kind": "part",
          "of": "chart",
          "description": "A funnel's stage, a step lighter than the one before it"
        },
        {
          "name": "chart-tile",
          "kind": "part",
          "of": "chart",
          "description": "A treemap's tile: a tint that holds its name"
        },
        {
          "name": "chart-center",
          "kind": "part",
          "of": "chart",
          "description": "What stands in a donut's hole or within rings"
        },
        {
          "name": "chart-center-value",
          "kind": "part",
          "of": "chart",
          "description": "The figure in the middle"
        },
        {
          "name": "chart-center-label",
          "kind": "part",
          "of": "chart",
          "description": "What the figure counts"
        },
        {
          "name": "chart-tip",
          "kind": "part",
          "of": "chart",
          "description": "The readout beside the point under the pointer, hidden until the behavior fills it"
        },
        {
          "name": "chart-tip-title",
          "kind": "part",
          "of": "chart",
          "description": "The point's name"
        },
        {
          "name": "chart-tip-row",
          "kind": "part",
          "of": "chart",
          "description": "One series of the readout; it takes the series' category class"
        },
        {
          "name": "chart-tip-key",
          "kind": "part",
          "of": "chart",
          "description": "A short stroke of the series' color"
        },
        {
          "name": "chart-tip-name",
          "kind": "part",
          "of": "chart",
          "description": "The series' name"
        },
        {
          "name": "chart-tip-value",
          "kind": "part",
          "of": "chart",
          "description": "The series' value at the point"
        },
        {
          "name": "chart-legend",
          "kind": "part",
          "of": "chart",
          "description": "The names of the series, each beside a mark of its color"
        },
        {
          "name": "chart-key",
          "kind": "part",
          "of": "chart",
          "description": "One entry of the legend; it takes the series' category class. A label around a checkbox shows and hides the series"
        },
        {
          "name": "chart-key-input",
          "kind": "part",
          "of": "chart",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "checkbox"
          },
          "description": "The entry's checkbox: unseen, in the tab order, checked while the series is shown"
        },
        {
          "name": "chart-key-mark",
          "kind": "part",
          "of": "chart",
          "description": "The entry's mark: a small block, as a bar, an area or a slice is"
        },
        {
          "name": "chart-key-line",
          "kind": "modifier",
          "of": "chart-key-mark",
          "exclusive": "mark",
          "description": "A short stroke, as a line is"
        },
        {
          "name": "chart-key-dot",
          "kind": "modifier",
          "of": "chart-key-mark",
          "exclusive": "mark",
          "description": "A dot, as a scatter's point is"
        },
        {
          "name": "chart-key-value",
          "kind": "part",
          "of": "chart",
          "description": "A figure after the name: a slice's share, a ring's value"
        }
      ],
      "states": [
        {
          "on": "chart-point",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The point that is the point of the chart: in a quiet chart its bars alone are ink"
        },
        {
          "on": "chart-key-input",
          "name": "shown",
          "mark": ":checked",
          "description": "The series is shown. Unchecked, its name steps back and its mark is an outline"
        },
        {
          "on": "chart-tip",
          "name": "hidden",
          "mark": "hidden",
          "description": "No point is under the pointer or has the focus"
        }
      ],
      "properties": [
        {
          "name": "--chart-height",
          "default": "14rem",
          "description": "Height of the plot; a radar's square is no taller"
        },
        {
          "name": "--chart-size",
          "default": "12rem",
          "description": "Width of a pie, a donut, rings, a sunburst or a waffle"
        },
        {
          "name": "--chart-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink of a mark with no category"
        },
        {
          "name": "--chart-stroke",
          "default": "2px",
          "description": "Width of a line and of a radar's outline"
        },
        {
          "name": "--chart-dot",
          "default": "4px",
          "description": "Radius of a dot; on a bubble, its own radius"
        },
        {
          "name": "--chart-bar-radius",
          "default": ".25rem",
          "description": "Radius of a bar's turned corners"
        },
        {
          "name": "--chart-gap",
          "default": "2px",
          "description": "The gap between the bars of a stack"
        },
        {
          "name": "--chart-surface",
          "default": "var(--surface-color, var(--color-surface-base))",
          "description": "The surface the chart stands on, which the ring around a dot and a tint are mixed from"
        },
        {
          "name": "--chart-gutter",
          "on": "chart-body",
          "description": "How many digits wide the figures beside the plot are; 0 leaves no room"
        },
        {
          "name": "--chart-tail",
          "on": "chart-body",
          "description": "How many digits wide what is written after the plot is: values after bars that run across, names at the ends of a slope's lines"
        },
        {
          "name": "--chart-x",
          "on": "chart-tip",
          "description": "Where the readout stands across the plot, from 0 to 1; a point carries its own for the behavior to pass on, and a name around a radar its place in the square"
        },
        {
          "name": "--chart-y",
          "on": "chart-tip",
          "description": "Where the readout stands down the plot, from 0 at the top to 1"
        },
        {
          "name": "--chart-reach",
          "on": "chart-tip",
          "description": "How far the point's marks stand from the readout's place, as a share of the plot, so the readout clears them: to either side, or above and below for bars that run across"
        },
        {
          "name": "--chart-tone",
          "on": "chart-cell",
          "description": "How much of its color a cell, a funnel's stage or a slice of an outer ring takes, as a percentage; all of it by default"
        },
        {
          "name": "--chart-index",
          "on": "chart-point",
          "description": "The point's place in order, which staggers the marks as they draw themselves in"
        }
      ],
      "example": "<figure class=\"chart\">\n  <div class=\"chart-body\" style=\"--chart-gutter: 2\">\n    <svg class=\"chart-plot\" role=\"list\" aria-label=\"Deployments per day\">\n      <g aria-hidden=\"true\">\n        <line class=\"chart-grid chart-grid-base\" x1=\"0\" y1=\"100%\" x2=\"100%\" y2=\"100%\"/>\n        <line class=\"chart-grid\" x1=\"0\" y1=\"50%\" x2=\"100%\" y2=\"50%\"/>\n        <line class=\"chart-grid\" x1=\"0\" y1=\"0%\" x2=\"100%\" y2=\"0%\"/>\n        <text class=\"chart-tick chart-tick-y\" x=\"0\" y=\"100%\">0</text>\n        <text class=\"chart-tick chart-tick-y\" x=\"0\" y=\"50%\">40</text>\n        <text class=\"chart-tick chart-tick-y\" x=\"0\" y=\"0%\">80</text>\n        <text class=\"chart-tick chart-tick-x\" x=\"16.667%\" y=\"100%\">Mon</text>\n        <text class=\"chart-tick chart-tick-x\" x=\"50%\" y=\"100%\">Tue</text>\n        <text class=\"chart-tick chart-tick-x\" x=\"83.333%\" y=\"100%\">Wed</text>\n      </g>\n      <g class=\"chart-point\" role=\"listitem\" aria-label=\"Mon: 42\" data-label=\"Mon\" style=\"--chart-x: .1667; --chart-y: .475; --chart-reach: .08\">\n        <rect class=\"chart-hit\" x=\"0%\" y=\"0\" width=\"33.333%\" height=\"100%\"/>\n        <rect class=\"chart-bar\" x=\"8.667%\" y=\"47.5%\" width=\"16%\" height=\"52.5%\" data-name=\"Deployments\" data-value=\"42\"/>\n      </g>\n      <g class=\"chart-point\" role=\"listitem\" aria-label=\"Tue: 58\" data-label=\"Tue\" style=\"--chart-x: .5; --chart-y: .275; --chart-reach: .08\">\n        <rect class=\"chart-hit\" x=\"33.333%\" y=\"0\" width=\"33.333%\" height=\"100%\"/>\n        <rect class=\"chart-bar\" x=\"42%\" y=\"27.5%\" width=\"16%\" height=\"72.5%\" data-name=\"Deployments\" data-value=\"58\"/>\n      </g>\n      <g class=\"chart-point\" role=\"listitem\" aria-label=\"Wed: 36\" data-label=\"Wed\" style=\"--chart-x: .8333; --chart-y: .55; --chart-reach: .08\">\n        <rect class=\"chart-hit\" x=\"66.667%\" y=\"0\" width=\"33.333%\" height=\"100%\"/>\n        <rect class=\"chart-bar\" x=\"75.333%\" y=\"55%\" width=\"16%\" height=\"45%\" data-name=\"Deployments\" data-value=\"36\"/>\n      </g>\n    </svg>\n    <div class=\"chart-tip\" aria-hidden=\"true\" hidden></div>\n  </div>\n</figure>",
      "stylesheet": "components/chart.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inverse",
        "--color-line-hair",
        "--color-line-contour",
        "--color-line-divider",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--color-focus",
        "--color-surface-tip",
        "--color-success",
        "--color-danger",
        "--shadow-tip",
        "--radius-chip",
        "--radius-control-sm",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "sparkline",
      "title": "Sparkline",
      "tier": "component",
      "category": "Data display",
      "description": "A trend as one fine line, small enough for a sentence, a row or a stat.",
      "use": "The shape of a series where its words already stand: beside a figure in a stat, in a column of a table, inside a sentence. It shows which way something went and how steadily, not the values: write the values beside it, or name the trend in its aria-label.",
      "instead": [
        {
          "when": "The values themselves are read and compared, with their names",
          "use": "chart"
        },
        {
          "when": "Each step is a state, such as up or down, not an amount",
          "use": "uptime"
        },
        {
          "when": "It is one figure and how it moved, with no history to draw",
          "use": "stat"
        },
        {
          "when": "There are many small numbers and the pattern of the whole field matters",
          "use": "heatmap"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "CSS mask-image on an SVG shape, which fades the area out toward its foot",
          "fallback": "The area under the line is an even tint"
        }
      ],
      "classes": [
        {
          "name": "sparkline",
          "kind": "root",
          "description": "The box the drawing stretches to: 4em wide and .75em tall, standing on the middle of a capital. Give it role=\"img\" and an aria-label that names the trend, or aria-hidden=\"true\" when the numbers stand beside it"
        },
        {
          "name": "sparkline-success",
          "kind": "modifier",
          "of": "sparkline",
          "exclusive": "tone",
          "description": "The success ink, for a trend that went well; the words beside it say so too"
        },
        {
          "name": "sparkline-warning",
          "kind": "modifier",
          "of": "sparkline",
          "exclusive": "tone",
          "description": "The warning ink, for a trend to watch; the words beside it say so too"
        },
        {
          "name": "sparkline-danger",
          "kind": "modifier",
          "of": "sparkline",
          "exclusive": "tone",
          "description": "The danger ink, for a trend that went badly; the words beside it say so too"
        },
        {
          "name": "sparkline-plot",
          "kind": "part",
          "of": "sparkline",
          "elements": [
            "svg"
          ],
          "description": "The drawing: an SVG with viewBox=\"0 0 100 100\" and preserveAspectRatio=\"none\", stretched to the sparkline's box. Strokes may stand past its edge"
        },
        {
          "name": "sparkline-line",
          "kind": "part",
          "of": "sparkline",
          "elements": [
            "path",
            "polyline"
          ],
          "description": "The trend: a 1.5px line in the ink of the text around it, with round joins and ends, that keeps its width however the drawing stretches"
        },
        {
          "name": "sparkline-area",
          "kind": "part",
          "of": "sparkline",
          "elements": [
            "path",
            "polygon"
          ],
          "description": "The area under the line: the same points closed along the foot, as a tint of the ink that fades out downward. Put it before the line"
        },
        {
          "name": "sparkline-baseline",
          "kind": "part",
          "of": "sparkline",
          "elements": [
            "line",
            "path"
          ],
          "description": "A dotted hairline for a baseline, an average or a target, quieter than the line"
        },
        {
          "name": "sparkline-dot",
          "kind": "part",
          "of": "sparkline",
          "description": "The latest value: a 5px dot placed by --x and --y, a perfect circle however the drawing stretches, cut out of the line by a ring of the surface behind it"
        }
      ],
      "properties": [
        {
          "name": "--sparkline-width",
          "description": "Width of the sparkline; 4em unless set. It may be set on a container, such as a table, to size every sparkline in it"
        },
        {
          "name": "--sparkline-height",
          "description": "Height of the sparkline; .75em unless set, about the height of a capital. It may be set on a container too"
        },
        {
          "name": "--sparkline-stroke",
          "default": "1.5px",
          "description": "Width of the line"
        },
        {
          "name": "--sparkline-dot",
          "default": "5px",
          "description": "Size of the dot at the latest value"
        },
        {
          "name": "--x",
          "on": "sparkline-dot",
          "description": "Where the dot stands across, from 0 to 100: the x of the last point in the drawing"
        },
        {
          "name": "--y",
          "on": "sparkline-dot",
          "description": "Where the dot stands down, from 0 at the top to 100 at the foot: the y of the last point in the drawing"
        }
      ],
      "example": "<span class=\"sparkline\" role=\"img\" aria-label=\"Requests rose from 31,000 to 61,000 a day\">\n  <svg class=\"sparkline-plot\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n    <path class=\"sparkline-line\" d=\"M0 100 L25 76 L50 60 L75 38 L100 0\" />\n  </svg>\n  <span class=\"sparkline-dot\" style=\"--x: 100; --y: 0\"></span>\n</span>",
      "stylesheet": "components/sparkline.css",
      "tokens": [
        "--color-surface-base",
        "--color-success",
        "--color-warning",
        "--color-danger"
      ],
      "mixins": []
    },
    {
      "name": "breakdown",
      "title": "Breakdown",
      "tier": "component",
      "category": "Data display",
      "description": "A whole as its parts along one bar, each as wide as its share.",
      "use": "What a total is made of: storage by kind, a bill by service, a budget and what is left of it. The stylesheet draws the bar and its legend from one list, so the list is still the data. Keep it to five parts or so, largest first; the parts need not add up to anything, each takes its share of their sum.",
      "instead": [
        {
          "when": "The amounts are compared with each other, not with their sum",
          "use": "chart"
        },
        {
          "when": "There is one amount within a range",
          "use": "meter"
        },
        {
          "when": "It is a task that completes",
          "use": "progress"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "breakdown",
          "kind": "root",
          "elements": [
            "ul",
            "ol"
          ],
          "description": "The list: an 8px bar of segments 2px apart, and a legend that wraps under it"
        },
        {
          "name": "breakdown-rows",
          "kind": "modifier",
          "of": "breakdown",
          "description": "The legend as rows on hairlines, one to a part, with each figure at the end"
        },
        {
          "name": "breakdown-item",
          "kind": "part",
          "of": "breakdown",
          "elements": [
            "li"
          ],
          "description": "One part; set --value in its style. It has no box of its own: its segment joins the bar and its label joins the legend. Segments are steps of one ink, darkest first"
        },
        {
          "name": "breakdown-rest",
          "kind": "modifier",
          "of": "breakdown-item",
          "description": "The part that is not used, such as free space: a well instead of ink, and a ring instead of a dot in the legend"
        },
        {
          "name": "breakdown-label",
          "kind": "part",
          "of": "breakdown",
          "description": "The part's name in the legend, after a dot of its segment's color"
        },
        {
          "name": "breakdown-value",
          "kind": "part",
          "of": "breakdown",
          "description": "The part's figure as text, muted, inside breakdown-label"
        }
      ],
      "properties": [
        {
          "name": "--value",
          "on": "breakdown-item",
          "description": "The part's number; the stylesheet reads 0 when it is not set"
        },
        {
          "name": "--breakdown-height",
          "default": ".5rem",
          "description": "Thickness of the bar"
        },
        {
          "name": "--breakdown-gap",
          "default": "2px",
          "description": "Space between segments"
        },
        {
          "name": "--breakdown-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink the segments are steps of"
        },
        {
          "name": "--breakdown-fill",
          "on": "breakdown-item",
          "description": "One segment's color, and its dot's. By default a step of --breakdown-color by the item's place; set it for a part that carries a status"
        }
      ],
      "example": "<ul class=\"breakdown\">\n  <li class=\"breakdown-item\" style=\"--value: 42\"><span class=\"breakdown-label\">Photos <span class=\"breakdown-value\">42 GB</span></span></li>\n  <li class=\"breakdown-item\" style=\"--value: 28\"><span class=\"breakdown-label\">Apps <span class=\"breakdown-value\">28 GB</span></span></li>\n  <li class=\"breakdown-item breakdown-rest\" style=\"--value: 58\"><span class=\"breakdown-label\">Free <span class=\"breakdown-value\">58 GB</span></span></li>\n</ul>",
      "stylesheet": "components/breakdown.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-line-hair",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--shadow-pressed",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": []
    },
    {
      "name": "heatmap",
      "title": "Heatmap",
      "tier": "component",
      "category": "Data display",
      "description": "Many small numbers as a field of cells, each as dark as its value.",
      "use": "A pattern across many values: activity by day, load by hour. Each cell carries its number as --value and says it in its own text as a full phrase. Label the list with what is measured and over what period.",
      "instead": [
        {
          "when": "There are a few numbers and two of them must be told apart",
          "use": "chart"
        },
        {
          "when": "The exact numbers are read and compared",
          "use": "table"
        },
        {
          "when": "The days are there to pick a date from",
          "use": "calendar"
        },
        {
          "when": "Each cell is a state, such as a day a service was up or down, not a number",
          "use": "uptime"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "heatmap",
          "kind": "root",
          "description": "The list: cells fill columns of --heatmap-rows from the top"
        },
        {
          "name": "heatmap-lg",
          "kind": "modifier",
          "of": "heatmap",
          "exclusive": "size",
          "description": "20px cells with a 4px gap; the default is 12px with 3px"
        },
        {
          "name": "heatmap-cell",
          "kind": "part",
          "of": "heatmap",
          "description": "One value; set --value in its style and say it in its text, which is kept for assistive technology and not drawn"
        }
      ],
      "properties": [
        {
          "name": "--value",
          "on": "heatmap-cell",
          "description": "The cell's number; the stylesheet reads 0 when it is not set"
        },
        {
          "name": "--heatmap-max",
          "default": "4",
          "description": "The value that is full ink"
        },
        {
          "name": "--heatmap-rows",
          "default": "7",
          "description": "Cells in a column"
        },
        {
          "name": "--heatmap-size",
          "default": ".75rem",
          "description": "Side of a cell"
        },
        {
          "name": "--heatmap-gap",
          "default": "3px",
          "description": "Space between cells"
        },
        {
          "name": "--heatmap-color",
          "default": "var(--color-surface-inverse)",
          "description": "The ink at the top of the scale"
        }
      ],
      "example": "<ol class=\"heatmap\" style=\"--heatmap-max: 6\" aria-label=\"Deployments per day, 24 to 30 August\">\n  <li class=\"heatmap-cell\" style=\"--value: 5\" title=\"Mon 24 Aug: 5 deployments\">Mon 24 Aug: 5 deployments</li>\n  <li class=\"heatmap-cell\" style=\"--value: 6\" title=\"Tue 25 Aug: 6 deployments\">Tue 25 Aug: 6 deployments</li>\n  <li class=\"heatmap-cell\" style=\"--value: 6\" title=\"Wed 26 Aug: 6 deployments\">Wed 26 Aug: 6 deployments</li>\n  <li class=\"heatmap-cell\" style=\"--value: 3\" title=\"Thu 27 Aug: 3 deployments\">Thu 27 Aug: 3 deployments</li>\n  <li class=\"heatmap-cell\" style=\"--value: 2\" title=\"Fri 28 Aug: 2 deployments\">Fri 28 Aug: 2 deployments</li>\n  <li class=\"heatmap-cell\" style=\"--value: 1\" title=\"Sat 29 Aug: 1 deployment\">Sat 29 Aug: 1 deployment</li>\n  <li class=\"heatmap-cell\" style=\"--value: 0\" title=\"Sun 30 Aug: 0 deployments\">Sun 30 Aug: 0 deployments</li>\n</ol>",
      "stylesheet": "components/heatmap.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-inverse",
        "--color-text-strong",
        "--color-focus"
      ],
      "mixins": []
    },
    {
      "name": "timeline",
      "title": "Timeline",
      "tier": "component",
      "category": "Data display",
      "description": "Events in the order they happened.",
      "use": "A record of what happened: an activity feed, a deployment's history, a changelog. Its length is open and every event is done. Write it as an ol, with a time element for each moment.",
      "instead": [
        {
          "when": "It is a fixed sequence a reader moves through, with one step current and the rest ahead",
          "use": "steps"
        },
        {
          "when": "The rows are things, not moments, and their order carries no time",
          "use": "list"
        },
        {
          "when": "The steps are work under way that may be running or have failed, and open to show what stands behind them",
          "use": "trace"
        },
        {
          "when": "The entries last and are placed on a scale of time",
          "use": "gantt"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "none",
      "classes": [
        {
          "name": "timeline",
          "kind": "root",
          "description": "The list"
        },
        {
          "name": "timeline-item",
          "kind": "part",
          "of": "timeline",
          "description": "An event; a hairline joins its marker to the next"
        },
        {
          "name": "timeline-marker",
          "kind": "part",
          "of": "timeline",
          "description": "A small dot when empty, or a small well around an icon"
        },
        {
          "name": "timeline-body",
          "kind": "part",
          "of": "timeline",
          "description": "The words beside the marker"
        },
        {
          "name": "timeline-title",
          "kind": "part",
          "of": "timeline",
          "description": "What happened, in strong ink"
        },
        {
          "name": "timeline-description",
          "kind": "part",
          "of": "timeline",
          "description": "A quieter line of detail"
        },
        {
          "name": "timeline-time",
          "kind": "part",
          "of": "timeline",
          "description": "When it happened, in tabular figures"
        }
      ],
      "states": [
        {
          "on": "timeline-item",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The newest event, or the one a reader is at: an empty marker's dot takes ink and a faint halo"
        }
      ],
      "properties": [
        {
          "name": "--timeline-marker",
          "default": "1.5rem",
          "description": "Width of the marker column"
        }
      ],
      "example": "<ol class=\"timeline\">\n  <li class=\"timeline-item\" aria-current=\"true\">\n    <span class=\"timeline-marker\"></span>\n    <div class=\"timeline-body\">\n      <p class=\"timeline-title\">Deployed to production</p>\n      <p class=\"timeline-description\">atlas.dev is live in 14 regions.</p>\n      <time class=\"timeline-time\" datetime=\"2026-11-11T09:42Z\">2 minutes ago</time>\n    </div>\n  </li>\n  <li class=\"timeline-item\">\n    <span class=\"timeline-marker\"></span>\n    <div class=\"timeline-body\">\n      <p class=\"timeline-title\">Build completed</p>\n      <p class=\"timeline-description\">38 routes compiled in 48 seconds.</p>\n      <time class=\"timeline-time\" datetime=\"2026-11-11T09:41Z\">3 minutes ago</time>\n    </div>\n  </li>\n</ol>",
      "stylesheet": "components/timeline.css",
      "tokens": [
        "--color-surface-inset",
        "--color-line-divider",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--shadow-pressed",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "trace",
      "title": "Trace",
      "tier": "component",
      "category": "Data display",
      "description": "What an agent or a job did, step by step, each a quiet line that opens its detail.",
      "use": "The work behind an answer or a run: what an agent thought, searched, read and ran, or the stages of a build. Each step is one line; a step with something behind it is a details element whose summary is the line. Mark the step that is running with aria-busy and say in words why a failed step failed.",
      "instead": [
        {
          "when": "The events are a record with times, not work in progress, and none opens",
          "use": "timeline"
        },
        {
          "when": "It is a fixed sequence the reader moves through",
          "use": "steps"
        },
        {
          "when": "The rows are questions and answers of equal weight",
          "use": "accordion"
        },
        {
          "when": "The reader ticks the items off",
          "use": "checklist"
        }
      ],
      "composes": [
        "icon",
        "spinner"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter, Space",
          "action": "On a step that is a details element: opens or closes its detail"
        }
      ],
      "platform": [
        {
          "feature": "::details-content with interpolate-size: allow-keywords",
          "fallback": "A detail opens and closes at once, without the change of height"
        }
      ],
      "classes": [
        {
          "name": "trace",
          "kind": "root",
          "description": "The steps, in a column; a hairline joins their markers"
        },
        {
          "name": "trace-step",
          "kind": "part",
          "of": "trace",
          "description": "One step, on a details element when it has a detail and on any block when it has none"
        },
        {
          "name": "trace-failed",
          "kind": "modifier",
          "of": "trace-step",
          "description": "A step that failed: its dot or icon and the fact at the end of its line take the danger ink"
        },
        {
          "name": "trace-summary",
          "kind": "part",
          "of": "trace",
          "description": "The step's line, 32px tall: the marker, the words and a fact at the end. On a summary it is the toggle, with a chevron after the words"
        },
        {
          "name": "trace-chevron",
          "kind": "part",
          "of": "trace",
          "description": "The chevron after the words of a step that has a detail, an icon that points down while the step is open"
        },
        {
          "name": "trace-marker",
          "kind": "part",
          "of": "trace",
          "description": "The marker at the start of the line: a dot when empty, or an icon, or a spinner-inline while the step runs"
        },
        {
          "name": "trace-meta",
          "kind": "part",
          "of": "trace",
          "description": "A fact at the end of the line, in tabular figures: how long it took, how many it found"
        },
        {
          "name": "trace-detail",
          "kind": "part",
          "of": "trace",
          "description": "What stands behind the step, under the line on the edge of its words"
        }
      ],
      "states": [
        {
          "on": "trace-step",
          "name": "open",
          "mark": "open",
          "description": "Set by the browser on a details element: the detail shows and the chevron points down"
        },
        {
          "on": "trace-step",
          "name": "running",
          "mark": "aria-busy=\"true\"",
          "description": "The step under way: its words take the strong ink and a bare dot sends out a ring"
        }
      ],
      "properties": [
        {
          "name": "--trace-marker",
          "default": "1.25rem",
          "description": "Width of the marker column"
        }
      ],
      "example": "<div class=\"trace\">\n  <details class=\"trace-step\">\n    <summary class=\"trace-summary\"><span class=\"trace-marker\"></span>Searched the codebase<span class=\"trace-meta\">12 files</span><svg class=\"icon trace-chevron\" 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(90 8 8)\"/></svg></summary>\n    <div class=\"trace-detail\">orders.status is read in 12 files, 3 of them in billing.</div>\n  </details>\n  <div class=\"trace-step\" aria-busy=\"true\">\n    <p class=\"trace-summary\"><span class=\"trace-marker\"></span>Writing the migration</p>\n  </div>\n</div>",
      "stylesheet": "components/trace.css",
      "tokens": [
        "--color-line-divider",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-danger",
        "--radius-chip",
        "--easing-glide",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "calendar",
      "title": "Calendar",
      "tier": "component",
      "category": "Forms",
      "description": "A month of days to pick from: one day, a range or several days, a month or more at a time.",
      "use": "Picking a day, a range of days or several separate days in the page, with the week in view. It is an ARIA grid of buttons: the stylesheet draws every state, and the script supplies the dates, the month buttons and the keys. Its title can jump to the months of the year and the years of a decade, and two months side by side show a range across them. It has no surface of its own: put it in a card, or in a popover to make a date picker.",
      "instead": [
        {
          "when": "A plain date is all the form needs, or the reader is on a phone: a native date input opens the picker of the device",
          "use": "input"
        },
        {
          "when": "The value is a time, picked by touch",
          "use": "wheel"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "required",
      "behavior": "calendar",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Move focus to the day before or the day after, the other way around from right to left; from the last day of a month to the first of the next, in the grid beside it when several months are shown. In the months or the years, to the one before or after"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Move focus to the same weekday of the week before or after; in the months or the years, to the one three before or after, in the row above or below"
        },
        {
          "keys": "Home, End",
          "action": "Move focus to the first or the last day of the week, or of the row in the months or the years"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "Show the month before or after and move focus to the same day in it, or to its last day when it is shorter. In the months or the years, show the year or the decade before or after"
        },
        {
          "keys": "Shift+PageUp, Shift+PageDown",
          "action": "Show the same month of the year before or after and move focus to the same day in it"
        },
        {
          "keys": "Enter, Space",
          "action": "Choose the day that has focus, or turn it on or off with multiple; on a month or a year, show its days or its months. The cell is a button, so the browser turns the key into its click"
        },
        {
          "keys": "Escape",
          "action": "In the months or the years, go back to the days, with focus on the day it had. In the days it is left to what holds the calendar, such as a popover"
        },
        {
          "keys": "Tab",
          "action": "Enters the grid at the chosen day, the first of them, or at today, or at the first day of the months shown when they hold neither; the grids of several months are one tab stop together"
        }
      ],
      "classes": [
        {
          "name": "calendar",
          "kind": "root",
          "description": "The calendar: a header over a grid of days, or a calendar-month for each of several months side by side"
        },
        {
          "name": "calendar-month",
          "kind": "part",
          "of": "calendar",
          "description": "One of several months side by side: its own calendar-header and calendar-grid. The days outside it are left blank, since the month beside it shows them; the months wrap to a column where the row has no room"
        },
        {
          "name": "calendar-header",
          "kind": "part",
          "of": "calendar",
          "description": "The row over the grid: a button to the month before, the title, a button to the month after. With several months, the first month's header holds the button before and the last one's the button after"
        },
        {
          "name": "calendar-title",
          "kind": "part",
          "of": "calendar",
          "description": "The name of the month, centered between the two buttons; give it aria-live=\"polite\" so a change of month is announced. It may hold a calendar-title-button"
        },
        {
          "name": "calendar-title-button",
          "kind": "part",
          "of": "calendar",
          "elements": [
            "button"
          ],
          "description": "The title as a button, in a calendar of one month: it shows the twelve months of the year in the grid, then the years of the decade, where it is disabled. The behavior writes the title into it"
        },
        {
          "name": "calendar-grid",
          "kind": "part",
          "of": "calendar",
          "description": "The seven-column grid, with role=\"grid\" and labelled by the title; aria-multiselectable=\"true\" when a range or several days can be chosen. In the months or the years it has three columns"
        },
        {
          "name": "calendar-week",
          "kind": "part",
          "of": "calendar",
          "description": "A row on the grid's columns, with role=\"row\": the weekday names, a week of days, or three months or years"
        },
        {
          "name": "calendar-weekday",
          "kind": "part",
          "of": "calendar",
          "description": "A column heading with role=\"columnheader\"; give it the full name of the day as aria-label"
        },
        {
          "name": "calendar-day",
          "kind": "part",
          "of": "calendar",
          "elements": [
            "button"
          ],
          "description": "A day, on a button with role=\"gridcell\". One day is in the tab order; the others have tabindex=\"-1\". Its value is its date as YYYY-MM-DD: the behavior writes it, and reads it from days that something else wrote"
        },
        {
          "name": "calendar-day-outside",
          "kind": "modifier",
          "of": "calendar-day",
          "description": "A day of the month before or after, shown in muted ink to complete a week"
        },
        {
          "name": "calendar-day-range-start",
          "kind": "modifier",
          "of": "calendar-day",
          "description": "The first day of a range: an ink day on the half of the band that faces the range. With calendar-day-range-end on the same day, a range of one day"
        },
        {
          "name": "calendar-day-range",
          "kind": "modifier",
          "of": "calendar-day",
          "description": "A day between the ends of a range: a chip-toned band from cell to cell, rounded where a week ends"
        },
        {
          "name": "calendar-day-range-end",
          "kind": "modifier",
          "of": "calendar-day",
          "description": "The last day of a range: an ink day on the half of the band that faces the range"
        },
        {
          "name": "calendar-period",
          "kind": "part",
          "of": "calendar",
          "elements": [
            "button"
          ],
          "description": "A month or a year, on a button with role=\"gridcell\" in the grid the title jumps to, drawn in the day's material and four rows as tall as six weeks. Its value is YYYY-MM for a month and YYYY for a year"
        },
        {
          "name": "calendar-period-outside",
          "kind": "modifier",
          "of": "calendar-period",
          "description": "The year before or after the decade, shown in muted ink to complete the rows"
        }
      ],
      "states": [
        {
          "on": "calendar-day",
          "name": "today",
          "mark": "aria-current=\"date\"",
          "description": "A dot under the number, kept when the day is chosen"
        },
        {
          "on": "calendar-day",
          "name": "chosen",
          "mark": "aria-selected=\"true\"",
          "description": "Fills with ink, the way a checked checkbox does. Every day of a range carries it, and every day chosen with multiple. aria-pressed=\"true\" draws the same"
        },
        {
          "on": "calendar-day",
          "name": "unavailable",
          "mark": "disabled",
          "description": "Or aria-disabled=\"true\": disabled ink"
        },
        {
          "on": "calendar-period",
          "name": "current",
          "mark": "aria-current=\"date\"",
          "description": "The month or the year of today: a dot under its name"
        },
        {
          "on": "calendar-period",
          "name": "chosen",
          "mark": "aria-selected=\"true\"",
          "description": "The month or the year that holds a chosen day: ink"
        },
        {
          "on": "calendar-period",
          "name": "unavailable",
          "mark": "disabled",
          "description": "No day of it is between min and max: disabled ink"
        },
        {
          "on": "calendar-title-button",
          "name": "at the top",
          "mark": "disabled",
          "description": "In the years, where the title goes no further: it keeps the title's ink"
        }
      ],
      "properties": [
        {
          "name": "--calendar-cell",
          "default": "2.25rem",
          "description": "Width and height of a day, already more than a finger is owed"
        },
        {
          "name": "--calendar-day-radius",
          "default": "var(--radius-control-sm)",
          "description": "Corner of a day"
        }
      ],
      "example": "<div class=\"calendar\">\n  <div class=\"calendar-header\">\n    <button type=\"button\" class=\"btn btn-quiet btn-square btn-sm\" aria-label=\"Previous month\"><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>\n    <h3 class=\"calendar-title\" id=\"calendar-title\" aria-live=\"polite\">November 2026</h3>\n    <button type=\"button\" class=\"btn btn-quiet btn-square btn-sm\" aria-label=\"Next month\"><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>\n  </div>\n  <div class=\"calendar-grid\" role=\"grid\" aria-labelledby=\"calendar-title\">\n    <div class=\"calendar-week\" role=\"row\">\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Monday\">Mo</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Tuesday\">Tu</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Wednesday\">We</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Thursday\">Th</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Friday\">Fr</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Saturday\">Sa</span>\n      <span class=\"calendar-weekday\" role=\"columnheader\" aria-label=\"Sunday\">Su</span>\n    </div>\n    <div class=\"calendar-week\" role=\"row\">\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" tabindex=\"-1\">9</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" tabindex=\"-1\">10</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" aria-current=\"date\" tabindex=\"-1\">11</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" tabindex=\"-1\">12</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" aria-selected=\"true\">13</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" tabindex=\"-1\">14</button>\n      <button type=\"button\" class=\"calendar-day\" role=\"gridcell\" tabindex=\"-1\">15</button>\n    </div>\n  </div>\n</div>",
      "stylesheet": "components/calendar.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-chip",
        "--color-surface-inverse",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--shadow-ink-mark",
        "--radius-control-sm",
        "--font-weight-control"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "tree",
      "title": "Tree",
      "tier": "component",
      "category": "Navigation",
      "description": "Nested rows for things that contain things.",
      "use": "Things that contain things, many levels deep: folders, an outline, categories. Without script a branch is a native details whose summary is the row. With the tree script the same classes read aria-expanded and aria-selected, and the tree is one tab stop walked with the arrow keys. With aria-multiselectable=\"true\" any number of rows are selected; with aria-checked on its rows it is a checkbox tree; a branch whose rows are loaded later says aria-busy=\"true\"; with the script's rename option, F2 renames a row in place.",
      "instead": [
        {
          "when": "It is a short list of destinations with one level of grouping",
          "use": "nav"
        },
        {
          "when": "A branch holds content to read instead of rows",
          "use": "accordion"
        }
      ],
      "composes": [
        "icon",
        "spinner",
        "editable"
      ],
      "script": "optional",
      "behavior": "tree",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "With details, every row is a tab stop. With the script, the tree is one tab stop: the current or selected row, or the first"
        },
        {
          "keys": "Enter, Space",
          "action": "Open or close a branch, or follow the link of a row; on a summary the browser does it without script. With the script, a row with role=\"treeitem\" that is not a branch becomes the selected row; in a checkbox tree Enter checks a leaf"
        },
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "With the script: move to the next or the previous visible row"
        },
        {
          "keys": "ArrowRight",
          "action": "With the script: open a closed branch; on an open branch, move to its first row. ArrowLeft from right to left"
        },
        {
          "keys": "ArrowLeft",
          "action": "With the script: close an open branch; on a closed branch or a leaf, move to the row of its parent. ArrowRight from right to left"
        },
        {
          "keys": "Home, End",
          "action": "With the script: move to the first or the last visible row"
        },
        {
          "keys": "A character",
          "action": "With the script: move to the next visible row that starts with it; characters typed quickly are read as one word"
        },
        {
          "keys": "*",
          "action": "With the script: open every closed branch at the level of the row that has focus"
        },
        {
          "keys": "Space",
          "action": "With the script, in a tree with aria-multiselectable=\"true\": select or unselect the row that has focus. In a checkbox tree: check or uncheck the row and every row under it"
        },
        {
          "keys": "Control+click",
          "action": "In a multiselectable tree: select or unselect one row, keeping the others; a click alone selects only that row. Command on a Mac"
        },
        {
          "keys": "Shift+ArrowDown, Shift+ArrowUp",
          "action": "In a multiselectable tree: move, and select every visible row from the one chosen last to the new one"
        },
        {
          "keys": "Shift+Space, Shift+click",
          "action": "In a multiselectable tree: select every visible row from the one chosen last to this one"
        },
        {
          "keys": "Control+Shift+Home, Control+Shift+End",
          "action": "In a multiselectable tree: select every visible row up to the first or the last; Command on a Mac"
        },
        {
          "keys": "Control+A",
          "action": "In a multiselectable tree: select every visible row, or none when they all are; Command on a Mac"
        },
        {
          "keys": "F2",
          "action": "With the script's rename option: turn the label of the row that has focus into a field, with its text selected"
        },
        {
          "keys": "Enter, Escape",
          "action": "In the rename field: save the label, or put it back; either way focus returns to the row. Leaving the field saves it"
        }
      ],
      "classes": [
        {
          "name": "tree",
          "kind": "root",
          "description": "The list; role=\"tree\" with a label when the script drives it"
        },
        {
          "name": "tree-item",
          "kind": "part",
          "of": "tree",
          "description": "A row: a link, a button, the summary of a branch, or an element with role=\"treeitem\". It keeps the chevron's column, so a leaf lines up with the branches beside it"
        },
        {
          "name": "tree-label",
          "kind": "part",
          "of": "tree",
          "description": "The words of a row: a long one ends in an ellipsis. The part the script's rename turns into an editable"
        },
        {
          "name": "tree-check",
          "kind": "part",
          "of": "tree",
          "description": "In a checkbox tree, the row's check after the chevron's column: the checkbox's well, drawn from the row's aria-checked. Give it aria-hidden=\"true\": the row says its state"
        },
        {
          "name": "tree-toggle",
          "kind": "modifier",
          "of": "tree-item",
          "description": "On the row of a branch: holds the branch's chevron in the leading column, which turns down while the branch is open"
        },
        {
          "name": "tree-chevron",
          "kind": "part",
          "of": "tree",
          "description": "The chevron in the leading column of a branch's row, an icon that turns down while the branch is open"
        },
        {
          "name": "tree-group",
          "kind": "part",
          "of": "tree",
          "elements": [
            "details"
          ],
          "description": "A details that holds a branch: its summary is the row, its tree-sub the rows under it"
        },
        {
          "name": "tree-sub",
          "kind": "part",
          "of": "tree",
          "description": "The rows under a branch, one level in, on a hairline that runs down from the chevron; role=\"group\" when the script drives the tree"
        }
      ],
      "states": [
        {
          "on": "tree-item",
          "name": "current",
          "mark": "aria-current=\"page\"",
          "description": "Or aria-current=\"true\": the row rises as a small raised sheet in strong ink, apart from the chip tone of hover"
        },
        {
          "on": "tree-item",
          "name": "selected",
          "mark": "aria-selected=\"true\"",
          "description": "Inside the tree pattern: drawn the same as current. In a tree with aria-multiselectable=\"true\" any number of rows, and the others say aria-selected=\"false\""
        },
        {
          "on": "tree-item",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "Disabled ink"
        },
        {
          "on": "tree-item",
          "name": "checked",
          "mark": "aria-checked=\"true\"",
          "description": "In a checkbox tree: the row's tree-check fills with ink and shows a check"
        },
        {
          "on": "tree-item",
          "name": "mixed",
          "mark": "aria-checked=\"mixed\"",
          "description": "In a checkbox tree, a branch some of whose rows are checked: the tree-check shows a dash"
        },
        {
          "on": "tree-group",
          "name": "open",
          "mark": "open",
          "description": "The chevron of the branch's row turns down"
        },
        {
          "on": "tree-toggle",
          "name": "expanded",
          "mark": "aria-expanded=\"true\"",
          "description": "Driven by script: the chevron turns down"
        },
        {
          "on": "tree-item",
          "name": "collapsed",
          "mark": "aria-expanded=\"false\"",
          "description": "Driven by script: the tree-sub that follows the row is hidden"
        },
        {
          "on": "tree-item",
          "name": "busy",
          "mark": "aria-busy=\"true\"",
          "description": "A branch whose rows are on their way: a spinner the row holds, first in the row, takes the chevron's place"
        }
      ],
      "properties": [
        {
          "name": "--tree-item-height",
          "default": "1.75rem",
          "description": "Row height, at every pointer"
        },
        {
          "name": "--tree-indent",
          "default": "1rem",
          "description": "How far each level is set in"
        }
      ],
      "example": "<ul class=\"tree\">\n  <li>\n    <details class=\"tree-group\" open>\n      <summary class=\"tree-item tree-toggle\"><svg class=\"icon tree-chevron\" 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>components</summary>\n      <ul class=\"tree-sub\">\n        <li><a class=\"tree-item\" href=\"#button\" aria-current=\"page\">button.css</a></li>\n        <li><a class=\"tree-item\" href=\"#input\">input.css</a></li>\n      </ul>\n    </details>\n  </li>\n  <li><a class=\"tree-item\" href=\"#readme\">README.md</a></li>\n</ul>",
      "stylesheet": "components/tree.css",
      "tokens": [
        "--color-surface-inset-hover",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-text-inverse",
        "--color-focus",
        "--shadow-raised",
        "--radius-chip",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--check-well",
        "--check-well-hover",
        "--check-ink",
        "--check-mark",
        "--check-dash"
      ]
    },
    {
      "name": "carousel",
      "title": "Carousel",
      "tier": "component",
      "category": "Media",
      "description": "A row or a column of slides that scrolls and snaps, built from CSS alone.",
      "use": "A few items of the same kind that a reader moves through one at a time or a few at a time: projects, team members, screenshots. It never moves by itself. Put it in a carousel-view with buttons and dots of the page's own, driven by the carousel behavior, when the page or a framework needs to know or set the slide in view.",
      "instead": [
        {
          "when": "The row moves by itself and a reader loses nothing by missing an item",
          "use": "marquee"
        },
        {
          "when": "The region scrolls freely and nothing in it snaps",
          "use": "scroll-area"
        }
      ],
      "composes": [
        "button"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Scroll the focused track, as any scroll container does; ArrowUp and ArrowDown scroll a vertical one"
        },
        {
          "keys": "Tab",
          "action": "Moves to the track, and to the previous and next buttons and the dots, generated by the browser or the page's own in a carousel-view"
        },
        {
          "keys": "Enter, Space",
          "action": "Activates a button or a dot"
        }
      ],
      "platform": [
        {
          "feature": "::scroll-button() and ::scroll-marker, placed with anchor positioning",
          "fallback": "No buttons and no dots: the carousel is a row that swipes, scrolls and snaps, with a thin scrollbar as the way across. A carousel-view has buttons and dots of its own and does not depend on them"
        },
        {
          "feature": "scrollend, for the carousel behavior",
          "fallback": "The behavior waits for the scroll events to pause before it names the current slide"
        },
        {
          "feature": "scrollIntoView() with container: 'nearest'",
          "fallback": "Going to a slide may also scroll the page to bring the carousel into view"
        }
      ],
      "classes": [
        {
          "name": "carousel",
          "kind": "root",
          "description": "The scrolling, snapping track. Give it role=\"region\", a label and tabindex=\"0\" so the arrow keys can scroll it"
        },
        {
          "name": "carousel-slide",
          "kind": "part",
          "of": "carousel",
          "description": "A slide: it snaps to the start of the track, or to its middle in carousel-center, and takes --carousel-slide of its width"
        },
        {
          "name": "carousel-2",
          "kind": "modifier",
          "of": "carousel",
          "exclusive": "count",
          "description": "Two slides in view"
        },
        {
          "name": "carousel-3",
          "kind": "modifier",
          "of": "carousel",
          "exclusive": "count",
          "description": "Three slides in view"
        },
        {
          "name": "carousel-center",
          "kind": "modifier",
          "of": "carousel",
          "exclusive": "count",
          "description": "The slide in view stands in the middle with its neighbors' edges on either side; the first and the last reach the middle too. Slides take 80% of the track unless --carousel-slide says otherwise"
        },
        {
          "name": "carousel-vertical",
          "kind": "modifier",
          "of": "carousel",
          "description": "A column --carousel-viewport tall that scrolls and snaps up and down; slides take --carousel-slide of its height, the buttons stand at its top and bottom and the dots beside its end"
        },
        {
          "name": "carousel-view",
          "kind": "root",
          "description": "Holds a carousel with previous and next buttons and dots of the page's own, which the carousel behavior drives; the generated controls step aside inside it"
        },
        {
          "name": "carousel-previous",
          "kind": "part",
          "of": "carousel-view",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "Goes to the slide before the current one; stands over the track's start edge, or its top in a vertical view. Disabled at the first slide"
        },
        {
          "name": "carousel-next",
          "kind": "part",
          "of": "carousel-view",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "Goes to the slide after the current one; stands over the track's end edge, or its bottom in a vertical view. Disabled at the last slide"
        },
        {
          "name": "carousel-dots",
          "kind": "part",
          "of": "carousel-view",
          "description": "The row of dots under the track, or the column beside a vertical one"
        },
        {
          "name": "carousel-dot",
          "kind": "part",
          "of": "carousel-view",
          "elements": [
            "button"
          ],
          "label": true,
          "attributes": {
            "aria-controls": true
          },
          "description": "Goes to the slide named in its aria-controls; its accessible name says which slide of how many"
        }
      ],
      "states": [
        {
          "on": "carousel-slide",
          "name": "in view",
          "mark": ":target-current",
          "description": "On the slide's ::scroll-marker: the dot of the slide in view lengthens and takes ink"
        },
        {
          "on": "carousel-dot",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The dot of the current slide lengthens and takes ink"
        },
        {
          "on": "carousel-previous",
          "name": "at the start",
          "mark": "disabled",
          "description": "There is no slide before: the button fades out of the way"
        },
        {
          "on": "carousel-next",
          "name": "at the end",
          "mark": "disabled",
          "description": "There is no slide after: the button fades out of the way"
        }
      ],
      "properties": [
        {
          "name": "--carousel-gap",
          "default": "1rem",
          "description": "Space between slides"
        },
        {
          "name": "--carousel-slide",
          "default": "100%",
          "description": "Width of a slide, 80% in carousel-center; set any width for a slide that peeks"
        },
        {
          "name": "--carousel-viewport",
          "on": "carousel-vertical",
          "default": "20rem",
          "description": "The height of a vertical carousel"
        },
        {
          "name": "--carousel-control",
          "default": "2rem",
          "description": "Size of the previous and next buttons the browser draws"
        },
        {
          "name": "--carousel-previous-label",
          "description": "The name of the previous button the browser draws, as a quoted string: 'Previous slide' unless it is set. Set it on the carousel or an ancestor in the page's language"
        },
        {
          "name": "--carousel-next-label",
          "description": "The name of the next button the browser draws, as a quoted string: 'Next slide' unless it is set"
        }
      ],
      "example": "<div class=\"carousel\" role=\"region\" aria-label=\"Featured projects\" tabindex=\"0\">\n  <article class=\"carousel-slide\">\n    <h3>Atlas</h3>\n    <p>A map of every deployment, live.</p>\n  </article>\n  <article class=\"carousel-slide\">\n    <h3>Borealis</h3>\n    <p>Edge functions close to the reader.</p>\n  </article>\n  <article class=\"carousel-slide\">\n    <h3>Cirrus</h3>\n    <p>Storage that follows the project.</p>\n  </article>\n</div>",
      "behavior": "carousel",
      "stylesheet": "components/carousel.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-floating",
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--color-focus",
        "--shadow-pressed",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--easing-glide",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "marquee",
      "title": "Marquee",
      "tier": "component",
      "category": "Media",
      "description": "A row that passes by without end, and stops when you look closely.",
      "use": "Content a reader may glance at and lose nothing by missing: the names of customers, short praise, a ticker. Write the row twice and hide the second copy from assistive technology.",
      "instead": [
        {
          "when": "A reader must find, compare or act on the items",
          "use": "carousel"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "marquee",
          "kind": "root",
          "description": "The row: it clips, fades both ends with a mask and stops on hover and focus. Give it role=\"group\" and a label"
        },
        {
          "name": "marquee-reverse",
          "kind": "modifier",
          "of": "marquee",
          "description": "The row passes the other way, for the second of two rows"
        },
        {
          "name": "marquee-track",
          "kind": "part",
          "of": "marquee",
          "description": "One copy of the row, at least as wide as the marquee; write it twice, the second with aria-hidden=\"true\" and inert"
        }
      ],
      "states": [
        {
          "on": "marquee",
          "name": "paused",
          "mark": ":hover",
          "description": "Or :focus-within: the row stops while the pointer is over it or focus is inside it"
        },
        {
          "on": "marquee-track",
          "name": "copy",
          "mark": "aria-hidden=\"true\"",
          "description": "The second copy, for the eye only; with reduced motion it is removed and the first track wraps onto centered lines"
        }
      ],
      "properties": [
        {
          "name": "--marquee-duration",
          "default": "40s",
          "description": "Time for one copy to pass"
        },
        {
          "name": "--marquee-gap",
          "default": "3rem",
          "description": "Space between items, and between the copies"
        },
        {
          "name": "--marquee-fade",
          "default": "4rem",
          "description": "Length of the fade at each end"
        }
      ],
      "example": "<div class=\"marquee\" role=\"group\" aria-label=\"Teams that build with Master UI\">\n  <ul class=\"marquee-track\">\n    <li>Northwind</li>\n    <li>Lumen</li>\n    <li>Aperture</li>\n    <li>Kestrel</li>\n  </ul>\n  <ul class=\"marquee-track\" aria-hidden=\"true\" inert>\n    <li>Northwind</li>\n    <li>Lumen</li>\n    <li>Aperture</li>\n    <li>Kestrel</li>\n  </ul>\n</div>",
      "stylesheet": "components/marquee.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "waveform",
      "title": "Waveform",
      "tier": "component",
      "category": "Media",
      "description": "A recording as a row of bars, in ink as far as it has played.",
      "use": "A voice message or a short clip: the shape of the sound, drawn as thin bars that fill with ink as the recording plays. The page's player sets --waveform-progress on the row as the audio plays, and an optional range input over the bars seeks. The bars are decorative; the seek input or the time beside them carries the meaning.",
      "instead": [
        {
          "when": "It is how far a task has come, not a recording",
          "use": "progress"
        },
        {
          "when": "It is a value to set, with no sound behind it",
          "use": "slider"
        },
        {
          "when": "The bars are numbers a reader compares",
          "use": "chart"
        }
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "With waveform-seek: step back or forward through the recording, as any range input does"
        },
        {
          "keys": "Home, End",
          "action": "With waveform-seek: go to the start or the end"
        },
        {
          "keys": "PageUp, PageDown",
          "action": "With waveform-seek: take a larger step"
        }
      ],
      "platform": [
        {
          "feature": "round() with a length step",
          "fallback": "Each bar takes its exact height, and the round of a bar's ends may be cut flat by part of a pixel"
        }
      ],
      "classes": [
        {
          "name": "waveform",
          "kind": "root",
          "description": "The row, 32px tall, centered on its middle line. It fills its container, or in a row of other things takes the width its bars need. Its ink is currentColor"
        },
        {
          "name": "waveform-sm",
          "kind": "modifier",
          "of": "waveform",
          "exclusive": "size",
          "description": "A 20px row of 2px bars, 1.5px apart, for a line of a list"
        },
        {
          "name": "waveform-lg",
          "kind": "modifier",
          "of": "waveform",
          "exclusive": "size",
          "description": "A 48px row of 4px bars, 3px apart, for a player"
        },
        {
          "name": "waveform-bar",
          "kind": "part",
          "of": "waveform",
          "description": "One bar, an empty element as tall as its --level of the row and never shorter than it is wide. Ink up to the playhead, a quiet tint after it"
        },
        {
          "name": "waveform-seek",
          "kind": "part",
          "of": "waveform",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "A native range input laid invisibly over the bars, last in the row: the pointer and the keys seek with it, and the row draws its focus ring. Give it an aria-label and an aria-valuetext in words"
        },
        {
          "name": "waveform-time",
          "kind": "part",
          "of": "waveform",
          "anywhere": true,
          "description": "The length of the recording, or how much has played, beside the row: small tabular figures in the ink of the place it stands in"
        }
      ],
      "states": [
        {
          "on": "waveform-seek",
          "name": "focus-visible",
          "mark": ":focus-visible",
          "description": "The row takes the focus ring, drawn in its own ink so it shows on a sent bubble too"
        },
        {
          "on": "waveform-seek",
          "name": "hover",
          "mark": ":hover",
          "description": "With a pointer that hovers, the bars still to play step up a little, to say they can be touched"
        },
        {
          "on": "waveform-seek",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The row keeps its drawing and no longer answers the pointer"
        }
      ],
      "properties": [
        {
          "name": "--waveform-progress",
          "on": "waveform",
          "default": "0",
          "description": "How far the recording has played, from 0 to 1. The page's player sets it"
        },
        {
          "name": "--level",
          "on": "waveform-bar",
          "description": "How loud the recording is at this bar, from 0 to 1: the bar's share of the row's height"
        },
        {
          "name": "--waveform-height",
          "on": "waveform",
          "default": "2rem",
          "description": "Height of the row, and of the loudest bar"
        },
        {
          "name": "--waveform-bar",
          "on": "waveform",
          "default": "3px",
          "description": "Width of a bar, and the height of the shortest"
        },
        {
          "name": "--waveform-gap",
          "on": "waveform",
          "default": "2px",
          "description": "The least space between bars"
        },
        {
          "name": "--waveform-color",
          "on": "waveform",
          "default": "currentColor",
          "description": "The ink of what has played; what has not is a tint of it"
        }
      ],
      "example": "<div class=\"waveform\" style=\"--waveform-progress: .4\">\n  <span class=\"waveform-bar\" style=\"--level: .3\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .6\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .9\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .5\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .7\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .4\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .2\"></span>\n  <span class=\"waveform-bar\" style=\"--level: .1\"></span>\n  <input class=\"waveform-seek\" type=\"range\" min=\"0\" max=\"14\" step=\"0.1\" value=\"5.6\" aria-label=\"Seek\" aria-valuetext=\"0:05 of 0:14\">\n</div>\n<span class=\"waveform-time\">0:14</span>",
      "stylesheet": "components/waveform.css",
      "tokens": [
        "--radius-chip"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "player",
      "title": "Player",
      "tier": "component",
      "category": "Media",
      "description": "Controls of the page's own over a native audio or video element.",
      "use": "An episode, a talk, a product film: a recording a reader plays, seeks and listens to at their own speed, with controls drawn in the page's material. The media stays a native audio or video element with its controls attribute, which the browser's own controls answer until the behavior attaches and takes it away.",
      "instead": [
        {
          "when": "A short voice message in a conversation, drawn as the shape of its sound",
          "use": "waveform"
        },
        {
          "when": "A picture or a video that plays by itself, with a caption",
          "use": "figure"
        },
        {
          "when": "What the recording says, to read and to seek from",
          "use": "transcript"
        }
      ],
      "composes": [
        "slider",
        "icon",
        "menu"
      ],
      "script": "optional",
      "behavior": "player",
      "keyboard": [
        {
          "keys": "Space, K",
          "action": "Play or pause. Space on a button presses that button instead"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Seek back or forward 5 seconds; on the seek track ArrowDown and ArrowUp do the same. The two change places in a right-to-left player. On the volume slider, the arrows set the volume as the native input does"
        },
        {
          "keys": "J, L",
          "action": "Seek back or forward 10 seconds"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Turn the volume up or down a tenth, away from the seek track and the volume slider"
        },
        {
          "keys": "M",
          "action": "Mute or unmute"
        },
        {
          "keys": "C",
          "action": "Turn the captions on or off, when the video has a captions or subtitles track"
        },
        {
          "keys": "F",
          "action": "Enter or leave full screen, for a video where the browser allows it"
        },
        {
          "keys": "Home, End",
          "action": "Go to the start or the end. On the volume slider they set the least and the most volume"
        }
      ],
      "platform": [
        {
          "feature": "The controls attribute of the media element",
          "fallback": "Without the behavior the media keeps it, and the browser's own controls play the recording; the player's row is hidden"
        },
        {
          "feature": "The Fullscreen API and Picture-in-Picture",
          "fallback": "The behavior hides a button the browser cannot use. On an iPhone, full screen is the system's own player"
        },
        {
          "feature": "Container queries",
          "fallback": "The volume slider, the time so far and picture in picture stay in the row at every width of the player"
        },
        {
          "feature": "Style queries on a custom property (@container style())",
          "fallback": "Over a still video the controls still fade; the pointer stays visible over the picture"
        }
      ],
      "classes": [
        {
          "name": "player",
          "kind": "root",
          "description": "The player of an audio recording: a raised sheet holding the row of controls, 6px in. Give it role=\"group\" and an aria-label that names the recording"
        },
        {
          "name": "player-video",
          "kind": "modifier",
          "of": "player",
          "description": "The player of a video: the frame itself, a dark field with a surface's corner, with the controls over its lower edge in the dark scheme. They fade while the video plays and the pointer is still"
        },
        {
          "name": "player-media",
          "kind": "part",
          "of": "player",
          "elements": [
            "audio",
            "video"
          ],
          "description": "The native audio or video element, with its controls attribute: the fallback the behavior removes as it attaches"
        },
        {
          "name": "player-controls",
          "kind": "part",
          "of": "player",
          "description": "The row of buttons, times and the seek track. Hidden while the media has its controls attribute"
        },
        {
          "name": "player-button",
          "kind": "part",
          "of": "player",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "A quiet 32px control with one icon, with a target 44px tall on touch screens. A toggle has aria-pressed and a fixed name: with player-off and player-on faces it shows the one for its state; with one face it sinks into a well while it is on"
        },
        {
          "name": "player-play",
          "kind": "modifier",
          "of": "player-button",
          "description": "Play and pause, its icon a size up: pressed while the media plays. Name it Play"
        },
        {
          "name": "player-mute",
          "kind": "modifier",
          "of": "player-button",
          "description": "Sound and silence: pressed while the media is muted. Name it Mute"
        },
        {
          "name": "player-speed",
          "kind": "modifier",
          "of": "player-button",
          "description": "The speed, in figures, that opens a menu of speeds through popovertarget: a menu of label items, each around a radio menu-input whose value is a playback rate"
        },
        {
          "name": "player-captions",
          "kind": "modifier",
          "of": "player-button",
          "description": "Captions on or off: pressed while the first captions or subtitles track is showing. Hidden when the video has none"
        },
        {
          "name": "player-pip",
          "kind": "modifier",
          "of": "player-button",
          "description": "Picture in picture: pressed while the video plays in its own window. Hidden where the browser has none, and in a player narrower than 24rem"
        },
        {
          "name": "player-fullscreen",
          "kind": "modifier",
          "of": "player-button",
          "description": "Full screen: pressed while the player fills the screen. Hidden where the browser does not allow it"
        },
        {
          "name": "player-off",
          "kind": "part",
          "of": "player",
          "description": "The face of a toggle while it is off: the icon for play, sound, into full screen"
        },
        {
          "name": "player-on",
          "kind": "part",
          "of": "player",
          "description": "The face of a toggle while it is on: the icon for pause, silence, out of full screen"
        },
        {
          "name": "player-elapsed",
          "kind": "part",
          "of": "player",
          "description": "How much has played, in small tabular figures, left out of a player narrower than 24rem. The behavior writes it"
        },
        {
          "name": "player-duration",
          "kind": "part",
          "of": "player",
          "description": "How long the recording is, in small tabular figures. The behavior writes it once the media knows"
        },
        {
          "name": "player-seek",
          "kind": "part",
          "of": "player",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "The seek track: a slider as long as the row allows, with what has loaded drawn under what has played. The behavior sets its max, its value and an aria-valuetext in words"
        },
        {
          "name": "player-volume",
          "kind": "part",
          "of": "player",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "The volume: a short slider from 0 to 1 beside the mute button, left out where the player is narrower than 26rem and hidden where the device does not let a page set it"
        }
      ],
      "states": [
        {
          "on": "player-media",
          "name": "native controls",
          "mark": "controls",
          "description": "The browser's controls are shown and the player's row is hidden: the behavior has not attached"
        },
        {
          "on": "player-button",
          "name": "pressed",
          "mark": "aria-pressed=\"true\"",
          "description": "A toggle that is on: it shows its player-on face, or sinks into a well when it has one face"
        },
        {
          "on": "player-button",
          "name": "disabled",
          "mark": ":disabled",
          "description": "Disabled ink and no answer to the pointer"
        },
        {
          "on": "player-button",
          "name": "focus-visible",
          "mark": ":focus-visible",
          "description": "The focus ring. Over a video, the controls do not fade while anything in the player has it"
        },
        {
          "on": "player-button",
          "name": "hidden",
          "mark": "hidden",
          "description": "A control the browser cannot use, hidden by the behavior"
        }
      ],
      "properties": [
        {
          "name": "--player-buffered",
          "on": "player",
          "default": "0",
          "description": "How much of the recording has loaded, from 0 to 1, drawn on the seek track. The behavior sets it"
        },
        {
          "name": "--player-idle",
          "on": "player",
          "default": "0",
          "description": "1 while a playing video has had no pointer movement for a while, and the controls fade out; 0 otherwise. The behavior sets it"
        },
        {
          "name": "--player-ratio",
          "on": "player-video",
          "description": "The video's aspect ratio, held before it loads; without it the frame takes the video's own shape"
        },
        {
          "name": "--player-inset",
          "on": "player",
          "default": "6px",
          "description": "Space between the sheet of an audio player and its controls"
        },
        {
          "name": "--player-radius",
          "on": "player",
          "default": "calc(var(--radius-control-sm) + var(--player-inset) / var(--corner-scale))",
          "description": "The player's corner: a small control's corner plus the inset, so the 32px buttons in its corners are concentric with it, and a surface's corner for a video"
        }
      ],
      "example": "<div class=\"player\" role=\"group\" aria-label=\"Episode 12: Field recordings\">\n  <audio class=\"player-media\" src=\"episode-12.m4a\" controls preload=\"metadata\"></audio>\n  <div class=\"player-controls\">\n    <button type=\"button\" class=\"player-button player-play\" aria-label=\"Play\" aria-pressed=\"false\">\n      <svg class=\"icon player-off\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.633 4.7883L14.865 8.9606A1.2 1.2 0 0 1 14.865 11.0394L7.633 15.2117A1.2 1.2 0 0 1 5.8333 14.1723L5.8333 5.8277A1.2 1.2 0 0 1 7.633 4.7883Z\"/></svg>\n      <svg class=\"icon player-on\" viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"5\" y=\"3.75\" width=\"3.3333\" height=\"12.5\" rx=\"0.8\"/><rect x=\"11.6667\" y=\"3.75\" width=\"3.3333\" height=\"12.5\" rx=\"0.8\"/></svg>\n    </button>\n    <span class=\"player-elapsed\">0:00</span>\n    <input type=\"range\" class=\"slider player-seek\" min=\"0\" max=\"0\" step=\"any\" value=\"0\" aria-label=\"Seek\">\n    <span class=\"player-duration\">0:00</span>\n    <button type=\"button\" class=\"player-button player-mute\" aria-label=\"Mute\" aria-pressed=\"false\">\n      <svg class=\"icon player-off\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.6 6L4.4365 6A0.6 0.6 0 0 0 4.8378 5.846L6.9986 3.9013A0.6 0.6 0 0 1 8 4.3472L8 11.6528A0.6 0.6 0 0 1 6.9986 12.0987L4.8378 10.154A0.6 0.6 0 0 0 4.4365 10L2.6 10A0.6 0.6 0 0 1 2 9.4L2 6.6A0.6 0.6 0 0 1 2.6 6Z\"/><path d=\"M10.3333 6C11.3333 7 11.3333 9 10.3333 10\"/><path d=\"M12.3333 3.6667C14.6667 6 14.6667 10 12.3333 12.3333\"/></svg>\n      <svg class=\"icon player-on\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.6 6L4.4365 6A0.6 0.6 0 0 0 4.8378 5.846L6.9986 3.9013A0.6 0.6 0 0 1 8 4.3472L8 11.6528A0.6 0.6 0 0 1 6.9986 12.0987L4.8378 10.154A0.6 0.6 0 0 0 4.4365 10L2.6 10A0.6 0.6 0 0 1 2 9.4L2 6.6A0.6 0.6 0 0 1 2.6 6Z\"/><path d=\"M11 6.3333L14.3333 9.6667\"/><path d=\"M14.3333 6.3333L11 9.6667\"/></svg>\n    </button>\n  </div>\n</div>",
      "stylesheet": "components/player.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inset",
        "--color-surface-inverse",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-line-image",
        "--color-on-image",
        "--color-on-image-shade",
        "--color-surface-media",
        "--color-on-image-scrim",
        "--shadow-pressed",
        "--shadow-raised",
        "--radius-control-sm",
        "--radius-surface",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick",
        "--duration-base"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "transcript",
      "title": "Transcript",
      "tier": "component",
      "category": "Media",
      "description": "What a recording says, as cues that follow it as it plays.",
      "use": "Beside a player or a plain audio or video element, the words of the recording as a list of cues, each with the time it begins. The current cue is marked and kept in view, played cues turn quiet, and a cue plays from its time when it is chosen. Name the media with aria-controls; the cues are written in the page, or read by the behavior from the media's WebVTT track.",
      "instead": [
        {
          "when": "The words are shown over the picture, a line at a time",
          "use": "player"
        },
        {
          "when": "Events in time that are not spoken words",
          "use": "timeline"
        }
      ],
      "composes": [
        "scroll-area",
        "button"
      ],
      "script": "optional",
      "behavior": "transcript",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Enter the list at the time of the current cue, or of the first, and leave it again: the list is one tab stop"
        },
        {
          "keys": "ArrowDown, ArrowUp",
          "action": "Move to the time of the next or the previous cue"
        },
        {
          "keys": "Home, End",
          "action": "Move to the time of the first or the last cue"
        },
        {
          "keys": "Enter, Space",
          "action": "Play from the focused cue's time, as the native button does"
        }
      ],
      "platform": [
        {
          "feature": "The TextTrack API and a WebVTT track",
          "fallback": "Without the behavior a transcript read from a track is not written; write the cues in the page to keep them readable without script"
        },
        {
          "feature": "@starting-style and transition-behavior: allow-discrete",
          "fallback": "The button back to the current cue appears at once, without the fade"
        }
      ],
      "classes": [
        {
          "name": "transcript",
          "kind": "root",
          "description": "The transcript, beside its media. Give it an aria-label and aria-controls with the id of the player or the media element it follows"
        },
        {
          "name": "transcript-list",
          "kind": "part",
          "of": "transcript",
          "description": "The cues, on an ol, scrolling inside --transcript-height. Add scroll-area to fade its edges"
        },
        {
          "name": "transcript-cue",
          "kind": "part",
          "of": "transcript",
          "attributes": {
            "data-start": true
          },
          "description": "One cue, an li with data-start, the second it begins: its time, then its words. Quiet once played, strong on a raised sheet while current. A press anywhere on it plays from its time"
        },
        {
          "name": "transcript-time",
          "kind": "part",
          "of": "transcript",
          "elements": [
            "button"
          ],
          "description": "When the cue begins, in small tabular figures, on a button that plays from there. The list's tab stop"
        },
        {
          "name": "transcript-text",
          "kind": "part",
          "of": "transcript",
          "description": "The words of the cue"
        },
        {
          "name": "transcript-speaker",
          "kind": "part",
          "of": "transcript",
          "description": "Who speaks, over the words, when the recording has several voices"
        },
        {
          "name": "transcript-return",
          "kind": "part",
          "of": "transcript",
          "elements": [
            "button"
          ],
          "description": "Back to the current cue: a small pill button at the list's lower edge, hidden until the reader scrolls the current cue out of view"
        }
      ],
      "states": [
        {
          "on": "transcript-cue",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The cue being spoken: strong ink on a raised sheet. Every cue before it is drawn as played"
        },
        {
          "on": "transcript-return",
          "name": "hidden",
          "mark": "hidden",
          "description": "While the list follows the current cue; the behavior removes it when the reader scrolls away"
        }
      ],
      "properties": [
        {
          "name": "--transcript-height",
          "on": "transcript",
          "default": "20rem",
          "description": "The tallest the list grows before it scrolls"
        }
      ],
      "example": "<section class=\"transcript\" aria-label=\"Transcript\" aria-controls=\"episode-player\">\n  <ol class=\"transcript-list scroll-area\">\n    <li class=\"transcript-cue\" data-start=\"0.3\">\n      <button type=\"button\" class=\"transcript-time\">0:00</button>\n      <p class=\"transcript-text\">This is a short recording, made to show the player and its transcript.</p>\n    </li>\n    <li class=\"transcript-cue\" data-start=\"4.7\">\n      <button type=\"button\" class=\"transcript-time\">0:04</button>\n      <p class=\"transcript-text\">Each line of the transcript is a cue, with the time it begins.</p>\n    </li>\n  </ol>\n  <button type=\"button\" class=\"btn btn-sm btn-pill transcript-return\" hidden>Back to current</button>\n</section>",
      "stylesheet": "components/transcript.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-inset-hover",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--shadow-raised",
        "--radius-chip",
        "--radius-control",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "splitter",
      "title": "Splitter",
      "tier": "component",
      "category": "Structure",
      "description": "Two panes and the handle between them that sets how they share the space.",
      "use": "Two panes a reader resizes: a file list beside an editor, an editor over a terminal. The stylesheet draws and lays out; a script moves the handle.",
      "instead": [
        {
          "when": "The line between two sections does not move",
          "use": "divider"
        },
        {
          "when": "One region scrolls and nothing is resized",
          "use": "scroll-area"
        }
      ],
      "script": "required",
      "behavior": "splitter",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Between panes side by side, make the first pane smaller or larger by a step; the other way around from right to left"
        },
        {
          "keys": "ArrowUp, ArrowDown",
          "action": "Between stacked panes, make the first pane smaller or larger by a step"
        },
        {
          "keys": "Home, End",
          "action": "Move the handle to the least or the greatest size, its aria-valuemin or aria-valuemax"
        }
      ],
      "classes": [
        {
          "name": "splitter",
          "kind": "root",
          "description": "The container: first pane, handle, second pane, side by side or stacked by the handle's aria-orientation"
        },
        {
          "name": "splitter-pane",
          "kind": "part",
          "of": "splitter",
          "description": "A pane; it scrolls by itself"
        },
        {
          "name": "splitter-handle",
          "kind": "part",
          "of": "splitter",
          "label": true,
          "attributes": {
            "role": "separator",
            "tabindex": [
              "0",
              "-1"
            ],
            "aria-valuenow": true
          },
          "description": "The focusable role=\"separator\" between the panes: a hairline with a 9px target, 25px on touch screens. Its label names what it resizes; aria-valuenow, aria-valuemin and aria-valuemax are percentages of the first pane"
        }
      ],
      "states": [
        {
          "on": "splitter-handle",
          "name": "horizontal",
          "mark": "aria-orientation=\"horizontal\"",
          "description": "The panes stack and the handle is a horizontal line; without it the panes are side by side"
        },
        {
          "on": "splitter-handle",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The line stays a hairline and takes no pointer"
        }
      ],
      "properties": [
        {
          "name": "--splitter-size",
          "default": "50%",
          "description": "The first pane's size; the script writes it"
        },
        {
          "name": "--splitter-min",
          "default": "4rem",
          "description": "The least either pane keeps"
        }
      ],
      "example": "<div class=\"splitter\" style=\"--splitter-size: 36%\">\n  <div class=\"splitter-pane\">Files</div>\n  <div class=\"splitter-handle\" role=\"separator\" aria-orientation=\"vertical\" tabindex=\"0\" aria-label=\"Resize the file list\" aria-valuenow=\"36\" aria-valuemin=\"15\" aria-valuemax=\"85\"></div>\n  <div class=\"splitter-pane\">Editor</div>\n</div>",
      "stylesheet": "components/splitter.css",
      "tokens": [
        "--color-line-divider",
        "--color-line-strong",
        "--color-line-mark",
        "--color-focus",
        "--shadow-raised",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring"
      ]
    },
    {
      "name": "figure",
      "title": "Figure",
      "tier": "component",
      "category": "Media",
      "description": "An image or a video with its caption, finished at the edge.",
      "use": "An image, a video or a drawing in a column of text, on a figure with a figcaption. The caption says why the media is here; its alt says what it shows.",
      "instead": [
        {
          "when": "A screenshot is shown inside the frame of an application",
          "use": "window"
        },
        {
          "when": "The media comes with a title and actions",
          "use": "card"
        },
        {
          "when": "The picture is a person or a team",
          "use": "avatar"
        },
        {
          "when": "The reader may want to see the picture large, over the page",
          "use": "lightbox"
        },
        {
          "when": "Points on the picture are explained one by one",
          "use": "hotspot"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "figure",
          "kind": "root",
          "description": "The figure: media over a caption"
        },
        {
          "name": "figure-framed",
          "kind": "modifier",
          "of": "figure",
          "description": "The media rests in a tray, 4px in, with the caption inside the frame"
        },
        {
          "name": "figure-center",
          "kind": "modifier",
          "of": "figure",
          "description": "A centered, balanced caption, for a figure that stands alone in a column of text"
        },
        {
          "name": "figure-media",
          "kind": "part",
          "of": "figure",
          "description": "The img, video, svg or any block, with a surface's corner and a hairline ring inside its edge"
        },
        {
          "name": "figure-caption",
          "kind": "part",
          "of": "figure",
          "description": "The caption, small and muted under the media"
        }
      ],
      "properties": [
        {
          "name": "--figure-radius",
          "default": "var(--radius-surface)",
          "description": "The media's corner"
        },
        {
          "name": "--figure-ratio",
          "on": "figure-media",
          "description": "The media's aspect ratio, held before it loads; the media then covers that shape. Without it the media keeps its own proportions"
        }
      ],
      "example": "<figure class=\"figure\">\n  <img class=\"figure-media\" src=\"moonstone.jpg\" alt=\"A pale stone with a band of light across it\" width=\"720\" height=\"480\">\n  <figcaption class=\"figure-caption\">Moonstone under a north light, the stone the light theme is named for.</figcaption>\n</figure>",
      "stylesheet": "components/figure.css",
      "tokens": [
        "--color-surface-tray",
        "--color-surface-inset",
        "--color-line-hair",
        "--color-text-muted",
        "--color-shade-2",
        "--color-line-image-strong",
        "--shadow-raised",
        "--radius-surface"
      ],
      "mixins": []
    },
    {
      "name": "compare",
      "title": "Compare",
      "tier": "component",
      "category": "Media",
      "description": "Two pictures of the same thing, and a handle that draws the line between them.",
      "use": "Two pictures of the same framing that a reader compares by moving a line: before and after an edit, light and dark, a draft and its revision.",
      "instead": [
        {
          "when": "There is one picture, with or without a caption",
          "use": "figure"
        },
        {
          "when": "The handle sets a value and no pictures are compared",
          "use": "slider"
        },
        {
          "when": "There are more than two pictures, seen one after another",
          "use": "carousel"
        }
      ],
      "script": "required",
      "behavior": "compare",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the line by a step, as the native range input does"
        },
        {
          "keys": "Home, End",
          "action": "Show one picture whole"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations: view-timeline on the thumb of the input and timeline-scope on the frame",
          "fallback": "The script copies the input's value into --compare-position. Without the script the handle moves and the pictures stay parted where --compare-position puts them"
        }
      ],
      "classes": [
        {
          "name": "compare",
          "kind": "root",
          "description": "The frame: it stacks the two pictures, draws the line and takes a surface's corner"
        },
        {
          "name": "compare-before",
          "kind": "part",
          "of": "compare",
          "description": "The picture underneath, shown from the start to the line"
        },
        {
          "name": "compare-after",
          "kind": "part",
          "of": "compare",
          "description": "The picture on top, clipped at the line and shown from the line to the end"
        },
        {
          "name": "compare-range",
          "kind": "part",
          "of": "compare",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "range"
          },
          "label": true,
          "description": "The handle: a range input across the frame with no track and a grip for a thumb. Name it for what moving it does"
        }
      ],
      "states": [
        {
          "on": "compare-range",
          "name": "disabled",
          "mark": ":disabled",
          "description": "The handle does not move: the grip does not swell when pressed and the cursor does not offer a drag"
        }
      ],
      "properties": [
        {
          "name": "--compare-position",
          "description": "Where the line stands, from the start, as a percentage. It is registered with an initial value of 50%; the stylesheet or the script sets it from the handle"
        },
        {
          "name": "--compare-radius",
          "default": "var(--radius-surface)",
          "description": "Corner of the frame; lower it to nest the frame in a card"
        },
        {
          "name": "--compare-grip",
          "default": "2rem",
          "description": "Size of the grip; on a coarse pointer the handle around it is at least 2.75rem tall"
        }
      ],
      "example": "<figure class=\"compare\">\n  <img class=\"compare-before\" src=\"/photos/valley-raw.jpg\" alt=\"The valley before grading: grey and flat\" width=\"800\" height=\"500\">\n  <img class=\"compare-after\" src=\"/photos/valley-graded.jpg\" alt=\"The valley after grading: warm light on the ridge\">\n  <input type=\"range\" class=\"compare-range\" min=\"0\" max=\"100\" value=\"50\" aria-label=\"Show more of the graded picture\">\n</figure>",
      "stylesheet": "components/compare.css",
      "tokens": [
        "--color-surface-chip",
        "--color-focus",
        "--color-thumb-high",
        "--color-thumb-low",
        "--color-line-image",
        "--color-on-image",
        "--color-on-image-shade",
        "--radius-surface",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": []
    },
    {
      "name": "cropper",
      "title": "Cropper",
      "tier": "component",
      "category": "Media",
      "description": "A picture with a box over it that says what to keep.",
      "use": "A reader chooses the part of a picture to keep: a photo cropped before it is posted, a cover trimmed to a banner's proportions, an avatar framed in a circle. The value is a rectangle in the picture's own pixels; cutting the picture is the application's.",
      "instead": [
        {
          "when": "The picture is shown, not cropped",
          "use": "figure"
        },
        {
          "when": "Two versions of one picture are compared",
          "use": "compare"
        },
        {
          "when": "A picture is opened large to look at",
          "use": "lightbox"
        }
      ],
      "script": "required",
      "behavior": "cropper",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight, ArrowUp, ArrowDown",
          "action": "Move the crop by a step of the picture's pixels, a hundredth of its longer side by default; ten steps with Shift"
        },
        {
          "keys": "Alt + ArrowRight, Alt + ArrowDown",
          "action": "Make the crop wider or taller from its far edge, both at a ratio; on a panned cropper, zoom out"
        },
        {
          "keys": "Alt + ArrowLeft, Alt + ArrowUp",
          "action": "Make the crop narrower or shorter from its far edge, both at a ratio; on a panned cropper, zoom in"
        },
        {
          "keys": "+, -",
          "action": "On a panned cropper, zoom in or out about the middle of the box"
        }
      ],
      "platform": [
        {
          "feature": "Size container queries on the box",
          "fallback": "The handles of the edges stay on a box too small to hold them apart from the corners; the corners are still on top"
        },
        {
          "feature": "corner-shape on the frame, through --corner-shape",
          "fallback": "A circular corner"
        }
      ],
      "classes": [
        {
          "name": "cropper",
          "kind": "root",
          "description": "The frame: a well that holds the picture --cropper-inset in from its edge, and the box over it. The whole frame takes the pointer"
        },
        {
          "name": "cropper-pan",
          "kind": "modifier",
          "of": "cropper",
          "description": "The box stays in the middle of the frame, at the proportions of --cropper-ratio, and the picture pans and zooms under it"
        },
        {
          "name": "cropper-round",
          "kind": "modifier",
          "of": "cropper",
          "description": "The box is a circle, or an ellipse inside a box that is not square: for an avatar"
        },
        {
          "name": "cropper-image",
          "kind": "part",
          "of": "cropper",
          "elements": [
            "img"
          ],
          "attributes": {
            "width": true,
            "height": true
          },
          "description": "The picture. Its width and height are the file's own size in pixels: the crop is counted in them"
        },
        {
          "name": "cropper-box",
          "kind": "part",
          "of": "cropper",
          "attributes": {
            "role": "application",
            "tabindex": [
              "0",
              "-1"
            ]
          },
          "label": true,
          "description": "The crop: one tab stop that the arrow keys move and size, placed from the four properties. It dims the picture outside it and shows the rule of thirds while it is held or keyed"
        },
        {
          "name": "cropper-handle",
          "kind": "part",
          "of": "cropper",
          "description": "A handle a pointer drags: a 24px target, 44px on a coarse pointer, with a pearl pill on an edge and a pearl disc on a corner. Its modifiers name the edges it moves"
        },
        {
          "name": "cropper-handle-top",
          "kind": "modifier",
          "of": "cropper-handle",
          "exclusive": "block",
          "description": "The handle moves the top edge"
        },
        {
          "name": "cropper-handle-bottom",
          "kind": "modifier",
          "of": "cropper-handle",
          "exclusive": "block",
          "description": "The handle moves the bottom edge"
        },
        {
          "name": "cropper-handle-left",
          "kind": "modifier",
          "of": "cropper-handle",
          "exclusive": "inline",
          "description": "The handle moves the left edge"
        },
        {
          "name": "cropper-handle-right",
          "kind": "modifier",
          "of": "cropper-handle",
          "exclusive": "inline",
          "description": "The handle moves the right edge"
        },
        {
          "name": "cropper-status",
          "kind": "part",
          "of": "cropper",
          "attributes": {
            "role": "status"
          },
          "description": "A polite live region, hidden but read: the script writes the crop's size into it after each change"
        }
      ],
      "states": [
        {
          "on": "cropper",
          "name": "held",
          "mark": ":active",
          "description": "While the box, a handle or the panned picture is held, the rule of thirds shows"
        },
        {
          "on": "cropper-box",
          "name": "focused",
          "mark": ":focus-visible",
          "description": "A white ring outside the box, and the rule of thirds"
        },
        {
          "on": "cropper-box",
          "name": "disabled",
          "mark": "aria-disabled=\"true\"",
          "description": "The handles leave and the crop takes no pointer and no key"
        }
      ],
      "properties": [
        {
          "name": "--cropper-x",
          "default": "0",
          "description": "The crop's left edge, as a share of the picture's width from 0 to 1; the script writes it"
        },
        {
          "name": "--cropper-y",
          "default": "0",
          "description": "The crop's top edge, as a share of the picture's height"
        },
        {
          "name": "--cropper-width",
          "default": "1",
          "description": "The crop's width, as a share of the picture's width"
        },
        {
          "name": "--cropper-height",
          "default": "1",
          "description": "The crop's height, as a share of the picture's height"
        },
        {
          "name": "--cropper-ratio",
          "default": "1",
          "description": "Width over height of a panned box. The script writes the ratio it keeps here, and reads one written in markup"
        },
        {
          "name": "--cropper-inset",
          "default": "1rem",
          "description": "The room between the picture and the frame: 1.375rem on a coarse pointer, so a handle on the picture's edge stays whole, and 1.5rem around a panned box"
        },
        {
          "name": "--cropper-radius",
          "default": "var(--radius-surface)",
          "description": "Corner of the frame"
        },
        {
          "name": "--cropper-target",
          "default": "1.5rem",
          "description": "The size of a handle's target; 2.75rem on a coarse pointer. The mark drawn in it keeps its size"
        }
      ],
      "example": "<div class=\"cropper\" style=\"--cropper-x: .1; --cropper-y: .1; --cropper-width: .8; --cropper-height: .8\">\n  <img class=\"cropper-image\" src=\"/photos/harbor.jpg\" alt=\"The harbor at dusk\" width=\"1600\" height=\"1200\">\n  <div class=\"cropper-box\" role=\"application\" aria-roledescription=\"crop box\" tabindex=\"0\" aria-label=\"Crop the photo\">\n    <span class=\"cropper-handle cropper-handle-top cropper-handle-left\"></span>\n    <span class=\"cropper-handle cropper-handle-top\"></span>\n    <span class=\"cropper-handle cropper-handle-top cropper-handle-right\"></span>\n    <span class=\"cropper-handle cropper-handle-right\"></span>\n    <span class=\"cropper-handle cropper-handle-bottom cropper-handle-right\"></span>\n    <span class=\"cropper-handle cropper-handle-bottom\"></span>\n    <span class=\"cropper-handle cropper-handle-bottom cropper-handle-left\"></span>\n    <span class=\"cropper-handle cropper-handle-left\"></span>\n  </div>\n  <p class=\"cropper-status\" role=\"status\"></p>\n</div>",
      "stylesheet": "components/cropper.css",
      "tokens": [
        "--color-surface-inset",
        "--color-focus",
        "--color-line-image",
        "--color-line-image-strong",
        "--color-on-image",
        "--color-on-image-shade",
        "--color-image-dim",
        "--shadow-pressed",
        "--radius-surface",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-thumb"
      ]
    },
    {
      "name": "quote",
      "title": "Quote",
      "tier": "component",
      "category": "Typography",
      "description": "Words that belong to someone else, set apart from yours.",
      "use": "A quotation set apart from the text, on a blockquote, with its source under it. Use one pull quote on a page and keep it to a sentence or two.",
      "instead": [
        {
          "when": "The words are one turn of a conversation",
          "use": "message"
        },
        {
          "when": "A sentence points at its source with a number",
          "use": "citation"
        },
        {
          "when": "A phrase of your own text is highlighted",
          "use": "mark"
        }
      ],
      "composes": [
        "avatar"
      ],
      "script": "none",
      "classes": [
        {
          "name": "quote",
          "kind": "root",
          "description": "The quotation, hung from a 2px rail at its start"
        },
        {
          "name": "quote-lg",
          "kind": "modifier",
          "of": "quote",
          "description": "A pull quote: larger words with balanced lines under an opening mark instead of the rail"
        },
        {
          "name": "quote-body",
          "kind": "part",
          "of": "quote",
          "elements": [
            "blockquote"
          ],
          "description": "The blockquote of a quote that has a source: the quote is then a figure, and the source follows this part in a figcaption, outside the quoted words"
        },
        {
          "name": "quote-text",
          "kind": "part",
          "of": "quote",
          "description": "A paragraph of the quotation"
        },
        {
          "name": "quote-source",
          "kind": "part",
          "of": "quote",
          "description": "Who said it and where: an optional avatar beside a name and a muted line"
        },
        {
          "name": "quote-name",
          "kind": "part",
          "of": "quote",
          "description": "The name, in strong ink on its own line"
        }
      ],
      "example": "<figure class=\"quote\">\n  <blockquote class=\"quote-body\">\n    <p class=\"quote-text\">Good tools make the next step clear and leave room for the work.</p>\n  </blockquote>\n  <figcaption class=\"quote-source\">\n    <span><span class=\"quote-name\">Alex Morgan</span>Design lead, Atlas</span>\n  </figcaption>\n</figure>",
      "stylesheet": "components/quote.css",
      "tokens": [
        "--color-line-strong",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "message",
      "title": "Message",
      "tier": "component",
      "category": "Content",
      "description": "One turn of a conversation, as a bubble that points at its author.",
      "use": "The turns of a chat or a thread, in any list. A received turn stands at the start of the row; a sent one stands at the end in ink.",
      "instead": [
        {
          "when": "The words are quoted in an article, not said in a conversation",
          "use": "quote"
        },
        {
          "when": "The notice comes from the page itself, not from a person",
          "use": "alert"
        },
        {
          "when": "It is the field where the next message is written",
          "use": "composer"
        },
        {
          "when": "It is a discussion in which any comment can be answered, not a conversation in turns",
          "use": "thread"
        }
      ],
      "composes": [
        "avatar"
      ],
      "script": "none",
      "classes": [
        {
          "name": "message",
          "kind": "root",
          "description": "A received turn, at the start of the row. It stands 12px from the turn before it and 4px when both come from the same side"
        },
        {
          "name": "message-sent",
          "kind": "modifier",
          "of": "message",
          "description": "A turn of your own: the row mirrors and the bubble is ink"
        },
        {
          "name": "message-avatar",
          "kind": "part",
          "of": "message",
          "description": "The author's avatar, level with the foot of the bubble; it goes on the avatar itself and may be left out"
        },
        {
          "name": "message-bubble",
          "kind": "part",
          "of": "message",
          "description": "The words, in a bubble whose tight corner points at the author"
        },
        {
          "name": "message-meta",
          "kind": "part",
          "of": "message",
          "description": "A name, a time or a receipt under the bubble"
        },
        {
          "name": "message-typing",
          "kind": "part",
          "of": "message",
          "description": "Three dots that rise in turn, inside a bubble that carries role=\"status\" and the words, such as \"Ada is typing\", in a visually hidden span"
        }
      ],
      "properties": [
        {
          "name": "--message-radius",
          "default": "1.125rem",
          "description": "A bubble's corner"
        },
        {
          "name": "--message-tail",
          "default": ".375rem",
          "description": "The corner that points at the author"
        }
      ],
      "example": "<ol class=\"m(0) p(0)\">\n  <li class=\"message\">\n    <span class=\"avatar avatar-sm message-avatar\"><img class=\"avatar-image\" src=\"/people/ada.jpg\" alt=\"Ada\"></span>\n    <div class=\"message-bubble\">Did the build for the docs site finish?</div>\n  </li>\n  <li class=\"message message-sent\">\n    <div class=\"message-bubble\">Yes, a minute ago. 71 pages, no warnings.</div>\n    <span class=\"message-meta\">Delivered · 14:02</span>\n  </li>\n</ol>",
      "stylesheet": "components/message.css",
      "tokens": [
        "--color-surface-raised",
        "--color-surface-inverse",
        "--color-text-strong",
        "--color-text-muted",
        "--color-text-inverse",
        "--color-shade-1",
        "--color-shade-2",
        "--color-shade-3",
        "--color-ink-highlight",
        "--color-ink-edge",
        "--shadow-raised",
        "--easing-glide"
      ],
      "mixins": [
        "--surface-sheet",
        "--surface-ink",
        "--on-ink"
      ]
    },
    {
      "name": "thread",
      "title": "Thread",
      "tier": "component",
      "category": "Content",
      "description": "Comments and their replies, each joined by a line to the comment it answers.",
      "use": "A discussion under something: comments on a document, a review, an issue. Replies nest in a list inside the comment they answer, and a hairline runs from its avatar into each of them. Use the default avatar for a comment and avatar-sm for a reply, and keep nesting to two or three levels.",
      "instead": [
        {
          "when": "It is a conversation in turns between two sides, as in a chat",
          "use": "message"
        },
        {
          "when": "The entries are events in time and nobody answers anybody",
          "use": "timeline"
        },
        {
          "when": "The rows are things with no order and no replies",
          "use": "list"
        }
      ],
      "composes": [
        "avatar"
      ],
      "script": "none",
      "classes": [
        {
          "name": "thread",
          "kind": "root",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The list of comments, 20px apart"
        },
        {
          "name": "thread-item",
          "kind": "part",
          "of": "thread",
          "elements": [
            "li"
          ],
          "description": "One comment: its avatar on a column, its words beside it and its replies under the words"
        },
        {
          "name": "thread-avatar",
          "kind": "part",
          "of": "thread",
          "description": "The avatar's column, around an avatar; under the avatar the line begins when replies follow"
        },
        {
          "name": "thread-body",
          "kind": "part",
          "of": "thread",
          "description": "The words: a thread-header and the thread-text under it. The first line is level with the middle of the avatar"
        },
        {
          "name": "thread-header",
          "kind": "part",
          "of": "thread",
          "description": "The first line of the body: the author, and the time beside the name"
        },
        {
          "name": "thread-text",
          "kind": "part",
          "of": "thread",
          "description": "What they wrote, in the body under the header; several paragraphs stand 8px apart"
        },
        {
          "name": "thread-author",
          "kind": "part",
          "of": "thread",
          "description": "Who wrote it, in strong ink"
        },
        {
          "name": "thread-meta",
          "kind": "part",
          "of": "thread",
          "description": "When, and anything else said quietly beside the name"
        },
        {
          "name": "thread-replies",
          "kind": "part",
          "of": "thread",
          "elements": [
            "ol",
            "ul"
          ],
          "description": "The list of replies inside a thread-item, after its body; each reply is a thread-item joined to the comment by an elbow of the line"
        }
      ],
      "properties": [
        {
          "name": "--thread-avatar",
          "default": "2rem",
          "description": "Size of a comment's avatar; replies use 1.5rem"
        },
        {
          "name": "--thread-gap",
          "default": ".75rem",
          "description": "Space between an avatar and its words"
        },
        {
          "name": "--thread-space",
          "default": "1.25rem",
          "description": "Space between comments; replies stand .875rem apart"
        }
      ],
      "example": "<ol class=\"thread\">\n  <li class=\"thread-item\">\n    <span class=\"thread-avatar\"><span class=\"avatar\">AL</span></span>\n    <div class=\"thread-body\">\n      <p class=\"thread-header\"><span class=\"thread-author\">Ada Lovelace</span> <time class=\"thread-meta\" datetime=\"2026-11-12T09:12Z\">2h</time></p>\n      <p class=\"thread-text\">Should the focus ring move to the group?</p>\n    </div>\n    <ol class=\"thread-replies\">\n      <li class=\"thread-item\">\n        <span class=\"thread-avatar\"><span class=\"avatar avatar-sm\">AT</span></span>\n        <div class=\"thread-body\">\n          <p class=\"thread-header\"><span class=\"thread-author\">Alan Turing</span> <time class=\"thread-meta\" datetime=\"2026-11-12T10:05Z\">1h</time></p>\n          <p class=\"thread-text\">Yes. The group already has the corner.</p>\n        </div>\n      </li>\n    </ol>\n  </li>\n</ol>",
      "stylesheet": "components/thread.css",
      "tokens": [
        "--color-line-divider",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "reaction",
      "title": "Reaction",
      "tier": "component",
      "category": "Content",
      "description": "Emoji answers to a message, each with its count, that a press adds to.",
      "use": "The short answers readers leave under a message, a comment or a post: a thumbs up, a heart. Each reaction is a label around a native checkbox, so a press adds the reader's own and a second press takes it back; the count follows with no script.",
      "instead": [
        {
          "when": "The reader moves one score up or down instead of choosing among emoji",
          "use": "vote"
        },
        {
          "when": "The reader picks one answer to a question and sees how the votes fell",
          "use": "poll"
        },
        {
          "when": "The pill filters a list instead of answering a message",
          "use": "chip"
        },
        {
          "when": "The count only describes something and cannot be added to",
          "use": "badge"
        }
      ],
      "composes": [
        "popover"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Space",
          "action": "Adds or takes back the reader's reaction, as the native checkbox does"
        },
        {
          "keys": "Enter, Space",
          "action": "On reaction-add: opens the emoji picker, as a popover's button does"
        }
      ],
      "platform": [
        {
          "feature": "text-box: trim-both cap alphabetic on the count",
          "fallback": "Flex centres the count's line instead of its figures, which then stand within half a pixel of the middle"
        }
      ],
      "classes": [
        {
          "name": "reaction-group",
          "kind": "root",
          "description": "The row of reactions, on an element with role=\"group\" and a name. It wraps; under a message it stands where the bubble does, and in a thread under the words"
        },
        {
          "name": "reaction",
          "kind": "root",
          "elements": [
            "label"
          ],
          "description": "One reaction: a 28px pill around a reaction-input, an emoji and a count. Set --count to the reactions of everyone but the reader"
        },
        {
          "name": "reaction-input",
          "kind": "part",
          "of": "reaction",
          "elements": [
            "input"
          ],
          "attributes": {
            "type": "checkbox"
          },
          "label": true,
          "description": "The checkbox that holds the reader's own reaction. It covers the pill invisibly; name it with the emoji and the others' count, such as \"Thumbs up, 3 others\""
        },
        {
          "name": "reaction-emoji",
          "kind": "part",
          "of": "reaction",
          "anywhere": true,
          "description": "The emoji: a character in a span, or a picture with the class on the img. Hide it from assistive technology when the input is named. Also the emoji of a picker's button"
        },
        {
          "name": "reaction-count",
          "kind": "part",
          "of": "reaction",
          "description": "The count, written by the counter when the element is empty: --count, and one more while the reader's reaction is given. Text inside it, such as 1.2k, is shown instead"
        },
        {
          "name": "reaction-add",
          "kind": "part",
          "of": "reaction-group",
          "elements": [
            "button"
          ],
          "label": true,
          "description": "A round button at the end of the row, with a face and a plus, that opens the page's emoji picker; it stays sunk while a popover right after it is open"
        }
      ],
      "states": [
        {
          "on": "reaction-input",
          "name": "checked",
          "mark": ":checked",
          "description": "The reader's reaction is given: an ink hairline, a faint tint of ink, the count in strong ink and one more"
        },
        {
          "on": "reaction-input",
          "name": "disabled",
          "mark": "disabled",
          "description": "The pill takes disabled ink and stops answering the pointer"
        },
        {
          "on": "reaction-add",
          "name": "open",
          "mark": ":popover-open",
          "description": "On a popover right after the button: the button stays sunk into a well"
        }
      ],
      "properties": [
        {
          "name": "--count",
          "on": "reaction",
          "default": "0",
          "description": "How many others gave this reaction; the reader's own is added while the box is checked"
        }
      ],
      "example": "<div class=\"reaction-group\" role=\"group\" aria-label=\"Reactions\">\n  <label class=\"reaction\" style=\"--count: 3\">\n    <input type=\"checkbox\" class=\"reaction-input\" name=\"reaction\" value=\"👍\" aria-label=\"Thumbs up, 3 others\" checked>\n    <span class=\"reaction-emoji\" aria-hidden=\"true\">👍</span>\n    <span class=\"reaction-count\" aria-hidden=\"true\"></span>\n  </label>\n  <label class=\"reaction\" style=\"--count: 2\">\n    <input type=\"checkbox\" class=\"reaction-input\" name=\"reaction\" value=\"🎉\" aria-label=\"Party popper, 2 others\">\n    <span class=\"reaction-emoji\" aria-hidden=\"true\">🎉</span>\n    <span class=\"reaction-count\" aria-hidden=\"true\"></span>\n  </label>\n</div>",
      "stylesheet": "components/reaction.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-line-contour",
        "--color-line-mark",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--shadow-pressed",
        "--shadow-flat",
        "--font-weight-control",
        "--easing-glide",
        "--duration-press",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring",
        "--touch-target",
        "--touch-target-block"
      ]
    },
    {
      "name": "avatar",
      "title": "Avatar",
      "tier": "component",
      "category": "Content",
      "description": "A person or a team as a photo or initials, alone or stacked.",
      "use": "A person, a team or a project shown as a photo, or as one or two initials when there is no photo. The box keeps the same size either way. Where the photo may fail to load, put an avatar-fallback under it and attach the avatar behavior, which shows the fallback instead of a broken image.",
      "instead": [
        {
          "when": "The picture is a symbol, not someone",
          "use": "icon"
        },
        {
          "when": "The person is named inside a sentence",
          "use": "mention"
        }
      ],
      "composes": [
        "icon"
      ],
      "script": "optional",
      "classes": [
        {
          "name": "avatar",
          "kind": "root",
          "description": "The circle, 32px; it holds initials or an avatar-image. Initials need role=\"img\" and aria-label with the name"
        },
        {
          "name": "avatar-image",
          "kind": "part",
          "of": "avatar",
          "description": "The photo, cropped to the circle; its alt is the person's name"
        },
        {
          "name": "avatar-xs",
          "kind": "modifier",
          "of": "avatar",
          "exclusive": "size",
          "description": "20px; the default is 32px"
        },
        {
          "name": "avatar-sm",
          "kind": "modifier",
          "of": "avatar",
          "exclusive": "size",
          "description": "24px; the default is 32px"
        },
        {
          "name": "avatar-lg",
          "kind": "modifier",
          "of": "avatar",
          "exclusive": "size",
          "description": "40px; the default is 32px"
        },
        {
          "name": "avatar-xl",
          "kind": "modifier",
          "of": "avatar",
          "exclusive": "size",
          "description": "56px; the default is 32px"
        },
        {
          "name": "avatar-square",
          "kind": "modifier",
          "of": "avatar",
          "description": "A rounded square with a corner a quarter of its size, for a team, a project or an organization"
        },
        {
          "name": "avatar-fallback",
          "kind": "part",
          "of": "avatar",
          "description": "Initials or an icon in the same cell as the avatar-image, shown until the photo loads and again if it fails. Hide it with aria-hidden and name the avatar with role=\"img\" and aria-label; give the photo an empty alt"
        },
        {
          "name": "avatar-status",
          "kind": "part",
          "of": "avatar",
          "description": "A presence dot on the lower end of the circle, cut out by a ring of the surface behind it; say the status in the accessible name as well"
        },
        {
          "name": "avatar-badge",
          "kind": "part",
          "of": "avatar",
          "description": "A picture on the lower end corner that says what someone is (verified, a company, a team): two fifths of the avatar, cut out by a ring of the surface behind it, round or, on avatar-square, a rounded square. An icon goes inside, or it is the image itself. Say what it means in the avatar's name, and never put it beside an avatar-status"
        },
        {
          "name": "avatar-group",
          "kind": "root",
          "description": "A stack: each avatar overlaps the one before it by a quarter of its size, separated by a 2px ring of the surface color"
        }
      ],
      "properties": [
        {
          "name": "--avatar-size",
          "default": "2rem",
          "description": "Diameter"
        },
        {
          "name": "--avatar-ring",
          "description": "Color of the ring around a stacked avatar and a status dot. It is not declared: it falls back to --surface-color, then to --color-surface-base"
        },
        {
          "name": "--avatar-status",
          "on": "avatar-status",
          "description": "Color of the status dot. It is not declared: it falls back to --color-success"
        },
        {
          "name": "--avatar-badge-size",
          "on": "avatar-badge",
          "default": "max(.75rem, calc(var(--avatar-size) * .4))",
          "description": "The size of the corner badge"
        }
      ],
      "example": "<span class=\"avatar\"><img class=\"avatar-image\" src=\"/people/ada-lovelace.jpg\" alt=\"Ada Lovelace\"></span>\n<span class=\"avatar\" role=\"img\" aria-label=\"Grace Hopper\">GH</span>\n<span class=\"avatar\" role=\"img\" aria-label=\"Alan Turing\">\n  <img class=\"avatar-image\" src=\"/people/alan-turing.jpg\" alt=\"\">\n  <span class=\"avatar-fallback\" aria-hidden=\"true\">AT</span>\n</span>",
      "behavior": "avatar",
      "states": [
        {
          "on": "avatar-image",
          "name": "failed",
          "mark": "hidden",
          "description": "The photo failed or has no source; the avatar behavior hides it and the fallback shows"
        },
        {
          "on": "avatar-fallback",
          "name": "loaded",
          "mark": "hidden",
          "description": "The photo has loaded; the avatar behavior hides the fallback under it"
        }
      ],
      "stylesheet": "components/avatar.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-chip",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-line-image-strong",
        "--color-success",
        "--font-weight-control"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "badge",
      "title": "Badge",
      "tier": "component",
      "category": "Content",
      "description": "A small chip for a status, a category or a count.",
      "use": "A label that is read and not operated: a status, a category, a version, a count. Neutral badges carry most labels; a tone appears only with a status, beside words that say the same thing, and badge-category only with the name of a category. A compound badge holds a smaller badge and a short message in one capsule, such as an announcement over a hero.",
      "instead": [
        {
          "when": "It is a filter that can be chosen or a value that can be removed",
          "use": "chip"
        },
        {
          "when": "The status is a message about the page, with a sentence to read",
          "use": "alert"
        },
        {
          "when": "The pill names a value that can be removed or chosen, with a picture or a count",
          "use": "chip"
        }
      ],
      "composes": [
        "icon",
        "avatar",
        "category"
      ],
      "script": "none",
      "classes": [
        {
          "name": "badge",
          "kind": "root",
          "description": "A neutral chip, 22px tall"
        },
        {
          "name": "badge-sm",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "size",
          "description": "18px tall; the default is 22px"
        },
        {
          "name": "badge-lg",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "size",
          "description": "26px tall; the default is 22px"
        },
        {
          "name": "badge-pill",
          "kind": "modifier",
          "of": "badge",
          "description": "Fully rounded ends"
        },
        {
          "name": "badge-outline",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "face",
          "description": "A contour only, with no fill"
        },
        {
          "name": "badge-raised",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "face",
          "description": "A small raised sheet, for a badge that sits on a busy surface"
        },
        {
          "name": "badge-ink",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "face",
          "description": "Solid ink with inverse text"
        },
        {
          "name": "badge-category",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "tone",
          "description": "The surface, text and line of the category set by a category-<name> class on it or around it; with badge-dot the dot is the category's mark. Neutral without a category. Never with a status tone"
        },
        {
          "name": "badge-info",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "tone",
          "description": "A wash of the info hue"
        },
        {
          "name": "badge-success",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "tone",
          "description": "A wash of the success hue"
        },
        {
          "name": "badge-warning",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "tone",
          "description": "A wash of the warning hue"
        },
        {
          "name": "badge-danger",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "tone",
          "description": "A wash of the danger hue"
        },
        {
          "name": "badge-dot",
          "kind": "modifier",
          "of": "badge",
          "description": "A leading 6px dot in the badge's tone"
        },
        {
          "name": "badge-live",
          "kind": "modifier",
          "of": "badge",
          "description": "With badge-dot: the dot sends out a ring, for something happening now. With reduced motion it is a plain dot"
        },
        {
          "name": "badge-corner",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "size",
          "description": "A count on the corner of its nearest positioned parent, cut out by a ring of the surface it sits on. Describe the count in the parent's accessible name"
        },
        {
          "name": "badge-compound",
          "kind": "modifier",
          "of": "badge",
          "exclusive": "size",
          "description": "A 28px capsule that holds a badge-addon and a message; its corner is the addon's plus the inset. As a link, the whole capsule is one target"
        },
        {
          "name": "badge-label",
          "kind": "part",
          "of": "badge",
          "description": "Words that may be long: they shrink and end in an ellipsis while a picture, a dot or a count keeps its size"
        },
        {
          "name": "badge-media",
          "kind": "part",
          "of": "badge",
          "description": "A round picture at the start, the badge's height less two insets: holds an avatar or an icon, which it sizes"
        },
        {
          "name": "badge-addon",
          "kind": "part",
          "of": "badge",
          "description": "The smaller raised badge inside a badge-compound, at its start or its end; its corner is the outer corner less the inset"
        }
      ],
      "properties": [
        {
          "name": "--badge-ring",
          "description": "Color of the ring around a badge-corner. It is not declared: it falls back to --surface-color, then to --color-surface-base"
        },
        {
          "name": "--badge-inset",
          "default": ".1875rem",
          "description": "How far a badge-media or a badge-addon stands in from the badge's edge"
        }
      ],
      "example": "<span class=\"badge badge-success badge-dot\">Published</span>\n<span class=\"badge badge-category badge-dot category-teal\">Design system</span>",
      "stylesheet": "components/badge.css",
      "tokens": [
        "--color-surface-base",
        "--color-surface-raised",
        "--color-surface-chip",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-inverse",
        "--color-ink-highlight",
        "--color-ink-edge",
        "--color-info",
        "--color-success",
        "--color-warning",
        "--color-danger",
        "--shadow-raised",
        "--shadow-raised-hover",
        "--radius-chip",
        "--font-weight-control",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--surface-sheet",
        "--focus-ring",
        "--touch-target"
      ]
    },
    {
      "name": "heading",
      "title": "Heading",
      "tier": "component",
      "category": "Typography",
      "description": "A title in the ink of the page, with the line over it and the paragraph under it.",
      "use": "The title of a page, a section or a panel. The class sets the look and the element sets the level: pick the size by the heading's place on the page and h1 to h6 by its place in the outline.",
      "instead": [
        {
          "when": "The title belongs to a card",
          "use": "card"
        },
        {
          "when": "The large words are someone else's",
          "use": "quote"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "text-wrap: balance on a heading and text-wrap: pretty on a lead",
          "fallback": "The text wraps as usual"
        }
      ],
      "classes": [
        {
          "name": "heading",
          "kind": "root",
          "description": "A title at 1.25rem: strong ink, a light medium weight, balanced lines"
        },
        {
          "name": "heading-xs",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "0.9375rem, for a group of links or a dense panel"
        },
        {
          "name": "heading-sm",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "1.0625rem, for a card or a bar"
        },
        {
          "name": "heading-lg",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "1.5rem, for a section"
        },
        {
          "name": "heading-xl",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "1.625 to 2rem by the width of its container, for a page's title in an application"
        },
        {
          "name": "heading-2xl",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "2 to 2.5rem by the width of its container, for a page's title or a section of a landing page"
        },
        {
          "name": "heading-display",
          "kind": "modifier",
          "of": "heading",
          "exclusive": "size",
          "description": "2.5 to 4.25rem by the width of its container, for the one title of a landing page"
        },
        {
          "name": "eyebrow",
          "kind": "root",
          "description": "A small uppercase line over a heading that says what kind of thing follows; a p, not a heading"
        },
        {
          "name": "lead",
          "kind": "root",
          "description": "The paragraph under a heading, at 1.125rem, wrapped without a last line of one word"
        },
        {
          "name": "lead-sm",
          "kind": "modifier",
          "of": "lead",
          "exclusive": "size",
          "description": "1rem, for a card or a narrow column"
        },
        {
          "name": "lead-lg",
          "kind": "modifier",
          "of": "lead",
          "exclusive": "size",
          "description": "1.25rem, under a display heading"
        }
      ],
      "properties": [
        {
          "name": "--heading-size",
          "default": "1.25rem",
          "description": "Font size"
        },
        {
          "name": "--heading-leading",
          "default": "1.3",
          "description": "Line height"
        },
        {
          "name": "--heading-tracking",
          "default": "-.012em",
          "description": "Letter spacing"
        }
      ],
      "example": "<header>\n  <p class=\"eyebrow\">Changelog</p>\n  <h1 class=\"heading heading-2xl\">Faster cold builds, and comments on previews</h1>\n  <p class=\"lead\">Dependency caches are restored before the install step.</p>\n</header>",
      "stylesheet": "components/heading.css",
      "tokens": [
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "code",
      "title": "Code",
      "tier": "component",
      "category": "Typography",
      "description": "Literal text in the mono face, inline or as a block.",
      "use": "What a reader types as text or reads from a program: a command, a value, a file name, a listing. Inline it is a chip in the line; as a block it is a well that scrolls sideways. The stylesheet does not highlight syntax.",
      "instead": [
        {
          "when": "It is a key to press, not text to type",
          "use": "kbd"
        }
      ],
      "composes": [
        "button",
        "icon"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "Scroll a block that carries tabindex=\"0\", as any scroll container does"
        }
      ],
      "classes": [
        {
          "name": "code",
          "kind": "root",
          "description": "Inline code, on a <code>: a small chip in the line"
        },
        {
          "name": "code-block",
          "kind": "root",
          "description": "A block of code, on a <pre>: a well whose lines keep their breaks and scroll sideways. Give it tabindex=\"0\" when a line can be longer than the block"
        },
        {
          "name": "code-line",
          "kind": "part",
          "of": "code-block",
          "description": "One line of a block, on a <code> or a <span>. With lines marked, the block lays them out as a grid and each is as wide as the longest"
        },
        {
          "name": "code-line-highlight",
          "kind": "modifier",
          "of": "code-line",
          "exclusive": "mark",
          "description": "The line being talked about: a tint, and a 2px rule of ink at its start"
        },
        {
          "name": "code-line-added",
          "kind": "modifier",
          "of": "code-line",
          "exclusive": "mark",
          "description": "An added line of a diff, in the success hue; keep the + in the text"
        },
        {
          "name": "code-line-removed",
          "kind": "modifier",
          "of": "code-line",
          "exclusive": "mark",
          "description": "A removed line of a diff, in the danger hue; keep the - in the text"
        },
        {
          "name": "code-numbered",
          "kind": "modifier",
          "of": "code-block",
          "description": "Numbers the code-line elements of the block with a CSS counter, in a gutter that is not selected or copied"
        },
        {
          "name": "code-panel",
          "kind": "root",
          "description": "One well around a header and a block; the block inside gives up its own well"
        },
        {
          "name": "code-header",
          "kind": "part",
          "of": "code-panel",
          "description": "A 40px strip over the block, with the name at the start and a control at the end. A copy button there needs a script that hands the block's text to the clipboard"
        },
        {
          "name": "code-title",
          "kind": "part",
          "of": "code-panel",
          "description": "The name of the file or of the language, in the header"
        }
      ],
      "properties": [
        {
          "name": "--code-radius",
          "on": "code-block",
          "default": "var(--radius-control)",
          "description": "Circular radius of a standalone block before the corner scale"
        },
        {
          "name": "--code-radius",
          "on": "code-panel",
          "default": "var(--radius-control)",
          "description": "Circular radius of the panel before the corner scale, also used by its inset controls; use var(--radius-surface) when held directly in a tray"
        },
        {
          "name": "--code-gutter",
          "on": "code-numbered",
          "default": "2ch",
          "description": "Width of the gutter the line numbers end in: two digits by default; set 3ch for a listing of a hundred lines or more, so the numbers stay aligned"
        }
      ],
      "example": "<p>Install the package with <code class=\"code\">npm install @master/ui</code>, then import it in your stylesheet.</p>\n<pre class=\"code-block\" tabindex=\"0\"><code>@import '@master/css';\n@import '@master/ui';</code></pre>",
      "stylesheet": "components/code.css",
      "tokens": [
        "--color-surface-inset",
        "--color-surface-chip",
        "--color-line-hair",
        "--color-line-contour",
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-body",
        "--color-text-muted",
        "--color-text-disabled",
        "--color-success",
        "--color-danger",
        "--shadow-pressed",
        "--radius-chip",
        "--radius-control"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "snippet",
      "title": "Snippet",
      "tier": "component",
      "category": "Typography",
      "description": "A command to copy: the line, its prompt and a button that copies it.",
      "use": "One command a reader runs in a terminal: an install line under a heading, beside the main action of a hero, or as a step of a guide. The prompt cannot be selected, the command scrolls sideways instead of wrapping, and a quiet button copies it. A segmented control inside holds the same command for each package manager.",
      "instead": [
        {
          "when": "It is several lines, or a file to read rather than a line to run",
          "use": "code"
        },
        {
          "when": "The reader types or edits the value",
          "use": "input"
        },
        {
          "when": "It is a key or a shortcut to press",
          "use": "kbd"
        }
      ],
      "composes": [
        "button",
        "icon",
        "segmented"
      ],
      "script": "optional",
      "keyboard": [
        {
          "keys": "Tab",
          "action": "Reaches the command, which scrolls with the arrow keys when it is longer than the line, then the copy button"
        },
        {
          "keys": "Enter, Space",
          "action": "On the copy button: copy the command, once the page's script is attached"
        },
        {
          "keys": "ArrowLeft, ArrowRight",
          "action": "In the segmented control: choose another package manager, and its command is shown"
        }
      ],
      "platform": [
        {
          "feature": "Scroll-driven animations (animation-timeline: scroll())",
          "fallback": "A long command scrolls the same, with clean edges instead of a fade where it goes on"
        },
        {
          "feature": "@media (scripting: none)",
          "fallback": "The copy button is drawn even when scripting is off, and does nothing"
        }
      ],
      "classes": [
        {
          "name": "snippet",
          "kind": "root",
          "description": "The line: a well 38px tall, in the mono face, with the prompt, the command and the button in three columns"
        },
        {
          "name": "snippet-sm",
          "kind": "modifier",
          "of": "snippet",
          "exclusive": "size",
          "description": "A 32px line in 12px type; the default is 38px"
        },
        {
          "name": "snippet-lg",
          "kind": "modifier",
          "of": "snippet",
          "exclusive": "size",
          "description": "A 44px line in 14px type, for the head of a page"
        },
        {
          "name": "snippet-prompt",
          "kind": "part",
          "of": "snippet",
          "description": "The prompt glyph, $ or >, in a quieter ink. It cannot be selected; mark it aria-hidden=\"true\""
        },
        {
          "name": "snippet-command",
          "kind": "part",
          "of": "snippet",
          "description": "The command, on a <code>: one line that never wraps and scrolls sideways, fading at the edge where it goes on. Give it tabindex=\"0\". With a segmented control, write one per option, in the same order; up to six"
        },
        {
          "name": "snippet-icon",
          "kind": "part",
          "of": "snippet",
          "description": "The copy icon in the button, with icon. It steps aside once the status says the command is copied"
        },
        {
          "name": "snippet-check",
          "kind": "part",
          "of": "snippet",
          "description": "The check in the button, with icon, after the copy icon. It takes the copy icon's place once copied"
        },
        {
          "name": "snippet-status",
          "kind": "part",
          "of": "snippet",
          "elements": [
            "output"
          ],
          "description": "An empty <output>, not seen, which announces what the script writes into it. Written to, it turns the copy icon into the check; emptied, it turns it back"
        }
      ],
      "states": [
        {
          "on": "snippet-status",
          "name": "copied",
          "mark": ":not(:empty)",
          "description": "The script wrote \"Copied\" into the status: the copy icon turns into the check. Empty it again after a moment"
        },
        {
          "on": "snippet-command",
          "name": "focus-visible",
          "mark": ":focus-visible",
          "description": "The whole line takes the focus ring"
        }
      ],
      "properties": [
        {
          "name": "--snippet-height",
          "on": "snippet",
          "default": "2.375rem",
          "description": "Height of the line; the button is 8px less, 4px in"
        },
        {
          "name": "--snippet-radius",
          "on": "snippet",
          "default": "var(--radius-control)",
          "description": "Circular radius of the well before the corner scale; the button and the options take it less their 4px inset"
        },
        {
          "name": "--snippet-fade",
          "on": "snippet",
          "default": "1.5rem",
          "description": "Length of the fade at an edge where a long command goes on"
        }
      ],
      "example": "<div class=\"snippet\">\n  <span class=\"snippet-prompt\" aria-hidden=\"true\">$</span>\n  <code class=\"snippet-command\" tabindex=\"0\">npm install @master/ui</code>\n  <button type=\"button\" class=\"btn btn-quiet btn-square\" aria-label=\"Copy command\">\n    <svg class=\"icon snippet-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 1.5H9A1.4999 1.4999 0 0 1 10.5 3V4.25H9.5V3A0.5002 0.5002 0 0 0 9 2.5H3A0.5002 0.5002 0 0 0 2.5 3V9A0.5002 0.5002 0 0 0 3 9.5H4.25V10.5H3A1.4999 1.4999 0 0 1 1.5 9V3A1.4999 1.4999 0 0 1 3 1.5Z\" fill=\"currentColor\" stroke=\"none\" fill-rule=\"evenodd\"/><rect x=\"5.5\" y=\"5.5\" width=\"8.5\" height=\"8.5\" rx=\"1\"/></svg>\n    <svg class=\"icon snippet-check\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5\"/></svg>\n  </button>\n  <output class=\"snippet-status\"></output>\n</div>",
      "stylesheet": "components/snippet.css",
      "tokens": [
        "--color-surface-inset",
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-muted",
        "--shadow-pressed",
        "--radius-control-sm",
        "--radius-control",
        "--radius-control-lg",
        "--easing-glide",
        "--duration-quick"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "kbd",
      "title": "Kbd",
      "tier": "component",
      "category": "Typography",
      "description": "A keycap for shortcuts in text and menus.",
      "use": "A key to press, in running text, in a menu row or in a hint. Write one keycap for each key of a shortcut.",
      "instead": [
        {
          "when": "It is text a reader types or reads from a program, not a key",
          "use": "code"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "kbd",
          "kind": "root",
          "description": "A keycap on a <kbd>, drawn with one half-pixel contour so it stays quiet inside a line"
        },
        {
          "name": "kbd-raised",
          "kind": "modifier",
          "of": "kbd",
          "description": "A raised keycap that catches the light, for teaching a shortcut"
        }
      ],
      "example": "<p>Search with <kbd class=\"kbd\">⌘</kbd><kbd class=\"kbd\">K</kbd></p>",
      "stylesheet": "components/kbd.css",
      "tokens": [
        "--color-line-strong",
        "--color-text-strong",
        "--color-text-muted",
        "--color-highlight",
        "--color-shade-1",
        "--color-shade-2",
        "--radius-chip"
      ],
      "mixins": [
        "--surface-sheet"
      ]
    },
    {
      "name": "mark",
      "title": "Mark",
      "tier": "component",
      "category": "Typography",
      "description": "A stroke of highlighter over the words that matter.",
      "use": "The part of a result that matches a search, or a phrase a reviewer points at, on a native mark. It means \"relevant here\"; for importance use strong.",
      "instead": [
        {
          "when": "The words name a person, a team or an issue",
          "use": "mention"
        },
        {
          "when": "The words are literal text such as a command or a file name",
          "use": "code"
        },
        {
          "when": "The words are a status or a count beside a label",
          "use": "badge"
        },
        {
          "when": "The words were added or removed, not emphasized",
          "use": "revision"
        },
        {
          "when": "A place a link has landed on is shown for a moment",
          "use": "flash"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "mark",
          "kind": "root",
          "description": "A wash of ink behind the words, in the color of the text around it"
        },
        {
          "name": "mark-brand",
          "kind": "modifier",
          "of": "mark",
          "exclusive": "face",
          "description": "A wash of the brand color, for the one phrase a page is about"
        },
        {
          "name": "mark-underline",
          "kind": "modifier",
          "of": "mark",
          "exclusive": "face",
          "description": "A thick stroke along the foot of the words instead of a wash over them"
        }
      ],
      "states": [
        {
          "on": "mark",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The match a reader has stepped to among several: it fills with ink"
        }
      ],
      "example": "<p>Phases of the <mark class=\"mark\">moon</mark>, a field guide</p>",
      "stylesheet": "components/mark.css",
      "tokens": [
        "--color-surface-inverse",
        "--color-text-inverse",
        "--color-mark",
        "--color-mark-underline",
        "--color-brand"
      ],
      "mixins": []
    },
    {
      "name": "revision",
      "title": "Revision",
      "tier": "component",
      "category": "Typography",
      "description": "Words added and words struck, inside the sentence they change.",
      "use": "A suggested edit, a tracked change or a correction shown in running text. The ins and del elements carry the meaning; the classes give them a wash, an underline and a strike that carry across line breaks.",
      "instead": [
        {
          "when": "Whole lines of code changed",
          "use": "code"
        },
        {
          "when": "The words are emphasized, not changed",
          "use": "mark"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "ins",
          "kind": "root",
          "elements": [
            "ins"
          ],
          "description": "Inserted words, on an ins element: a wash of the success hue over a fine underline"
        },
        {
          "name": "del",
          "kind": "root",
          "elements": [
            "del"
          ],
          "description": "Deleted words, on a del element: a quieter ink that still keeps 4.5:1 text contrast, on a wash of the danger hue under a strike"
        }
      ],
      "example": "<p>The release is planned for <del class=\"del\">Thursday</del> <ins class=\"ins\">Tuesday</ins>.</p>",
      "stylesheet": "components/revision.css",
      "tokens": [
        "--color-success",
        "--color-danger"
      ],
      "mixins": []
    },
    {
      "name": "bullets",
      "title": "Bullets",
      "tier": "component",
      "category": "Typography",
      "description": "A list in running text, with its markers hung in a column of their own.",
      "use": "Points in an article, what a plan includes, steps written as prose. A marker is a dot, a check with bullets-check, or the item's number with bullets-numbered. Mark what is not included with bullets-off and say so in words.",
      "instead": [
        {
          "when": "The rows are things with media, a title and something at the end",
          "use": "list"
        },
        {
          "when": "The reader ticks the items off",
          "use": "checklist"
        },
        {
          "when": "The items are terms and their values",
          "use": "data-list"
        },
        {
          "when": "It is a sequence with one step current",
          "use": "steps"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "bullets",
          "kind": "root",
          "elements": [
            "ul",
            "ol"
          ],
          "description": "The list: items 8px apart, each with a small dot in a 16px column 10px from the text. It takes the ink of the text it stands in, so it reads on a card and on an ink surface alike"
        },
        {
          "name": "bullets-check",
          "kind": "modifier",
          "of": "bullets",
          "exclusive": "marker",
          "description": "A check in the ink of the text in place of the dot, for what is included"
        },
        {
          "name": "bullets-numbered",
          "kind": "modifier",
          "of": "bullets",
          "exclusive": "marker",
          "description": "Each item's number in tabular figures, set to the end of the marker column; use it on an ol"
        },
        {
          "name": "bullets-item",
          "kind": "part",
          "of": "bullets",
          "elements": [
            "li"
          ],
          "description": "One item; its marker stands on its first line and its text starts on one edge with the others"
        },
        {
          "name": "bullets-off",
          "kind": "modifier",
          "of": "bullets-item",
          "description": "An item that is not included: a short dash in place of its marker and quieter words"
        }
      ],
      "properties": [
        {
          "name": "--bullets-marker",
          "default": "1rem",
          "description": "Width of the marker column"
        },
        {
          "name": "--bullets-gap",
          "default": ".5rem",
          "description": "Space between items"
        }
      ],
      "example": "<ul class=\"bullets bullets-check\">\n  <li class=\"bullets-item\">Unlimited projects</li>\n  <li class=\"bullets-item\">Custom domains</li>\n  <li class=\"bullets-item bullets-off\">Not included: single sign-on</li>\n</ul>",
      "stylesheet": "components/bullets.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "mention",
      "title": "Mention",
      "tier": "component",
      "category": "Typography",
      "description": "A person, a team or a thing named inside a sentence.",
      "use": "A name inside a sentence: @Ada, #design, an issue's number. On an a it goes to a profile or an issue; on a span it is only a name set apart. Write the @ or # in the text.",
      "instead": [
        {
          "when": "Ordinary words in a sentence go somewhere",
          "use": "link"
        },
        {
          "when": "A small numbered mark points at a source",
          "use": "citation"
        },
        {
          "when": "The text is literal, such as a command or a file name",
          "use": "code"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "mention",
          "kind": "root",
          "description": "The name: the sentence's own type and ink at the control weight, on a faint tint of that ink. It does not break across lines, and as a link its tint deepens under the pointer"
        },
        {
          "name": "mention-self",
          "kind": "modifier",
          "of": "mention",
          "description": "The reader's own name: a firmer tint and a hairline"
        }
      ],
      "example": "<p><a class=\"mention\" href=\"/people/ada\">@Ada Lovelace</a> the build for <a class=\"mention\" href=\"/issues/412\">#412</a> is green.</p>",
      "stylesheet": "components/mention.css",
      "tokens": [
        "--color-focus",
        "--radius-chip",
        "--font-weight-control"
      ],
      "mixins": []
    },
    {
      "name": "citation",
      "title": "Citation",
      "tier": "component",
      "category": "Typography",
      "description": "A small numbered mark in a sentence that points at its source.",
      "use": "A numbered mark at the end of a claim that leads to where the claim came from: an entry in a list of sources, or a popover with the source's title. Write it with no space before it, so it wraps with the word it follows.",
      "instead": [
        {
          "when": "Words of the sentence themselves lead somewhere",
          "use": "link"
        },
        {
          "when": "The sentence names a person, a team or a thing",
          "use": "mention"
        }
      ],
      "composes": [
        "popover"
      ],
      "script": "none",
      "keyboard": [
        {
          "keys": "Enter",
          "action": "Follows the link to the source in the list, as the native element does"
        },
        {
          "keys": "Enter, Space",
          "action": "On a button with popovertarget: opens and closes the popover with the source"
        }
      ],
      "classes": [
        {
          "name": "citation",
          "kind": "root",
          "elements": [
            "a",
            "button"
          ],
          "description": "The mark: an <a> whose href is the source's id, or a <button> with popovertarget written directly before its popover. Give it an aria-label such as \"Source 2\""
        }
      ],
      "states": [
        {
          "on": "citation",
          "name": "expanded",
          "mark": "aria-expanded=\"true\"",
          "description": "The source it opens is showing: the mark fills with ink"
        },
        {
          "on": "citation",
          "name": "current",
          "mark": "aria-current=\"true\"",
          "description": "The mark a reader has just followed: filled with ink"
        },
        {
          "on": "citation",
          "name": "popover open",
          "mark": ":has(+ .popover:popover-open)",
          "description": "The popover written directly after the mark is open: filled with ink, with no attribute to set"
        }
      ],
      "example": "<p>Corners are drawn as squircles where the browser supports them.<a class=\"citation\" href=\"#source-1\" aria-label=\"Source 1\">1</a></p>\n<ol>\n  <li id=\"source-1\">CSS Borders and Box Decorations Module Level 4</li>\n</ol>",
      "stylesheet": "components/citation.css",
      "tokens": [
        "--color-surface-chip",
        "--color-surface-inverse",
        "--color-line-contour",
        "--color-text-body",
        "--color-text-inverse",
        "--font-weight-control"
      ],
      "mixins": [
        "--focus-ring"
      ]
    },
    {
      "name": "page",
      "title": "Page",
      "tier": "layout",
      "category": "Layouts",
      "description": "A header, the main region and a footer in a frame as tall as the viewport.",
      "use": "The frame of a document that scrolls as a whole. Put it on the element that holds the header, the main region and the footer, and give the main region grow(1) so the footer stays at the foot of a short page. A column that does not need the viewport's height is written with utilities alone: flex flex-col.",
      "instead": [
        {
          "when": "A sidebar stays in place while the main region scrolls",
          "use": "shell"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Dynamic viewport units (dvh)",
          "fallback": "The minimum height is 100vh, which on a phone can be taller than what its toolbars leave visible"
        }
      ],
      "classes": [
        {
          "name": "page",
          "kind": "root",
          "description": "The frame: a column at least as tall as the viewport, measured in dvh. It draws nothing"
        }
      ],
      "example": "<div class=\"page\">\n  <header>\n    <a href=\"/\">Atlas</a>\n  </header>\n  <main class=\"grow(1)\">\n    <h1>What shipped this month</h1>\n    <p>Every change to Atlas, newest first.</p>\n  </main>\n  <footer>\n    <p>© 2026 Atlas Labs</p>\n  </footer>\n</div>",
      "stylesheet": "layouts/page.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "shell",
      "title": "Shell",
      "tier": "layout",
      "category": "Layouts",
      "description": "A sidebar that stays while the main region scrolls, and a drawer when it is narrow.",
      "use": "The frame of an application: a sidebar that stays in place, a main region, and optionally a header, an aside and a footer. By default the document scrolls; shell-fixed makes each region scroll by itself. Two columns that scroll away with the page and never collapse are written with utilities alone: flex and a width.",
      "instead": [
        {
          "when": "The document scrolls as a whole and has no sidebar",
          "use": "page"
        },
        {
          "when": "A reader resizes the two panes with a handle",
          "use": "splitter"
        }
      ],
      "composes": [
        "button",
        "dialog",
        "skip"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Dynamic viewport units (dvh)",
          "fallback": "Heights are measured in vh, so on a phone the foot of a column can sit under the browser's toolbars"
        },
        {
          "feature": "Container size queries",
          "fallback": "The sidebar and the aside never leave the layout, and shell-toggle stays visible"
        },
        {
          "feature": "env(safe-area-inset-bottom)",
          "fallback": "The sidebar and the aside get no extra padding at their foot"
        }
      ],
      "classes": [
        {
          "name": "shell",
          "kind": "root",
          "description": "The frame: a grid at least as tall as the viewport and a size container named shell. It draws nothing"
        },
        {
          "name": "shell-fixed",
          "kind": "modifier",
          "of": "shell",
          "description": "The shell is exactly the viewport and each region scrolls by itself, for an inbox, an editor or a chat"
        },
        {
          "name": "shell-header",
          "kind": "part",
          "of": "shell",
          "description": "A header across the top of the shell; the sticky columns start --shell-header under it"
        },
        {
          "name": "shell-sidebar",
          "kind": "part",
          "of": "shell",
          "description": "The column at the start: sticky, as tall as the room left in the viewport, with its own scroll. It leaves the layout below 48rem of shell"
        },
        {
          "name": "shell-main",
          "kind": "part",
          "of": "shell",
          "description": "The main region: it takes the column that is left and never grows past it"
        },
        {
          "name": "shell-aside",
          "kind": "part",
          "of": "shell",
          "description": "A column at the end, sticky like the sidebar. It leaves the layout below 64rem of shell"
        },
        {
          "name": "shell-footer",
          "kind": "part",
          "of": "shell",
          "description": "A footer across the foot of the shell, under the columns and below the fold"
        },
        {
          "name": "shell-toggle",
          "kind": "part",
          "of": "shell",
          "description": "A control shown only while the sidebar is away, such as the button that opens the same navigation as a drawer"
        }
      ],
      "properties": [
        {
          "name": "--shell-sidebar",
          "default": "16rem",
          "description": "The sidebar's width"
        },
        {
          "name": "--shell-aside",
          "default": "14rem",
          "description": "The aside's width"
        },
        {
          "name": "--shell-header",
          "default": "3.5rem",
          "description": "The room kept for a shell-header above the sticky columns; a navbar's height"
        }
      ],
      "example": "<div class=\"shell\">\n  <a class=\"skip\" href=\"#main\">Skip to content</a>\n  <div class=\"shell-sidebar\">\n    <nav aria-label=\"Workspace\">\n      <a href=\"/projects\" aria-current=\"page\">Projects</a>\n      <a href=\"/domains\">Domains</a>\n    </nav>\n  </div>\n  <main class=\"shell-main\" id=\"main\" tabindex=\"-1\">\n    <button type=\"button\" class=\"btn shell-toggle\" commandfor=\"shell-nav\" command=\"show-modal\">Menu</button>\n    <h1>Projects</h1>\n    <p>Six projects deploy from this workspace.</p>\n  </main>\n  <dialog class=\"dialog dialog-drawer dialog-drawer-start\" id=\"shell-nav\" closedby=\"any\" aria-label=\"Navigation\">\n    <div class=\"dialog-body\">\n      <nav aria-label=\"Workspace, in the drawer\">\n        <a href=\"/projects\" aria-current=\"page\">Projects</a>\n        <a href=\"/domains\">Domains</a>\n      </nav>\n    </div>\n    <button type=\"button\" class=\"btn btn-quiet btn-square btn-sm dialog-close\" commandfor=\"shell-nav\" command=\"close\" aria-label=\"Close navigation\">×</button>\n  </dialog>\n</div>",
      "stylesheet": "layouts/shell.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "auto-grid",
      "title": "Auto grid",
      "tier": "layout",
      "category": "Layouts",
      "description": "As many equal columns as fit, counted by the grid itself.",
      "use": "A collection of like tiles that reflows with the room it is given and needs no query: cards, figures, panels. When the number of columns is part of the design, utilities alone are enough: grid grid-cols(3) with a container variant.",
      "instead": [
        {
          "when": "The tiles stay on one row and a reader scrolls through them",
          "use": "carousel"
        },
        {
          "when": "A few tiles are larger than the rest on purpose",
          "use": "bento"
        },
        {
          "when": "Each tile is as tall as what it holds, as in a gallery",
          "use": "masonry"
        }
      ],
      "script": "none",
      "classes": [
        {
          "name": "auto-grid",
          "kind": "root",
          "description": "Equal columns, as many as fit at --auto-grid-min or wider, with a 1rem gap. Empty columns keep their place"
        },
        {
          "name": "auto-grid-fit",
          "kind": "modifier",
          "of": "auto-grid",
          "description": "Empty columns collapse, so the tiles that exist share the whole row"
        }
      ],
      "properties": [
        {
          "name": "--auto-grid-min",
          "default": "16rem",
          "description": "The narrowest a column may be; a column is never wider than the grid itself"
        }
      ],
      "example": "<div class=\"auto-grid\">\n  <article>\n    <h3>Atlas</h3>\n    <p>atlas.dev</p>\n  </article>\n  <article>\n    <h3>Borealis</h3>\n    <p>borealis.app</p>\n  </article>\n  <article>\n    <h3>Cinder</h3>\n    <p>cinder.io</p>\n  </article>\n</div>",
      "stylesheet": "layouts/auto-grid.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "bento",
      "title": "Bento",
      "tier": "layout",
      "category": "Layouts",
      "description": "Tiles of a few sizes fitted into one box, in columns that follow its room.",
      "use": "A small set of tiles where some matter more than others: the features of a product, the highlights of a profile, the figures of an overview. The bento counts four, two or one columns from its own width and lets a tile span two columns, two rows or both while there are columns to span. Tiles of one size are an auto grid; tiles of their own heights are masonry.",
      "instead": [
        {
          "when": "Every tile is the same size and the set grows",
          "use": "auto-grid"
        },
        {
          "when": "Each tile is as tall as what it holds, as in a gallery",
          "use": "masonry"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Container size queries (@container)",
          "fallback": "Tiles keep one cell at every width; the columns still follow the room, because they are counted without a query"
        }
      ],
      "classes": [
        {
          "name": "bento",
          "kind": "root",
          "description": "The grid: four columns from 48rem of its own width, two from 28rem, one below, and rows at least --bento-row tall. A size container named bento. It draws nothing"
        },
        {
          "name": "bento-dense",
          "kind": "modifier",
          "of": "bento",
          "description": "A later tile moves up into a hole an earlier span left. The order seen is no longer the order read, so use it only for a set whose order means nothing"
        },
        {
          "name": "bento-wide",
          "kind": "part",
          "of": "bento",
          "exclusive": "columns",
          "description": "A tile two columns wide, from 28rem of bento; the whole row in two columns"
        },
        {
          "name": "bento-tall",
          "kind": "part",
          "of": "bento",
          "description": "A tile two rows tall, from 28rem of bento"
        },
        {
          "name": "bento-large",
          "kind": "part",
          "of": "bento",
          "exclusive": "columns",
          "description": "A tile two columns wide and two rows tall, from 28rem of bento"
        },
        {
          "name": "bento-full",
          "kind": "part",
          "of": "bento",
          "exclusive": "columns",
          "description": "A tile across the whole row, at every width"
        }
      ],
      "properties": [
        {
          "name": "--bento-row",
          "default": "10rem",
          "description": "The least a row may be; a row grows with the tallest thing in it"
        },
        {
          "name": "--bento-gap",
          "default": "1rem",
          "description": "The space between tiles, which the columns are counted with"
        }
      ],
      "example": "<div class=\"bento\">\n  <article class=\"bento-large\">\n    <h3>Deploys in seconds</h3>\n    <p>Every push is live before the review is done.</p>\n  </article>\n  <article class=\"bento-wide\">\n    <h3>Previews</h3>\n    <p>A link for every branch.</p>\n  </article>\n  <article>\n    <h3>Rollbacks</h3>\n  </article>\n  <article>\n    <h3>Logs</h3>\n  </article>\n</div>",
      "stylesheet": "layouts/bento.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "masonry",
      "title": "Masonry",
      "tier": "layout",
      "category": "Layouts",
      "description": "Tiles of their own heights, packed into lanes with no gaps under them.",
      "use": "A collection of things of different heights that should not be cut to one: pictures at their own ratios, notes, quotes, cards with a paragraph or none. Lanes are counted from the room, none narrower than --masonry-min. Every tile is a masonry-item. When the tiles should line up in rows, use an auto grid.",
      "instead": [
        {
          "when": "The tiles should line up in rows, or they are of one size",
          "use": "auto-grid"
        },
        {
          "when": "A few tiles are larger than the rest on purpose",
          "use": "bento"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Grid lanes (display: grid-lanes)",
          "fallback": "A multi-column box: the same packing, but the tiles fill the first column from the top before the next, so the order seen runs down each column instead of across"
        }
      ],
      "classes": [
        {
          "name": "masonry",
          "kind": "root",
          "description": "The lanes: as many equal ones as fit at --masonry-min or wider, packed with grid lanes where the browser has them and as columns elsewhere. It draws nothing"
        },
        {
          "name": "masonry-item",
          "kind": "part",
          "of": "masonry",
          "description": "A tile. It is never split across two lanes, and keeps --masonry-gap from the one above it"
        }
      ],
      "properties": [
        {
          "name": "--masonry-min",
          "default": "14rem",
          "description": "The narrowest a lane may be; a lane is never wider than the masonry itself"
        },
        {
          "name": "--masonry-gap",
          "default": "1rem",
          "description": "The space between lanes and between the tiles in a lane"
        }
      ],
      "example": "<ul class=\"masonry\">\n  <li class=\"masonry-item\">\n    <h3>Dunes at noon</h3>\n    <p>Wind from the west all morning, and the ridges moved a metre.</p>\n  </li>\n  <li class=\"masonry-item\">\n    <h3>Tide pools</h3>\n  </li>\n  <li class=\"masonry-item\">\n    <h3>The last ferry</h3>\n    <p>Twelve people, two dogs and a bicycle.</p>\n  </li>\n</ul>",
      "stylesheet": "layouts/masonry.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "breakout",
      "title": "Breakout",
      "tier": "layout",
      "category": "Layouts",
      "description": "A reading column that a figure or a band can step out of, wider or to the edges.",
      "use": "An article, a changelog or a story: running text at a reading measure, centered, with a picture, a table or a band of color that is allowed to be wider. Everything inside reads in the column without a class; give breakout-wide or breakout-full only to what leaves it. A column that nothing leaves is written with utilities alone: a max width and mx-auto.",
      "instead": [
        {
          "when": "The page is a frame of regions, not one column of reading",
          "use": "page"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Container query units (cqi)",
          "fallback": "A wide or full child stays in the column; the reading column itself is unchanged"
        }
      ],
      "classes": [
        {
          "name": "breakout",
          "kind": "root",
          "description": "The grid: one column at most --breakout-measure wide and --breakout-gutter from either edge, centered, with 1.25rem between children. An inline-size container. It draws nothing"
        },
        {
          "name": "breakout-wide",
          "kind": "part",
          "of": "breakout",
          "exclusive": "width",
          "description": "A child up to --breakout-wide wider on each side, as far as the room beside the column allows and never into the gutter"
        },
        {
          "name": "breakout-full",
          "kind": "part",
          "of": "breakout",
          "exclusive": "width",
          "description": "A child that runs to both edges of the breakout"
        }
      ],
      "properties": [
        {
          "name": "--breakout-measure",
          "default": "40rem",
          "description": "The widest the column may be: about 70 characters of body text"
        },
        {
          "name": "--breakout-wide",
          "default": "8rem",
          "description": "How far a wide child may reach past the column on each side"
        },
        {
          "name": "--breakout-gutter",
          "default": "1.5rem",
          "description": "The least room kept between the column and an edge, and between a wide child and an edge"
        }
      ],
      "example": "<article class=\"breakout\">\n  <h1>The north ridge</h1>\n  <p>We left before the light, while the snow was still hard.</p>\n  <figure class=\"breakout-wide\">\n    <img src=\"ridge.jpg\" alt=\"The ridge from the hut, before sunrise\">\n  </figure>\n  <p>The ridge took four hours.</p>\n</article>",
      "stylesheet": "layouts/breakout.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "sticky-stack",
      "title": "Sticky stack",
      "tier": "layout",
      "category": "Layouts",
      "description": "Panels that pile up under one another as the page scrolls.",
      "use": "A short sequence read one panel at a time as the page scrolls, where the ones read stay in view as edges: the steps of a process, the chapters of a story, a few plans. Every panel is a sticky-stack-item with a face of its own, such as a card or a sheet. When the panels should be seen side by side, or skipped through, use a carousel.",
      "instead": [
        {
          "when": "The panels are seen side by side and scrolled across",
          "use": "carousel"
        },
        {
          "when": "The panels are reference a reader opens one at a time",
          "use": "accordion"
        }
      ],
      "script": "none",
      "platform": [
        {
          "feature": "sibling-index()",
          "fallback": "Every panel sticks on the same line, so each covers the one before it whole and no edges show"
        }
      ],
      "classes": [
        {
          "name": "sticky-stack",
          "kind": "root",
          "description": "The stack: its panels in a column, 1.5rem apart. It draws nothing and must not clip them"
        },
        {
          "name": "sticky-stack-item",
          "kind": "part",
          "of": "sticky-stack",
          "description": "A panel. It sticks --sticky-stack-top from the top of the scroller, one --sticky-stack-peek lower for each panel before it, until the stack ends"
        }
      ],
      "properties": [
        {
          "name": "--sticky-stack-top",
          "default": "1rem",
          "description": "Where the first panel stops, from the top of the scroller; the height of a sticky header above it, and some room"
        },
        {
          "name": "--sticky-stack-peek",
          "default": ".75rem",
          "description": "How much lower each panel stops than the one before it: the edge of a covered panel that stays in view"
        }
      ],
      "example": "<ol class=\"sticky-stack\">\n  <li class=\"sticky-stack-item\">\n    <h3>Connect a repository</h3>\n    <p>Choose one, or start from a template.</p>\n  </li>\n  <li class=\"sticky-stack-item\">\n    <h3>Set the build</h3>\n    <p>The command and the folder it writes.</p>\n  </li>\n  <li class=\"sticky-stack-item\">\n    <h3>Deploy</h3>\n    <p>Every push to main goes live.</p>\n  </li>\n</ol>",
      "stylesheet": "layouts/sticky-stack.css",
      "tokens": [],
      "mixins": []
    },
    {
      "name": "form",
      "title": "Form",
      "tier": "layout",
      "category": "Layouts",
      "description": "The rhythm of a form: rows, sections and actions that follow their column.",
      "use": "A form whose rows, sections and closing buttons stack by the width of the form itself, not of the viewport. It draws no surface and holds no state. A few fields in one column with nothing beside them are written with utilities alone: flex flex-col and a gap.",
      "instead": [
        {
          "when": "It is one label with its control, its hint and its error",
          "use": "input"
        }
      ],
      "composes": [
        "input",
        "button"
      ],
      "script": "none",
      "platform": [
        {
          "feature": "Container size queries",
          "fallback": "Rows and sections stay stacked, and the actions stay in a line at the end"
        }
      ],
      "classes": [
        {
          "name": "form",
          "kind": "root",
          "description": "The column of fields, at one distance, and a size container named form. Its width must come from its context"
        },
        {
          "name": "form-row",
          "kind": "part",
          "of": "form",
          "description": "Fields read as one line; they share it in equal columns from 28rem of form and stack below"
        },
        {
          "name": "form-section",
          "kind": "part",
          "of": "form",
          "description": "A heading with the fields it describes; from 40rem of form the heading stands beside them at a third of the width. Sections are parted by a hairline"
        },
        {
          "name": "form-heading",
          "kind": "part",
          "of": "form",
          "description": "The title and the description of a section"
        },
        {
          "name": "form-title",
          "kind": "part",
          "of": "form",
          "description": "The title of a section"
        },
        {
          "name": "form-description",
          "kind": "part",
          "of": "form",
          "description": "A sentence under the title of a section"
        },
        {
          "name": "form-fields",
          "kind": "part",
          "of": "form",
          "description": "The fields of a section, at the form's distance"
        },
        {
          "name": "form-actions",
          "kind": "part",
          "of": "form",
          "description": "The closing buttons, at the end with the confirming one last; below 24rem of form they stack at full width with the confirming one first"
        }
      ],
      "properties": [
        {
          "name": "--form-gap",
          "default": "1.25rem",
          "description": "The distance between fields"
        }
      ],
      "example": "<form class=\"form\">\n  <div class=\"form-row\">\n    <label class=\"field\">First name<input class=\"input\" name=\"given-name\" autocomplete=\"given-name\"></label>\n    <label class=\"field\">Last name<input class=\"input\" name=\"family-name\" autocomplete=\"family-name\"></label>\n  </div>\n  <label class=\"field\">Email<input class=\"input\" type=\"email\" name=\"email\" autocomplete=\"email\"></label>\n  <div class=\"form-actions\">\n    <button class=\"btn\" type=\"button\">Cancel</button>\n    <button class=\"btn btn-primary\">Send</button>\n  </div>\n</form>",
      "stylesheet": "layouts/form.css",
      "tokens": [
        "--color-line-hair",
        "--color-text-strong",
        "--color-text-muted",
        "--font-weight-control"
      ],
      "mixins": []
    }
  ]
}
