# Contrast pairs the theme check measures The colour pairs `aancer-pack lint` and the installation check in every theme block of a theme pack, with the WCAG 2.x thresholds. Below 1.5:1 on an illegible pair the pack is refused (`THEME_ILLEGIBLE`); below the AA threshold it is a warning (`CONTRAST_AA`). Colours with transparency are measured over white. | Foreground | Background | Kind | Warning below (AA) | Refused below | light | dark | midnight | high-contrast | trust-authority | legal | terminal | |---|---|---|---|---|---|---|---|---|---|---|---| | `--t0` | `--bg` | text | 4.5:1 | 1.5:1 | 13.43:1 | 14.65:1 | 14.82:1 | 21:1 | 16.3:1 | 17.06:1 | 17.03:1 | | `--t0` | `--s2` | text | 4.5:1 | 1.5:1 | 14.5:1 | 13.3:1 | 13.92:1 | 21:1 | 13.35:1 | 17.85:1 | 15.35:1 | | `--t1` | `--s1` | text | 4.5:1 | — | 5.27:1 | 7.15:1 | 7.39:1 | 16.48:1 | 6.96:1 | 7.24:1 | 8.19:1 | | `--t2` | `--s1` | text | 4.5:1 | — | 4.55:1 | 4.97:1 | 4.82:1 | 10.86:1 | 3.75:1 | 4.55:1 | 3.29:1 | | `--aci` | `--ac` | text | 4.5:1 | 1.5:1 | 5.36:1 | 9.2:1 | 7.44:1 | 12.3:1 | 8.31:1 | 10.36:1 | 7.55:1 | | `--tei` | `--te` | text | 4.5:1 | — | 6.55:1 | 7.52:1 | 10.72:1 | 9.35:1 | 7.83:1 | 6.15:1 | 7.55:1 | | `--ink-on-anchor` | `--anchor` | text | 4.5:1 | 1.5:1 | 14.86:1 | 17.4:1 | 16.84:1 | 21:1 | 17.57:1 | 9.45:1 | 17.03:1 | | `--ink-on-anchor-dim` | `--anchor` | text | 4.5:1 | — | 6.64:1 | 7.77:1 | 7.71:1 | 14.88:1 | 7.51:1 | 5.88:1 | 6.83:1 | | `--ac` | `--s1` | UI component / graphic | 3:1 | — | 4.96:1 | 9.53:1 | 7.74:1 | 12.3:1 | 8.31:1 | 9.9:1 | 9.22:1 | | `--pr` | `--s1` | UI component / graphic | 3:1 | — | 6.2:1 | 7.06:1 | 9.43:1 | 11.59:1 | 7.02:1 | 6.41:1 | 8.31:1 | | `--re` | `--s1` | UI component / graphic | 3:1 | — | 6.09:1 | 7.04:1 | 7.03:1 | 9.58:1 | 6.45:1 | 6.28:1 | 6.26:1 | | `--am` | `--s1` | UI component / graphic | 3:1 | — | 6.14:1 | 8.13:1 | 8.9:1 | 8.42:1 | 4.22:1 | 4.8:1 | 9.78:1 | | `--te` | `--s1` | UI component / graphic | 3:1 | — | 6.06:1 | 7.79:1 | 11.15:1 | 9.35:1 | 7.83:1 | 5.88:1 | 9.22:1 |