{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [],
    "notes": []
  },
  "attributes": [],
  "category": "general",
  "children": [],
  "cssClasses": [
    {
      "appliesTo": ".z-button",
      "class": ".z-button",
      "description": "Base class for styled buttons and button-like links.",
      "role": "root"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-danger",
      "description": "Danger color scheme with white text.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-default",
      "description": "Neutral surface color scheme.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-ghost",
      "description": "Transparent background and border with no shadow; an accent tint appears on hover.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-group",
      "description": "Joins adjacent buttons into one segmented unit with shared radius and shadow.",
      "role": "element"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-icon",
      "description": "Square icon-only button with no padding.",
      "role": "element"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-info",
      "description": "Info color scheme with white text.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-large",
      "description": "Large size: taller height and wider padding.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-medium",
      "description": "Medium size.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-outline",
      "description": "Transparent background with colored border and text; combines with the color schemes.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-primary",
      "description": "Primary color scheme.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-secondary",
      "description": "Subtle secondary color scheme with a faint tinted background.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-small",
      "description": "Small size with reduced font and padding.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-success",
      "description": "Success color scheme with white text.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-text",
      "description": "Inline text button with an animated underline and no background, border, or padding.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-warning",
      "description": "Warning color scheme with white text.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-button",
      "class": ".z-button-xsmall",
      "description": "Extra-small size with reduced font and padding.",
      "role": "modifier"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-bg)",
      "description": "Background color of the button.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-bg",
      "scope": ".z-button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "100%",
      "description": "Opacity applied to the background color.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-bg-o",
      "scope": ".z-button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border)",
      "description": "Border color.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-border",
      "scope": ".z-button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border-o)",
      "description": "Opacity applied to the border color.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-border-o",
      "scope": ".z-button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-bg-f)",
      "description": "Text and icon color.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-color",
      "scope": ".z-button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "opacity"
      ],
      "default": "50%",
      "description": "Opacity of disabled buttons.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-disabled-o",
      "scope": ".z-button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "font-size"
      ],
      "default": "var(--z-global-font-size)",
      "description": "Label font size.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-font-size",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "font-weight"
      ],
      "default": "500",
      "description": "Label font weight.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-font-weight",
      "scope": ".z-button",
      "syntax": "<number>"
    },
    {
      "affects": [
        "height"
      ],
      "default": "calc(var(--z-global-font-size) * var(--z-interactive-height-multiplier))",
      "description": "Button height, derived from the font size and the interactive height multiplier.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-height",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-accent)",
      "description": "Background color on hover.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-hover-bg",
      "scope": ".z-button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "4%",
      "description": "Opacity applied to the hover background color.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-hover-bg-o",
      "scope": ".z-button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-accent-f)",
      "description": "Text and icon color on hover.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-hover-color",
      "scope": ".z-button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "1rem",
      "description": "Width and height of icons inside the button.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-icon-size",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "line-height"
      ],
      "default": "var(--z-global-line-height)",
      "description": "Label line height.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-line-height",
      "scope": ".z-button",
      "syntax": ""
    },
    {
      "affects": [
        "padding"
      ],
      "default": "var(--z-button-padding-block) var(--z-button-padding-inline)",
      "description": "Shorthand padding assembled from the block and inline padding variables.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-padding",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "calc( var(--z-global-font-size) * var(--z-interactive-padding-block-multiplier) )",
      "description": "Vertical padding; feeds `--z-button-padding`.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-padding-block",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "calc( var(--z-global-font-size) * var(--z-interactive-padding-inline-multiplier) )",
      "description": "Horizontal padding; feeds `--z-button-padding`.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-padding-inline",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-end-end-radius",
        "border-end-start-radius",
        "border-radius",
        "border-start-end-radius",
        "border-start-start-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-radius",
      "scope": ".z-button",
      "syntax": "<length>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "var(--z-global-shadow-small)",
      "description": "Box shadow.",
      "file": "src/css/kit-components/button.css",
      "kind": "base",
      "name": "--z-button-shadow",
      "scope": ".z-button",
      "syntax": "<shadow>"
    }
  ],
  "dataHooks": [],
  "events": [],
  "i18n": [],
  "icons": [],
  "id": "button",
  "inherits": [],
  "keyboard": [],
  "kind": "css",
  "methods": [],
  "notes": [
    "Buttons are plain elements styled by class; there is no custom element or JavaScript API.",
    "Size classes adjust the interactive height and padding multipliers; xsmall and small also switch to the small global font size."
  ],
  "parts": {
    "defaultClsTarget": null,
    "defaultStlTarget": null,
    "items": []
  },
  "recipes": [],
  "related": [],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/button.css"
    ],
    "cssSelectors": [
      ".z-button",
      ".z-button-*"
    ],
    "ts": null
  },
  "summary": "Styled button classes with color schemes, outline/ghost/text variants, four sizes, and icon-only and grouped layouts.",
  "tag": null,
  "title": "Button"
}
