feat(ui): overhaul UI/UX with CommandMenu, modern Linear design, interactive TOC, and live preview
CI / typecheck + build (turbo) (push) Canceled after 0s

This commit is contained in:
asepharyana
2026-08-21 11:07:52 +07:00
parent a67a8c6469
commit 62116be88d
16 changed files with 2042 additions and 843 deletions
+105 -26
View File
@@ -1,7 +1,7 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
/* Linear design system: dark-mode-first */
/* Modern Linear / Vercel style dark-mode-first tokens */
@custom-variant dark (&:where(.dark, .dark *));
@theme inline {
@@ -10,10 +10,11 @@
--color-background: #08090a;
--color-surface: #0f1011;
--color-elevated: #191a1b;
--color-elevated: #141517;
--color-elevated-hover: #1b1d20;
--color-border: #1f2022;
--color-border-subtle: rgba(255, 255, 255, 0.05);
--color-border-standard: rgba(255, 255, 255, 0.08);
--color-border-subtle: rgba(255, 255, 255, 0.06);
--color-border-standard: rgba(255, 255, 255, 0.1);
--color-text-primary: #f7f8f8;
--color-text-secondary: #d0d6e0;
@@ -27,6 +28,7 @@
html {
scroll-behavior: smooth;
color-scheme: dark;
}
body {
@@ -34,55 +36,132 @@ body {
color: var(--color-text-secondary);
font-family: var(--font-sans);
font-feature-settings: "cv01", "ss03";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Inter font loading */
@font-face {
font-family: "Inter";
font-weight: 200 900;
font-display: swap;
src: url("https://fonts.gstatic.com/s/inter/v19/UcCO3FwrK3iLTeHuS_nVMrNCGw.woff2") format("woff2");
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
/* Custom prose styles for dark theme — tables */
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #23252a;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #383b42;
}
/* Glassmorphism helpers */
.glass-panel {
background: rgba(15, 16, 17, 0.75);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-nav {
background: rgba(8, 9, 10, 0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
/* Prose markdown typography */
.prose table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
font-size: 0.9rem;
border-collapse: separate;
border-spacing: 0;
margin: 1.75rem 0;
font-size: 0.875rem;
border-radius: 0.5rem;
overflow: hidden;
border: 1px solid #1f2022;
}
.prose th,
.prose td {
border: 1px solid var(--color-border);
padding: 0.5rem 0.75rem;
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid #1f2022;
}
.prose th {
background: var(--color-elevated);
color: var(--color-text-primary);
background: #141517;
color: #f7f8f8;
font-weight: 600;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.prose td {
color: var(--color-text-secondary);
color: #d0d6e0;
}
.prose tbody tr:nth-child(even) {
background: rgba(15, 16, 17, 0.5);
.prose tbody tr:last-child td {
border-bottom: none;
}
.prose tbody tr:hover {
background: rgba(255, 255, 255, 0.02);
}
.prose pre {
background: #0d0e0f !important;
border: 1px solid #1f2022;
border-radius: 0.625rem;
padding: 1rem 1.25rem;
overflow-x: auto;
position: relative;
}
/* Inline code in prose */
.prose code {
font-family: var(--font-mono);
font-size: 0.85em;
color: #e2e4e7;
}
/* Blockquote styling */
.prose :not(pre) > code {
background: #141517;
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 0.15rem 0.35rem;
border-radius: 0.25rem;
font-weight: 400;
}
.prose :not(pre) > code::before,
.prose :not(pre) > code::after {
content: none !important;
}
.prose blockquote {
border-left: 2px solid var(--color-border);
border-left: 3px solid #5e6ad2;
background: rgba(94, 106, 210, 0.05);
border-radius: 0 0.375rem 0.375rem 0;
margin: 1.5em 0;
padding: 0.25em 1em;
font-style: italic;
padding: 0.75em 1.25em;
font-style: normal;
color: #a0a4a8;
}
.prose hr {
border-color: #1f2022;
margin: 2.5rem 0;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.2s ease-out forwards;
}