Skip to main content

Lamina vs Magic Patterns

Magic Patterns generates brand-aligned components. Lamina is a headless product design skill that specs behavior and verifies the running app.

Curated by Aryan Iyappan · Updated 2026-07-13

Magic Patterns generates on-brand UI. Lamina specs headless product design: behavior contracts and live verification.

Who this comparison is for

You are in the right place if

  • Components match your design system but flows skip prerequisites.
  • Magic Patterns output merges cleanly yet partner gates are missing.
  • You generate screens fast but QA finds illegal product states.

Context

Magic Patterns targets teams with an established design system who want generated UI that does not fight their tokens. That is a different problem than behavior design. Generated components can be on-brand and still allow illegal transitions if domain rules were never specced.

Common situations

Concrete cases from AI-shipping workflows. Each shows what the alternative handles and where a behavior contract helps.

On-brand wizard UI, wrong step order

Situation
Magic Patterns produced a stepped onboarding wizard matching brand components. Users can jump to the final step.
What Magic Patterns does
Generates branded stepper UI and form layouts.
What Lamina adds
Permission matrix for step advance and submit unlock.
Takeaway
Brand-accurate UI still needs behavior rules.

Isolated settings card refresh

Situation
Regenerate a profile card component with updated tokens. No flow changes.
What Magic Patterns does
Magic Patterns alone.
What Lamina adds
Skip Lamina.
Takeaway
Component isolation: visual tool only.

Checkout components from design system

Situation
Generated checkout matches design system. Hold banner renders but pay ignores hold expiry.
What Magic Patterns does
Provides checkout UI patterns from your system.
What Lamina adds
Hold lifecycle and pay preconditions in run.yaml.
Takeaway
Pair generation with behavior spec for money paths.

Comparison

Lamina vs Magic Patterns
DimensionMagic PatternsLamina
Primary jobDesign-system-aware UI generationBehavior contracts and verify
Layer in stackUI generationBehavior layer
Primary outputReact components aligned to brandrun.yaml + implement.md
Writes app source?YesNo
Behavior spec (states, flows, permissions)Component-level patternsActor flows and permissions
Durable in-repo artifactGenerated exports.lamina/ in git
Post-build verificationPlatform preview/lamina-verify
Repo and stack fitTeams with design systemsAny repo
Best whenBrand-accurate UI at speedRoles, gates, recovery paths
When you don't need LaminaIsolated components, no flow rulesNo domain behavior change
Compose with Lamina?Generate UISpec → integrate → verify

Workflow

Lamina vs Magic Patterns: recommended workflow
StepMagic PatternsLamina
1Generate components in Magic Patterns/lamina-design on feature
2Export to repoimplement.md guides integration
3Wire UI in appEnforce contract server-side
4Visual review/lamina-verify

Worked example

Confirm cancel with refund preview. Magic Patterns can generate a cancel dialog matching your system. Lamina specs deliberate cancel flow: policy reminder, refund amount, confirm step. HavenStay verify found one-click cancel without preview when behavior was not contracted.

HavenStay demo walkthrough

Frequently asked questions

Can they work together?

Yes. Magic Patterns for UI; Lamina for behavior and verification.

Magic Patterns vs v0: where does Lamina fit?

Both are UI generators. Lamina sits after export for any generator when behavior matters.

We export Magic Patterns components without flow rules. When do we add Lamina?

Run /lamina-design on the first feature with roles, gates, or multi-step flows after export.

Comparisons map stack layers, repo artifacts, and HavenStay demo examples. Updated when major tools change positioning.

Install in one command.

A headless product-design skill for your AI coding agent. Then run the design → implement → verify loop on your next feature.

Apache-2.0 · open source. Star on GitHub if Lamina saves you a loop.

npx skills install aryaniyaps/lamina

Works with your coding agent

  • Cursor
  • Claude Code
  • Codex
  • Gemini
  • Pi
  • and more