Files
SupplierSystem/skills/uiux-pro-max/styles/f-pattern-layout.md
T
Ubuntu deb3e72750
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

130 lines
3.9 KiB
Markdown

---
name: f-pattern-layout
version: 1.0.0
description: F-Pattern Layout design style for web interfaces
keywords: [F型, 眼动, 内容优先, 扫描, 阅读]
author: StyleKit
style_type: layout
---
# F-Pattern Layout Style
## Overview
基于眼动追踪研究的F型扫描布局,用户视线从左上角开始,沿顶部水平扫描后向下移动,适合内容密集型页面、博客文章和新闻列表。
## Philosophy
F-Pattern Layout 基于尼尔森·诺曼集团的眼动追踪研究,用户浏览网页时视线呈 F 形移动:先水平扫描顶部内容,再向下移动后进行第二次水平扫描(较短),最后垂直向下浏览左侧。
## Design Tokens
### Border
- Width: `border`
- Color: `border-gray-200`
- Radius: `rounded-lg`
### Shadow
- Small: `shadow-sm`
- Medium: `shadow-sm`
- Large: `shadow-md`
- Hover: `hover:shadow-md`
### Typography
- Heading: `font-semibold tracking-tight`
- Body: `font-sans`
- Hero: `text-3xl md:text-4xl`
- H1: `text-2xl md:text-3xl`
- Body: `text-sm md:text-base`
### Spacing
- Section: `py-6 md:py-8 lg:py-12`
- Container: `px-4 md:px-6`
- Card: `p-4 md:p-6`
### Colors
- Primary BG: `bg-[#f8f9fa]`
- Secondary BG: `bg-white`
- Primary Text: `text-[#1a1a2e]`
- Primary Button: `bg-[#e63946] text-white`
## Component Recipes
### Button
- Base: `font-medium rounded-lg transition-colors duration-200`
- Primary: `bg-[#e63946] text-white`
- Secondary: `bg-[#457b9d] text-white`
- Outline: `bg-transparent text-[#1a1a2e] border border-gray-200`
- Hover: `hover:bg-[#c1121f]`
### Card
- Base: `bg-white rounded-xl transition-colors duration-200`
- Default: `shadow-sm border border-gray-100`
- Featured: `shadow-sm border-l-4 border-l-[#e63946] border border-gray-100`
- List Item: `border-b border-gray-100 rounded-none`
- Hover: `hover:bg-gray-50`
### Input
- Base: `w-full bg-gray-50 border border-gray-200 rounded-lg text-[#1a1a2e] placeholder:text-gray-400 focus:outline-none transition-all duration-200`
- Default: ``
- White: `bg-white`
## Forbidden Patterns
These classes must NEVER be used in F-Pattern Layout style:
- `text-center`
- `rounded-none`
- `rounded-2xl`
- `rounded-3xl`
- `shadow-2xl`
- `font-black`
- Pattern: `^rounded-(?:none|2xl|3xl)`
- Pattern: `^shadow-2xl`
### Why:
- `text-center`: F-Pattern Layout uses left-aligned text to follow natural scanning patterns
- `rounded-none`: F-Pattern Layout uses moderate rounding for professional appearance
- `shadow-2xl`: F-Pattern Layout uses subtle shadows for clean readability
## Do's
- 将最重要的内容放在页面顶部(第一条水平线)
- 在左侧放置导航或关键信息(垂直线)
- 使用清晰的标题层级 h1 > h2 > h3
- 使用列表和分段增加可扫描性
- 保持左对齐 text-left 符合阅读习惯
- 使用 max-w-prose 限制行宽提升可读性
## Don'ts
- 禁止将重要内容放在右下角
- 禁止居中对齐大段文字
- 禁止忽视内容的优先级排列
- 禁止使用过长的无分段文字
- 禁止在左侧留白过多
## Layout Archetypes
- `landing-hero-centered`: Centered headline, subtitle, and CTA. Clean and focused.
- `landing-hero-split`: Text on left, image/visual on right. Great for product showcases.
- `landing-hero-fullscreen`: Full viewport hero with background image or color. High impact.
- `landing-video-hero`: Full-screen video background with overlay text. High impact for product demos.
- `landing-saas-pricing`: Complete SaaS pricing page with hero, pricing tiers, FAQ, and CTA.
- `landing-waitlist`: Minimal pre-launch page with email collection and countdown.
## Example Usage
```
Generate a landing page with:
- Style: f-pattern-layout
- Archetype: landing-hero-centered
- Sections: hero, features, cta, footer
- Components: heading (hero variant), button (primary, lg), card (default)
```
### Example Prompts:
- "新闻列表页"
- "SaaS 着陆页"
- "作品集展示"
---
Generated by StyleKit · https://stylekit.dev
Style: F型布局 (F-Pattern Layout)