feat(ui): upgrade design tokens, typography, and animation engine
This commit is contained in:
+88
-47
@@ -4,29 +4,28 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-hover: #1D4ED8;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-dark: #1E40AF;
|
||||
--color-accent: #06B6D4;
|
||||
--color-accent-hover: #0891B2;
|
||||
--color-accent-light: #ECFEFF;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-subtle: #F8FAFC;
|
||||
--color-surface-dark: #030712;
|
||||
--color-surface-dark-subtle: #0B0F19;
|
||||
--theme-radius: 18px;
|
||||
--theme-max-width: 1360px;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--color-surface: #030712;
|
||||
--color-surface-subtle: #0B0F19;
|
||||
--color-primary: #00F0FF;
|
||||
--color-primary-hover: #00C8D6;
|
||||
--color-primary-light: #ECFEFF;
|
||||
--color-primary-dark: #0891B2;
|
||||
--color-accent: #7928CA;
|
||||
--color-accent-hover: #641EB0;
|
||||
--color-accent-light: #F5EEFD;
|
||||
--color-surface: #07090E;
|
||||
--color-surface-subtle: #0B0F17;
|
||||
--color-surface-card: #111726;
|
||||
--theme-radius: 20px;
|
||||
--theme-max-width: 1400px;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #0F172A;
|
||||
background-color: #FAFAFC;
|
||||
color: #F3F4F6;
|
||||
background-color: #05070B;
|
||||
background-image:
|
||||
radial-gradient(circle at 50% 0%, rgba(121, 40, 202, 0.12) 0%, transparent 50%),
|
||||
radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
|
||||
radial-gradient(circle at 15% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
|
||||
background-attachment: fixed;
|
||||
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
|
||||
overflow-x: hidden;
|
||||
scroll-behavior: smooth;
|
||||
@@ -34,38 +33,83 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.dark body {
|
||||
color: #F1F5F9;
|
||||
background-color: #030712;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, .font-display {
|
||||
font-family: var(--font-display), var(--font-sans), sans-serif;
|
||||
letter-spacing: -0.025em;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.font-mono {
|
||||
font-family: var(--font-mono), monospace;
|
||||
}
|
||||
}
|
||||
|
||||
/* Glassmorphism & High-tech Panel Helpers */
|
||||
.glass-panel {
|
||||
background: rgba(255, 255, 255, 0.75);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
}
|
||||
|
||||
.dark .glass-panel {
|
||||
background: rgba(11, 15, 25, 0.75);
|
||||
/* Neo-Studio Glassmorphism */
|
||||
.glass-neo {
|
||||
background: rgba(11, 15, 23, 0.72);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid rgba(30, 41, 59, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Subtle Shimmer Effect for Buttons & Badges */
|
||||
.glass-card {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(11, 15, 23, 0.65);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
|
||||
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.glass-card:hover {
|
||||
border-color: rgba(0, 240, 255, 0.3);
|
||||
box-shadow: 0 20px 48px -10px rgba(0, 240, 255, 0.15), 0 0 0 1px rgba(0, 240, 255, 0.2);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
/* Hairline Laser Border Gradient */
|
||||
.laser-border {
|
||||
position: relative;
|
||||
border-radius: inherit;
|
||||
}
|
||||
.laser-border::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
border-radius: inherit;
|
||||
padding: 1px;
|
||||
background: linear-gradient(90deg, rgba(0, 240, 255, 0.5), rgba(121, 40, 202, 0.5), rgba(255, 0, 128, 0.3));
|
||||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Chromatic Text Gradients */
|
||||
.text-gradient-cyan {
|
||||
background: linear-gradient(135deg, #FFFFFF 20%, #00F0FF 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.text-gradient-brand {
|
||||
background: linear-gradient(135deg, #FFFFFF 15%, #00F0FF 60%, #7928CA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.text-gradient-purple {
|
||||
background: linear-gradient(135deg, #FFFFFF 20%, #C084FC 70%, #7928CA 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
/* Shimmer Animation Effect for Badges & Buttons */
|
||||
.shimmer-badge {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 0.25) 50%,
|
||||
rgba(255, 255, 255, 0.15) 50%,
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
@@ -74,19 +118,16 @@
|
||||
|
||||
/* Modern Minimalist Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
background: #05070B;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #CBD5E1;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
.dark ::-webkit-scrollbar-thumb {
|
||||
background: #1E293B;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #94A3B8;
|
||||
background: rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user