重构:提交全新项目代码

This commit is contained in:
2026-05-04 00:04:03 +08:00
commit bca6c31df7
100 changed files with 5524 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { cn } from "tailwind-variants";
import { ThemeContext } from "./ThemeContext";
import { ReactNode } from "react";
type ThemeProps = {
theme?: "light" | "dark";
children?: ReactNode;
};
export const Theme = (props: ThemeProps) => {
const { theme = "light", children } = props;
const themeCls = cn(theme, "brand-default") as string;
return (
<ThemeContext.Provider value={{ themeCls }}>
<div className={themeCls}>{children}</div>
</ThemeContext.Provider>
);
};