InnerVoice / frontend /app /globals.css
E5K7's picture
feat: Context-aware journal prompts, sleep correlation tracker, and dark/light mode toggle
a304e30
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #000000;
--foreground: #ededed;
--border: #1a1a1a;
--accent: #0070f3;
}
[data-theme="light"] {
--background: #f8f9fa;
--foreground: #111111;
--border: #e2e8f0;
--accent: #6d28d9;
}
[data-theme="light"] body {
background: #f8f9fa;
color: #111111;
}
[data-theme="light"] .glass-card {
background: rgba(255, 255, 255, 0.85);
border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .vercel-card {
background: rgba(255, 255, 255, 0.85);
border-color: rgba(0, 0, 0, 0.08);
}
/* Smooth theme transitions */
*, *::before, *::after {
transition: background-color 0.25s ease, border-color 0.25s ease, color 0.15s ease;
}
* {
box-sizing: border-box;
}
body {
color: var(--foreground);
background: var(--background);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #333;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #444;
}
/* Vercel-style card */
.vercel-card {
background: rgba(10, 10, 10, 0.5);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 16px;
transition: all 0.2s ease;
}
.vercel-card:hover {
border-color: rgba(255, 255, 255, 0.1);
}
/* Glass card */
.glass-card {
background: rgba(10, 10, 10, 0.6);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 12px;
transition: all 0.2s ease;
}
/* Grid background */
.bg-grid {
background-image:
linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
background-size: 50px 50px;
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
}