From dc70dd5e87c83446e9dee56365169d94d34c221f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 18 Dec 2020 00:46:44 +0000 Subject: [PATCH] Move the typography plugin config into `extend` https://tailwindcss.com/docs/upgrading-to-v2#update-typography-and-forms-plugins https://github.com/tailwindlabs/tailwindcss-typography/releases/tag/v0.3.0 --- web/themes/custom/opdavies/tailwind.config.js | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/web/themes/custom/opdavies/tailwind.config.js b/web/themes/custom/opdavies/tailwind.config.js index 6e6b0ec..e2fa1a1 100644 --- a/web/themes/custom/opdavies/tailwind.config.js +++ b/web/themes/custom/opdavies/tailwind.config.js @@ -21,38 +21,38 @@ module.exports = { whitelist: ['bg-gray-200'] }, theme: { - typography: (theme) => ({ - default: { - css: { - a: { - color: theme('colors.blue.500') - }, - code: { - backgroundColor: theme('colors.gray.150'), - fontWeight: theme('fontWeight.normal'), - paddingBottom: theme('spacing.px'), - paddingLeft: theme('spacing.1'), - paddingRight: theme('spacing.1'), - paddingTop: theme('spacing.px') - }, - h2: { - marginBottom: theme('spacing.2'), - marginTop: theme('spacing.8') - }, - pre: { - backgroundColor: theme('colors.gray.150'), - borderRadius: '0', - color: theme('colors.gray.800'), - padding: theme('spacing.6') - }, - 'code::before': false, - 'code::after': false, - 'pre code::before': false, - 'pre code::after': false - } - } - }), extend: { + typography: (theme) => ({ + DEFAULT: { + css: { + a: { + color: theme('colors.blue.500') + }, + code: { + backgroundColor: theme('colors.gray.150'), + fontWeight: theme('fontWeight.normal'), + paddingBottom: theme('spacing.px'), + paddingLeft: theme('spacing.1'), + paddingRight: theme('spacing.1'), + paddingTop: theme('spacing.px') + }, + h2: { + marginBottom: theme('spacing.2'), + marginTop: theme('spacing.8') + }, + pre: { + backgroundColor: theme('colors.gray.150'), + borderRadius: '0', + color: theme('colors.gray.800'), + padding: theme('spacing.6') + }, + 'code::before': false, + 'code::after': false, + 'pre code::before': false, + 'pre code::after': false + } + } + }), colors: { inherit: 'inherit',