Skip to content

Commit

Permalink
added es6 module to fix the error
Browse files Browse the repository at this point in the history
  • Loading branch information
nutcas3 committed Oct 17, 2024
1 parent 2a0e3b8 commit cbedc44
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -10,29 +8,28 @@ 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",
},
},
},
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') }
);
}),
],
}

};

0 comments on commit cbedc44

Please sign in to comment.