Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 8c5b06f

Browse files
committed
Update postcss-import to version 16.0.0
1 parent 3139177 commit 8c5b06f

File tree

7 files changed

+41
-11
lines changed

7 files changed

+41
-11
lines changed

web/package-lock.json

Lines changed: 22 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"eslint-config-prettier": "^9.1.0",
2727
"eslint-plugin-import-helpers": "^1.3.1",
2828
"postcss": "^8",
29+
"postcss-import": "^16.0.0",
2930
"tailwindcss": "^3",
3031
"typescript": "^5"
3132
}

web/postcss.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
2+
plugins: {
3+
'postcss-import': {},
4+
tailwindcss: {},
5+
autoprefixer: {},
6+
},
7+
};

web/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Metadata } from 'next';
22
import { Inter } from 'next/font/google';
3-
import './globals.css';
3+
import '../styles/globals.css';
44
import Layout from '@/components/Layout/Layout';
55

66
const inter = Inter({ subsets: ['latin'] });

web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Example request to cms
21
const cmsContentType = 'announcements';
32
fetch(`${process.env.CMS_API}/${cmsContentType}`, {
43
headers: {
@@ -12,6 +11,7 @@ export default function Home() {
1211
return (
1312
<main className="flex min-h-screen flex-col items-center justify-between p-24">
1413
<h1>Vim Landing Page</h1>
14+
<button className="btn inverted">Download</button>
1515
</main>
1616
);
1717
}

web/src/styles/components.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@layer components {
2+
.btn {
3+
@apply border-2 rounded-xl px-2 py-1;
4+
}
5+
6+
.btn.inverted {
7+
@apply text-primary border-primary;
8+
}
9+
}

web/src/app/globals.css renamed to web/src/styles/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "./components.css";
12
@tailwind base;
23
@tailwind components;
34
@tailwind utilities;

0 commit comments

Comments
 (0)