Skip to content

Commit

Permalink
add postcss import instead of native css imports
Browse files Browse the repository at this point in the history
  • Loading branch information
arzafran committed Nov 20, 2024
1 parent 7432ef1 commit a817059
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
1 change: 1 addition & 0 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { breakpoints as _breakpoints, screens } from './styles/config.mjs'

const postcss = {
plugins: {
'postcss-import': {},
'postcss-extend': {},
'postcss-flexbugs-fixes': {},
'postcss-preset-env': {
Expand Down
10 changes: 5 additions & 5 deletions styles/global.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import url("./_reset.css");
@import url("./_easings.css");
@import url("./_utils.css");
@import url("./_font-style.css");
@import url("./_layout.css");
@import "./_reset";
@import "./_easings";
@import "./_utils";
@import "./_font-style";
@import "./_layout";

:root {
--header-height: mobile-vw(58px);
Expand Down

1 comment on commit a817059

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 74
🟢 Accessibility: 90
🟢 Best practices: 96
🟠 SEO: 63

Lighthouse ran on https://satus-ay998uyk9-darkroom-engineering.vercel.app/

Please sign in to comment.