From 4b82d1a9041e9e22b0dcdd599b607a75c800acbb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Organise Tailwind configuration files --- tailwind.config.js | 16 ++++++---------- .../tailwindcss/colours.js | 0 .../tailwindcss/plugins/focus-visible.js | 0 .../tailwindcss/safelist-classes.txt | 0 4 files changed, 6 insertions(+), 10 deletions(-) rename tailwind-colours.js => tools/tailwindcss/colours.js (100%) rename tailwind-plugin-focus-visible.js => tools/tailwindcss/plugins/focus-visible.js (100%) rename tailwind-safelist-classes.txt => tools/tailwindcss/safelist-classes.txt (100%) diff --git a/tailwind.config.js b/tailwind.config.js index ac2f193b..442750e8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,9 +1,5 @@ -const aspectRatio = require('@tailwindcss/aspect-ratio') -const colors = require('./tailwind-colours') +const colors = require('./tools/tailwindcss/colours') const defaultTheme = require('tailwindcss/defaultTheme') -const focusVisible = require('./tailwind-plugin-focus-visible') -const forms = require('@tailwindcss/forms') -const typography = require('@tailwindcss/typography') const { fontFamily } = defaultTheme module.exports = { @@ -11,7 +7,7 @@ module.exports = { important: true, purge: { content: [ - 'tailwind-safelist-classes.txt', + 'tools/tailwindcss/safelist-classes.txt', 'source/**/*.{md,twig}', ], }, @@ -59,9 +55,9 @@ module.exports = { container: false }, plugins: [ - aspectRatio, - focusVisible, - forms, - typography + require('./tools/tailwindcss/plugins/focus-visible'), + require('@tailwindcss/aspect-ratio'), + require('@tailwindcss/forms'), + require('@tailwindcss/typography') ] } diff --git a/tailwind-colours.js b/tools/tailwindcss/colours.js similarity index 100% rename from tailwind-colours.js rename to tools/tailwindcss/colours.js diff --git a/tailwind-plugin-focus-visible.js b/tools/tailwindcss/plugins/focus-visible.js similarity index 100% rename from tailwind-plugin-focus-visible.js rename to tools/tailwindcss/plugins/focus-visible.js diff --git a/tailwind-safelist-classes.txt b/tools/tailwindcss/safelist-classes.txt similarity index 100% rename from tailwind-safelist-classes.txt rename to tools/tailwindcss/safelist-classes.txt