Skip to contentPorsche Design System
You are currently viewing an earlier release of the Porsche Design System.Switch to the latest Porsche Design System documentation.
SearchGitHub repository of Porsche Design SystemOpen settings sidebar
AI Agent Context Table of Contents Install generation-time guardrails for WCAG 2.2 AA and applicable EN 301 549 with web-accessibility-codegen. After install, generate UI as usual: an always-on instruction loads the accessible-frontend skill when markup or behavior changes. This package does not install Porsche Design System knowledge skills. Expose the version-matched PDS skill separately via the PDS Agent Skills documentation. Use that skill for PDS component APIs; use accessible-frontend for generic page and application accessibility. To audit generated UI, see AI Accessibility Audit. RequirementDetailsAgentsGitHub Copilot, Claude Code, Cursor, Windsurf, Gemini, Codex, or a shared agent-skills consumerRuntimeAPM CLI (tested with 0.30.0)AccessRead access to the internal porsche-design-system/skills repository (available to Porsche GitHub Enterprise members; reach out via Support to request access)ProductA local checkout of the web application Install Install APM if needed: macOS: brew install apm Linux / macOS without Homebrew: curl -sSL https://aka.ms/apm-unix | sh Windows: irm https://aka.ms/apm-windows | iex Then from the product repository root install the package and pass --target for the agent harnesses that should receive the files. Comma-separate several values to target different harnesses. This package deploys to copilot, cursor, claude, gemini, codex, windsurf, and agent-skills. A repo with no harness markers and no targets: list in apm.yml will fail apm install until you set --target. One harness:
apm install porsche-design-system/skills/packages/web-accessibility-codegen#web-accessibility-codegen--v0.3.0 --target cursor
Several harnesses (comma-separated):
apm install porsche-design-system/skills/packages/web-accessibility-codegen#web-accessibility-codegen--v0.3.0 --target cursor,claude,copilot
To move version, re-run apm install with the new package tag. To remove it, pass the package from apm.yml or apm deps list to apm uninstall (e.g. apm uninstall porsche-design-system/skills/packages/web-accessibility-codegen) and run apm install again. How it works Supported stacks: Next.js, React, Angular, Vue, Astro, and vanilla JavaScript. Svelte is not in scope. The instruction applies to html, css, scss, js, ts, tsx, jsx, vue, astro, and mdx. Always-on guardrails cover semantic or installed primitives, keyboard and focus, names/instructions/errors, visual adaptability, and dynamic announcements. The skill then loads only what the edit needs: Minimal: one matching topic for styling or copy. Component: the most specific Pattern or Composition topic; keyboard/focus when the control is interactive. Page or feature: structure, keyboard/focus, visual, and framework guidance, plus other topics that apply. Generate a page: the skill loads structure, routing, links, media, and each pattern on the page. Generate UI with PDS: use the separately installed pds-knowledge-* skill for component APIs; this package covers the surrounding page. If no PDS skill is available, it stays generic and does not guess PDS APIs. Setup: PDS skill installation. Deploy paths and compile notes for Gemini/Codex live in the package README. Do not overwrite an existing project AGENTS.md with a stub. Limitations This package targets standards while UI is generated; it does not certify accessibility or replace PDS component do/don'ts. After generation, run an AI Accessibility Audit and complete keyboard and assistive-technology checks. Source review alone is not enough. Standard: WCAG 2.2 Level AA. Porsche guidance: Accessibility of digital products at Porsche.
v4.11.0v2v1
Global settingsColor SchemeAll color tokens use the light-dark() CSS function. Set the theme via the CSS color-scheme property: light for light mode, dark for dark mode, or light dark to follow the user's system preference.LightDarkLight DarkDirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%