Best For
非对称 / 网格 / 不规则
Asymmetric Grid
A layout approach that breaks traditional symmetric grids, creating dynamic and engaging page structures through irregular column widths, overlapping elements, and visual tension. Ideal for creative portfolios, art exhibitions, and brand showcases.
Best For
非对称 / 网格 / 不规则
Primary Move
Use CSS Grid grid-template-columns to define unequal column widths
Watch Out
No perfectly equal column widths
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#0f0f0f
Secondary
#ffffff
Accent 1
#ff3366
Accent 2
#00d4ff
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: Asymmetric Grid
style_slug: asymmetric-grid
style_source: /styles/asymmetric-grid
# 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 Asymmetric Grid layout expert. Generated code must follow:
## Layout Rules
- Use CSS Grid 12-column system, but column widths must be unequal
- Allow element overlap, use z-index to control layering
- Use -translate to create offset effects
- Maintain visual tension: large whitespace areas contrasting with dense regions
## Animation & Interaction Rules
- Spatial Tension: On hover, significantly raise z-index (z-50) and use scale-105, making elements "jump" to the foreground from the chaotic grid.
- Hard Popping: Use crisp ease-out with duration-200 to duration-300, paired with high-contrast hard shadows (shadow-[8px_8px_0px_color]).
- Parallax Content: Card internal titles, labels, and descriptions displace with different delays (delay-75, delay-100) and translate distances on hover, creating typographic offset.
- Physical Feedback: Active state resets translate and shadow to zero, simulating press-and-bounce-back.
## Forbidden
- Symmetric layouts with all equal column widths
- Rounded design (rounded-lg, rounded-xl)
- Soft shadows (shadow-sm, shadow-md)
- Transitions exceeding duration-300Component Templates
动态偏移硬边阴影按钮
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
/* Asymmetric Grid 全局样式 */
.asymmetric-grid {
--ag-black: #0f0f0f;
--ag-accent: #ff3366;
--ag-secondary: #00d4ff;
--ag-tertiary: #ffcc00;
}
/* 硬边阴影弹出 */
.ag-pop {
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.ag-pop:hover {
transform: translate(-4px, -4px);
box-shadow: 8px 8px 0 var(--ag-accent);
}
.ag-pop:active {
transform: translate(0, 0);
box-shadow: none;
}
@keyframes asymmetric-grid-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes asymmetric-grid-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.asymmetric-grid-card {
position: relative;
overflow: hidden;
}
.asymmetric-grid-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(15, 15, 15, 0.05), transparent);
pointer-events: none;
}
.asymmetric-grid-card:hover::before {
opacity: 1;
}
.asymmetric-grid-gradient {
background: linear-gradient(135deg, #0f0f0f, #ff3366);
}
.asymmetric-grid-gradient-text {
background: linear-gradient(135deg, #0f0f0f, #ff3366);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.asymmetric-grid-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(15, 15, 15, 0.08);
}
.asymmetric-grid-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.asymmetric-grid-animate-in {
animation: asymmetric-grid-fade-in 0.5s ease-out both;
}Compatible Visual Styles
非对称网格 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
Asymmetric Grid breaks the even distribution of traditional grids, creating visual tension through unequal column widths, element overlap, and whitespace contrast.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#0f0f0f / #ffffff | 19.17:1 | ||
| Secondary text on background | /#ffffff / #ffffff | 1:1 | ||
| Muted text on background | /#6b7280 / #ffffff | 4.83:1 | ||
| Text on secondary background | /#0f0f0f / #0f0f0f | 1:1 | ||
| Secondary text on secondary | /#ffffff / #0f0f0f | 19.17:1 | ||
| Button primary | /#ffffff / #0f0f0f | 19.17:1 | ||
| Text on accent 1 | /#0f0f0f / #ff3366 | 5.4:1 | ||
| Alt text on accent 1 | /#ffffff / #ff3366 | 3.55:1 | ||
| Text on accent 2 | /#0f0f0f / #00d4ff | 10.83:1 | ||
| Alt text on accent 2 | /#ffffff / #00d4ff | 1.77:1 | ||
| Text on accent 3 | /#0f0f0f / #ffcc00 | 12.68:1 | ||
| Alt text on accent 3 | /#ffffff / #ffcc00 | 1.51:1 |
Readability
Score
90/100
Font Size
text-base
Font Weight
font-bold 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.