UI: modern editorial redesign — stone palette, blue-purple gradient, clean typography

This commit is contained in:
2026-05-29 13:19:05 +03:00
parent cfc6001d62
commit 7fa7394739
13 changed files with 402 additions and 536 deletions

View File

@@ -2,27 +2,29 @@
@plugin "tailwindcss-animate";
:root {
--bg: #f2f2f7;
--bg: #fafaf9;
--surface: #ffffff;
--surface-hover: #f8f8fa;
--fg: #1c1c1e;
--fg-secondary: #8a8a8e;
--fg-tertiary: #aeaeb2;
--primary: #007aff;
--primary-hover: #0056cc;
--primary-light: #e8f2ff;
--primary-soft: rgba(0, 122, 255, 0.08);
--secondary: #f2f2f5;
--border: #e5e5ea;
--danger: #ff3b30;
--danger-hover: #d6342b;
--danger-light: #ffe8e6;
--success: #34c759;
--success-light: #e8f8ed;
--surface-hover: #f5f5f4;
--fg: #0c0c0c;
--fg-secondary: #737373;
--fg-tertiary: #a3a3a3;
--primary: #2563eb;
--primary-hover: #1d4ed8;
--primary-light: #eff6ff;
--primary-soft: rgba(37, 99, 235, 0.06);
--secondary: #f5f5f4;
--border: #e7e5e4;
--border-light: #f0efed;
--danger: #dc2626;
--danger-hover: #b91c1c;
--danger-light: #fef2f2;
--success: #16a34a;
--success-light: #f0fdf4;
--radius: 10px;
--radius-lg: 16px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
--shadow-md: 0 4px 12px rgba(0,0,0,0.06);
--shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
--shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
--shadow-md: 0 4px 16px rgba(0,0,0,0.06);
--shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}
* { border-color: var(--border); }
@@ -30,76 +32,74 @@
body {
background: var(--bg);
color: var(--fg);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
"Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 1.5;
letter-spacing: -0.01em;
letter-spacing: -0.015em;
}
::selection { background: var(--primary); color: white; }
/* ── Animations ── */
@keyframes fade-in-up {
from { opacity: 0; transform: translateY(8px); }
@keyframes rise {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
from { opacity: 0; transform: scale(0.96); }
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
@keyframes heart-bounce {
@keyframes pop {
0% { transform: scale(1); }
25% { transform: scale(1.35); }
50% { transform: scale(0.9); }
75% { transform: scale(1.1); }
40% { transform: scale(1.3); }
100% { transform: scale(1); }
}
@keyframes toast-in {
from { opacity: 0; transform: translateY(16px) scale(0.95); }
from { opacity: 0; transform: translateY(12px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes skeleton-pulse {
0% { opacity: 0.6; }
@keyframes skeleton {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-4px); }
100% { opacity: 0.5; }
}
.animate-fade-in-up { animation: fade-in-up 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-rise { animation: rise 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-scale-in { animation: scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-heart { animation: heart-bounce 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-pop { animation: pop 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-toast-in { animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-skeleton { animation: skeleton-pulse 1.5s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-skeleton { animation: skeleton 1.5s ease-in-out infinite; }
/* ── Card ── */
.card {
background: var(--surface);
border-radius: 16px;
box-shadow: var(--shadow-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
transition: box-shadow 0.2s, transform 0.15s;
}
.card-hover:hover {
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
/* ── Avatar ── */
.avatar-initials {
.avatar {
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: white;
background: linear-gradient(135deg, var(--primary), #5856d6);
background: var(--primary);
user-select: none;
}
/* ── Buttons ── */
/* ── Button Icon ── */
.btn-icon {
display: inline-flex;
@@ -110,22 +110,53 @@ body {
cursor: pointer;
border: none;
}
.btn-icon:active { transform: scale(0.9); }
.btn-icon:active { transform: scale(0.88); }
.link-accent {
color: var(--primary);
/* ── Tags ── */
.tag {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.125rem 0.625rem;
border-radius: 9999px;
font-size: 0.6875rem;
font-weight: 600;
transition: opacity 0.15s;
}
.link-accent:hover { opacity: 0.8; text-decoration: underline; }
/* ── Utilities ── */
/* ── Gradient text ── */
.text-gradient {
background: linear-gradient(135deg, #2563eb, #7c3aed);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ── Focus ── */
.focus-ring {
transition: border-color 0.15s, box-shadow 0.15s;
}
.focus-ring:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px var(--primary-soft);
outline: none;
}
/* ── Utility ── */
.text-secondary { color: var(--fg-secondary); }
.text-tertiary { color: var(--fg-tertiary); }
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
/* ── Glass nav ── */
.glass {
background: rgba(255,255,255,0.72);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(231,229,228,0.5);
}
/* ── Image shimmer ── */
@@ -137,26 +168,6 @@ body {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
animation: skeleton-pulse 1.5s ease-in-out infinite;
}
/* ── Gradient text ── */
.gradient-text {
background: linear-gradient(135deg, #007aff, #5856d6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ── Focus ring ── */
.input-focus {
transition: border-color 0.15s, box-shadow 0.15s;
}
.input-focus:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
outline: none;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
animation: skeleton 1.5s ease-in-out infinite;
}