{
CF
}
Code
Fronts
Back to CSS Grid Layouts
Mac App Sidebar
Pure CSS
Edit any tab — preview updates live
CSS
HTML
Reset
Copy
.gl-mac { display: grid; grid-template-columns: 80px 1fr 70px; grid-template-rows: 30px 1fr; gap: 1px; background: rgba(124,108,255,0.18); border: 1px solid rgba(124,108,255,0.3); border-radius: 8px; overflow: hidden; width: 320px; height: 200px; font-family: -apple-system, system-ui, sans-serif; font-size: 10.5px; color: #cbd5e1; } .gl-mac-tb { grid-column: 1 / -1; background: rgba(124,108,255,0.18); color: #a78bfa; display: flex; align-items: center; padding: 0 10px; font-family: monospace; font-size: 10px; letter-spacing: 0.06em; } .gl-mac-side, .gl-mac-main, .gl-mac-insp { background: #18181f; padding: 10px; } .gl-mac-side { display: flex; flex-direction: column; gap: 6px; } .gl-mac-side > div { padding: 4px 8px; border-radius: 4px; background: rgba(167,139,250,0.12); } .gl-mac-side > div:first-child { background: linear-gradient(135deg, #7c6cff, #a78bfa); color: #fff; } .gl-mac-main { display: flex; align-items: center; justify-content: center; font-weight: 600; color: #f0eeff; } .gl-mac-insp { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9.5px; color: #b8b6d4; }
<div class="gl-mac"> <div class="gl-mac-tb">●●● Mac App</div> <aside class="gl-mac-side"> <div>Inbox</div> <div>Drafts</div> <div>Sent</div> <div>Spam</div> </aside> <main class="gl-mac-main">Main content</main> <aside class="gl-mac-insp">Inspector</aside> </div>
Live preview
Ready