tezvyn:

How would you automatically audit WCAG AA contrast in Figma?

Source: developer.mozilla.orgadvanced

This tests Figma plugin vs REST API color extraction limits. Good answers contrast live traversal with export-based analysis, cite WCAG AA ratios of 4.5:1 and 3:1, and note opacity. A red flag is assuming the REST API can sample pixels without image export.

This tests Figma plugin versus REST API capability gaps for rendered color audits. A strong answer distinguishes the plugin's live document traversal and style reads from the REST API's need to export images for pixel sampling. It cites WCAG AA thresholds of 4.5:1 for normal text and 3:1 for large text or UI components, notes handling of gradients, blend modes, and nested backgrounds, and proposes a hybrid plugin-plus-CI workflow. A red flag is assuming the REST API exposes computed pixel colors directly.

Read the original → developer.mozilla.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

How would you automatically audit WCAG AA contrast in Figma? · Tezvyn