From efbe4cd1fec84ae70deb9b1330a5d1eb54ec1b3b Mon Sep 17 00:00:00 2001 From: Christoph Stenglein <9399034+cstenglein@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:08:54 +0100 Subject: [PATCH] fix: convert tailwind to esm (#804) --- tailwind.config.js | 52 ++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 6f3c23da..8b33bc5d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,33 +1,31 @@ -const { nextui } = require("@nextui-org/react"); +import { nextui } from "@nextui-org/react"; /** @type {import('tailwindcss').Config} */ -module.exports = { - content: [ - "./src/**/*.{js,jsx,ts,tsx}", - "./public/index.html", - "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", - ], - theme: { - extend: { - colors: { - "bd-yellow-light": "#F7CB47", - "bd-yellow-dark": "#F7CB47", - }, +export const content = [ + "./src/**/*.{js,jsx,ts,tsx}", + "./public/index.html", + "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", +]; +export const theme = { + extend: { + colors: { + "bd-yellow-light": "#F7CB47", + "bd-yellow-dark": "#F7CB47", }, }, - plugins: [ - nextui({ - addCommonColors: true, - themes: { - light: {}, - dark: { - colors: { - primary: "#4785FF", - secondary: "#BBC6DC", - tertiary: "#253553", - }, +}; +export const plugins = [ + nextui({ + addCommonColors: true, + themes: { + light: {}, + dark: { + colors: { + primary: "#4785FF", + secondary: "#BBC6DC", + tertiary: "#253553", }, }, - }), - ], -}; + }, + }), +];