Skip to content

Commit 6ec62c3

Browse files
authored
Merge pull request #13641 from ethereum/css-import-consolidation
refactor: consolidate css imports into global.css
2 parents 89854bc + 9fb112d commit 6ec62c3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// Other relative imports. Put same-folder imports and `.` last.
4343
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
4444
// Style imports.
45-
["^.+s?css$"],
45+
["^.+\\.s?css$"],
4646
// Side effect imports.
4747
["^\\u0000"]
4848
]

src/pages/_app.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { AppPropsWithLayout } from "@/lib/types"
66

77
import ThemeProvider from "@/components/ThemeProvider"
88

9-
import "@docsearch/css"
109
import "@/styles/global.css"
11-
import "@/styles/fonts.css"
12-
import "@/styles/docsearch.css"
1310

1411
import { BaseLayout } from "@/layouts/BaseLayout"
1512

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@import "@docsearch/css";
6+
@import "@/styles/fonts.css";
7+
@import "@/styles/docsearch.css";
8+
59
@layer base {
610
:root {
711
--font-inter: Inter, sans-serif;

0 commit comments

Comments
 (0)