{
  "schemaVersion": 1,
  "systemVersion": "2.1.0",
  "status": "implemented-provisional-pending-po-review",
  "tokensSource": "tokens.json",
  "accessibilityTarget": "WCAG 2.2 AA",
  "components": [
    {
      "id": "button",
      "name": "Button",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-accent",
        "--ds-danger",
        "--ds-focus",
        "--ds-target"
      ],
      "variants": [
        "primary",
        "secondary",
        "tertiary",
        "destructive",
        "ghost (alias)",
        "danger (alias)"
      ],
      "states": [
        "default",
        "hover",
        "focus-visible",
        "disabled",
        "loading"
      ],
      "behavior": "Native button. Default type=button. Loading disables activation. Optional loadingLabel replaces visible text while busy; existing children remain the default.",
      "responsive": "Wrap labels/actions; minimum target height 44px. No fixed width.",
      "a11y": [
        "Accessible text or aria-label required",
        "3px visible focus with offset",
        "aria-busy and disabled during loading",
        "No action on theme switch"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Optional loadingLabel; children remain default."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "<Button loading>Spara</Button>",
        "after": "<Button loading loadingLabel=\"Kontrollerar…\">Spara</Button>"
      }
    },
    {
      "id": "card",
      "name": "Card",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-surface",
        "--ds-surface-alt",
        "--ds-border",
        "--ds-heading-surface"
      ],
      "variants": [
        "surface",
        "alternate",
        "optional heading"
      ],
      "states": [
        "static"
      ],
      "behavior": "Neutral container, no implicit click. headingLevel=2|3, default 2.",
      "responsive": "Content-driven height; never truncate long values.",
      "a11y": [
        "Heading level follows document structure"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Optional headingLevel and alternate surface."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "<Card heading=\"Sammanhang\">Innehåll</Card>",
        "after": "<Card heading=\"Sammanhang\" headingLevel={3} tone=\"alternate\">Innehåll</Card>"
      }
    },
    {
      "id": "dialog",
      "name": "Dialog",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-surface",
        "--ds-focus",
        "--ds-scrim"
      ],
      "variants": [
        "modal"
      ],
      "states": [
        "closed",
        "open"
      ],
      "behavior": "Native showModal, controlled open/onClose, Escape, Tab boundaries and native focus return.",
      "responsive": "Viewport-safe width and internal overflow.",
      "a11y": [
        "Accessible title",
        "Provide an explicit close action",
        "Background inert while open"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "confirmation",
      "name": "Confirmation",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-accent",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "normal",
        "danger"
      ],
      "states": [
        "closed",
        "open",
        "busy"
      ],
      "behavior": "Explicit confirmation; cancel first. Busy blocks confirmation and closing.",
      "responsive": "Actions wrap in DOM order.",
      "a11y": [
        "Cancel initial focus",
        "Escape unless busy",
        "Focus returns to opener"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "input",
      "name": "Input",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-control-border",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "native"
      ],
      "states": [
        "default",
        "focus-visible",
        "disabled",
        "error"
      ],
      "behavior": "Native control with visible label, generated id and linked hint/error. Form owner validates.",
      "responsive": "Full available width; choice labels wrap.",
      "a11y": [
        "Label association",
        "aria-describedby for hint/error",
        "aria-invalid on error",
        "Group Radio in fieldset/legend"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "search",
      "name": "Search",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-control-border",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "native"
      ],
      "states": [
        "default",
        "focus-visible",
        "disabled",
        "error"
      ],
      "behavior": "Native control with visible label, generated id and linked hint/error. Form owner validates.",
      "responsive": "Full available width; choice labels wrap.",
      "a11y": [
        "Label association",
        "aria-describedby for hint/error",
        "aria-invalid on error",
        "Group Radio in fieldset/legend"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "select",
      "name": "Select",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-control-border",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "native"
      ],
      "states": [
        "default",
        "focus-visible",
        "disabled",
        "error"
      ],
      "behavior": "Native control with visible label, generated id and linked hint/error. Form owner validates.",
      "responsive": "Full available width; choice labels wrap.",
      "a11y": [
        "Label association",
        "aria-describedby for hint/error",
        "aria-invalid on error",
        "Group Radio in fieldset/legend"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "checkbox",
      "name": "Checkbox",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-control-border",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "native"
      ],
      "states": [
        "default",
        "focus-visible",
        "disabled",
        "error"
      ],
      "behavior": "Native control with visible label, generated id and linked hint/error. Form owner validates.",
      "responsive": "Full available width; choice labels wrap.",
      "a11y": [
        "Label association",
        "aria-describedby for hint/error",
        "aria-invalid on error",
        "Group Radio in fieldset/legend"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "radio",
      "name": "Radio",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-control-border",
        "--ds-danger",
        "--ds-focus"
      ],
      "variants": [
        "native"
      ],
      "states": [
        "default",
        "focus-visible",
        "disabled",
        "error"
      ],
      "behavior": "Native control with visible label, generated id and linked hint/error. Form owner validates.",
      "responsive": "Full available width; choice labels wrap.",
      "a11y": [
        "Label association",
        "aria-describedby for hint/error",
        "aria-invalid on error",
        "Group Radio in fieldset/legend"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "tag",
      "name": "Tag",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-muted",
        "--ds-success",
        "--ds-information",
        "--ds-warning",
        "--ds-danger"
      ],
      "variants": [
        "metadata"
      ],
      "states": [
        "static",
        "updated"
      ],
      "behavior": "Static metadata/status; icons supplement text.",
      "responsive": "Text wraps without loss.",
      "a11y": [
        "Meaning is not conveyed by color alone",
        "Decorative icons aria-hidden",
        "Domain lifecycle is not a technical error"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "badge",
      "name": "Badge",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-muted",
        "--ds-success",
        "--ds-information",
        "--ds-warning",
        "--ds-danger"
      ],
      "variants": [
        "neutral",
        "success",
        "information",
        "warning",
        "danger"
      ],
      "states": [
        "static",
        "updated"
      ],
      "behavior": "Static metadata/status; icons supplement text.",
      "responsive": "Text wraps without loss.",
      "a11y": [
        "Meaning is not conveyed by color alone",
        "Decorative icons aria-hidden",
        "Domain lifecycle is not a technical error"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "status",
      "name": "Status",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-muted",
        "--ds-success",
        "--ds-information",
        "--ds-warning",
        "--ds-danger"
      ],
      "variants": [
        "neutral",
        "success",
        "information",
        "warning",
        "danger"
      ],
      "states": [
        "static",
        "updated"
      ],
      "behavior": "Polite feedback, role=status.",
      "responsive": "Text wraps without loss.",
      "a11y": [
        "Meaning is not conveyed by color alone",
        "Decorative icons aria-hidden",
        "Domain lifecycle is not a technical error"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "alert",
      "name": "Alert",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-muted",
        "--ds-success",
        "--ds-information",
        "--ds-warning",
        "--ds-danger"
      ],
      "variants": [
        "neutral",
        "success",
        "information",
        "warning",
        "danger"
      ],
      "states": [
        "static",
        "updated"
      ],
      "behavior": "Priority feedback, role=alert; use sparingly.",
      "responsive": "Text wraps without loss.",
      "a11y": [
        "Meaning is not conveyed by color alone",
        "Decorative icons aria-hidden",
        "Domain lifecycle is not a technical error"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "link",
      "name": "Link",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-accent",
        "--ds-focus"
      ],
      "variants": [
        "native anchor"
      ],
      "states": [
        "default",
        "hover",
        "focus-visible"
      ],
      "behavior": "Navigate via href; retain native link semantics.",
      "responsive": "Text can wrap.",
      "a11y": [
        "Describe destination",
        "Underline in prose",
        "Enter activates"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "list",
      "name": "List",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-border",
        "--ds-focus"
      ],
      "variants": [
        "default"
      ],
      "states": [
        "default"
      ],
      "behavior": "Native ul, consumer supplies li.",
      "responsive": "Follows available space.",
      "a11y": [
        "Preserve native semantics and reading order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "section",
      "name": "Section",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-border",
        "--ds-focus"
      ],
      "variants": [
        "default"
      ],
      "states": [
        "default"
      ],
      "behavior": "Native section; consumer supplies heading.",
      "responsive": "Follows available space.",
      "a11y": [
        "Preserve native semantics and reading order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "table",
      "name": "Table",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-border",
        "--ds-focus"
      ],
      "variants": [
        "default"
      ],
      "states": [
        "default"
      ],
      "behavior": "Caption, column headers and optional row headers; no implicit sorting.",
      "responsive": "Named focusable local scroll region when two-dimensional comparison needs it.",
      "a11y": [
        "Caption required",
        "Header scopes",
        "Keyboard access to overflow region"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "themescope",
      "name": "ThemeScope",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-border",
        "--ds-focus"
      ],
      "variants": [
        "neutral",
        "vinkallare",
        "mineral"
      ],
      "states": [
        "default"
      ],
      "behavior": "Scoped CSS-variable theme; changes presentation only.",
      "responsive": "Follows available space.",
      "a11y": [
        "Preserve native semantics and reading order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "icon",
      "name": "Icon",
      "version": "2.1.0",
      "paletteStatus": "provisional",
      "source": "src/index.tsx",
      "accessibilityTarget": "WCAG 2.2 AA",
      "roles": [
        "--ds-text",
        "--ds-border",
        "--ds-focus"
      ],
      "variants": [
        "default"
      ],
      "states": [
        "default"
      ],
      "behavior": "Decorative SVG with currentColor; text conveys meaning.",
      "responsive": "Follows available space.",
      "a11y": [
        "Preserve native semantics and reading order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "1.1.0",
          "change": "Local implemented baseline; not PO accepted."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "Existing API and behavior retained; shared token palette changes."
      }
    },
    {
      "id": "pageframe",
      "name": "PageFrame",
      "behavior": "Named ds-page inline-size container. Centered maximum width, gutters and optional decorative grid; no landmark inserted.",
      "states": [
        "default",
        "grid visible"
      ],
      "roles": [
        "--ds-content-max",
        "--ds-space-6"
      ],
      "version": "2.1.0",
      "source": "src/layouts.tsx",
      "paletteStatus": "provisional",
      "accessibilityTarget": "WCAG 2.2 AA",
      "variants": [
        "named content slots"
      ],
      "responsive": "Container-sized, wrapping content. No hidden mobile fields or CSS reordering.",
      "a11y": [
        "Grid is aria-hidden and pointer-events:none",
        "Correct heading level and descriptive actions; native focus order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced for foundations."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "New optional foundation; no prior API."
      }
    },
    {
      "id": "pageheader",
      "name": "PageHeader",
      "behavior": "Header with breadcrumb navigation, optional eyebrow/summary/actions and h1 (default) or h2. Content wraps; actions follow copy in DOM.",
      "states": [
        "with/without actions",
        "with/without breadcrumbs"
      ],
      "roles": [
        "--ds-text",
        "--ds-muted",
        "--ds-text-measure"
      ],
      "version": "2.1.0",
      "source": "src/layouts.tsx",
      "paletteStatus": "provisional",
      "accessibilityTarget": "WCAG 2.2 AA",
      "variants": [
        "named content slots"
      ],
      "responsive": "Container-sized, wrapping content. No hidden mobile fields or CSS reordering.",
      "a11y": [
        "Grid is aria-hidden and pointer-events:none",
        "Correct heading level and descriptive actions; native focus order"
      ],
      "incompatibleChanges": [
        "2.0 provisional palette changes visual output; review before adoption. No existing API removed."
      ],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced for foundations."
        },
        {
          "version": "2.0.0",
          "change": "Shared provisional tokens and existing behavior."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "reference": "docs/main.tsx and docs/pattern-examples.tsx",
        "change": "New optional foundation; no prior API."
      }
    }
  ],
  "patterns": [
    {
      "id": "list",
      "version": "2.1.0",
      "component": "ListLayout",
      "label": "Lista / sökning",
      "source": "src/layouts.tsx",
      "desktopColumns": {
        "main": 9,
        "aside": 3
      },
      "grid": "4/8/12, same DOM order",
      "hierarchy": "Header → filters → results → supporting context",
      "mobileReadingOrder": "Header → filters → results → supporting context",
      "responsive": "Stack content and aside below 64rem container width; 4/8/12 columns at 0/40/64rem. Main uses full width when aside is absent.",
      "primaryActions": "Primary action near title; filters retain native keyboard behavior.",
      "emptyAndLong": "Explicit empty state; no invented fallback facts; wrap long words and values.",
      "focus": "DOM order is focus order; no tabindex reordering or hidden hover-only action.",
      "a11y": [
        "Named sections and correct heading levels",
        "44px controls",
        "Reflow at 320 CSS px",
        "No sticky actions obscuring focus"
      ],
      "variants": [
        "with/without supporting aside"
      ],
      "states": [
        "populated",
        "empty",
        "long values"
      ],
      "tokens": [
        "--ds-content-max",
        "--ds-text-measure",
        "--ds-space-5",
        "--ds-surface-alt"
      ],
      "changes": [
        "New layout pattern in 2.0; no automatic project adoption"
      ],
      "incompatibleChanges": [],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced, local candidate; not PO accepted."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "No exported layout pattern in 1.1; consumer owned the page composition.",
        "after": "<ListLayout header={<PageHeader title=\"Exempel\" />} aside={<Card>Sammanhang</Card>}>Huvudinnehåll</ListLayout>"
      }
    },
    {
      "id": "detail",
      "version": "2.1.0",
      "component": "DetailLayout",
      "label": "Detalj",
      "source": "src/layouts.tsx",
      "desktopColumns": {
        "main": 8,
        "aside": 4
      },
      "grid": "4/8/12, same DOM order",
      "hierarchy": "Header → identity/content → complementary facts",
      "mobileReadingOrder": "Header → identity/content → complementary facts",
      "responsive": "Stack content and aside below 64rem container width; 4/8/12 columns at 0/40/64rem. Main uses full width when aside is absent.",
      "primaryActions": "Primary action near title; data is read before supporting content.",
      "emptyAndLong": "Explicit empty state; no invented fallback facts; wrap long words and values.",
      "focus": "DOM order is focus order; no tabindex reordering or hidden hover-only action.",
      "a11y": [
        "Named sections and correct heading levels",
        "44px controls",
        "Reflow at 320 CSS px",
        "No sticky actions obscuring focus"
      ],
      "variants": [
        "with/without supporting aside"
      ],
      "states": [
        "populated",
        "empty",
        "long values"
      ],
      "tokens": [
        "--ds-content-max",
        "--ds-text-measure",
        "--ds-space-5",
        "--ds-surface-alt"
      ],
      "changes": [
        "New layout pattern in 2.0; no automatic project adoption"
      ],
      "incompatibleChanges": [],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced, local candidate; not PO accepted."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "No exported layout pattern in 1.1; consumer owned the page composition.",
        "after": "<DetailLayout header={<PageHeader title=\"Exempel\" />} aside={<Card>Sammanhang</Card>}>Huvudinnehåll</DetailLayout>"
      }
    },
    {
      "id": "form",
      "version": "2.1.0",
      "component": "FormLayout",
      "label": "Formulär / redigering",
      "source": "src/layouts.tsx",
      "desktopColumns": {
        "main": 8,
        "aside": 4
      },
      "grid": "4/8/12, same DOM order",
      "hierarchy": "Header → fields → submit/cancel → help",
      "mobileReadingOrder": "Header → fields → submit/cancel → help",
      "responsive": "Stack content and aside below 64rem container width; 4/8/12 columns at 0/40/64rem. Main uses full width when aside is absent.",
      "primaryActions": "Submit/cancel follow fields. Error keeps entered values and focuses first invalid field.",
      "emptyAndLong": "Explicit empty state; no invented fallback facts; wrap long words and values.",
      "focus": "DOM order is focus order; no tabindex reordering or hidden hover-only action.",
      "a11y": [
        "Named sections and correct heading levels",
        "44px controls",
        "Reflow at 320 CSS px",
        "No sticky actions obscuring focus"
      ],
      "variants": [
        "with/without supporting aside"
      ],
      "states": [
        "populated",
        "empty",
        "long values"
      ],
      "tokens": [
        "--ds-content-max",
        "--ds-text-measure",
        "--ds-space-5",
        "--ds-surface-alt"
      ],
      "changes": [
        "New layout pattern in 2.0; no automatic project adoption"
      ],
      "incompatibleChanges": [],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced, local candidate; not PO accepted."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "No exported layout pattern in 1.1; consumer owned the page composition.",
        "after": "<FormLayout header={<PageHeader title=\"Exempel\" />} aside={<Card>Sammanhang</Card>}>Huvudinnehåll</FormLayout>"
      }
    },
    {
      "id": "workspace",
      "version": "2.1.0",
      "component": "WorkspaceLayout",
      "label": "Arbetsyta / översikt",
      "source": "src/layouts.tsx",
      "desktopColumns": {
        "main": 8,
        "aside": 4
      },
      "grid": "4/8/12, same DOM order",
      "hierarchy": "Header → summary cards → work → context",
      "mobileReadingOrder": "Header → summary cards → work → context",
      "responsive": "Stack content and aside below 64rem container width; 4/8/12 columns at 0/40/64rem. Summary cards use span 4 (1/2/3 cards).",
      "primaryActions": "Summary uses one/two/three cards; actions belong to the work item.",
      "emptyAndLong": "Explicit empty state; no invented fallback facts; wrap long words and values.",
      "focus": "DOM order is focus order; no tabindex reordering or hidden hover-only action.",
      "a11y": [
        "Named sections and correct heading levels",
        "44px controls",
        "Reflow at 320 CSS px",
        "No sticky actions obscuring focus"
      ],
      "variants": [
        "with/without supporting aside"
      ],
      "states": [
        "populated",
        "empty",
        "long values"
      ],
      "tokens": [
        "--ds-content-max",
        "--ds-text-measure",
        "--ds-space-5",
        "--ds-surface-alt"
      ],
      "changes": [
        "New layout pattern in 2.0; no automatic project adoption"
      ],
      "incompatibleChanges": [],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced, local candidate; not PO accepted."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "No exported layout pattern in 1.1; consumer owned the page composition.",
        "after": "<WorkspaceLayout header={<PageHeader title=\"Exempel\" />} aside={<Card>Sammanhang</Card>}>Huvudinnehåll</WorkspaceLayout>"
      }
    },
    {
      "id": "history",
      "version": "2.1.0",
      "component": "HistoryLayout",
      "label": "Historik / resultat",
      "source": "src/layouts.tsx",
      "desktopColumns": {
        "main": 8,
        "aside": 4
      },
      "grid": "4/8/12, same DOM order",
      "hierarchy": "Header → filters → events → selected result",
      "mobileReadingOrder": "Header → filters → events → selected result",
      "responsive": "Stack content and aside below 64rem container width; 4/8/12 columns at 0/40/64rem. Main uses full width when aside is absent.",
      "primaryActions": "Select an event with a native button; show outcome with text and icon.",
      "emptyAndLong": "Explicit empty state; no invented fallback facts; wrap long words and values.",
      "focus": "DOM order is focus order; no tabindex reordering or hidden hover-only action.",
      "a11y": [
        "Named sections and correct heading levels",
        "44px controls",
        "Reflow at 320 CSS px",
        "No sticky actions obscuring focus"
      ],
      "variants": [
        "with/without supporting aside"
      ],
      "states": [
        "populated",
        "empty",
        "long values"
      ],
      "tokens": [
        "--ds-content-max",
        "--ds-text-measure",
        "--ds-space-5",
        "--ds-surface-alt"
      ],
      "changes": [
        "New layout pattern in 2.0; no automatic project adoption"
      ],
      "incompatibleChanges": [],
      "history": [
        {
          "version": "2.0.0",
          "change": "Introduced, local candidate; not PO accepted."
        },
        {
          "version": "2.1.0",
          "change": "Core API preserved; opt-in Vinkällare Edition added in the same package."
        }
      ],
      "examples": {
        "before": "No exported layout pattern in 1.1; consumer owned the page composition.",
        "after": "<HistoryLayout header={<PageHeader title=\"Exempel\" />} aside={<Card>Sammanhang</Card>}>Huvudinnehåll</HistoryLayout>"
      }
    }
  ],
  "componentChange": {
    "id": "button-loading-label",
    "from": "button/1.1.0",
    "to": "button/2.0.0",
    "before": "<Button loading>Spara</Button>",
    "after": "<Button loading loadingLabel=\"Kontrollerar…\">Spara</Button>",
    "actualChange": "Optional loadingLabel makes busy text specific without changing handlers, default type, loading disable or confirmation behavior.",
    "breaking": [
      "Package 2.0 changes default visual palette and adds layout/token exports",
      "No API removal; old ghost/danger aliases remain"
    ],
    "preserve": [
      "onClick/onSubmit behavior",
      "type",
      "disabled",
      "user values",
      "confirmation/persistence boundaries"
    ],
    "agentInstruction": "Inspect tokens.json, this contract and Button source. Change only the loading presentation where the product owner has approved it. Keep event handlers, type and data flows. Run keyboard/loading tests and review before persistence. Never auto-migrate other repositories.",
    "history": [
      {
        "version": "1.1.0",
        "status": "local technical baseline; not PO accepted",
        "change": "Busy spinner retains children."
      },
      {
        "version": "2.0.0",
        "status": "local candidate; not PO accepted",
        "change": "Optional loadingLabel plus provisional themes and foundations."
      }
    ],
    "autoMigration": false
  },
  "coreVersion": "2.1.0",
  "editions": [
    {
      "id": "vinkallare",
      "version": "2.1.0",
      "contract": "@andersskoglund/design-system/vinkallare/contracts.json",
      "adoption": "explicit-opt-in-only"
    }
  ]
}
