The Markdown component uses 'prose' classes (prose-lg prose-headings:) but @tailwindcss/typography was not installed/registered. Tables and other MD elements rendered unstyled. Fix: install @tailwindcss/typography@latest, register via @plugin directive in globals.css, add custom dark-theme table styles, and remove redundant tailwind.config.js.
75 lines
1.7 KiB
CSS
75 lines
1.7 KiB
CSS
@import "tailwindcss";
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
/* Linear design system: dark-mode-first */
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
@theme inline {
|
|
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
|
|
|
|
--color-background: #08090a;
|
|
--color-surface: #0f1011;
|
|
--color-elevated: #191a1b;
|
|
--color-border: #1f2022;
|
|
--color-border-subtle: rgba(255, 255, 255, 0.05);
|
|
--color-border-standard: rgba(255, 255, 255, 0.08);
|
|
|
|
--color-text-primary: #f7f8f8;
|
|
--color-text-secondary: #d0d6e0;
|
|
--color-text-tertiary: #8a8f98;
|
|
--color-text-quaternary: #62666d;
|
|
|
|
--color-brand: #5e6ad2;
|
|
--color-accent: #7170ff;
|
|
--color-accent-hover: #828fff;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
background: var(--color-background);
|
|
color: var(--color-text-secondary);
|
|
font-family: var(--font-sans);
|
|
font-feature-settings: "cv01", "ss03";
|
|
}
|
|
|
|
/* 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 prose styles for dark theme — tables */
|
|
.prose table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1.5rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.prose th,
|
|
.prose td {
|
|
border: 1px solid var(--color-border);
|
|
padding: 0.5rem 0.75rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.prose th {
|
|
background: var(--color-elevated);
|
|
color: var(--color-text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.prose td {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.prose tbody tr:nth-child(even) {
|
|
background: rgba(15, 16, 17, 0.5);
|
|
}
|