defrag-proto / src /app /globals.css
cjo93's picture
Premium design system: improved colors, typography, and grid
e705a67 verified
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--void: #000000;
--void-elevated: #0a0a0a;
--surface: #0f0f0f;
--surface-elevated: #1a1a1a;
--border: rgba(139, 92, 246, 0.15);
--border-hover: rgba(139, 92, 246, 0.3);
--text: #f1f5f9;
--text-dim: #cbd5e1;
--text-muted: #94a3b8;
--violet: #8b5cf6;
--violet-light: #a78bfa;
--cyan: #06b6d4;
--orange: #f97316;
--emerald: #10b981;
}
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html, body {
max-width: 100vw;
overflow-x: hidden;
background: var(--void);
color: var(--text);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: -0.015em;
line-height: 1.6;
}
body {
position: relative;
min-height: 100vh;
}
/* Premium grid background */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
z-index: 0;
opacity: 0.4;
}
/* Radial gradient overlay */
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}
::selection {
background: rgba(139, 92, 246, 0.4);
color: #fff;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--void);
}
::-webkit-scrollbar-thumb {
background: var(--surface-elevated);
border-radius: 5px;
border: 2px solid var(--void);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(139, 92, 246, 0.3);
}
@layer utilities {
.grid-bg {
background-image:
linear-gradient(rgba(30, 30, 46, 0.4) 1px, transparent 1px),
linear-gradient(90deg, rgba(30, 30, 46, 0.4) 1px, transparent 1px);
background-size: 40px 40px;
}
.glow-accent {
box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
}
.glow-signal {
box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
}
}