Styledex
← Index

Split Screen

分屏布局

stylekitMITDashboard · dashboardProfessional · professionalLight and dark · bothMedium · mediumNeutral · neutralMuted · mutedSerif · serifGeneral · general

左右对称或不对称的分屏布局,通过对比和平衡创造视觉张力,常用于产品展示、品牌故事、比较页面。

NNorthwind
Product · Pricing
Specimen
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

"Split Screen" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/split-screen · bfa7da909e86 · © AnxForever

Do

  • 使用 CSS Grid 或 Flexbox 实现分屏 grid grid-cols-2
  • 大屏幕保持分屏,小屏幕堆叠 lg:grid-cols-2 grid-cols-1
  • 使用对比色或互补内容
  • 一侧视觉元素,一侧文字内容
  • 保持两侧视觉重量平衡
  • 添加过渡动画增强体验
  • 考虑分屏滚动锁定效果

Don't

  • 禁止两侧内容完全相同(无意义分屏)
  • 禁止移动端仍保持分屏(太窄)
  • 禁止两侧视觉重量严重失衡
  • 禁止忽略内容阅读顺序
  • 禁止分割线过于突兀

Prompt

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

---
"Split Screen" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Split Screen. \"Split Screen\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-split-screen",
      "license": "MIT",
      "attribution": "\"Split Screen\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#000000"
    },
    "foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "card": {
      "$type": "color",
      "$value": "#000000"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "primary": {
      "$type": "color",
      "$value": "#0f0f0f"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "accent": {
      "$type": "color",
      "$value": "#ff4757"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#0f0f0f"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#a6a6a6"
    },
    "border": {
      "$type": "color",
      "$value": "#242424"
    },
    "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": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Split Screen" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86. */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --primary: #0f0f0f;
  --primary-foreground: #fafaf9;
  --secondary: #ffffff;
  --secondary-foreground: #ffffff;
  --accent: #ff4757;
  --accent-foreground: #fafaf9;
  --muted: #0f0f0f;
  --muted-foreground: #a6a6a6;
  --border: #242424;
  --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: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Split Screen" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86. */
/** Tailwind theme extend for Split Screen (stylekit-split-screen) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#000000",
        "foreground": "#ffffff",
        "card": "#000000",
        "primary": "#0f0f0f",
        "primary-foreground": "#fafaf9",
        "secondary": "#ffffff",
        "accent": "#ff4757",
        "muted": "#0f0f0f",
        "border": "#242424",
        "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": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Split Screen" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/split-screen @ bfa7da909e86. */
@layer base {
:root {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --primary: #0f0f0f;
  --primary-foreground: #fafaf9;
  --secondary: #ffffff;
  --secondary-foreground: #ffffff;
  --accent: #ff4757;
  --accent-foreground: #fafaf9;
  --muted: #0f0f0f;
  --muted-foreground: #a6a6a6;
  --border: #242424;
  --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: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}