From 2c13ca4f4fb22a1d7455ddd560c69f7c0c8f4152 Mon Sep 17 00:00:00 2001 From: Jeff Dyer Date: Tue, 3 May 2022 10:49:41 -0700 Subject: [PATCH] Set up starter app --- package-lock.json | 3 ++- package.json | 2 +- pages/index.js | 4 +++- postcss.config.js | 6 ++++++ styles/globals.css | 16 ---------------- tailwind.config.js | 10 ++++++++++ 6 files changed, 22 insertions(+), 19 deletions(-) create mode 100644 postcss.config.js create mode 100644 tailwind.config.js diff --git a/package-lock.json b/package-lock.json index a8836fa..98183b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,11 @@ { - "name": "next-fe", + "name": "starter-graffapp", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { + "name": "starter-graffapp", "version": "0.1.0", "dependencies": { "next": "12.1.6", diff --git a/package.json b/package.json index 70ef8d0..ca990c2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "next-fe", + "name": "starter-graffapp", "version": "0.1.0", "private": true, "scripts": { diff --git a/pages/index.js b/pages/index.js index 3827e55..c4e84e4 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,7 +1,9 @@ +import Head from 'next/head' + export default function Home() { return (

Hello world!

- ); + ) } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/styles/globals.css b/styles/globals.css index d7019fa..b5c61c9 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -1,19 +1,3 @@ @tailwind base; @tailwind components; @tailwind utilities; -html, -body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; -} - -a { - color: inherit; - text-decoration: none; -} - -* { - box-sizing: border-box; -} diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..4cd6138 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,10 @@ +module.exports = { + content: [ + './pages/**/*.{js,ts,jsx,tsx}', + './components/**/*.{js,ts,jsx,tsx}', + ], + theme: { + extend: {}, + }, + plugins: [], +}