{
  "$comment": "The closed markup vocabulary of @muchobien/ui. Native elements need no class; everything else a page may use is listed here.",
  "classes": {
    "page": {
      "layer": "ui.utils",
      "description": "Centred column for a page's main content, at most 64rem wide, with padding."
    },
    "stack": {
      "layer": "ui.utils",
      "description": "Vertical flow with a fixed gap; children lose their own block margins."
    },
    "cluster": {
      "layer": "ui.utils",
      "description": "Wrapping horizontal row with a gap, for tags, buttons and inline groups."
    },
    "grid": {
      "layer": "ui.utils",
      "description": "Responsive grid of equal columns at least 16rem wide."
    },
    "sidebar": {
      "layer": "ui.utils",
      "description": "Two children side by side: the first 16rem wide, the second filling the rest; stacks when narrow."
    },
    "visually-hidden": {
      "layer": "ui.utils",
      "description": "Hidden on screen, still read by screen readers."
    },
    "card": {
      "layer": "ui.components",
      "description": "Bordered box for a group of content."
    },
    "badge": {
      "layer": "ui.components",
      "description": "Small label for a status or count; takes data-variant."
    },
    "notice": {
      "layer": "ui.components",
      "description": "Inline message box; takes data-variant. Start the text with what it is (Error:, Note:) so colour isn't the only signal."
    },
    "toolbar": {
      "layer": "ui.components",
      "description": "Row of controls and filters that wraps when narrow."
    },
    "empty": {
      "layer": "ui.components",
      "description": "Empty state for a list or page section."
    },
    "skeleton": {
      "layer": "ui.components",
      "description": "Loading placeholder one line tall; mark it aria-hidden=\"true\"."
    },
    "menu": {
      "layer": "ui.components",
      "description": "A [popover] holding a list of buttons and links, opened by a button with popovertarget."
    },
    "segmented": {
      "layer": "ui.components",
      "description": "Radio inputs inside labels drawn as a segmented control; give it role=\"radiogroup\" and aria-label."
    },
    "icon": {
      "layer": "ui.components",
      "description": "Lucide icon from icons.css; set data-icon. Decorative icons get aria-hidden=\"true\"; meaningful ones role=\"img\" and aria-label."
    }
  },
  "attributes": {
    "data-variant": {
      "button": ["primary", "danger", "ghost"],
      ".badge": ["accent", "success", "warning", "danger", "info"],
      ".notice": ["accent", "success", "warning", "danger", "info"]
    },
    "data-size": {
      "button, input, select, textarea": ["sm", "lg"]
    },
    "data-theme": {
      "*": ["light", "dark"]
    },
    "data-icon": {
      ".icon": "icons"
    }
  },
  "elements": {
    "ui-tabs": {
      "description": "Keyboard tabs. Children: a [role=tablist] of buttons (the selected one with aria-selected=\"true\") and one [role=tabpanel] per tab, every panel but the selected one hidden.",
      "attributes": {}
    },
    "ui-toast": {
      "description": "Notification region, once per page after the main content. Show a toast from script with element.show(message, variant); .notice children rendered by the server are shown on load.",
      "attributes": {
        "timeout": "Milliseconds before a toast closes itself; omit to keep toasts until dismissed."
      }
    },
    "ui-copy": {
      "description": "Wraps a button that copies text and shows Copied. A .icon[data-icon=copy] inside turns into a check.",
      "attributes": {
        "for": "Id of the element (or input) whose text is copied.",
        "value": "Literal text to copy instead."
      }
    },
    "ui-time": {
      "description": "Wraps <time datetime> and shows it as relative time (3 hours ago) in the page's lang, with the full date as its title.",
      "attributes": {}
    },
    "ui-table-sort": {
      "description": "Wraps a <table> with a <thead>; every header becomes a sort button. Put raw values in <data value> or <time datetime> when the text is formatted.",
      "attributes": {}
    },
    "ui-theme": {
      "description": "Wraps a button that switches between light and dark, writing <meta name=color-scheme> and a cookie the server reads. A .icon[data-icon] inside shows sun or moon.",
      "attributes": {
        "cookie": "Cookie name; defaults to color-scheme."
      }
    }
  },
  "icons": [
    "check",
    "x",
    "plus",
    "minus",
    "chevron-down",
    "chevron-up",
    "chevron-left",
    "chevron-right",
    "arrow-left",
    "arrow-right",
    "arrow-up",
    "arrow-down",
    "external-link",
    "copy",
    "trash-2",
    "pencil",
    "search",
    "settings",
    "menu",
    "ellipsis",
    "info",
    "circle-alert",
    "triangle-alert",
    "circle-check",
    "circle-x",
    "loader-circle",
    "refresh-cw",
    "download",
    "upload",
    "link",
    "eye",
    "eye-off",
    "lock",
    "log-out",
    "user",
    "sun",
    "moon",
    "monitor",
    "git-branch",
    "git-pull-request",
    "git-commit-horizontal",
    "folder",
    "file",
    "calendar",
    "clock",
    "filter",
    "bell",
    "house"
  ]
}
