diff --git a/package.json b/package.json index 758c040..55393c2 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "server.js", "scripts": { "start": "node server.js", - "dev": "nodemon server.js" + "dev": "nodemon server.js", + "build:css": "tailwindcss -i ./src/styles.css -o ./public/css/styles.css --watch" }, "dependencies": { "bcrypt": "^5.1.1", @@ -21,6 +22,9 @@ "winston": "^3.11.0" }, "devDependencies": { - "nodemon": "^3.0.3" + "autoprefixer": "^10.4.16", + "nodemon": "^3.0.3", + "postcss": "^8.4.31", + "tailwindcss": "^3.3.5" } } \ No newline at end of file diff --git a/postcss.config.js b/postcss.config.js index daedffd..96bb01e 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} \ No newline at end of file diff --git a/public/css/styles.css b/public/css/styles.css index 8eaab9b..6791ad3 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -1,3 +1,7 @@ +@import 'tailwindcss/base'; +@import 'tailwindcss/components'; +@import 'tailwindcss/utilities'; + /* Base styles */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..4273d85 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,16 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + "./src/**/*.{js,jsx,ts,tsx}", + "./public/**/*.html", + "./public/**/*.js" + ], + theme: { + extend: { + fontFamily: { + sans: ['Inter', 'sans-serif'], + }, + }, + }, + plugins: [], +} \ No newline at end of file