From fc742b787ab70e0e1d922eea39c2f36e1f8365dc Mon Sep 17 00:00:00 2001 From: Chaoming Li Date: Tue, 31 Dec 2024 14:59:37 +1100 Subject: [PATCH] fix tailwind by making a copy for copying and update README --- README.md | 2 +- tailwind.config.copy.js | 21 +++++++++++++++++++++ tailwind.config.js | 33 +++++++++++++++++++++++++++------ 3 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 tailwind.config.copy.js diff --git a/README.md b/README.md index 69dee66..6a8856e 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ cp -r themes/hugo-saasify-theme/exampleSite/* . # Copy package.json and other config files to your site root cp themes/hugo-saasify-theme/package.json . cp themes/hugo-saasify-theme/postcss.config.js . -cp themes/hugo-saasify-theme/tailwind.config.js . +cp themes/hugo-saasify-theme/tailwind.config.copy.js ./tailwind.config.js ``` ```bash diff --git a/tailwind.config.copy.js b/tailwind.config.copy.js new file mode 100644 index 0000000..db293c8 --- /dev/null +++ b/tailwind.config.copy.js @@ -0,0 +1,21 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + presets: [require('./themes/hugo-saasify-theme/tailwind.config.js')], + content: [ + "./themes/hugo-saasify-theme/layouts/**/*.html", + "./layouts/**/*.html", + "./content/**/*.{html,md}" + ], + theme: { + extend: { + fontFamily: { + sans: ['Inter', 'system-ui', 'sans-serif'], + heading: ['Plus Jakarta Sans', 'sans-serif'], + }, + }, + }, + plugins: [ + require('@tailwindcss/forms'), + require('@tailwindcss/typography'), + ], + } \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 15fd141..ad4909d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,13 +1,34 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - presets: [require('./themes/hugo-saasify-theme/tailwind.config.js')], - content: [ - "./themes/hugo-saasify-theme/layouts/**/*.html", - "./layouts/**/*.html", - "./content/**/*.{html,md}" - ], + content: ["./layouts/**/*.html"], theme: { extend: { + colors: { + primary: { + 50: '#eef1fc', + 100: '#dde3f9', + 200: '#bbc7f3', + 300: '#99abec', + 400: '#778fe6', + 500: '#5573df', + 600: '#425ad6', + 700: '#3548ab', + 800: '#283680', + 900: '#1b2456', + }, + secondary: { + 50: '#faf5ff', + 100: '#f3e8ff', + 200: '#e9d5ff', + 300: '#d8b4fe', + 400: '#c084fc', + 500: '#a855f7', + 600: '#9333ea', + 700: '#7e22ce', + 800: '#6b21a8', + 900: '#581c87', + }, + }, fontFamily: { sans: ['Inter', 'system-ui', 'sans-serif'], heading: ['Plus Jakarta Sans', 'sans-serif'],