Best For
F型 / 眼动 / 内容优先
F-Pattern Layout
An F-pattern scanning layout based on eye-tracking research, where the user's gaze starts from the top-left, scans horizontally across the top, then moves downward, ideal for content-heavy pages, blog posts, and news listings.
Best For
F型 / 眼动 / 内容优先
Primary Move
Place the most important content at the top of the page (first horizontal line)
Watch Out
Do NOT place important content in the bottom-right corner
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#1a1a2e
Secondary
#f8f9fa
Accent 1
#e63946
Accent 2
#457b9d
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: F-Pattern Layout
style_slug: f-pattern-layout
style_source: /styles/f-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 an F-Pattern Layout expert. All generated code must strictly follow these constraints:
## Layout Rules
- Place the most important information at the top of the page (logo, navigation, featured content)
- Place secondary information on the second row (categories, search)
- Place main content area on the left (article list)
- Place auxiliary content on the right (sidebar)
- All text left-aligned text-left
## Content Hierarchy
First layer (full-width top):
- Navigation bar
- Featured article/headline
Second layer (secondary horizontal area):
- Category tags
- Search bar
Third layer (left vertical list):
- Article list
- Content cards with thumbnails
Auxiliary area (right side):
- Trending recommendations
- Tag cloud
- Ad space
## Responsive
Desktop: Left main content + right sidebar
Tablet: Full-width main content + collapsed sidebar
Mobile: Single column stacked
## Self-Check
1. Most important content at top and top-left
2. Clear heading hierarchy
3. Text left-aligned
4. Content quickly scannable
5. Responsive adaptation complete
## Animation & Interaction Rules
- Eye-Tracking Guides: List item hover allows main title to slightly shift right (e.g., `translate-x-1`) or underline to appear, helping quickly lock on during scanning phase.
- Fast Feedback: News-type interactions recommend `duration-150` to `duration-200`, avoiding lengthy transitions that interrupt reading.
- Contrast Pop: Current hover item can be briefly separated from the information flow through slight shadow or border contrast enhancement.
- Image Focus: Thumbnail hover can increase contrast or brightness as clickable feedback, but the magnitude must be restrained.Component Templates
F型布局中的 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
/* F-Pattern Layout 全局样式 */
/* F型布局容器 */
.f-layout {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* 顶部扫描区(F的第一笔) */
.f-top-bar {
width: 100%;
padding: 2rem 0;
border-bottom: 1px solid #e5e7eb;
}
/* 第二扫描区(F的第二笔,较短) */
.f-secondary {
width: 75%;
padding: 1.5rem 0;
}
/* 垂直扫描区(F的竖线) */
.f-vertical {
display: flex;
gap: 2rem;
}
.f-vertical-main {
flex: 1;
}
.f-vertical-aside {
width: 250px;
flex-shrink: 0;
}
/* 内容优先级 */
.f-priority-high {
font-size: 1.5rem;
font-weight: 700;
color: #1a1a2e;
}
.f-priority-medium {
font-size: 1.125rem;
font-weight: 600;
color: #374151;
}
.f-priority-low {
font-size: 0.875rem;
color: #6b7280;
}
/* 响应式 */
@media (max-width: 768px) {
.f-vertical {
flex-direction: column;
}
.f-vertical-aside {
width: 100%;
}
.f-secondary {
width: 100%;
}
}
/* F-Pattern Layout Design Tokens */
:root {
--f-pattern-layout-primary: #1a1a2e;
--f-pattern-layout-secondary: #f8f9fa;
--f-pattern-layout-accent: #e63946;
--f-pattern-layout-glow: rgba(26, 26, 46, 0.3);
}
@keyframes f-pattern-layout-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes f-pattern-layout-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.f-pattern-layout-card {
position: relative;
overflow: hidden;
}
.f-pattern-layout-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(26, 26, 46, 0.05), transparent);
pointer-events: none;
}
.f-pattern-layout-card:hover::before {
opacity: 1;
}
.f-pattern-layout-gradient {
background: linear-gradient(135deg, #1a1a2e, #e63946);
}
.f-pattern-layout-gradient-text {
background: linear-gradient(135deg, #1a1a2e, #e63946);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.f-pattern-layout-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(26, 26, 46, 0.08);
}
.f-pattern-layout-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.f-pattern-layout-animate-in {
animation: f-pattern-layout-fade-in 0.5s ease-out both;
}Compatible Visual Styles
F型布局 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
F-Pattern Layout is based on eye-tracking research by the Nielsen Norman Group, where users browse web pages with their gaze moving in an F-shape: first scanning horizontally across the top content, then moving down for a second (shorter) horizontal scan, and finally browsing vertically down the left side.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#1a1a2e / #f8f9fa | 16.18:1 | ||
| Secondary text on background | /#4b5563 / #f8f9fa | 7.17:1 | ||
| Muted text on background | /#9ca3af / #f8f9fa | 2.41:1 | ||
| Text on secondary background | /#1a1a2e / #ffffff | 17.06:1 | ||
| Secondary text on secondary | /#4b5563 / #ffffff | 7.56:1 | ||
| Button primary | /#ffffff / #e63946 | 4.17:1 | ||
| Text on accent 1 | /#1a1a2e / #e63946 | 4.09:1 | ||
| Alt text on accent 1 | /#4b5563 / #e63946 | 1.81:1 | ||
| Text on accent 2 | /#1a1a2e / #457b9d | 3.71:1 | ||
| Alt text on accent 2 | /#4b5563 / #457b9d | 1.65:1 | ||
| Text on accent 3 | /#1a1a2e / #2a9d8f | 5.13:1 | ||
| Alt text on accent 3 | /#4b5563 / #2a9d8f | 2.27:1 | ||
| Text on accent 4 | /#1a1a2e / #e9c46a | 10.21:1 | ||
| Alt text on accent 4 | /#4b5563 / #e9c46a | 4.52:1 |
Readability
Score
73/100
Font Size
text-sm md:text-base
Font Weight
font-semibold 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.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.