Skip to content

Commit 4cbbc1c

Browse files
committed
Redesign UI with Linear-style design tokens and shared page chrome
Introduce a token-based design system (colors, typography, elevation, motion) in Tailwind and globals.css, and consolidate page layout into a new PageShell/PageBody/PageHeader chrome. Refactor every page and shared UI component to use the new tokens and utility classes, replacing the MUI Container wrapper and ad-hoc class recipes. Net -4800 lines by removing duplicated layout/styling code.
1 parent a028361 commit 4cbbc1c

27 files changed

Lines changed: 4371 additions & 9175 deletions

‎webui/src/app/globals.css‎

Lines changed: 194 additions & 432 deletions
Large diffs are not rendered by default.

‎webui/src/app/layout.tsx‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ import type { Metadata } from "next";
2121
import { Inter } from "next/font/google";
2222
import "./globals.css";
2323
import Banner from "./ui/banner";
24-
import { Container } from "@mui/material";
2524
import { ThemeProvider } from "./theme-provider";
2625
import Footer from "./ui/footer";
2726
import Breadcrumb from "./ui/breadcrumb";
2827
import SpotlightSearch from "./ui/spotlight-search";
2928

30-
const inter = Inter({ subsets: ["latin"] });
29+
const inter = Inter({ subsets: ["latin"], display: "swap" });
3130

3231
export const metadata: Metadata = {
3332
title: "Apache Kvrocks Controller",
@@ -42,21 +41,17 @@ export default function RootLayout({
4241
return (
4342
<html lang="en" suppressHydrationWarning>
4443
<body
45-
className={`${inter.className} min-h-screen bg-light dark:bg-dark`}
44+
className={`${inter.className} min-h-screen bg-surface-base text-text-primary antialiased dark:bg-surface-dark-base dark:text-text-dark-primary`}
4645
suppressHydrationWarning
4746
>
4847
<ThemeProvider>
4948
<SpotlightSearch />
5049
<Banner />
51-
<Container
52-
sx={{ marginTop: "64px", height: "calc(100vh - 64px)" }}
53-
maxWidth={false}
54-
disableGutters
55-
>
50+
<div className="flex min-h-screen flex-col pt-[var(--lin-topbar-height)]">
5651
<Breadcrumb />
57-
{children}
52+
<main className="flex-1">{children}</main>
5853
<Footer />
59-
</Container>
54+
</div>
6055
</ThemeProvider>
6156
</body>
6257
</html>

0 commit comments

Comments
 (0)