# Application Accessibility: Contrast Checker Card

Theme token contrast audit card showing computed ratios and AA and AAA pass badges for normal and large text across four Acme token pairings.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/contrast-checker-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Accessibility](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/contrast-checker-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-accessibility-contrast-checker-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/application-pro/accessibility/contrast-checker-card`

## About this block

Contrast Checker Card lists four Acme theme token
pairings in a ruled card: foreground on background at
14.2:1, muted-foreground on background at 5.3:1, primary
button label at 7.1:1, and muted text on card at 4.7:1.
Each row shows a live swatch (the actual token values
rendered as a tiny Aa preview), the numeric ratio, and
four pass/fail badges: AA Normal, AAA Normal, AA Large,
AAA Large. The footer carries the honest caveat that
math is only the start.

Pairs are one typed array with every boolean field on
every object. The swatch uses inline style so the preview
reflects the actual deployed theme rather than a
hardcoded color.

## When to use

Reach for this block on the design system or
accessibility page, wired to the CSS custom properties
of the theme you are auditing. Update the ratio values
whenever the palette changes.

A natural flow around it on an Application Pro page:

**Before**

- [A11y checklist panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility)

**After**

- [Keyboard nav guide](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility)
- [Screen-reader labels table](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility)

## What you can display

One strong use is the theme token contrast audit card.
Other contrast checker shapes:

- **Dark mode pairings.** The same structure with the
  dark token values and their own ratios.
- **Brand color audit.** Non-semantic brand tokens
  checked against white and black backgrounds.
- **Interactive state pairs.** Hover, focus, and
  disabled token values alongside the default.

> Tip: include the font weight in the note column;
> a 4.5:1 ratio at 400 weight behaves differently
> than the same ratio at 700.

## More in Application Accessibility

- [A11y Checklist Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/a11y-checklist-panel)
- [A11y Issue Trends](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/a11y-issue-trends)
- [A11y Preferences Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/a11y-preferences-panel)
- [Alt Text Review Queue](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/alt-text-review-queue)
- [Assistive Tech Matrix](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/assistive-tech-matrix)
- [Conformance Report Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/conformance-report-card)
- [Focus Order Inspector](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/focus-order-inspector)
- [Heading Outline Tree](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/heading-outline-tree)
- [Keyboard Nav Guide](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/keyboard-nav-guide)
- [Live Region Log](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/live-region-log)
- [Media Captions Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/media-captions-audit)
- [Reduced Motion Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/reduced-motion-audit)
- [Screen Reader Labels Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/screen-reader-labels-table)
- [Touch Target Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/touch-target-audit)
- [Zoom Reflow Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/accessibility/zoom-reflow-audit)
