Skip to content

feat: add dark-mode-contrast rule (WCAG AA on inline pairs) - #55

Merged
atherdon merged 3 commits into
mainfrom
feat/quality-dark-contrast
Oct 26, 2026
Merged

atherdon merged 3 commits into
mainfrom
feat/quality-dark-contrast

Conversation

@atherdon

Copy link
Copy Markdown
Contributor

Adds darkModeContrast to the quality toolkit. It scans inline style attributes for color/background pairs, computes the WCAG contrast ratio, and reports pairs below 4.5:1. Short hex forms are expanded. The rule runs as part of lintEmail and is exported for direct use.

The Light/Dark preview already exists; this rule analyses the CSS itself so it does not depend on the frame's color-scheme.

Adds darkModeContrast to the quality toolkit. It scans inline style
attributes for color/background pairs, computes the WCAG contrast ratio,
and reports pairs below 4.5:1. Short hex forms are expanded. The rule
runs as part of lintEmail and is exported for direct use.

The Light/Dark preview already exists; this rule analyses the CSS itself
so it does not depend on the frame's color-scheme.
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Rendered emails

This PR rendered emails.

Open the run → Artifacts → download → open index.html.

atherdon and others added 2 commits October 26, 2026 22:20
Co-authored-by: petroved <arthur.tkachenko.netweight@gmail.com>
Co-authored-by: petroved <arthur.tkachenko.netweight@gmail.com>
@atherdon
atherdon merged commit 1cc4670 into main Oct 26, 2026
7 checks passed
@atherdon
atherdon deleted the feat/quality-dark-contrast branch October 26, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant