diff --git a/src/components/game/IslandExplorer.client.tsx b/src/components/game/IslandExplorer.client.tsx index c45249d23..6698ad213 100644 --- a/src/components/game/IslandExplorer.client.tsx +++ b/src/components/game/IslandExplorer.client.tsx @@ -2,6 +2,7 @@ // Uses vanilla Three.js engine for better performance import { useState } from 'react' +import './IslandExplorer.css' import { VanillaGameScene } from './scene/VanillaGameScene' import { IntroOverlay } from './ui/IntroOverlay' @@ -64,39 +65,41 @@ export default function IslandExplorer() { return ( -
- {/* Loading overlay */} - {isLoading && } +
+
+ {/* Loading overlay */} + {isLoading && } - {/* 3D Scene */} -
- -
+ {/* 3D Scene */} +
+ +
- {/* Vignette overlay for depth */} -
+ {/* Vignette overlay for depth */} +
- {/* UI Overlays */} - - - - - - - - - - - - - - + {/* UI Overlays */} + + + + + + + + + + + + + + +
) diff --git a/src/components/game/IslandExplorer.css b/src/components/game/IslandExplorer.css new file mode 100644 index 000000000..c2e41b4ae --- /dev/null +++ b/src/components/game/IslandExplorer.css @@ -0,0 +1,8 @@ +@reference '../../styles/app.css'; +@source './'; + +@layer utilities { + :where(.island-explorer) { + @tailwind utilities source(none); + } +} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index fd1d31e1e..9790e2429 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -19,7 +19,7 @@ import { QueryClientProvider, type QueryClient } from '@tanstack/react-query' import { createThemeCss, type HighlightTheme } from '@tanstack/highlight/theme' import { auroraXTheme } from '@tanstack/highlight/themes/aurora-x' import { githubLightTheme } from '@tanstack/highlight/themes/github-light' -import '~/styles/app.css' +import '~/styles/site.css' import { canonicalUrl, getCanonicalPath, diff --git a/src/styles/app.css b/src/styles/app.css index d3152b2a9..077ffe268 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -1,5 +1,4 @@ @import 'tailwindcss'; -@source not '../components/visitor-chat'; @import 'tw-fade'; @plugin "@tailwindcss/typography"; @@ -1092,17 +1091,6 @@ html.dark { --color-surface-state-pressed: #ffffff29; } -/* Safelist for dynamic colors */ -@source inline('{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/{20,30,40,80}'); -@source inline('{hover:{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/40}'); -/* Library `bgStyle` values, tinted via template strings in library chips */ -@source inline('{bg-category-{framework,data,ui,performance,tooling},bg-fuchsia-500,bg-amber-500}/{30,40}'); -@source inline('{hover:{bg-category-{framework,data,ui,performance,tooling},bg-fuchsia-500,bg-amber-500}/40}'); -/* Black/gray-100 theme colors for ranger, config, devtools, mcp */ -@source inline('dark:text-gray-100 dark:bg-gray-100 dark:border-gray-100/50 dark:from-gray-100 dark:via-gray-400/50 text-black bg-black border-black/50 from-black via-gray-600/50 to-gray-600 to-gray-400 dark:text-gray-900'); -/* Accent colors for docs UI (sidebar, TOC, prev/next) */ -@source inline('from-gray-700 to-gray-900 text-gray-700 dark:text-gray-300'); - /* * Semantic heading classes — a convenience alias layer over the DS heading * scale. `class="h1"` renders a complete heading (display font + size + diff --git a/src/styles/site.css b/src/styles/site.css new file mode 100644 index 000000000..d613d056e --- /dev/null +++ b/src/styles/site.css @@ -0,0 +1,15 @@ +@import './app.css'; + +@source not '../components/game'; +@source not '../components/visitor-chat'; + +/* Safelist for dynamic colors */ +@source inline('{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/{20,30,40,80}'); +@source inline('{hover:{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/40}'); +/* Library `bgStyle` values, tinted via template strings in library chips */ +@source inline('{bg-category-{framework,data,ui,performance,tooling},bg-fuchsia-500,bg-amber-500}/{30,40}'); +@source inline('{hover:{bg-category-{framework,data,ui,performance,tooling},bg-fuchsia-500,bg-amber-500}/40}'); +/* Black/gray-100 theme colors for ranger, config, devtools, mcp */ +@source inline('dark:text-gray-100 dark:bg-gray-100 dark:border-gray-100/50 dark:from-gray-100 dark:via-gray-400/50 text-black bg-black border-black/50 from-black via-gray-600/50 to-gray-600 to-gray-400 dark:text-gray-900'); +/* Accent colors for docs UI (sidebar, TOC, prev/next) */ +@source inline('from-gray-700 to-gray-900 text-gray-700 dark:text-gray-300');