Every developer using Claude Code, Cursor, Codex, or OpenCode recognizes the distinct visual footprint of an LLM-generated frontend. It hits you immediately. There is an unnecessary eyebrow label floating above every section title, tracked-capital text where normal case belongs, a random single colored word inside a primary headline, and a predictable hero section that fails to fit the browser screen cleanly. Add in empty image frames, an obligatory newsletter form tacked onto the bottom of every layout, and forms that display a generic thank-you toast without dispatching a network request, and the pattern becomes impossible to unsee.
Models default to visual reflexes because standard prompts lack structural constraints. Together AI built Hallmark, created by nutlope, to fix this exact bottleneck. Hallmark operates as an explicit design skill for AI coding assistants. It enforces a strict visual floor, runs head-to-head linting inside a real headless environment, and immediately gets out of the way so the underlying application can function.
The Architecture of Visual Gates: Floor, Reflex, and Finish
Instead of relying on soft system prompts that models frequently ignore under complex state management tasks, Hallmark introduces a three-tier gate model. This structure separates catastrophic frontend failures from subjective craft details.
| Gate Tier | Execution Rules | Target Attributes & Violations |
|---|---|---|
| Floor | Hard stop. Never ships under any circumstances. | Broken contrast, missing focus states, unhandled reduced motion, invented facts/data, broken mobile responsive layouts. |
| Reflex | Model default behaviors. Overruled on the record if a build reason exists. | Generic eyebrow headings, single-word highlight colors, tracked caps, default hero patterns, repetitive email footers. |
| Finish | Micro-craft details. Never blocks a ship pipeline. | Subtle component alignment, micro-texture tuning, minor typographic balance. |
The Floor gate guarantees that accessibility standards and basic mobile responsiveness are met before code is committed. If a generated layout breaks on mobile width, fabricates numbers, or drops contrast below readable thresholds, the build is rejected instantly.
The Hallmark Execution Pipeline: Pre-Flight to Sloplint
Hallmark does not dump generic template strings into your prompt window. It executes a multi-stage compilation flow that forces the LLM to inspect the DOM cold before completing the build.
1. Pre-Flight and Context Extraction
The build process begins by scanning the current project environment. It reads existing typography choices, CSS palette structures, the underlying frontend framework, and a locked design.md configuration file. During pre-flight, Hallmark asks once for real materials, including target app screenshots, real asset URLs, and verified numbers. Invented facts are explicitly barred from the context.
2. Anatomy Generation via theme.mjs
To determine visual layout without hardcoding fixed templates, the builder calls:
bashscripts/theme.mjs deal
This script evaluates the user's prompt against catalog materials and offers three distinct fitting themes while clearing the system log. Next, draw establishes the page's structural anatomy strictly based on the primary job of the interface. If the page is a booking application, the booking mechanism takes top visual priority; if it is a store, the purchasing flow sits squarely at the focal point.
3. Isolated Hero Rendering
Hero sections are a common source of layout bugs in model-generated UIs. Hallmark handles the hero component in complete isolation. The hero is generated, rendered, and reviewed cold by a separate subagent before any lower sections of the page are created.
4. Browser-Based Linting with sloplint.mjs
Once the self-contained HTML and CSS are generated, Hallmark passes the code into a real browser environment for headless validation across eight distinct viewport widths:
bashscripts/sloplint.mjs --render
A fresh-context reviewer subagent inspects the rendered artifacts at each breakpoint. This subagent has no memory of the generation loop, providing an unbiased final assessment against AI slop indicators before handing off the code.
+------------------+ +-----------------------+ +------------------------+
| Pre-Flight Context | --> | Theme Deal & Draw | --> | Isolated Hero Build |
| (design.md, fonts)| | (scripts/theme.mjs) | | (Cold Subagent Review) |
+------------------+ +-----------------------+ +------------------------+
|
v
+------------------+ +-----------------------+ +------------------------+
| Stamped HTML/CSS | <-- | Fresh-Context Subagent| <-- | Viewport Linting |
| Output | | Final Approval | | (sloplint.mjs --render)|
+------------------+ +-----------------------+ +------------------------+
Theme Materials vs. Raw Custom Mode
Hallmark includes fifty themes, each defined in a single file capped at 8 KB within references/themes/ alongside a visual reference image. Crucially, a Hallmark theme is a material, not a rigid layout plan. It defines surface textures, paper tones, custom component styles, and typography palettes without dictating section order or content hierarchy. As a result, two separate prompts using the exact same theme generate distinct visual layouts.
Sample Catalog Themes
| Theme Name | Sample Domain Context | Surface & Architectural Focus |
|---|---|---|
| Dusk | Closewise | Bank reconciliation interfaces and financial dashboards. |
| Cobalt | Relay | Webhook API monitoring and technical developer portals. |
| Studio | Field Office | Identity studio portfolios and creative agency landers. |
| Atelier | Maison Orla | Fragrance and luxury goods commerce pages. |
| Ribbon | Lull | Ambient sleep sounds and wellness media tools. |
| Furrow | Fieldbook | Agricultural tracking and field record management. |
| Dose | Tandem | Family medication tracking and healthcare schedules. |
| Refract | Bellwater Lido | Outdoor pool management and recreational booking. |
| Vantage | Swath | Construction site scanning and spatial data apps. |
| Hedgerow | Five Mile Gin | Craft distillery brand pages and product showcases. |
When building without themes, passing the keyword custom strips away all pre-built palettes, components, and layout recipes. In custom mode, Hallmark relies exclusively on direction.md alongside its core gate rules, searching for a single client-specific design idea to drive the entire interface.
For photography requirements, Hallmark bypasses generic placeholder services by drawing from a curated catalog of 755 openly licensed photos. Assets are programmatically picked by subject context and automatically credited on the page. Every built page is output as self-contained HTML and CSS, stamped within its initial CSS comment block with a log of every design decision made during the generation run.
Safely Auditing and Redesigning Existing Production Code
One of the greatest risks in automated UI refactoring is losing application state, broken event handlers, or missing route links. Hallmark prevents regression through dedicated redesign and audit routines. It will never run on an existing page unless explicitly target path parameters are passed:
bash/hallmark redesign ./src/app /hallmark audit ./index.html
The redesign workflow enforces content and behavior preservation:
- State Snapshotting: Before modifying the layout,
sloplint --beforeparses and indexes every link, input field, form handler, and heading tag across the target source file. - Rebuilding System & Layout: The visual layout and component architecture are updated while retaining underlying wiring and content strings. Developers can pass options like
keep the layoutfor pure restyling orpolishto target only detected AI slop tropes. - Verification:
sloplint --keptevaluates the generated code against the initial snapshot. If a single event handler, input field, or link is missing, the build process fails automatically. - Handoff: The final output provides a clean, side-by-side diff comparing the original interface against the updated, un-slopped layout.
Installation and Requirements
Hallmark can be deployed globally across developer environments or locked directly into a specific project repository.
bash# Install globally for all local projects npx skills add nutlope/hallmark -g # Install locally into the current repository npx skills add nutlope/hallmark
System Prerequisites
- Node.js: Version 18 or higher.
- Rendering Engine: Browser execution capabilities configured locally to support real-time headless checks via
sloplint.mjs --render.
By coupling multi-viewport browser checks directly with strict structural floor constraints, Hallmark bridges the gap between fast LLM code generation and professional UI craft.
