From 5a9d29a4ad6fc7a6ccc6a75fa361a20048a77552 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 2 Mar 2022 16:49:14 +1100 Subject: Install tailwindcss --- package.json | 3 +++ postcss.config.js | 6 ++++++ src/App.vue | 19 +++---------------- src/index.css | 3 +++ src/main.js | 1 + tailwind.config.js | 10 ++++++++++ 6 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 postcss.config.js create mode 100644 src/index.css create mode 100644 tailwind.config.js diff --git a/package.json b/package.json index 4a947cd..95eeebb 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,9 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^2.2.0", + "autoprefixer": "^10.4.2", + "postcss": "^8.4.7", + "tailwindcss": "^3.0.23", "vite": "^2.8.0" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..1b69d43 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/App.vue b/src/App.vue index 0456388..10537d6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,25 +11,12 @@ export default { diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/src/main.js b/src/main.js index 01433bc..50a4dab 100644 --- a/src/main.js +++ b/src/main.js @@ -1,4 +1,5 @@ import { createApp } from 'vue' import App from './App.vue' +import './index.css' createApp(App).mount('#app') diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..fa25f55 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,10 @@ +module.exports = { + content: [ + "./index.html", + "./src/**/*.{vue,js,ts,jsx,tsx}", + ], + theme: { + extend: {}, + }, + plugins: [], +} -- cgit v1.2.3