Best For
split screen / split screen layout / split layout
Symmetric or asymmetric split-screen layout creating visual tension through contrast and balance. Commonly used for product showcases, brand stories, and comparison pages.
Best For
split screen / split screen layout / split layout
Primary Move
Use CSS Grid or Flexbox for split screen grid grid-cols-2
Watch Out
Do not have identical content on both sides (pointless split)
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: Split Screen
style_slug: split-screen
style_source: /styles/split-screen
# 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 a frontend expert specializing in Split Screen layout. All generated code must strictly follow these constraints:
## Absolute Prohibitions
- Do NOT keep split layout on mobile (too narrow)
- Do NOT have identical content on both sides
- Do NOT create visual imbalance between panels
- Do NOT ignore content reading order
- Do NOT use harsh divider lines
## Must Follow
- Use CSS Grid: grid grid-cols-1 lg:grid-cols-2
- Mobile: stack vertically (grid-cols-1)
- Desktop: side by side (lg:grid-cols-2)
- Each panel: min-h-[50vh] on mobile, min-h-screen on desktop
- Balance visual weight between panels
- One side visual, one side content
## Layout Patterns
50/50 Split:
- grid-cols-1 lg:grid-cols-2
- Both panels equal width
60/40 Split:
- grid-cols-1 lg:grid-cols-[60fr_40fr]
- Emphasize one side
Sticky Split:
- One panel sticky (position: sticky, top: 0)
- Other panel scrolls
## Panel Content
Visual Panel:
- Full background image/color/video
- Minimal text overlay
- Center-aligned content
Content Panel:
- Ample padding (p-8 lg:p-16)
- Left-aligned text
- Clear hierarchy
## Responsive
Mobile: Stack vertically, visual panel first
Tablet: May start splitting at md:
Desktop: Full split with proper ratios
## Animation & Interaction Rules
- Counter-Weight Focus: Hover one panel while the opposite panel gently desaturates or fades in prominence.
- Sharp Editorial Cuts: Button hover uses direct black-white inversion with short duration and no gradient easing tricks.
- Screen-Spanning Lines: Center divider or split seam can briefly intensify on focus change, but motion stays minimal.
- Static Text: Descriptive text blocks must stay position-stable; avoid translate or scale on body copy.
## Self-Check
After generating code, verify:
1. Mobile layout stacks properly
2. Panels have contrasting content
3. Visual balance maintained
4. Reading order makes sense
5. Transitions are smooth
---
# Split Screen Design System
> Symmetric or asymmetric split-screen layout creating visual tension through contrast and balance. Commonly used for product showcases, brand stories, and comparison pages.
## Design Philosophy
Split Screen is a layout approach that divides the viewport into two or more regions, creating visual tension and narrative effect through contrast.
Core principles:
- Contrast emphasis: Highlight differences or connections through left-right contrast
- Visual balance: Maintain visual weight balance even when asymmetric
- Narrative guidance: Guide the user's gaze to flow between both sides
- Space utilization: Fully leverage the advantages of widescreen displays
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border-0
Color: border-zinc-300
Radius: rounded-none
```
### Shadow
```
sm: shadow-none
md: shadow-none
lg: shadow-none
hover: shadow-none
focus: shadow-none
```
### Interaction
```
Hover translate: (none)
Hover scale: (none)
Hover opacity: hover:opacity-90
Transition: transition-all duration-500
Active: active:scale-95
```
### Typefaces
```
Heading: font-bold tracking-tight
Body: font-sans
Mono: font-mono
```
### Type scale
```
Hero: text-4xl md:text-6xl lg:text-7xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-4xl
H3: text-xl md:text-2xl
Body: text-base md:text-lg
Small: text-sm
```
### Spacing
```
Section: py-0
Container: px-8 md:px-12 lg:px-16
Card: p-8 lg:p-16
Gap sm: gap-2 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-8
```
### Color roles
```
Background primary: bg-black
Background secondary: bg-white
Background accent: bg-[#ff4757], bg-[#2ed573], bg-[#1e90ff], bg-[#ffa502]
Text primary: text-white
Text secondary: text-zinc-900
Text muted: text-zinc-500
Button primary: bg-black text-white
Button secondary: bg-white text-black border-2 border-black
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-full`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
### Banned patterns
- matches `^rounded-(?!none)`
- matches `^shadow-(?!none)`
### Why they are banned
- `rounded-lg`: Split Screen uses sharp edges for strong visual dividers
- `shadow-lg`: Split Screen relies on contrast between panels, not shadows
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
px-8 py-4
font-semibold
transition-colors
```
### Every card must include
```
min-h-[50vh] lg:min-h-screen
flex flex-col justify-center
```
### Every input must include
```
bg-transparent
border-b-2 border-zinc-300
text-lg
focus:outline-none focus:border-black
transition-colors
```
---
## [COMPARE] Split Screen wrong vs right
The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.
### Button
[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
Click me
</button>
```
[CORRECT] **Right** (uses this style's tokens):
```html
<button class="px-8 py-4 font-semibold transition-colors bg-black text-white">
Click me
</button>
```
### Card
[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="min-h-[50vh] lg:min-h-screen flex flex-col justify-center p-8 lg:p-16">
<h3 class="font-bold tracking-tight text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### Input
[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="bg-transparent border-b-2 border-zinc-300 text-lg focus:outline-none focus:border-black transition-colors" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Split Screen page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-black text-white border-0 border-zinc-300 px-8 md:px-12 lg:px-16">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
<a href="/" class="font-bold tracking-tight text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-6 font-sans text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-[#ff4757] text-white py-0 px-8 md:px-12 lg:px-16">
<div class="max-w-4xl mx-auto">
<h1 class="font-bold tracking-tight text-4xl md:text-6xl lg:text-7xl">
{HEADLINE}
</h1>
<p class="font-sans text-base md:text-lg max-w-xl">
{SUBHEADLINE}
</p>
<button class="px-8 py-4 font-semibold transition-colors bg-black text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-black text-white py-0 px-8 md:px-12 lg:px-16">
<div class="max-w-6xl mx-auto">
<h2 class="font-bold tracking-tight text-2xl md:text-4xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
<!-- Card template - repeat for each card -->
<div class="min-h-[50vh] lg:min-h-screen flex flex-col justify-center p-8 lg:p-16">
<h3 class="font-bold tracking-tight text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-sans text-base md:text-lg text-zinc-500">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="bg-transparent border-b-2 border-zinc-300 text-lg focus:outline-none focus:border-black transition-colors" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-white text-zinc-900 py-0 px-8 md:px-12 lg:px-16">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8">
<div>
<span class="font-bold tracking-tight text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-sans text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-bold tracking-tight text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Split Screen post-generation self check
**Before returning code, verify every token and rule below. Fix any violation before delivering:**
### Token check
- [ ] Button includes: `px-8 py-4 font-semibold transition-colors`
- [ ] Card includes: `min-h-[50vh] lg:min-h-screen flex flex-col justify-center`
- [ ] Input includes: `bg-transparent border-b-2 border-zinc-300 text-lg focus:outline-none focus:border-black transition-colors`
### Forbidden check
- [ ] Not using `rounded-lg`
- [ ] Not using `rounded-xl`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-full`
- [ ] Not using `shadow-sm`
- [ ] Not using `shadow-md`
- [ ] Not using `shadow-lg`
- [ ] Not using `shadow-xl`
### Style rule check
- [ ] Use CSS Grid or Flexbox for split screen grid grid-cols-2
- [ ] Large screens maintain split, small screens stack lg:grid-cols-2 grid-cols-1
- [ ] Use contrasting or complementary content
- [ ] Visual elements on one side, text content on the other
- [ ] Maintain visual weight balance between both sides
### Style drift check
- [ ] Does not violate: Do not have identical content on both sides (pointless split)
- [ ] Does not violate: Do not keep split layout on mobile (too narrow)
- [ ] Does not violate: Do not create severe visual weight imbalance between sides
- [ ] Does not violate: Do not ignore content reading order
- [ ] Does not violate: Do not make divider lines too harsh
### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Split Screen
---
## [EXAMPLES] Example prompts
### 1.
,
```
Create a brand showcase page with split screen:
1. Left panel: Full-height gradient background with large brand logo
2. Right panel: Brand story with heading, paragraphs, and CTA
3. Mobile: Stack with visual panel first
4. Desktop: 50/50 split with min-h-screen
5. Navigation fixed at top with mix-blend-difference
6. Smooth scroll to next section
Use grid grid-cols-1 lg:grid-cols-2, contrasting colors
```
### 2.
```
Create a product comparison split screen:
1. Left panel: Product A with dark background, white text
2. Right panel: Product B with light background, dark text
3. Each side: product image, features list, price, CTA
4. Hover effect: hovered side expands slightly
5. Mobile: Stack with A on top
6. Center divider with "VS" badge
Use contrasting colors, balanced visual weight
```
### 3.
,
```
Create a portfolio project page with split screen:
1. Left panel: Sticky full-height project image gallery
2. Right panel: Scrollable project details
3. Right content: title, description, tech stack, links
4. Image gallery with navigation dots
5. Mobile: Image at top, details below
6. Previous/Next project navigation at bottom
Use sticky positioning for image, smooth scroll for details
```
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- have identical content on both sides (pointless split)
- keep split layout on mobile (too narrow)
- create severe visual weight imbalance between sides
- ignore content reading order
- make divider lines too harsh
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do not have identical content on both sides (pointless split)
- [ ] do not keep split layout on mobile (too narrow)
- [ ] do not create severe visual weight imbalance between sides
- [ ] do not ignore content reading order
- [ ] do not make divider lines too harshMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
分屏布局中的对比按钮
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
58%
Fallback
Dark Mode
35%
FallbackUI 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
FAQ
/* Split Screen Global Styles */
/* Base split container */
.split-screen {
display: grid;
grid-template-columns: 1fr;
min-height: 100vh;
}
@media (min-width: 1024px) {
.split-screen {
grid-template-columns: 1fr 1fr;
}
}
/* Ratio variants */
.split-screen-60-40 {
grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
.split-screen-60-40 {
grid-template-columns: 60fr 40fr;
}
}
.split-screen-40-60 {
grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
.split-screen-40-60 {
grid-template-columns: 40fr 60fr;
}
}
/* Panel styles */
.split-panel {
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem;
}
@media (min-width: 1024px) {
.split-panel {
padding: 4rem;
}
}
/* Sticky scroll effect */
.split-sticky {
position: sticky;
top: 0;
height: 100vh;
}
/* Diagonal split */
.split-diagonal {
clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
@media (min-width: 1024px) {
.split-diagonal {
clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
}
/* Hover reveal effect */
.split-hover-left:hover ~ .split-hover-right {
flex: 0.3;
}
.split-hover-right:hover {
flex: 0.7;
}
.split-hover-left, .split-hover-right {
flex: 0.5;
transition: flex 0.5s ease;
}
/* Split Screen Design Tokens */
:root {
--split-screen-primary: #0f0f0f;
--split-screen-secondary: #ffffff;
--split-screen-accent: #ff4757;
--split-screen-glow: rgba(15, 15, 15, 0.3);
}
@keyframes split-screen-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes split-screen-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.split-screen-card {
position: relative;
overflow: hidden;
}
.split-screen-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;
}
.split-screen-card:hover::before {
opacity: 1;
}
.split-screen-gradient {
background: linear-gradient(135deg, #0f0f0f, #ff4757);
}
.split-screen-gradient-text {
background: linear-gradient(135deg, #0f0f0f, #ff4757);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.split-screen-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(15, 15, 15, 0.08);
}
.split-screen-animate-in {
animation: split-screen-fade-in 0.5s ease-out both;
}Compatible Visual Styles
Split Screen is a layout pattern that can be paired with the following visual styles.
Related Styles
Explore these styles for ready-made tokens and components.
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
Split Screen is a layout approach that divides the viewport into two or more regions, creating visual tension and narrative effect through 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 | /#ffffff / #000000 | 21:1 | ||
| Secondary text on background | /#18181b / #000000 | 1.19:1 | ||
| Text on secondary background | /#ffffff / #ffffff | 1:1 | ||
| Secondary text on secondary | /#18181b / #ffffff | 17.72:1 | ||
| Button primary | /#ffffff / #000000 | 21:1 | ||
| Text on accent 1 | /#ffffff / #ff4757 | 3.34:1 | ||
| Alt text on accent 1 | /#18181b / #ff4757 | 5.31:1 | ||
| Text on accent 2 | /#ffffff / #2ed573 | 1.93:1 | ||
| Alt text on accent 2 | /#18181b / #2ed573 | 9.18:1 | ||
| Text on accent 3 | /#ffffff / #1e90ff | 3.24:1 | ||
| Alt text on accent 3 | /#18181b / #1e90ff | 5.47:1 | ||
| Text on accent 4 | /#ffffff / #ffa502 | 1.97:1 | ||
| Alt text on accent 4 | /#18181b / #ffa502 | 8.97:1 |
Readability
Score
83/100
Font Size
text-base md:text-lg
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.