Best For
Z型 / 着陆页 / 营销
Z-Pattern Layout
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型 / 着陆页 / 营销
Primary Move
Place logo/brand identity in the top-left corner
Watch Out
Do NOT place unimportant content on the Z-path
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#0f172a
Secondary
#ffffff
Accent 1
#6366f1
Accent 2
#06b6d4
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.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
/* 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型布局 is a layout pattern that can be paired with the following visual styles.
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.