CSS Contract
| ID |
2 |
| UUID |
4134c9b2-ee2f-4a2e-a466-8ceb5df87ade |
| Version |
2.0 |
| Status |
active |
| Scope |
|
| Erstellt |
2025-12-20 10:59:58 von migration |
| Aktualisiert |
2025-12-22 09:42:13 |
YAML-Inhalt
contract:
name: css-standards
version: "2.0"
status: active
description: |
CSS-Standards mit Fokus auf Accessibility (WCAG 2.1 AA).
Migriert auf Meta-Schema v1.0 am 22.12.2025.
created: "2025-12-20"
author: migration
scope:
paths:
- "/src/View/**/*.php"
- "/public/css/**/*.css"
rules:
- id: contrast-normal-text
check_type: custom
script: "/opt/scripts/contract-validators/color_contrast.py"
args: ["--min-ratio", "4.5"]
severity: critical
description: "Farbkontrast min. 4.5:1 für normalen Text (WCAG 1.4.3)"
- id: no-outline-none
check_type: forbidden_pattern
patterns:
- "outline: none"
- "outline: 0"
- "outline:none"
- "outline:0"
in_files: "**/*.css"
severity: major
description: "Focus-Styles niemals entfernen (WCAG 2.4.7)"
- id: no-important
check_type: forbidden_pattern
patterns:
- "!important"
in_files: "**/*.css"
exclude_files:
- "**/utilities.css"
severity: major
description: "Kein !important außer für Utility-Klassen"
- id: code-block-colors
check_type: required_pattern
patterns:
- "pre"
- "code"
in_files: "**/*.css"
severity: critical
description: "Pre/Code-Blöcke müssen Farben definieren"
- id: min-font-size
check_type: forbidden_pattern
patterns:
- "font-size: 12px"
- "font-size: 11px"
- "font-size: 10px"
- "font-size: 0.75rem"
- "font-size: 0.7rem"
in_files: "**/*.css"
severity: major
description: "Mindestschriftgröße 16px für Fließtext"
enforcement:
on_violation: warn
pass_threshold:
critical_max: 0
major_max: 2
minor_max: 5
Aktionen
Versionshistorie
| Version |
Geändert am |
Von |
Beschreibung |
| 2.0 (aktuell) |
2025-12-22 09:42:13 |
- |
- |
| 1.0 |
2025-12-22 09:42:13 |
claude |
Migration auf Meta-Schema v1.0: scope.paths als Array, rules als flache Liste mit check_type |
Letzte Validierungen
| Datum |
Ergebnis |
Critical |
Major |
Minor |
Dauer |
| 2025-12-20 16:59:58 |
passed |
0 |
0 |
0 |
6ms |
| 2025-12-20 14:38:20 |
passed |
0 |
0 |
0 |
6ms |
← Zurück zur Übersicht