diff --git a/.eslintrc.json b/.eslintrc.json index 85d85445f59..29cb65525fb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -42,7 +42,7 @@ // Other relative imports. Put same-folder imports and `.` last. ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], // Style imports. - ["^.+s?css$"], + ["^.+\\.s?css$"], // Side effect imports. ["^\\u0000"] ] diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index ac556371e80..ea6b04fcec3 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -6,10 +6,7 @@ import { AppPropsWithLayout } from "@/lib/types" import ThemeProvider from "@/components/ThemeProvider" -import "@docsearch/css" import "@/styles/global.css" -import "@/styles/fonts.css" -import "@/styles/docsearch.css" import { BaseLayout } from "@/layouts/BaseLayout" diff --git a/src/styles/global.css b/src/styles/global.css index 34b40c21099..5cbe9d89d3b 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -2,6 +2,10 @@ @tailwind components; @tailwind utilities; +@import "@docsearch/css"; +@import "@/styles/fonts.css"; +@import "@/styles/docsearch.css"; + @layer base { :root { --font-inter: Inter, sans-serif;