feat: (ui) new design

This commit is contained in:
syntaxbullet
2026-01-09 15:12:35 +01:00
parent a5b8d922e3
commit 1b84dbd36d
23 changed files with 1023 additions and 1536 deletions

View File

@@ -39,68 +39,178 @@
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--text-step--2: var(--step--2);
--text-step--1: var(--step--1);
--text-step-0: var(--step-0);
--text-step-1: var(--step-1);
--text-step-2: var(--step-2);
--text-step-3: var(--step-3);
--text-step-4: var(--step-4);
--text-step-5: var(--step-5);
}
:root {
--radius: 1rem;
--background: oklch(0.12 0.02 260);
--foreground: oklch(0.98 0.01 260);
--card: oklch(0.16 0.03 260 / 0.5);
--card-foreground: oklch(0.98 0.01 260);
--popover: oklch(0.14 0.02 260 / 0.8);
--popover-foreground: oklch(0.98 0.01 260);
--primary: oklch(0.65 0.18 250);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.25 0.04 260);
--secondary-foreground: oklch(0.98 0.01 260);
--muted: oklch(0.2 0.03 260 / 0.6);
--muted-foreground: oklch(0.7 0.02 260);
--accent: oklch(0.3 0.05 250 / 0.4);
--accent-foreground: oklch(0.98 0.01 260);
--destructive: oklch(0.6 0.18 25);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 5%);
--ring: oklch(0.65 0.18 250 / 50%);
--chart-1: oklch(0.6 0.18 250);
--chart-2: oklch(0.7 0.15 160);
--chart-3: oklch(0.8 0.12 80);
--chart-4: oklch(0.6 0.2 300);
--chart-5: oklch(0.6 0.25 20);
--sidebar: oklch(0.14 0.02 260 / 0.6);
--sidebar-foreground: oklch(0.98 0.01 260);
--sidebar-primary: oklch(0.65 0.18 250);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(1 0 0 / 5%);
--sidebar-accent-foreground: oklch(0.98 0.01 260);
--sidebar-border: oklch(1 0 0 / 8%);
--sidebar-ring: oklch(0.65 0.18 250 / 50%);
}
--step--2: clamp(0.5002rem, 0.449rem + 0.2273vw, 0.6252rem);
--step--1: clamp(0.7072rem, 0.6349rem + 0.3215vw, 0.884rem);
--step-0: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
--step-1: clamp(1.414rem, 1.2694rem + 0.6427vw, 1.7675rem);
--step-2: clamp(1.9994rem, 1.7949rem + 0.9088vw, 2.4992rem);
--step-3: clamp(2.8271rem, 2.538rem + 1.2851vw, 3.5339rem);
--step-4: clamp(3.9976rem, 3.5887rem + 1.8171vw, 4.997rem);
--step-5: clamp(5.6526rem, 5.0745rem + 2.5694vw, 7.0657rem);
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground selection:bg-primary/30;
font-family: 'Outfit', 'Inter', system-ui, sans-serif;
background-image:
radial-gradient(at 0% 0%, oklch(0.25 0.1 260 / 0.15) 0px, transparent 50%),
radial-gradient(at 100% 0%, oklch(0.35 0.12 300 / 0.1) 0px, transparent 50%);
background-attachment: fixed;
}
--radius: 0.5rem;
--background: oklch(0.12 0.015 40);
--foreground: oklch(0.98 0.01 60);
--card: oklch(0.16 0.03 40 / 0.6);
--card-foreground: oklch(0.98 0.01 60);
--popover: oklch(0.14 0.02 40 / 0.85);
--popover-foreground: oklch(0.98 0.01 60);
--primary: oklch(0.82 0.18 85);
--primary-foreground: oklch(0.12 0.015 40);
--secondary: oklch(0.65 0.2 55);
--secondary-foreground: oklch(0.98 0.01 60);
--muted: oklch(0.22 0.02 40 / 0.6);
--muted-foreground: oklch(0.7 0.08 40);
--accent: oklch(0.75 0.15 70 / 0.15);
--accent-foreground: oklch(0.98 0.01 60);
--destructive: oklch(0.55 0.18 25);
--border: oklch(1 0 0 / 12%);
--input: oklch(1 0 0 / 8%);
--ring: oklch(0.82 0.18 85 / 40%);
--chart-1: oklch(0.82 0.18 85);
--chart-2: oklch(0.65 0.2 55);
--chart-3: oklch(0.75 0.15 70);
--chart-4: oklch(0.55 0.18 25);
--chart-5: oklch(0.9 0.1 95);
--sidebar: oklch(0.14 0.02 40 / 0.7);
--sidebar-foreground: oklch(0.98 0.01 60);
--sidebar-primary: oklch(0.82 0.18 85);
--sidebar-primary-foreground: oklch(0.12 0.015 40);
--sidebar-accent: oklch(1 0 0 / 8%);
--sidebar-accent-foreground: oklch(0.98 0.01 60);
--sidebar-border: oklch(1 0 0 / 12%);
--sidebar-ring: oklch(0.82 0.18 85 / 40%);
}
@layer utilities {
.glass {
@apply bg-card backdrop-blur-xl border border-white/10 shadow-2xl;
.bg-aurora-page {
background: radial-gradient(circle at 50% -20%, oklch(0.25 0.1 50) 0%, var(--background) 70%);
background-attachment: fixed;
}
.glass-sidebar {
@apply bg-sidebar backdrop-blur-2xl border-r border-white/5;
.bg-aurora {
background-image: linear-gradient(135deg, oklch(0.82 0.18 85) 0%, oklch(0.65 0.2 55) 100%);
}
.text-glow {
text-shadow: 0 0 10px oklch(var(--primary) / 0.5);
.glass-card {
background: var(--card);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
}
.sun-flare {
box-shadow: 0 0 40px oklch(0.82 0.18 85 / 0.12);
}
/* Entrance Animations */
.animate-in {
animation-duration: 0.6s;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
animation-fill-mode: forwards;
}
.fade-in {
opacity: 0;
animation-name: fade-in;
}
.slide-up {
opacity: 0;
transform: translateY(20px);
animation-name: slide-up;
}
.zoom-in {
opacity: 0;
transform: scale(0.95);
animation-name: zoom-in;
}
@keyframes fade-in {
to {
opacity: 1;
}
}
@keyframes slide-up {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes zoom-in {
to {
opacity: 1;
transform: scale(1);
}
}
/* Interaction Utilities */
.hover-lift {
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.hover-lift:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px -5px oklch(0 0 0 / 0.3), 0 0 20px oklch(0.82 0.18 85 / 0.1);
}
.hover-glow {
transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-glow:hover {
border-color: oklch(0.82 0.18 85 / 0.4);
box-shadow: 0 0 20px oklch(0.82 0.18 85 / 0.15);
}
.hover-scale {
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
transform: scale(1.02);
}
.active-press {
transition: transform 0.1s ease;
}
.active-press:active {
transform: scale(0.97);
}
/* Staggered Delay Utilities */
.delay-100 {
animation-delay: 100ms;
}
.delay-200 {
animation-delay: 200ms;
}
.delay-300 {
animation-delay: 300ms;
}
.delay-400 {
animation-delay: 400ms;
}
.delay-500 {
animation-delay: 500ms;
}
}