From 73b56cc9c4873466f87d2d642b00050dcfede05b Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Thu, 29 Jan 2026 15:10:00 +0000 Subject: [PATCH] Move theme CSS files from public to src and fix imports Next.js cannot import CSS from the /public directory - it's for static assets only. Moved theme-backstage.css and theme-spotify.css from /public to /src/css and updated imports to use proper relative paths. This fixes the @next/next/no-css-tags ESLint warnings and follows Next.js best practices for CSS imports. Signed-off-by: Charles de Dreuille --- docs-ui/src/app/layout.tsx | 7 +++---- docs-ui/{public => src/css}/theme-backstage.css | 0 docs-ui/{public => src/css}/theme-spotify.css | 0 3 files changed, 3 insertions(+), 4 deletions(-) rename docs-ui/{public => src/css}/theme-backstage.css (100%) rename docs-ui/{public => src/css}/theme-spotify.css (100%) diff --git a/docs-ui/src/app/layout.tsx b/docs-ui/src/app/layout.tsx index 3647c572f5..d6a36ef9ac 100644 --- a/docs-ui/src/app/layout.tsx +++ b/docs-ui/src/app/layout.tsx @@ -8,6 +8,9 @@ import { MobileBottomNav } from '@/components/MobileBottomNav'; import styles from './layout.module.css'; import '../css/globals.css'; +import '../css/theme-backstage.css'; +import '../css/theme-spotify.css'; + export const metadata: Metadata = { title: 'Backstage UI', @@ -47,10 +50,6 @@ export default async function RootLayout({ data-theme-name="backstage" suppressHydrationWarning > - - - - diff --git a/docs-ui/public/theme-backstage.css b/docs-ui/src/css/theme-backstage.css similarity index 100% rename from docs-ui/public/theme-backstage.css rename to docs-ui/src/css/theme-backstage.css diff --git a/docs-ui/public/theme-spotify.css b/docs-ui/src/css/theme-spotify.css similarity index 100% rename from docs-ui/public/theme-spotify.css rename to docs-ui/src/css/theme-spotify.css