From cbedc446b1f3de3c6fa3baf0f39508c509f13c30 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Thu, 17 Oct 2024 22:32:12 +0300 Subject: [PATCH] added es6 module to fix the error --- frontend/tailwind.config.js | 39 +++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 02ba1ed..4ff3cfb 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,6 +1,4 @@ -/* eslint-disable no-undef */ -/* eslint-disable @typescript-eslint/no-var-requires */ -const plugin = require('tailwindcss/plugin') +import plugin from 'tailwindcss/plugin'; /** @type {import('tailwindcss').Config} */ export default { @@ -10,12 +8,12 @@ export default { ], theme: { extend: { - textShadow: { - sm: '0 1px 2px var(--tw-shadow-color)', - DEFAULT: '0 2px 4px var(--tw-shadow-color)', - lg: '0 8px 6px var(--tw-shadow-color)', - }, - colors: { + textShadow: { + sm: '0 1px 2px var(--tw-shadow-color)', + DEFAULT: '0 2px 4px var(--tw-shadow-color)', + lg: '0 8px 6px var(--tw-shadow-color)', + }, + colors: { primary: "#0055E9", secondary: "#0A0047", accent: "#EDF6FF", @@ -23,16 +21,15 @@ export default { }, }, plugins: [ - plugin(function ({ matchUtilities, theme }) { - matchUtilities( - { - 'text-shadow': (value) => ({ - textShadow: value, - }), - }, - { values: theme('textShadow') } - ) - }), + plugin(function ({ matchUtilities, theme }) { + matchUtilities( + { + 'text-shadow': (value) => ({ + textShadow: value, + }), + }, + { values: theme('textShadow') } + ); + }), ], -} - +};