manan77709's picture
refactor: redesign global theme and typography
3eabe7a
Raw
History Blame Contribute Delete
2.81 kB
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
/* Background */
--bg: #101214;
--bg-elevated: #171a1d;
--bg-card: #1d2024;
--bg-input: #15181b;
/* Borders */
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.14);
/* Typography */
--text: #e8e9eb;
--text-h: #ffffff;
--text-muted: #a5adb5;
--text-faint: #767d85;
/* Accent (Professional Emerald) */
--accent: #2f7d67;
--accent-bright: #45a084;
--accent-bg: rgba(47, 125, 103, 0.12);
--accent-border: rgba(47, 125, 103, 0.28);
--accent-dim: rgba(47, 125, 103, 0.06);
--social-bg: rgba(255, 255, 255, 0.05);
--shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
--success: #48a66b;
--success-bg: rgba(72, 166, 107, 0.12);
--success-border: rgba(72, 166, 107, 0.3);
--danger: #cf6666;
--danger-bg: rgba(207, 102, 102, 0.12);
--danger-border: rgba(207, 102, 102, 0.3);
--warning: #c89a40;
--warning-bg: rgba(200, 154, 64, 0.12);
--warning-border: rgba(200, 154, 64, 0.3);
--neutral: #9098a0;
--neutral-bg: rgba(144, 152, 160, 0.1);
--neutral-border: rgba(144, 152, 160, 0.25);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 18px;
--radius-xl: 26px;
--font-display: "DM Serif Display", serif;
--font-body: "Manrope", sans-serif;
--header-h: 72px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
width: 100%;
height: 100%;
scroll-behavior: smooth;
scroll-padding-top: 90px;
}
body {
margin: 0;
width: 100%;
min-height: 100%;
background:
radial-gradient(
circle at top,
rgba(47, 125, 103, 0.08),
transparent 35%
),
var(--bg);
color: var(--text);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.7;
letter-spacing: -0.01em;
overflow-x: hidden;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
#root {
width: 100%;
min-height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
color: var(--text-h);
font-family: var(--font-display);
font-weight: 400;
line-height: 1.1;
letter-spacing: -0.03em;
}
p {
margin: 0;
color: var(--text);
}
a {
color: inherit;
text-decoration: none;
}
button {
font-family: inherit;
cursor: pointer;
transition: all 0.25s ease;
}
input,
textarea,
select {
font: inherit;
}
::selection {
background: var(--accent-bg);
color: var(--text-h);
}
* {
scrollbar-width: thin;
scrollbar-color: var(--accent) transparent;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.12);
border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent);
}