diff --git a/web/themes/custom/opdavies/tailwind-safelist-classes.txt b/web/themes/custom/opdavies/tailwind-safelist-classes.txt new file mode 100644 index 0000000..9016822 --- /dev/null +++ b/web/themes/custom/opdavies/tailwind-safelist-classes.txt @@ -0,0 +1,32 @@ +bg-blue-600 +bg-gray-200 +block +block-opdavies-branding +border +border-gray +border-l-0 +flex +flex-col +flex-none +italic +my-auto +p-3 +pl-5 +pr-6 +py-3 +rounded-full +rounded-l-full +rounded-r-full +sm:flex-row +sm:space-x-4 +sm:space-y-0 +space-x-3 +space-y-3 +space-y-4 +text-center +text-sm +text-white +w-16 +w-32 +w-auto +w-full diff --git a/web/themes/custom/opdavies/tailwind.config.js b/web/themes/custom/opdavies/tailwind.config.js index 3e7d35a..a28c02b 100644 --- a/web/themes/custom/opdavies/tailwind.config.js +++ b/web/themes/custom/opdavies/tailwind.config.js @@ -12,15 +12,9 @@ module.exports = { content: [ '../../../../config/**/*.yml', 'opdavies.theme', + 'tailwind-safelist-classes.txt', 'templates/**/*.twig', - '/tmp/body-field-values.txt' ], - options: { - safelist: [ - 'bg-gray-200', - 'block-opdavies-branding' - ] - } }, theme: { extend: {