Asymmetric Grid
非对称网格
stylekitMITDashboard · dashboardProfessional · professionalLight · lightMedium · mediumNeutral · neutralMuted · mutedSerif · serifGeneral · general
打破传统对称网格的布局方式,通过不规则的列宽、重叠元素和视觉张力创造动态有趣的页面结构,适合创意作品集、艺术展览和品牌展示。
NNorthwind
Product · PricingSpecimen
Make the work feel finished
One interface, dressed in this style. Compare type, color, radius, and density.
128
Active
4.8
Score
12ms
Edge
Attribution
"Asymmetric Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86.
https://github.com/AnxForever/stylekit · api/styles/asymmetric-grid · bfa7da909e86 · © AnxForever
Do
- 使用 CSS Grid 的 grid-template-columns 定义不等宽列
- 允许元素跨越多列多行 col-span-2 row-span-3
- 使用 -translate 和 z-index 创造重叠效果
- 保持足够的留白与密集区域对比
- 使用大小差异明显的字体层级
- 让图片和内容块突破网格边界
- 悬停时大幅提升 z-index 和 scale,让元素从网格中弹出
- 使用硬边阴影(shadow-[Xpx_Ypx_0px_color])强化物理剥离感
Don't
- 禁止所有列宽完全相等
- 禁止元素整齐对齐毫无变化
- 禁止忽略移动端的响应式调整
- 禁止过度杂乱失去可读性
- 禁止所有元素大小相近
- 禁止使用过长的 duration(不超过 300ms)
Prompt
Create a SaaS landing page using Asymmetric Grid style with hero section, feature grid, testimonials, pricing table, and footer. --- "Asymmetric Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86. powered by Styledex — https://styledex.dev
Tokens
DTCG
{
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
"$description": "Asymmetric Grid. \"Asymmetric Grid\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86.",
"$extensions": {
"dev.styledex": {
"id": "stylekit-asymmetric-grid",
"license": "MIT",
"attribution": "\"Asymmetric Grid\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86.",
"banner": "powered by Styledex — https://styledex.dev"
}
},
"color": {
"background": {
"$type": "color",
"$value": "#ffffff"
},
"foreground": {
"$type": "color",
"$value": "#0f0f0f"
},
"card": {
"$type": "color",
"$value": "#ffffff"
},
"card-foreground": {
"$type": "color",
"$value": "#0f0f0f"
},
"primary": {
"$type": "color",
"$value": "#0f0f0f"
},
"primary-foreground": {
"$type": "color",
"$value": "#fafaf9"
},
"secondary": {
"$type": "color",
"$value": "#ffffff"
},
"secondary-foreground": {
"$type": "color",
"$value": "#0f0f0f"
},
"accent": {
"$type": "color",
"$value": "#ff3366"
},
"accent-foreground": {
"$type": "color",
"$value": "#fafaf9"
},
"muted": {
"$type": "color",
"$value": "#f0f0f0"
},
"muted-foreground": {
"$type": "color",
"$value": "#636363"
},
"border": {
"$type": "color",
"$value": "#dbdbdb"
},
"destructive": {
"$type": "color",
"$value": "#dc2626"
},
"ring": {
"$type": "color",
"$value": "#0f0f0f"
}
},
"font": {
"sans": {
"$type": "fontFamily",
"$value": [
"ui-sans-serif",
"system-ui",
"sans-serif"
]
},
"serif": {
"$type": "fontFamily",
"$value": [
"ui-serif",
"Georgia",
"serif"
]
},
"mono": {
"$type": "fontFamily",
"$value": [
"ui-monospace",
"SFMono-Regular",
"Menlo",
"monospace"
]
}
},
"radius": {
"base": {
"$type": "dimension",
"$value": "0px"
}
},
"spacing": {
"base": {
"$type": "dimension",
"$value": "1rem"
}
},
"shadow": {
"base": {
"$type": "shadow",
"$value": "4px 4px 0px #0f0f0f"
}
}
}
CSS
/* powered by Styledex — https://styledex.dev */
/* "Asymmetric Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86. */
:root {
--background: #ffffff;
--foreground: #0f0f0f;
--card: #ffffff;
--card-foreground: #0f0f0f;
--primary: #0f0f0f;
--primary-foreground: #fafaf9;
--secondary: #ffffff;
--secondary-foreground: #0f0f0f;
--accent: #ff3366;
--accent-foreground: #fafaf9;
--muted: #f0f0f0;
--muted-foreground: #636363;
--border: #dbdbdb;
--destructive: #dc2626;
--ring: #0f0f0f;
--radius: 0px;
--font-sans: ui-sans-serif, system-ui, sans-serif;
--font-serif: ui-serif, Georgia, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
--spacing: 1rem;
--shadow: 4px 4px 0px #0f0f0f;
}
Tailwind
/* powered by Styledex — https://styledex.dev */
/* "Asymmetric Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86. */
/** Tailwind theme extend for Asymmetric Grid (stylekit-asymmetric-grid) */
module.exports = {
"theme": {
"extend": {
"colors": {
"background": "#ffffff",
"foreground": "#0f0f0f",
"card": "#ffffff",
"primary": "#0f0f0f",
"primary-foreground": "#fafaf9",
"secondary": "#ffffff",
"accent": "#ff3366",
"muted": "#f0f0f0",
"border": "#dbdbdb",
"destructive": "#dc2626",
"ring": "#0f0f0f"
},
"borderRadius": {
"lg": "0px"
},
"fontFamily": {
"sans": [
"ui-sans-serif",
"system-ui",
"sans-serif"
],
"serif": [
"ui-serif",
"Georgia",
"serif"
],
"mono": [
"ui-monospace",
"SFMono-Regular",
"Menlo",
"monospace"
]
},
"boxShadow": {
"styledex": "4px 4px 0px #0f0f0f"
}
}
}
};
shadcn
/* powered by Styledex — https://styledex.dev */
/* "Asymmetric Grid" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/asymmetric-grid @ bfa7da909e86. */
@layer base {
:root {
--background: #ffffff;
--foreground: #0f0f0f;
--card: #ffffff;
--card-foreground: #0f0f0f;
--primary: #0f0f0f;
--primary-foreground: #fafaf9;
--secondary: #ffffff;
--secondary-foreground: #0f0f0f;
--accent: #ff3366;
--accent-foreground: #fafaf9;
--muted: #f0f0f0;
--muted-foreground: #636363;
--border: #dbdbdb;
--destructive: #dc2626;
--ring: #0f0f0f;
--radius: 0px;
--font-sans: ui-sans-serif, system-ui, sans-serif;
--font-serif: ui-serif, Georgia, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
--spacing: 1rem;
--shadow: 4px 4px 0px #0f0f0f;
}
}