CI drift gate (GitHub Actions)
Overview
Stop off-brand UI from merging. Extract the deploy preview, compare it against a baseline, and fail the build when design tokens drift.
AI coding tools and quick fixes ship subtle visual regressions: a slightly wrong blue, a spacing step that no longer matches, a shadow that crept in. The --compare flag turns Dembrandt into a CI gate. Capture a baseline once from the design you have approved, then on every pull request extract the deploy preview and compare. Dembrandt exits 1 when the drift score crosses the threshold, so the check goes red exactly like a failing test, and writes a self-contained HTML report you can attach as a build artifact. No design review meeting required to catch that the button color changed.
Capture the baseline once (same environment you will check against)
In CI: compare the preview, fail on drift, write a report
Accept an intentional change as the new baseline
Red check on drift (exit 1), green when stable. Self-contained HTML report as a build artifact, plus a 0-100 drift score per page.
More in Automation
Browse all
All recipes →
Continue reading
Getting started
Install Dembrandt and turn any public website into a complete set of design tokens in under 2 minutes. All you need is Node.js and a terminal.
MCP
Use Dembrandt as a tool inside Claude Code, Cursor, Windsurf, or any MCP-compatible editor. Your agent extracts live design tokens automatically when you ask.
Skills
30 UX and design system skills for AI agents. Install once, your agent designs with hierarchy, WCAG standards, and brand accuracy. The UX knowledge that normally costs senior consultant days.