Best For
z-pattern layout / z-pattern / eye tracking design
A Z-pattern scanning layout based on eye-tracking, where the gaze moves from top-left to top-right, diagonally to bottom-left, then to bottom-right, forming a Z-path. Ideal for landing pages, marketing pages, and concise information displays.
Best For
z-pattern layout / z-pattern / eye tracking design
Primary Move
Place logo/brand identity in the top-left corner
Watch Out
Do NOT place unimportant content on the Z-path
AI Implementation
Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Z-Pattern Layout
style_slug: z-pattern-layout
style_source: /styles/z-pattern-layout
# Hard Prompt
## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.
## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.
Strictly follow the style rules below and maintain consistency. No style drift allowed.
## Requirements
- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.
## Style Rules
You are a Z-Pattern Layout expert. All generated code must strictly follow these constraints:
## Layout Rules
Z-path four key points:
1. Top-left: Logo / brand identity
2. Top-right: Navigation / primary CTA
3. Middle diagonal: Core value proposition / main content
4. Bottom-left: Trust badges / social proof
5. Bottom-right: Final CTA button
## Content Rules
- Each row of information is independently complete
- First row establishes brand awareness
- Diagonal area delivers core value
- Last row drives conversion
- Content is concise, avoiding path interference
## Visual Guidance
- Use contrasting colors to highlight CTAs
- Use whitespace to guide visual flow
- Center layout for middle area
- Use flex justify-between for header and footer
## Responsive
Desktop: Complete Z-path
Tablet: Maintain Z-path, reduce spacing
Mobile: Vertical stack, maintain priority order
## Self-Check
1. Logo at top-left, CTA at top-right
2. Core content centered
3. Final CTA at bottom-right
4. Visual path is clear and fluid
5. Page is clean and uncluttered
## Animation & Interaction Rules
- Funnel Focus: When hovering core areas (feature cards, inputs), must use noticeable float (`hover:-translate-y-1`) and shadow expansion (`hover:shadow-xl`) to firmly lock user attention, reinforcing conversion node presence.
- CTA Magnetism: Action buttons at Z-path key nodes must use elastic scaling (`hover:scale-[1.02]`) combined with brand color halo on hover, making buttons feel magnetically attractive.
- Crisp Progression: Business landing pages do not allow sluggish animations. Mandatory `duration-200 ease-out`, ensuring feedback is crisp without interrupting the user's Z-scan rhythm.
- Clear Focus: On input focus, beyond the outer ring glow, brighten background from gray/transparent to pure white, providing clear data input indication.
---
# Z-Pattern Layout Design System
> A Z-pattern scanning layout based on eye-tracking, where the gaze moves from top-left to top-right, diagonally to bottom-left, then to bottom-right, forming a Z-path. Ideal for landing pages, marketing pages, and concise information displays.
## Design Philosophy
Z-Pattern Layout is based on the user's natural scanning path on visually clean pages. The gaze moves from the top-left (logo/brand) to the top-right (CTA), then diagonally to the bottom-left, and finally to the bottom-right (final CTA).
Core principles:
- Visual guidance: Using the Z-path to guide users through a preset information reception sequence
- Key positions: The four corners are the most important information placement points
- Clean and clear: Suitable for pages with less content but strong conversion needs
- Progressive layers: Each row is an information hierarchy level
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border
Color: border-gray-200
Radius: rounded-xl
```
### Shadow
```
sm: shadow-sm
md: shadow-md
lg: shadow-lg shadow-[#6366f1]/25
hover: hover:shadow-xl hover:shadow-[#6366f1]/30
focus: focus:shadow-md
```
### Interaction
```
Hover translate: hover:-translate-y-0.5
Hover scale: (none)
Hover opacity: (none)
Transition: transition-all duration-300
Active: active:scale-95
```
### Typefaces
```
Heading: font-bold tracking-tight
Body: font-sans
Mono: font-mono
```
### Type scale
```
Hero: text-4xl md:text-5xl lg:text-6xl
H1: text-3xl md:text-4xl
H2: text-2xl md:text-3xl
H3: text-lg md:text-xl
Body: text-base md:text-lg
Small: text-sm
```
### Spacing
```
Section: py-12 md:py-16 lg:py-20
Container: px-4 md:px-6 lg:px-8
Card: p-6 md:p-8
Gap sm: gap-3 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-10
```
### Color roles
```
Background primary: bg-white
Background secondary: bg-gray-50
Background accent: bg-[#6366f1], bg-[#06b6d4], bg-[#f59e0b], bg-[#ec4899]
Text primary: text-[#0f172a]
Text secondary: text-gray-600
Text muted: text-gray-400
Button primary: bg-[#6366f1] text-white shadow-lg shadow-[#6366f1]/25
Button secondary: bg-white text-[#0f172a] border border-gray-200
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `rounded-none`
- `font-black`
- `border-4`
- `border-8`
### Banned patterns
- matches `^rounded-none$`
- matches `^border-[48]`
### Why they are banned
- `rounded-none`: Z-Pattern Layout uses soft rounding (rounded-xl) for modern appeal
- `border-4`: Z-Pattern Layout uses subtle borders for clean, conversion-focused design
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
rounded-xl
font-semibold
transition-all duration-300
```
### Every card must include
```
bg-white
rounded-2xl
shadow-sm
border border-gray-100
text-center
```
### Every input must include
```
bg-white
border border-gray-200
rounded-xl
focus:outline-none
focus:ring-2 focus:ring-[#6366f1]/20 focus:border-[#6366f1]
transition-all
```
---
## [COMPARE] Z-Pattern Layout wrong vs right
The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.
### Button
[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
Click me
</button>
```
[CORRECT] **Right** (uses this style's tokens):
```html
<button class="rounded-xl font-semibold transition-all duration-300 bg-[#6366f1] text-white shadow-lg shadow-[#6366f1]/25">
Click me
</button>
```
### Card
[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 text-center p-6 md:p-8">
<h3 class="font-bold tracking-tight text-lg md:text-xl">{TITLE}</h3>
</div>
```
### Input
[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="bg-white border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#6366f1]/20 focus:border-[#6366f1] transition-all" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Z-Pattern Layout page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-white text-[#0f172a] border border-gray-200 px-4 md:px-6 lg:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
<a href="/" class="font-bold tracking-tight text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-6 font-sans text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-[#6366f1] text-[#0f172a] py-12 md:py-16 lg:py-20 px-4 md:px-6 lg:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-bold tracking-tight text-4xl md:text-5xl lg:text-6xl">
{HEADLINE}
</h1>
<p class="font-sans text-base md:text-lg max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded-xl font-semibold transition-all duration-300 bg-[#6366f1] text-white shadow-lg shadow-[#6366f1]/25">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-white text-[#0f172a] py-12 md:py-16 lg:py-20 px-4 md:px-6 lg:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-bold tracking-tight text-2xl md:text-3xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 text-center p-6 md:p-8">
<h3 class="font-bold tracking-tight text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-sans text-base md:text-lg text-gray-400">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="bg-white border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#6366f1]/20 focus:border-[#6366f1] transition-all" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-gray-50 text-gray-600 py-12 md:py-16 lg:py-20 px-4 md:px-6 lg:px-8">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-10">
<div>
<span class="font-bold tracking-tight text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-sans text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-bold tracking-tight text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Z-Pattern Layout post-generation self check
**Before returning code, verify every token and rule below. Fix any violation before delivering:**
### Token check
- [ ] Button includes: `rounded-xl font-semibold transition-all duration-300`
- [ ] Card includes: `bg-white rounded-2xl shadow-sm border border-gray-100 text-center`
- [ ] Input includes: `bg-white border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#6366f1]/20 focus:border-[#6366f1] transition-all`
### Forbidden check
- [ ] Not using `rounded-none`
- [ ] Not using `font-black`
- [ ] Not using `border-4`
- [ ] Not using `border-8`
### Style rule check
- [ ] Place logo/brand identity in the top-left corner
- [ ] Place navigation or primary CTA in the top-right corner
- [ ] Place core value proposition in the middle area
- [ ] Place auxiliary information or trust badges in the bottom-left
- [ ] Place the final CTA button in the bottom-right
### Style drift check
- [ ] Does not violate: Do NOT place unimportant content on the Z-path
- [ ] Does not violate: Do NOT interrupt the Z-shaped visual flow
- [ ] Does not violate: Do NOT use too much content that interferes with the path
- [ ] Does not violate: Do NOT place CTAs outside the path
- [ ] Does not violate: Do NOT make the page overly complex and crowded
### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Z-Pattern Layout
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- place unimportant content on the Z-path
- interrupt the Z-shaped visual flow
- use too much content that interferes with the path
- place CTAs outside the path
- make the page overly complex and crowded
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do NOT place unimportant content on the Z-path
- [ ] do NOT interrupt the Z-shaped visual flow
- [ ] do NOT use too much content that interferes with the path
- [ ] do NOT place CTAs outside the path
- [ ] do NOT make the page overly complex and crowdedMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
Z型布局中的 CTA 按钮
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
Default / Hover / Focus Visible / Active / Disabled
Input
Default / Hover / Focus Visible / Disabled / Error
Card
Default / Hover / Focus Visible / Loading / Skeleton
Form
Default / Focus Visible / Disabled / Loading / Error
FAQ
/* Z-Pattern Layout 全局样式 */
/* Z型布局容器 */
.z-layout {
max-width: 1200px;
margin: 0 auto;
}
/* Z的第一行:品牌 + 导航/CTA */
.z-top-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
}
/* Z的对角线区域:核心内容 */
.z-diagonal {
text-align: center;
padding: 5rem 1.5rem;
max-width: 800px;
margin: 0 auto;
}
/* Z的第二行:信任 + 最终CTA */
.z-bottom-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2rem 1.5rem;
}
/* Z路径上的关键点 */
.z-point {
position: relative;
}
.z-point::after {
content: '';
position: absolute;
width: 8px;
height: 8px;
background: #6366f1;
border-radius: 50%;
}
/* 响应式 */
@media (max-width: 768px) {
.z-top-bar,
.z-bottom-bar {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.z-diagonal {
padding: 3rem 1.5rem;
}
}
/* Z-Pattern Layout Design Tokens */
:root {
--z-pattern-layout-primary: #0f172a;
--z-pattern-layout-secondary: #ffffff;
--z-pattern-layout-accent: #6366f1;
--z-pattern-layout-glow: rgba(15, 23, 42, 0.3);
}
@keyframes z-pattern-layout-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes z-pattern-layout-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.z-pattern-layout-gradient {
background: linear-gradient(135deg, #0f172a, #6366f1);
}
.z-pattern-layout-gradient-text {
background: linear-gradient(135deg, #0f172a, #6366f1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.z-pattern-layout-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(15, 23, 42, 0.08);
}
.z-pattern-layout-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.z-pattern-layout-animate-in {
animation: z-pattern-layout-fade-in 0.5s ease-out both;
}Compatible Visual Styles
Z-Pattern Layout is a layout pattern that can be paired with the following visual styles.
Related Styles
Explore these styles for ready-made tokens and components.
IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
Style Pack
Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.
Metadata
Style metadata including version information
Design Tokens
Compatible with Figma / Style Dictionary / Tokens Studio
Tailwind Preset
Tailwind CSS theme preset, import directly in config
Global CSS
CSS variables and base styles
shadcn Theme
shadcn/ui theme configuration
CSS Variables
Pure CSS variables, works with any project
SKILL.md
Loadable skill pack for Cursor / Claude Code / VS Code
Z-Pattern Layout is based on the user's natural scanning path on visually clean pages. The gaze moves from the top-left (logo/brand) to the top-right (CTA), then diagonally to the bottom-left, and finally to the bottom-right (final CTA).
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#0f172a / #ffffff | 17.85:1 | ||
| Secondary text on background | /#4b5563 / #ffffff | 7.56:1 | ||
| Muted text on background | /#9ca3af / #ffffff | 2.54:1 | ||
| Text on secondary background | /#0f172a / #f9fafb | 17.08:1 | ||
| Secondary text on secondary | /#4b5563 / #f9fafb | 7.23:1 | ||
| Button primary | /#ffffff / #6366f1 | 4.47:1 | ||
| Text on accent 1 | /#0f172a / #6366f1 | 4:1 | ||
| Alt text on accent 1 | /#4b5563 / #6366f1 | 1.69:1 | ||
| Text on accent 2 | /#0f172a / #06b6d4 | 7.35:1 | ||
| Alt text on accent 2 | /#4b5563 / #06b6d4 | 3.11:1 | ||
| Text on accent 3 | /#0f172a / #f59e0b | 8.31:1 | ||
| Alt text on accent 3 | /#4b5563 / #f59e0b | 3.52:1 | ||
| Text on accent 4 | /#0f172a / #ec4899 | 5.06:1 | ||
| Alt text on accent 4 | /#4b5563 / #ec4899 | 2.14:1 |
Readability
Score
87/100
Font Size
text-base md:text-lg
Font Weight
font-bold tracking-tight
Line Height
default
Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.