From 8c473696402f24f4376477dc25a368e45a390c60 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Thu, 6 Nov 2025 14:51:53 +0100 Subject: [PATCH] [dyad] wrote 4 file(s) --- package.json | 8 ++++++-- postcss.config.js | 12 ++++++------ public/css/styles.css | 4 ++++ tailwind.config.js | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 tailwind.config.js 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