来源仓库: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 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
4.0 KiB
4.0 KiB
name, version, description, keywords, author, style_type
| name | version | description | keywords | author | style_type | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| data-dense | 1.0.0 | Data Dense design style for web interfaces |
|
StyleKit | visual |
Data Dense Style
Overview
高密度后台管理面板风格,紧凑间距与小尺寸组件,优先展示数据表格与操作效率。
Philosophy
Data Dense 是一种效率优先的管理界面设计语言。
Design Tokens
Border
- Width:
border - Color:
border-[#e2e8f0] - Radius:
rounded
Shadow
- Small:
shadow-none - Medium:
shadow-sm - Large:
shadow-sm - Hover:
hover:shadow-sm
Typography
- Heading:
font-semibold tracking-tight - Body:
font-normal - Hero:
text-xl md:text-2xl - H1:
text-lg md:text-xl - Body:
text-xs md:text-sm
Spacing
- Section:
py-3 md:py-4 - Container:
px-3 md:px-4 - Card:
px-3 py-2.5
Colors
- Primary BG:
bg-white - Secondary BG:
bg-[#f8fafc] - Primary Text:
text-[#1e293b] - Primary Button:
bg-[#3b82f6] text-white hover:bg-[#2563eb]
Component Recipes
Button
-
Base:
font-medium rounded transition-colors duration-150 -
Primary:
bg-[#3b82f6] text-white -
Secondary:
bg-white text-[#64748b] border border-[#e2e8f0] -
Danger:
text-[#ef4444] bg-transparent -
Hover:
hover:bg-[#2563eb]
KPI Card
-
Base:
bg-white rounded border border-[#e2e8f0] transition-colors duration-150 -
Default: ``
-
Highlighted:
border-[#3b82f6] -
Hover:
hover:bg-[#f8fafc]
Filter Input
- Base:
bg-white rounded border border-[#e2e8f0] text-[#1e293b] placeholder:text-[#94a3b8] focus:outline-none transition-colors duration-150 - Default: ``
- Filled:
bg-[#f8fafc] border-[#e2e8f0]
Forbidden Patterns
These classes must NEVER be used in Data Dense style:
-
rounded-xl -
rounded-2xl -
shadow-lg -
shadow-xl -
shadow-2xl -
p-6 -
p-8 -
text-lg -
text-xl -
text-2xl -
Pattern:
^rounded-(xl|2xl|3xl|full) -
Pattern:
^shadow-(lg|xl|2xl) -
Pattern:
^p-[6-9] -
Pattern:
^bg-gradient-
Why:
rounded-xl: Data Dense uses small rounded corners onlyshadow-lg: Data Dense avoids decorative shadowsp-6: Data Dense uses compact spacing (p-3 or less)
Do's
- 使用白色 bg-white 搭配极浅蓝灰 bg-[#f8fafc] 交替行色
- 表格行高紧凑 py-2 text-sm 或 text-xs
- 状态标签使用颜色编码 bg-blue-50 text-blue-700 rounded px-1.5 py-0.5 text-xs
- 按钮使用小尺寸 px-2.5 py-1 text-xs rounded
- 间距统一使用 4px 递增:gap-1 gap-2 gap-3
- 表头使用 text-xs uppercase tracking-wide text-[#64748b] font-medium
- 使用 monospace 显示数字、ID、代码类数据
- 分隔线使用 border-[#e2e8f0] 细线
Don'ts
- 禁止使用大间距 p-6 以上(浪费数据展示空间)
- 禁止使用大圆角 rounded-xl 以上(占用像素)
- 禁止使用大字号 text-lg 以上作为表格数据
- 禁止使用装饰性渐变或阴影(增加视觉噪音)
- 禁止隐藏重要操作在下拉菜单中(常用操作必须直接可见)
- 禁止使用大面积空白(数据优先)
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: data-dense
- 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: 数据密集 (Data Dense)