# DÁP Design System Development Documentation for LLMs **Access this file via URL:** https://services.gov.hu/design-system-dev/llms.txt This file provides comprehensive information about the DÁP Design System web component library for use by Large Language Models (LLMs) when working with this system. ## LLM Usage Rules (Read First) - Prefer web components with the `dap-ds-` prefix; avoid reimplementing components with custom HTML unless the CSS-only path is explicitly requested. - Always include a theme stylesheet when rendering UI examples (via NPM import or CDN). Without it, components may render unstyled. - In HTML, use kebab-case attributes (e.g., `variant="outline"`, `size="lg"`). In React wrappers (if used), use camelCase props; for raw web components in React, set attributes as strings and attach events via `addEventListener`. - Do not hardcode colors, spacing, or typography. Use design tokens (`--dds-*`) or component attributes/variants. - Prefer slots and documented CSS parts over DOM traversal for styling internals. - Assume client-side rendering for web components. For SSR frameworks, dynamically load client-only pieces. - When uncertain, link to the relevant component page in suggestions and use conservative defaults (primary, md, neutral sizing/spacing). ## Documentation Links - Main Documentation: https://services.gov.hu/design-system-dev/ - Component Library: https://services.gov.hu/design-system-dev/webcomponents - Design Tokens and CSS variables: https://services.gov.hu/design-system-dev/designtokens - Framework Integration: https://services.gov.hu/design-system-dev/frameworks - Styling Guide: https://services.gov.hu/design-system-dev/styling - Typography Guide: https://services.gov.hu/design-system-dev/typography - Form Controls: https://services.gov.hu/design-system-dev/form - Themes: https://services.gov.hu/design-system-dev/themes - Code Completion: https://services.gov.hu/design-system-dev/codecompletion - Changelog: https://services.gov.hu/design-system-dev/changelog - NPM Package: https://www.npmjs.com/package/dap-design-system - CDN: https://cdn.jsdelivr.net/npm/dap-design-system - GitHub Examples: https://github.com/mohojojo/dap-ds-examples ## System Overview The DÁP Design System is a comprehensive web component library for building Hungarian Government digital services. It uses: - Web Components built with LitJS - Framework-agnostic implementation - Custom CSS variables (design tokens) - TypeScript support - Available via NPM and CDN ## Installation & Setup ### NPM Installation ```bash npm install dap-design-system yarn add dap-design-system pnpm add dap-design-system ``` ### CDN Usage ```html ``` Minimal HTML usage example (safe default): ```html Continue Accept terms