kastack-chat / frontend /src /styles.css
lassanmonster's picture
Cleanup duplicates, remove robotic separators, UI bugfixes
a4e3ccf
Raw
History Blame Contribute Delete
3.15 kB
@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";
@theme inline {
--color-bg-primary: #0A0A0A;
--color-bg-secondary: #141414;
--color-bg-tertiary: #262626;
--color-text-primary: #F5F5F5;
--color-text-secondary: #D4D4D8;
--color-text-muted: #9CA3AF;
--color-accent: #2563EB;
--color-accent-hover: #3B82F6;
--color-success: #10B981;
--color-warning: #F59E0B;
--color-danger: #EF4444;
--color-border: #262626;
--font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html, body, #root {
height: 100%;
}
body {
background-color: var(--color-bg-primary);
color: var(--color-text-primary);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: geometricPrecision;
}
* {
border-color: var(--color-border);
}
button {
cursor: pointer;
font-family: inherit;
}
input {
font-family: inherit;
color: var(--color-text-primary);
}
/* kill browser autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
-webkit-text-fill-color: #F5F5F5;
-webkit-box-shadow: 0 0 0 1000px rgba(20,20,20,0.6) inset;
caret-color: #F5F5F5;
transition: background-color 9999s ease-in-out 0s;
}
/* liquid-glass bubble - translucent, blurred, gradient bleeds through */
.glass {
background: linear-gradient(135deg, rgba(30, 30, 38, 0.76), rgba(10, 10, 14, 0.66));
backdrop-filter: blur(20px) saturate(155%);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -18px 40px rgba(255, 255, 255, 0.025),
0 14px 42px rgba(0, 0, 0, 0.5);
}
.glass-strong {
background: linear-gradient(135deg, rgba(26, 26, 34, 0.9), rgba(8, 8, 12, 0.82));
backdrop-filter: blur(24px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.14);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 -22px 46px rgba(255, 255, 255, 0.025),
0 16px 48px rgba(0, 0, 0, 0.58);
}
.glass-pill {
background: rgba(16, 16, 22, 0.76);
backdrop-filter: blur(16px) saturate(145%);
border: 1px solid rgba(255, 255, 255, 0.11);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.34);
}
.readable-text {
color: #F7F7FA;
text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.readable-muted {
color: #B7BBC6;
text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #262626;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #3a3a3a;
}
@keyframes shimmer {
0% { background-position: -400px 0; }
100% { background-position: 400px 0; }
}
.shimmer {
background: linear-gradient(90deg, #141414 0px, #1f1f1f 200px, #141414 400px);
background-size: 800px 100%;
animation: shimmer 1.5s linear infinite;
}