HomeStylesTemplates
StyleKit
StylesTemplates
  1. Home
  2. /Styles
  3. /F-Pattern Layout
Style Catalog/F型布局

F型布局

F-Pattern Layout

D
58/100Poor

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.

F型眼动内容优先扫描阅读博客新闻moderncontemporarysleek
View Full Showcase →Templates

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.

View Full Showcase →

Color Palette

Primary

#1a1a2e

Secondary

#f8f9fa

Accent 1

#e63946

Accent 2

#457b9d

Accent 3

#2a9d8f

Accent 4

#e9c46a

AI ImplementationComponent PreviewReadinessExportsRatings & Feedback

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

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.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • -When AI should generate UI directly
  • -When repeated outputs must stay consistent
  • -When style drift is the main risk

How to use

  • -Copy the full prompt
  • -Append the concrete requirement
  • -Review against forbidden rules and UI states
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

Component Preview

按钮

F型布局中的 CTA 按钮

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

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%

Missing

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

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

Implementation Notes

  • No curated dark-mode contract exists yet.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.
Global Styles

Global CSS

css
/* 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

Try Pairing

F型布局 is a layout pattern that can be paired with the following visual styles.

编辑杂志风

Editorial

企业简洁风

Corporate Clean

极简扁平风

Minimalist Flat

Notion 风格

Notion Style

瑞士国际风格

Swiss International

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export 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

Design Philosophy

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.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

58

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 52/100Average Ratio: 6.28:1
AA FailAAA Fail
ContextColorsRatioAAAAA
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

Recommended Combinations with F-Pattern Layout

These curated recipes combine this style with layouts and animations, optimized for specific use cases.

Editorial Blog

Magazine-quality typography for long-form content.

editorialf-pattern-layout+1
elegantminimallight

StyleKit

A curated web design style library to help AI generate better-looking websites.

Navigation

StylesTemplatesGuideBlogChangelog

Resources

UI Design PromptsLanding Page PromptsDashboard PromptsTailwind UI PromptsDark Mode UI PromptsGitHub Repository

Stay Updated

By subscribing, you agree to our Privacy Policy and Terms.


Support Maintenance

If StyleKit helps your workflow, voluntary support helps cover servers, domains, and ongoing upkeep.

Scan to support / View all options

(c) 2026 StyleKit. Open source project.

AboutContactPrivacyTermsBuilt with the Editorial style
Stylekit前端样式库stylekit.top陕ICP备2025065501号-3