feat(site): add component documentation site

Add Vite, React, MDX, and Tailwind documentation infrastructure.

Document component, handbook, overview, and utility routes.

Add interactive examples for every component family.

Deduplicate React resolution and load the Tailwind 4 theme configuration.
This commit is contained in:
Maofeng
2026-07-25 06:03:17 +08:00
parent b3a7a2a8f5
commit 4efe3f3c64
185 changed files with 18809 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Base UI Tailwind Components</title>
<script>
; (() => {
const storedTheme = localStorage.getItem("base-ui-tailwind-theme")
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches
const theme = storedTheme === "light" || storedTheme === "dark" ? storedTheme : prefersDark ? "dark" : "light"
document.documentElement.classList.toggle("dark", theme === "dark")
})()
</script>
</head>
<body>
<div class="isolate" id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>