From 4c41e477e13d37e187c8de4225c7e8056bd9ed28 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 29 Sep 2025 19:17:13 +0200 Subject: Internalise theme --- config/tailwind.config.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config/tailwind.config.js (limited to 'config/tailwind.config.js') diff --git a/config/tailwind.config.js b/config/tailwind.config.js new file mode 100644 index 0000000..791ce8c --- /dev/null +++ b/config/tailwind.config.js @@ -0,0 +1,27 @@ +const path = require('path'); + +// When deploying to production, set the base directory to your Hugo project's root directory. +const baseDir = path.join(__dirname, '..'); + +/** @type {import('tailwindcss').Config} */ +module.exports = { + darkMode: 'class', + content: [ + `${baseDir}/themes/**/layouts/**/*.html`, + `${baseDir}/content/**/layouts/**/*.html`, + `${baseDir}/layouts/**/*.html`, + `${baseDir}/content/**/*.html`, + `${baseDir}/content/**/*.md`, + `${baseDir}/public/**/*.html`, + ], + theme: { + extend: { + fontFamily: { + 'sans': ['"Inter"', '-apple-system', 'BlinkMacSystemFont', 'avenir next', 'avenir', 'segoe ui', 'helvetica neue', 'helvetica', 'Cantarell', 'Ubuntu', 'roboto', 'noto', 'arial', 'sans-serif'], + }, + }, + }, + plugins: [], + variants: ['group-hover'], +} + -- cgit v1.3