create-tririga-react-ts-vite-app 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tririga-react-ts-vite-app",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Scaffold a TRIRIGA React app with Vite and TypeScript",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -5,6 +5,14 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Tririga React App</title>
8
+ <script>
9
+ // Apply theme early to prevent Flash of Unstyled Content (FOUC)
10
+ if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
11
+ document.documentElement.classList.add('dark');
12
+ } else {
13
+ document.documentElement.classList.remove('dark');
14
+ }
15
+ </script>
8
16
  </head>
9
17
  <body>
10
18
  <div id="root"></div>
@@ -48,7 +48,7 @@ const MainLayout: React.FC = () => {
48
48
  <header className="sticky top-0 z-50 flex items-center justify-between px-4 sm:px-6 h-12 bg-[#161616]">
49
49
  <Link to="/" className="no-underline flex items-center gap-2">
50
50
  <span className="font-semibold text-white/65 text-base">TRIRIGA</span>
51
- <span className="text-white text-base truncate max-w-[120px] sm:max-w-none">React App</span>
51
+ <span className="text-white text-base truncate max-w-[200px] sm:max-w-none">React App</span>
52
52
  </Link>
53
53
 
54
54
  {/* Desktop Action Buttons */}