/rams - Design Engineer for Claude Code, Cursor, and OpenCode
Key Points
- 1This document is a RAMS Design Review report that identifies various accessibility (WCAG 2.1) and visual design issues within code.
- 2It categorizes problems by severity, highlighting critical issues like missing accessible names and serious ones such as removed focus outlines.
- 3Each finding includes line numbers, code snippets, fix suggestions, WCAG references, and concludes with a summary of issues and an overall score.
This document outlines a technical review system, "RAMS DESIGN REVIEW," designed to evaluate web application source code for adherence to accessibility (WCAG 2.1) and visual design standards.
The core methodology involves a static analysis process that scans code, such as JSX/TSX files (e.g., app/page.tsx), to identify deviations from predefined best practices. Issues are systematically categorized by severity: Critical, Serious, and Moderate.
Accessibility (WCAG 2.1) Checks:
- Critical issues identified include elements lacking
alttext, icon-only elements missingaria-labelattributes for semantic meaning, form inputs (, , ) without associated elements, non-semantic DOM elements (e.g., ) used withonClickhandlers, and (anchor) elements without anhrefattribute. - Serious issues encompass instances where the default browser focus outline is suppressed (e.g., using
outline-none) without a suitable replacement, absence of keyboard event handlers for interactive components, conveying information solely through color, and touch targets (interactive elements) smaller than the recommended 44x44px. - Moderate issues include skipped heading levels ( followed by without ), positive
tabIndexvalues which disrupt natural tab order, and ARIAroleattributes used without their required accompanying attributes.
Visual Design Checks:
- Layout & Spacing issues include inconsistent spacing values across components, overflow and alignment discrepancies, and CSS
z-indexconflicts. - Typography concerns involve the use of mixed font families and weights, incorrect line height values, and missing font fallbacks in CSS.
- Color & Contrast issues are flagged for contrast ratios below the WCAG 2.1 recommended 4.5:1, absent hover or focus states for interactive elements, and inconsistencies in dark mode implementations.
- Components checks look for missing states for buttons and form fields (e.g.,
:hover,:focus,:active,:disabled), and inconsistent application of borders and shadows.
For each identified issue, the system generates a detailed output that includes:
- The specific line number in the source file where the issue occurs.
- The exact code snippet responsible for the violation.
- A prescriptive fix suggestion.
- For accessibility findings, the corresponding WCAG 2.1 success criterion (e.g., 4.1.2, 2.4.7).
An example review for app/page.tsx demonstrated a Critical issue on Line 24: missing an accessible name, with the fix suggested as and reference WCAG 4.1.2. A Serious issue on Line 48 noted a removed focus outline () with the fix focus-visible:ring-2 and reference WCAG 2.4.7.
The review culminates in a summary count of Critical, Serious, and Moderate issues, and a composite accessibility/design score out of 100 (e.g., 68/100). The tool is invokable via command-line syntax, such as /rams for a general review or for specific file analysis.