Skip to content

Commit 9b6892b

Browse files
CRITICAL FIX: Restore accidentally deleted essential files
- Restored globals.css (contains all Tailwind CSS variables and theme) - Restored main.tsx (root entry point importing from correct paths) - Fixed index.html to reference /main.tsx instead of /src/main.tsx - This fixes the missing CSS styling and broken app UI IMPORTANT: The previous cleanup was too aggressive and removed working files, not duplicates.
1 parent fa3f8c3 commit 9b6892b

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

globals.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 0 0% 3.9%;
9+
--card: 0 0% 100%;
10+
--card-foreground: 0 0% 3.9%;
11+
--popover: 0 0% 100%;
12+
--popover-foreground: 0 0% 3.9%;
13+
--primary: 0 0% 9%;
14+
--primary-foreground: 0 0% 98%;
15+
--secondary: 0 0% 96.1%;
16+
--secondary-foreground: 0 0% 9%;
17+
--muted: 0 0% 96.1%;
18+
--muted-foreground: 0 0% 45.1%;
19+
--accent: 0 0% 96.1%;
20+
--accent-foreground: 0 0% 9%;
21+
--destructive: 0 84.2% 60.2%;
22+
--destructive-foreground: 0 0% 98%;
23+
--border: 0 0% 89.8%;
24+
--input: 0 0% 89.8%;
25+
--ring: 0 0% 3.9%;
26+
--radius: 0.5rem;
27+
--chart-1: 12 76% 61%;
28+
--chart-2: 173 58% 39%;
29+
--chart-3: 197 37% 24%;
30+
--chart-4: 43 74% 66%;
31+
--chart-5: 27 87% 67%;
32+
}
33+
34+
.dark {
35+
--background: 0 0% 3.9%;
36+
--foreground: 0 0% 98%;
37+
--card: 0 0% 3.9%;
38+
--card-foreground: 0 0% 98%;
39+
--popover: 0 0% 3.9%;
40+
--popover-foreground: 0 0% 98%;
41+
--primary: 0 0% 98%;
42+
--primary-foreground: 0 0% 9%;
43+
--secondary: 0 0% 14.9%;
44+
--secondary-foreground: 0 0% 98%;
45+
--muted: 0 0% 14.9%;
46+
--muted-foreground: 0 0% 63.9%;
47+
--accent: 0 0% 14.9%;
48+
--accent-foreground: 0 0% 98%;
49+
--destructive: 0 62.8% 30.6%;
50+
--destructive-foreground: 0 0% 98%;
51+
--border: 0 0% 14.9%;
52+
--input: 0 0% 14.9%;
53+
--ring: 0 0% 83.1%;
54+
--chart-1: 220 70% 50%;
55+
--chart-2: 160 60% 45%;
56+
--chart-3: 30 80% 55%;
57+
--chart-4: 280 65% 60%;
58+
--chart-5: 340 75% 55%;
59+
}
60+
}
61+
62+
@layer base {
63+
* {
64+
@apply border-border;
65+
}
66+
body {
67+
@apply bg-background text-foreground;
68+
}
69+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
11+
<script type="module" src="/main.tsx"></script>
1212
</body>
1313
</html>

main.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from "react";
2+
import ReactDOM from "react-dom/client";
3+
import App from "./src/App";
4+
import "./globals.css";
5+
6+
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
7+
<React.StrictMode>
8+
<App />
9+
</React.StrictMode>,
10+
);

0 commit comments

Comments
 (0)