引入 Tailwind CSS 和 shadcn/ui

This commit is contained in:
雨霖铃
2026-05-21 22:57:23 +08:00
parent bb27577278
commit 3eb00d8a29
14 changed files with 1034 additions and 3 deletions
+1
View File
@@ -1,6 +1,7 @@
import ReactDOM from 'react-dom/client';
import AppRoot from '@/providers/AppRoot';
import '@/i18n';
import '@/src/index.css';
import App from './App';
ReactDOM.createRoot(document.getElementById('root')!).render(
+4
View File
@@ -6,6 +6,7 @@ import { SnackbarProvider } from '@/components/GlobalSnackbar';
import { Box } from '@mui/material';
import { getEntryPointType } from '@/config/features';
import { useMemo } from 'react';
import { Button } from '@/components/ui/button';
export default function App() {
// 打开Chrome扩展选项页面,需确保manifest中已配置options_page或options_ui
@@ -63,6 +64,9 @@ export default function App() {
<ErrorBoundary>
<RouterContainer />
</ErrorBoundary>
<Button variant="outline" className="m-4">
Tailwind CSS
</Button>
</Box>
</SnackbarProvider>
</RouterProvider>
+1
View File
@@ -1,6 +1,7 @@
import ReactDOM from 'react-dom/client';
import AppRoot from '@/providers/AppRoot';
import '@/i18n';
import '@/src/index.css';
import App from './App.tsx';
ReactDOM.createRoot(document.getElementById('root')!).render(
+1
View File
@@ -1,6 +1,7 @@
import ReactDOM from 'react-dom/client';
import AppRoot from '@/providers/AppRoot';
import '@/i18n';
import '@/src/index.css';
import App from './App.tsx';
ReactDOM.createRoot(document.getElementById('root')!).render(