Skip to content

Commit

Permalink
Setup the Next.js app with Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
prutya committed Oct 17, 2023
1 parent 119d2ad commit 77a32d3
Show file tree
Hide file tree
Showing 8 changed files with 2,118 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
!.yarn/versions
.pnp.*
node_modules
.next
out
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
{
"name": "05_react-multi-select-dropdown",
"packageManager": "yarn@3.6.4"
"packageManager": "yarn@3.6.4",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "13.5.5",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"autoprefixer": "10.4.16",
"postcss": "8.4.31",
"tailwindcss": "3.3.3"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 3 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
9 changes: 9 additions & 0 deletions src/app/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import "./globals.css";

export default function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
3 changes: 3 additions & 0 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Page() {
return <h1>Hello!</h1>;
}
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {},
},
plugins: [],
};

0 comments on commit 77a32d3

Please sign in to comment.