Skip to content

Commit

Permalink
Merge pull request #13641 from ethereum/css-import-consolidation
Browse files Browse the repository at this point in the history
refactor: consolidate css imports into global.css
  • Loading branch information
pettinarip authored Aug 19, 2024
2 parents 89854bc + 9fb112d commit 6ec62c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+s?css$"],
["^.+\\.s?css$"],
// Side effect imports.
["^\\u0000"]
]
Expand Down
3 changes: 0 additions & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ec62c3

Please sign in to comment.