From 438bef620326c24aa1f5ce5990de9c19836f346a Mon Sep 17 00:00:00 2001 From: Antoine Joulia Date: Mon, 10 Jan 2022 10:46:20 +0100 Subject: [PATCH] Setup for Tailwind 3 --- src/index.ts | 2 +- templates/application-extras/tailwind/tailwind.config.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index bae41cb..c3205c4 100755 --- a/src/index.ts +++ b/src/index.ts @@ -107,7 +107,7 @@ export const buildProject = async (project: Project) => { const packageJSON = JSON.parse( fs.readFileSync(path.join(name, 'package.json'), 'utf8') ) - packageJSON.devDependencies.tailwindcss = '^2.0.2' + packageJSON.devDependencies.tailwindcss = '^3.0.11' fs.writeFileSync( path.join(name, 'package.json'), JSON.stringify(packageJSON, null, 2) diff --git a/templates/application-extras/tailwind/tailwind.config.js b/templates/application-extras/tailwind/tailwind.config.js index 62dfdaf..c616826 100644 --- a/templates/application-extras/tailwind/tailwind.config.js +++ b/templates/application-extras/tailwind/tailwind.config.js @@ -1,11 +1,8 @@ module.exports = { - purge: [], - darkMode: false, // or 'media' or 'class' + mode: 'jit', + content: ['./src/**/*.{tsx,jsx}'], theme: { extend: {}, }, - variants: { - extend: {}, - }, plugins: [], }